
Untitled
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.text.TextField;
import flash.display.Stage;
var info:TextField = new TextField();
startPreloader()
function startPreloader() {
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress);
info.textColor = 0xFFFFFF;
stage.addChild(info);
info.text = "Loading...";
}
function progress(e:ProgressEvent):void {
if (e.bytesLoaded >= e.bytesTotal){
loadingFinished();
}
}
function loadingFinished():void {
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress);
Stage.removeChild(info);
startup();
}
function startup():void {
gotoAndStop(2);
}