Section 1
//MainTimeline (barry1_fla.MainTimeline)
package barry1_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.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var loadTxt:TextField;
public var watch:MovieClip;
public var x0;
public var y0;
public var clock;
public var zeiger;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function eFrame(_arg1:Event):void{
var _local2:Number = this.stage.loaderInfo.bytesTotal;
var _local3:Number = this.stage.loaderInfo.bytesLoaded;
var _local4:* = (_local3 / _local2);
removeChild(clock);
clock = drawClock(_local4);
clock.alpha = 0.3;
addChild(clock);
zeiger.rotation = (_local4 * 360);
setChildIndex(zeiger, 4);
loadTxt.text = (("Loading " + Math.floor((_local4 * 100))) + "%");
if (_local2 == _local3){
nextFrame();
removeChild(clock);
};
}
public function drawClock(_arg1):Sprite{
var _local7:*;
var _local8:*;
var _local2:Array = new Array();
var _local3:* = 118;
var _local4:* = 0;
var _local5:* = 200;
var _local6:* = true;
while (_local6) {
if (_arg1 < _local4){
_local4 = _arg1;
_local6 = false;
};
_local7 = ((Math.sin(((_local4 * 2) * Math.PI)) * _local3) + x0);
_local8 = ((-(Math.cos(((_local4 * 2) * Math.PI))) * _local3) + y0);
_local2.push(new Array(_local7, _local8));
_local4 = (_local4 + (1 / _local5));
};
_local2.push(new Array(x0, y0));
return (drawPoly(_local2));
}
public function drawPoly(_arg1):Sprite{
var _local2:Sprite = new Sprite();
_local2.graphics.lineStyle(0, 0xFF00);
_local2.graphics.beginFill(0xFF00);
_local2.graphics.moveTo(_arg1[0][0], _arg1[0][1]);
var _local3:* = 1;
while (_local3 < _arg1.length) {
_local2.graphics.lineTo(_arg1[_local3][0], _arg1[_local3][1]);
_local3++;
};
_local2.graphics.endFill();
return (_local2);
}
function frame1(){
stop();
x0 = (watch.x + (watch.width / 2));
y0 = ((watch.y + (watch.height / 2)) + 55);
clock = drawClock(0);
addChild(clock);
zeiger = new Zeiger();
addChild(zeiger);
zeiger.x = x0;
zeiger.y = y0;
addEventListener(Event.ENTER_FRAME, eFrame);
}
}
}//package barry1_fla
Section 2
//Zeiger (Zeiger)
package {
import flash.display.*;
public dynamic class Zeiger extends MovieClip {
}
}//package