Section 1
//MainTimeline (rayscolourac3_fla.MainTimeline)
package rayscolourac3_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class MainTimeline extends MovieClip {
public var alpha_mc:MovieClip;
public var lbar:MovieClip;
public var lpc:TextField;
public var mask_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function followBall(_arg1:Event):void{
var _local2:int;
var _local3:int;
_local2 = (mask_mc.x - mouseX);
_local3 = (mask_mc.y - mouseY);
mask_mc.x = (mask_mc.x - (_local2 / 5));
mask_mc.y = (mask_mc.y - (_local3 / 5));
}
function frame1(){
this.stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
}
function frame2(){
stop();
stage.addEventListener(Event.ENTER_FRAME, followBall);
alpha_mc.mask = mask_mc;
}
public function PL_LOADING(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
lbar.scaleX = (_local2 / 100);
lpc.text = (int(_local2) + "%");
if (_local2 == 100){
this.gotoAndStop(2);
};
}
}
}//package rayscolourac3_fla