Section 1
//LOADER_1 (preloader_fla.LOADER_1)
package preloader_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class LOADER_1 extends MovieClip {
public var parentLoader_mc:MovieClip;
public var done_txt:TextField;
public function LOADER_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package preloader_fla
Section 2
//loading_5 (preloader_fla.loading_5)
package preloader_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class loading_5 extends MovieClip {
public function loading_5(){
addFrameScript(29, frame30);
}
function frame30(){
gotoAndPlay(1);
}
}
}//package preloader_fla
Section 3
//MainTimeline (preloader_fla.MainTimeline)
package preloader_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class MainTimeline extends MovieClip {
public var loader:Loader;
public var preloader:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1);
}
function frame1(){
loader = new Loader();
loader.load(new URLRequest("alienforce.swf"));
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
stop();
}
public function onComplete(_arg1:Event):void{
preloader.gotoAndPlay("fullyloaded");
addEventListener(Event.ENTER_FRAME, checkToLoad);
}
public function checkToLoad(_arg1:Event):void{
if (preloader.currentFrame == 40){
removeEventListener(Event.ENTER_FRAME, checkToLoad);
removeChild(preloader);
addChild(loader);
};
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:int = int(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
preloader.done_txt.text = (_local2 + "%");
}
}
}//package preloader_fla