[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.Combined Code (554 B)
frame 1 {
stop();
preloader.onEnterFrame = function () {
filesize = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.loadBar._xscale = 100 * loaded / filesize;
} else {
preloader._visible = false;
gotoAndStop(2);
}
};
}
movieClip 5 {
}
movieClip 6 {
}
movieClip 82 {
frame 1 {
stop();
}
}
button 85 {
on (press) {
if (one._currentframe == one._totalframes) {
one.gotoAndStop(1);
} else {
one.nextFrame();
}
}
}