Section 1
//bar_root_2 (AGPreloader_fla.bar_root_2)
package AGPreloader_fla {
import flash.display.*;
public dynamic class bar_root_2 extends MovieClip {
public var barmask:MovieClip;
}
}//package AGPreloader_fla
Section 2
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 3
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 4
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 5
//bar_root_18 (THEPRELOADER_fla.bar_root_18)
package THEPRELOADER_fla {
import flash.display.*;
public dynamic class bar_root_18 extends MovieClip {
public var barmask:MovieClip;
}
}//package THEPRELOADER_fla
Section 6
//BG_2 (THEPRELOADER_fla.BG_2)
package THEPRELOADER_fla {
import flash.display.*;
public dynamic class BG_2 extends MovieClip {
public function BG_2(){
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(parent).gotoAndStop(2);
}
}
}//package THEPRELOADER_fla
Section 7
//LOGOEND_43 (THEPRELOADER_fla.LOGOEND_43)
package THEPRELOADER_fla {
import flash.display.*;
public dynamic class LOGOEND_43 extends MovieClip {
public function LOGOEND_43(){
addFrameScript(132, frame133);
}
function frame133(){
MovieClip(root).play();
stop();
}
}
}//package THEPRELOADER_fla
Section 8
//LOGOPRELOAD_0_23 (THEPRELOADER_fla.LOGOPRELOAD_0_23)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_0_23 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_0_23(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 9
//LOGOPRELOAD_1_27 (THEPRELOADER_fla.LOGOPRELOAD_1_27)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_1_27 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_1_27(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 10
//LOGOPRELOAD_2_30 (THEPRELOADER_fla.LOGOPRELOAD_2_30)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_2_30 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_2_30(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 11
//LOGOPRELOAD_3_32 (THEPRELOADER_fla.LOGOPRELOAD_3_32)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_3_32 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_3_32(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 12
//LOGOPRELOAD_4_34 (THEPRELOADER_fla.LOGOPRELOAD_4_34)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_4_34 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_4_34(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 13
//LOGOPRELOAD_5_36 (THEPRELOADER_fla.LOGOPRELOAD_5_36)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_5_36 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_5_36(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 14
//LOGOPRELOAD_6_38 (THEPRELOADER_fla.LOGOPRELOAD_6_38)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_6_38 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_6_38(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 15
//LOGOPRELOAD_7_40 (THEPRELOADER_fla.LOGOPRELOAD_7_40)
package THEPRELOADER_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class LOGOPRELOAD_7_40 extends MovieClip {
public var thenextframe;
public function LOGOPRELOAD_7_40(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
if (MovieClip(parent).isloaded){
MovieClip(parent).gotoAndStop(10);
} else {
thenextframe = (Math.ceil((Math.random() * 8)) + 1);
if (thenextframe == MovieClip(parent).currentFrame){
MovieClip(parent).nextFrame();
} else {
MovieClip(parent).gotoAndStop(thenextframe);
};
};
}
function frame1(){
if (Math.random() > 0.5){
scaleX = -(scaleX);
x = (x - MovieClip(parent).shiftamt);
};
}
}
}//package THEPRELOADER_fla
Section 16
//AGPreloader (AGPreloader)
package {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
public dynamic class AGPreloader extends MovieClip {
public var bar:MovieClip;
public var animationDone:Boolean;
public function AGPreloader(){
addFrameScript(0, frame1);
}
function frame1(){
animationDone = true;
}
}
}//package
Section 17
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Main extends Sprite {
private const _swf:Class;
public function Main():void{
_swf = Main__swf;
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function init(_arg1:Event=null):void{
var _local2:Loader = new Loader();
addChild(_local2);
_local2.loadBytes((new _swf() as ByteArray));
removeEventListener(Event.ADDED_TO_STAGE, init);
}
}
}//package
Section 18
//Main__swf (Main__swf)
package {
import mx.core.*;
public class Main__swf extends ByteArrayAsset {
}
}//package
Section 19
//MofunPreloader (MofunPreloader)
package {
import flash.display.*;
public dynamic class MofunPreloader extends MovieClip {
public var bar:MovieClip;
public var animationDone:Boolean;
public function MofunPreloader(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
animationDone = true;
}
function frame1(){
stop();
animationDone = false;
}
}
}//package
Section 20
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.utils.*;
public class Preloader extends MovieClip {
public var siteLockMofunzone:Boolean;// = false
public var image:MovieClip;
public var siteLockArmor:Boolean;// = false
public function Preloader(){
var _local1:String;
super();
siteLock();
if (siteLockArmor){
image = new AGPreloader();
} else {
if (siteLockMofunzone){
image = new MofunPreloader();
} else {
this.alpha = 0;
};
};
if (image){
addChild(image);
image.x = 350;
image.y = 250;
addEventListener(Event.ENTER_FRAME, checkFrame);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress);
_local1 = "http://agi.armorgames.com/assets/agi/AGI.swf";
Security.allowDomain(_local1);
};
}
private function siteLock():void{
var _local6:Array;
var _local7:Array;
var _local1:String = stage.loaderInfo.url;
_local1 = _local1.toLowerCase();
var _local2:Array = _local1.split("://");
var _local3 = "";
var _local4:Boolean;
var _local5:int;
if (_local2.length > 0){
_local6 = _local2[1].split("/");
_local7 = _local6[0].split(".");
if (_local7.length > 0){
_local5 = 0;
while (_local5 < _local7.length) {
_local3 = _local7[_local5];
if (_local7[_local5] == "armorgames"){
siteLockArmor = true;
_local4 = true;
break;
} else {
if (_local7[_local5] == "mofunzone"){
siteLockMofunzone = true;
_local4 = true;
break;
};
};
_local5++;
};
};
};
}
private function progress(_arg1:ProgressEvent):void{
var _local2:int = Math.round(_arg1.bytesLoaded);
var _local3:int = Math.round(_arg1.bytesTotal);
var _local4:Number = (_local2 / _local3);
image.bar.barmask.scaleX = _local4;
image.gotoAndStop((_local4 * 10));
}
private function checkFrame(_arg1:Event):void{
if (currentFrame == totalFrames){
removeEventListener(Event.ENTER_FRAME, checkFrame);
image.addEventListener(Event.ENTER_FRAME, checkAnimation);
image.gotoAndPlay(2);
};
}
private function checkAnimation(_arg1:Event):void{
if (image.animationDone){
image.removeEventListener(Event.ENTER_FRAME, checkAnimation);
startup();
};
}
private function startup():void{
stop();
image.visible = false;
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress);
var _local1:Class = (getDefinitionByName("Main") as Class);
addChild((new (_local1) as DisplayObject));
}
}
}//package