Section 1
//MainTimeline (ONIFINISH_fla.MainTimeline)
package ONIFINISH_fla {
import flash.events.*;
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public var band:Sprite;
public var color:uint;
public var colorFon:uint;
public var w:uint;
public var h:uint;
public var preloaderContainer:Sprite;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onEnterFrames(_arg1:Event){
var _local2:uint;
var _local3:uint;
_local2 = loaderInfo.bytesLoaded;
_local3 = loaderInfo.bytesTotal;
band.scaleX = (_local2 / _local3);
if (_local2 >= _local3){
removeChild(preloaderContainer);
removeEventListener(Event.ENTER_FRAME, onEnterFrames);
gotoAndPlay(2);
};
}
function frame1(){
w = 200;
h = 10;
colorFon = 0xCCCCCC;
color = 0x333333;
preloaderContainer = new Sprite();
preloaderContainer.graphics.lineStyle(1, color, 1);
preloaderContainer.graphics.beginFill(colorFon, 1);
preloaderContainer.graphics.drawRect(0, 0, w, h);
preloaderContainer.graphics.endFill();
addChild(preloaderContainer);
preloaderContainer.x = ((stage.stageWidth - w) / 2);
preloaderContainer.y = ((stage.stageHeight - h) / 2);
band = new Sprite();
band.graphics.beginFill(color, 1);
band.graphics.drawRect(0, 0, w, h);
band.graphics.endFill();
preloaderContainer.addChild(band);
addEventListener(Event.ENTER_FRAME, onEnterFrames);
}
function frame2(){
stop();
}
}
}//package ONIFINISH_fla