[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.27 KiB) ●
//MainTimeline (SaveEnergy_fla.MainTimeline)
package SaveEnergy_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var preloader_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 526, frame527);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = _arg1.target.bytesLoaded;
_local3 = _arg1.target.bytesTotal;
_local4 = (_local2 / _local3);
preloader_mc.loader_mc.scaleX = _local4;
preloader_mc.loaded_txt.text = (Math.floor((_local4 * 100)) + "%");
}
public function onComplete(_arg1:Event):void{
gotoAndPlay(3);
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame527(){
stop();
}
}
}//package SaveEnergy_fla
Section 2 (350 B)
//mcPreloader_1 (SaveEnergy_fla.mcPreloader_1)
package SaveEnergy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcPreloader_1 extends MovieClip {
public var totalbytes_txt:TextField;
public var loaded_txt:TextField;
public var ofbytes_txt:TextField;
public var loader_mc:MovieClip;
}
}//package SaveEnergy_fla