[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (164 B)
var amountLoaded = (_root.getBytesLoaded() / _root.getBytesTotal());
preloader._width = amountLoaded * 200;
loadText.text = Math.round(amountLoaded * 100) + "%";
Frame 2 (106 B)
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3 (60 B)
playbutton.onRelease = function () {
gotoAndPlay (4);
};