[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.Section 1 (1.21 KiB) ●
//MainTimeline (pcsx2_fla.MainTimeline)
package pcsx2_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class MainTimeline extends MovieClip {
public var lbar:MovieClip;
public var lpc:TextField;
public var playbutton:SimpleButton;
public var playagainbutton:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3884, frame3885);
}
function frame3885(){
stop();
this.stop();
playagainbutton.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent):void{
gotoAndPlay(3);
});
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
lbar.scaleX = (_local2 / 100);
lpc.text = (int(_local2) + "%");
}
public function onComplete(_arg1:Event):void{
gotoAndStop(2);
}
function frame1(){
stop();
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
root.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
this.stop();
playbutton.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent):void{
gotoAndPlay(3);
});
}
}
}//package pcsx2_fla