Section 1
//MainTimeline (Untitled_fla.MainTimeline)
package Untitled_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 loadAmt:TextField;
public var replay_btn:SimpleButton;
public var play_btn:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 5674, frame5675);
}
function frame5675(){
stop();
replay_btn.addEventListener(MouseEvent.MOUSE_DOWN, replayHandler);
}
public function onWatch(_arg1:ProgressEvent):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local2 = _arg1.target.bytesLoaded;
_local3 = _arg1.target.bytesTotal;
_local4 = (_local2 / _local3);
loadAmt.text = (Math.round((_local4 * 100)) + "%");
}
public function mouseDownHandler(_arg1:MouseEvent):void{
gotoAndPlay(3);
}
public function replayHandler(_arg1:MouseEvent):void{
gotoAndPlay(3);
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onWatch);
this.loaderInfo.addEventListener(Event.COMPLETE, onTotal);
}
function frame2(){
play_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
}
public function onTotal(_arg1:Event):void{
nextFrame();
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onWatch);
this.loaderInfo.removeEventListener(Event.COMPLETE, onTotal);
}
}
}//package Untitled_fla