Section 1
//ADbox_8 (ghostgAA_fla.ADbox_8)
package ghostgAA_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class ADbox_8 extends MovieClip {
public var sponsorlb:SimpleButton;
public function ADbox_8(){
addFrameScript(0, frame1, 1, frame2);
}
public function sponsorlbc(_arg1:Event){
var _local2:String;
var _local3:URLRequest;
_local2 = null;
_local3 = new URLRequest("http://www.andkon.com/arcade/");
navigateToURL(_local3, _local2);
}
function frame1(){
stop();
}
function frame2(){
stop();
sponsorlb.addEventListener(MouseEvent.CLICK, sponsorlbc);
stop();
}
}
}//package ghostgAA_fla
Section 2
//anim_jetflame_62 (ghostgAA_fla.anim_jetflame_62)
package ghostgAA_fla {
import flash.display.*;
public dynamic class anim_jetflame_62 extends MovieClip {
public function anim_jetflame_62(){
addFrameScript(4, frame5);
}
function frame5(){
gotoAndPlay(3);
}
}
}//package ghostgAA_fla
Section 3
//anim_jetflame2_66 (ghostgAA_fla.anim_jetflame2_66)
package ghostgAA_fla {
import flash.display.*;
public dynamic class anim_jetflame2_66 extends MovieClip {
public function anim_jetflame2_66(){
addFrameScript(4, frame5);
}
function frame5(){
gotoAndPlay(3);
}
}
}//package ghostgAA_fla
Section 4
//checkpointscreen_182 (ghostgAA_fla.checkpointscreen_182)
package ghostgAA_fla {
import flash.display.*;
public dynamic class checkpointscreen_182 extends MovieClip {
public function checkpointscreen_182(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 5
//credspop_162 (ghostgAA_fla.credspop_162)
package ghostgAA_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class credspop_162 extends MovieClip {
public var hgb:SimpleButton;
public var bb:SimpleButton;
public function credspop_162(){
addFrameScript(0, frame1, 1, frame2);
}
public function bbc(_arg1:Event){
gotoAndStop(1);
}
function frame1(){
stop();
}
public function hgbc(_arg1:Event){
var _local2:String;
var _local3:URLRequest;
_local2 = null;
_local3 = new URLRequest("http://www.hatchedgames.com");
navigateToURL(_local3, _local2);
}
function frame2(){
stop();
bb.addEventListener(MouseEvent.CLICK, bbc);
hgb.addEventListener(MouseEvent.CLICK, hgbc);
}
}
}//package ghostgAA_fla
Section 6
//crystalsending_189 (ghostgAA_fla.crystalsending_189)
package ghostgAA_fla {
import flash.display.*;
public dynamic class crystalsending_189 extends MovieClip {
public function crystalsending_189(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package ghostgAA_fla
Section 7
//eneitypart_virusspark_14 (ghostgAA_fla.eneitypart_virusspark_14)
package ghostgAA_fla {
import flash.display.*;
public dynamic class eneitypart_virusspark_14 extends MovieClip {
public function eneitypart_virusspark_14(){
addFrameScript(7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20);
}
function frame10(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame14(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame18(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame12(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame15(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame16(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame8(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame19(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame13(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame17(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame9(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame20(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
function frame11(){
if ((Math.random() * 10) < 2){
gotoAndPlay(1);
};
}
}
}//package ghostgAA_fla
Section 8
//enemyplate_level1_150 (ghostgAA_fla.enemyplate_level1_150)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyplate_level1_150 extends MovieClip {
public var anim:MovieClip;
public var mycheckpoint:Number;
public var myroot:MovieClip;
public function enemyplate_level1_150(){
addFrameScript(0, frame1, 1, frame2, 26, frame27, 149, frame150, 441, frame442, 692, frame693, 847, frame848, 1505, frame1506, 1579, frame1580);
}
function frame1580(){
}
function frame1506(){
myroot.spawndialog("enemyscout", "This ends now! I'll take care of this hostile myself!");
}
function frame442(){
myroot.spawndialog("ai", "These ships have weapons systems. holding down [A] will fire any available weapon.");
}
function frame848(){
myroot.spawndialog("enemyscout", "Infected ship located! Destroy it immediately!");
}
function frame693(){
myroot.activatecheckpoint();
}
function frame1(){
myroot = null;
mycheckpoint = 700;
}
function frame2(){
}
function frame27(){
myroot.spawndialog("ai", "Pressing [S] will self destruct the ship I am in. In virus form I can infect other ships.");
}
function frame150(){
myroot.spawndialog("ai", "Without a host, my energy drops quickly. If I run out of energy, it's all over.");
}
}
}//package ghostgAA_fla
Section 9
//enemyplate_level2_151 (ghostgAA_fla.enemyplate_level2_151)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyplate_level2_151 extends MovieClip {
public var mycheckpoint:Number;
public var myroot:MovieClip;
public function enemyplate_level2_151(){
addFrameScript(0, frame1, 688, frame689, 729, frame730, 1162, frame1163, 1227, frame1228);
}
function frame1228(){
stop();
}
function frame689(){
myroot.spawndialog("ai", "Looks like that one has some sort of shield. I can't infect it as long as that shield is up.");
}
function frame730(){
myroot.activatecheckpoint();
}
function frame1(){
myroot = null;
mycheckpoint = 735;
}
function frame1163(){
myroot.spawndialog("boss2", "Target aquired. Engaging!");
}
}
}//package ghostgAA_fla
Section 10
//enemyplate_level3_152 (ghostgAA_fla.enemyplate_level3_152)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyplate_level3_152 extends MovieClip {
public var mycheckpoint:Number;
public var myroot:MovieClip;
public function enemyplate_level3_152(){
addFrameScript(0, frame1, 238, frame239, 853, frame854, 1286, frame1287, 1351, frame1352);
}
function frame1352(){
stop();
}
function frame1(){
myroot = null;
mycheckpoint = 855;
}
function frame854(){
myroot.activatecheckpoint();
}
function frame239(){
myroot.spawndialog("boss3", "That AI can not be allowed to escape. Destroy it at all costs!");
}
function frame1287(){
myroot.spawndialog("boss3", "These caverns are endless, this may be our last shot.. Cover me!");
}
}
}//package ghostgAA_fla
Section 11
//enemyplate_level4_153 (ghostgAA_fla.enemyplate_level4_153)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enemyplate_level4_153 extends MovieClip {
public var mycheckpoint:Number;
public var prog:Number;
public var myroot:MovieClip;
public var tempgo:Number;
public function enemyplate_level4_153(){
addFrameScript(0, frame1, 2, frame3, 89, frame90, 118, frame119, 138, frame139, 158, frame159, 178, frame179, 198, frame199, 218, frame219, 238, frame239, 258, frame259, 278, frame279, 298, frame299, 318, frame319, 338, frame339, 358, frame359, 378, frame379, 398, frame399, 465, frame466, 468, frame469, 471, frame472, 474, frame475, 903, frame904, 944, frame945, 1377, frame1378, 1472, frame1473);
}
function frame399(){
gotoAndStop(2);
}
function frame159(){
gotoAndStop(2);
}
function frame279(){
gotoAndStop(2);
}
function frame1473(){
stop();
}
function frame319(){
gotoAndStop(2);
}
function frame90(){
prog++;
if (prog == 10){
gotoAndStop("boss1");
} else {
if (prog == 50){
gotoAndStop("boss2");
} else {
if (prog == 90){
gotoAndStop("boss3");
} else {
if (prog == 130){
gotoAndStop("boss4");
} else {
tempgo = (100 + (Math.floor((Math.random() * (5 + (prog / 6)))) * 20));
if (tempgo > 380){
tempgo = (100 + (Math.floor((Math.random() * (5 + (prog / 6)))) * 20));
};
if (tempgo > 380){
tempgo = (100 + (Math.floor((Math.random() * (5 + (prog / 6)))) * 20));
};
if (tempgo > 380){
tempgo = 380;
};
gotoAndStop(tempgo);
};
};
};
};
}
function frame299(){
gotoAndStop(2);
}
function frame339(){
gotoAndStop(2);
}
function frame3(){
if (prog < 280){
gotoAndStop((10 + Math.floor((prog / 4))));
} else {
gotoAndStop(80);
};
}
function frame469(){
gotoAndStop(2);
}
function frame1(){
myroot = null;
prog = 0;
tempgo = 0;
mycheckpoint = 735;
}
function frame904(){
myroot.spawndialog("ai", "Looks like that one has some sort of shield. I can't infect it as long as that shield is up.");
}
function frame466(){
gotoAndStop(2);
}
function frame199(){
gotoAndStop(2);
}
function frame359(){
gotoAndStop(2);
}
function frame472(){
gotoAndStop(2);
}
function frame179(){
gotoAndStop(2);
}
function frame475(){
gotoAndStop(2);
}
function frame219(){
gotoAndStop(2);
}
function frame1378(){
myroot.spawndialog("boss2", "Target aquired. Engaging!");
}
function frame239(){
gotoAndStop(2);
}
function frame119(){
gotoAndStop(2);
}
function frame259(){
gotoAndStop(2);
}
function frame139(){
gotoAndStop(2);
}
function frame379(){
gotoAndStop(2);
}
function frame945(){
myroot.activatecheckpoint();
}
}
}//package ghostgAA_fla
Section 12
//entity_enemy1_44 (ghostgAA_fla.entity_enemy1_44)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemy1_44 extends MovieClip {
public var shieldanim:MovieClip;
public var mytype:String;
public function entity_enemy1_44(){
addFrameScript(0, frame1, 84, frame85, 268, frame269, 317, frame318, 330, frame331, 375, frame376, 379, frame380);
}
function frame318(){
stop();
}
function frame85(){
(MovieClip(parent.parent).flipstate == 1);
}
function frame331(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame1(){
mytype = "enemy1";
}
function frame376(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame380(){
gotoAndPlay("forwardidle");
}
function frame269(){
(MovieClip(parent.parent).flipstate == 0);
}
}
}//package ghostgAA_fla
Section 13
//entity_enemybasic1_72 (ghostgAA_fla.entity_enemybasic1_72)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemybasic1_72 extends MovieClip {
public var mytype:String;
public function entity_enemybasic1_72(){
addFrameScript(0, frame1, 9, frame10, 13, frame14, 25, frame26, 29, frame30);
}
function frame10(){
gotoAndPlay("backidle");
}
function frame14(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame1(){
mytype = "enemybasic1";
}
function frame26(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame30(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 14
//entity_enemybasic2_74 (ghostgAA_fla.entity_enemybasic2_74)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemybasic2_74 extends MovieClip {
public var mytype:String;
public function entity_enemybasic2_74(){
addFrameScript(0, frame1, 70, frame71, 99, frame100, 115, frame116, 125, frame126, 129, frame130);
}
function frame71(){
gotoAndPlay((currentFrame + Math.floor((Math.random() * 10))));
}
function frame1(){
mytype = "enemybasic2a";
}
function frame100(){
gotoAndPlay("backidle");
}
function frame116(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame126(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame130(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 15
//entity_enemybasic2b_79 (ghostgAA_fla.entity_enemybasic2b_79)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemybasic2b_79 extends MovieClip {
public var mytype:String;
public function entity_enemybasic2b_79(){
addFrameScript(0, frame1, 70, frame71, 99, frame100, 115, frame116, 125, frame126, 129, frame130);
}
function frame71(){
gotoAndPlay((currentFrame + Math.floor((Math.random() * 10))));
}
function frame1(){
mytype = "enemybasic2b";
}
function frame100(){
gotoAndPlay("backidle");
}
function frame116(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame126(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame130(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 16
//entity_enemybasic2sp_80 (ghostgAA_fla.entity_enemybasic2sp_80)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemybasic2sp_80 extends MovieClip {
public var mytype:String;
public function entity_enemybasic2sp_80(){
addFrameScript(0, frame1, 30, frame31, 59, frame60, 75, frame76, 85, frame86, 89, frame90);
}
function frame76(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame86(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame90(){
gotoAndPlay("forwardidle");
}
function frame1(){
mytype = "enemybasic2sp";
}
function frame31(){
gotoAndPlay((currentFrame + Math.floor((Math.random() * 10))));
}
function frame60(){
gotoAndPlay("backidle");
}
}
}//package ghostgAA_fla
Section 17
//entity_enemybasic3_81 (ghostgAA_fla.entity_enemybasic3_81)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemybasic3_81 extends MovieClip {
public var mytype:String;
public function entity_enemybasic3_81(){
addFrameScript(0, frame1, 30, frame31, 69, frame70, 85, frame86, 95, frame96, 99, frame100);
}
function frame70(){
gotoAndPlay("backidle");
}
function frame86(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame1(){
mytype = "enemybasic3";
}
function frame96(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame100(){
gotoAndPlay("forwardidle");
}
function frame31(){
gotoAndPlay((currentFrame + Math.floor((Math.random() * 10))));
}
}
}//package ghostgAA_fla
Section 18
//entity_enemyboss1_91 (ghostgAA_fla.entity_enemyboss1_91)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemyboss1_91 extends MovieClip {
public var mytype:String;
public function entity_enemyboss1_91(){
addFrameScript(0, frame1, 284, frame285, 465, frame466, 486, frame487, 502, frame503, 533, frame534, 544, frame545);
}
function frame285(){
gotoAndPlay("backidle");
}
function frame1(){
mytype = "boss1";
}
function frame466(){
gotoAndPlay("secondstage");
}
function frame503(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame487(){
gotoAndPlay("crashburn");
}
function frame534(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame545(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 19
//entity_enemyboss2_101 (ghostgAA_fla.entity_enemyboss2_101)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemyboss2_101 extends MovieClip {
public var mystate:Number;
public var mytype:String;
public function entity_enemyboss2_101(){
addFrameScript(0, frame1, 191, frame192, 270, frame271, 392, frame393, 413, frame414, 429, frame430, 460, frame461, 471, frame472);
}
function frame393(){
gotoAndPlay("secondstage");
}
function frame430(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame461(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame1(){
mytype = "boss2";
mystate = 1;
}
function frame192(){
gotoAndPlay("backidle");
}
function frame472(){
gotoAndPlay("forwardidle");
}
function frame414(){
gotoAndPlay("crashburn");
}
function frame271(){
mystate = 2;
}
}
}//package ghostgAA_fla
Section 20
//entity_enemyboss3_107 (ghostgAA_fla.entity_enemyboss3_107)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemyboss3_107 extends MovieClip {
public var mystate:Number;
public var mytype:String;
public function entity_enemyboss3_107(){
addFrameScript(0, frame1, 231, frame232, 310, frame311, 432, frame433, 453, frame454, 469, frame470, 500, frame501, 511, frame512);
}
function frame311(){
mystate = 2;
}
function frame433(){
gotoAndPlay("secondstage");
}
function frame501(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame1(){
mytype = "boss3";
mystate = 1;
}
function frame454(){
gotoAndPlay("crashburn");
}
function frame232(){
gotoAndPlay("backidle");
}
function frame512(){
gotoAndPlay("forwardidle");
}
function frame470(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
}
}//package ghostgAA_fla
Section 21
//entity_enemymissile1_86 (ghostgAA_fla.entity_enemymissile1_86)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemymissile1_86 extends MovieClip {
public var mytype:String;
public function entity_enemymissile1_86(){
addFrameScript(0, frame1, 158, frame159, 174, frame175, 205, frame206, 216, frame217);
}
function frame159(){
gotoAndPlay("backidle");
}
function frame206(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame217(){
gotoAndPlay("forwardidle");
}
function frame1(){
mytype = "enemymissile1";
}
function frame175(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
}
}//package ghostgAA_fla
Section 22
//entity_enemysmall1_68 (ghostgAA_fla.entity_enemysmall1_68)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemysmall1_68 extends MovieClip {
public var mytype:String;
public function entity_enemysmall1_68(){
addFrameScript(0, frame1, 178, frame179, 182, frame183, 194, frame195, 198, frame199);
}
function frame183(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame1(){
mytype = "enemysmall1a";
}
function frame179(){
gotoAndPlay("backidle");
}
function frame199(){
gotoAndPlay("forwardidle");
}
function frame195(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
}
}//package ghostgAA_fla
Section 23
//entity_enemysmall1b_70 (ghostgAA_fla.entity_enemysmall1b_70)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemysmall1b_70 extends MovieClip {
public var mytype:String;
public function entity_enemysmall1b_70(){
addFrameScript(0, frame1, 106, frame107, 110, frame111, 122, frame123, 126, frame127);
}
function frame1(){
mytype = "enemysmall1b";
}
function frame107(){
gotoAndPlay("backidle");
}
function frame111(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame127(){
gotoAndPlay("forwardidle");
}
function frame123(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
}
}//package ghostgAA_fla
Section 24
//entity_enemysmall1c_71 (ghostgAA_fla.entity_enemysmall1c_71)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemysmall1c_71 extends MovieClip {
public var mytype:String;
public function entity_enemysmall1c_71(){
addFrameScript(0, frame1, 121, frame122, 125, frame126, 137, frame138, 141, frame142);
}
function frame1(){
mytype = "enemysmall1c";
}
function frame126(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame122(){
gotoAndPlay("backidle");
}
function frame138(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
function frame142(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 25
//entity_enemyspinner_83 (ghostgAA_fla.entity_enemyspinner_83)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_enemyspinner_83 extends MovieClip {
public var mytype:String;
public function entity_enemyspinner_83(){
addFrameScript(0, frame1, 146, frame147);
}
function frame1(){
mytype = "enemyspinner";
}
function frame147(){
MovieClip(parent).dead = true;
}
}
}//package ghostgAA_fla
Section 26
//entity_escapepod_37 (ghostgAA_fla.entity_escapepod_37)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_escapepod_37 extends MovieClip {
public var mytype:String;
public function entity_escapepod_37(){
addFrameScript(0, frame1, 178, frame179, 182, frame183, 194, frame195, 198, frame199);
}
function frame183(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame1(){
mytype = "escapepod";
}
function frame179(){
gotoAndPlay("backidle");
}
function frame199(){
gotoAndPlay("forwardidle");
}
function frame195(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfireing");
};
}
}
}//package ghostgAA_fla
Section 27
//entity_explosion1_114 (ghostgAA_fla.entity_explosion1_114)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_explosion1_114 extends MovieClip {
public var mytype:String;
public function entity_explosion1_114(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
MovieClip(parent).dead = true;
}
function frame1(){
mytype = "explosion1";
}
}
}//package ghostgAA_fla
Section 28
//entity_explosion2_116 (ghostgAA_fla.entity_explosion2_116)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_explosion2_116 extends MovieClip {
public var mytype:String;
public function entity_explosion2_116(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
mytype = "explosion2";
}
function frame100(){
MovieClip(parent).dead = true;
stop();
}
}
}//package ghostgAA_fla
Section 29
//entity_explosionvirus_115 (ghostgAA_fla.entity_explosionvirus_115)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_explosionvirus_115 extends MovieClip {
public var mytype:String;
public function entity_explosionvirus_115(){
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
MovieClip(parent).dead = true;
}
function frame1(){
mytype = "explosionvirus";
}
}
}//package ghostgAA_fla
Section 30
//entity_missile1_58 (ghostgAA_fla.entity_missile1_58)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_missile1_58 extends MovieClip {
public var mytype:String;
public function entity_missile1_58(){
addFrameScript(0, frame1, 35, frame36, 41, frame42, 47, frame48, 54, frame55);
}
function frame1(){
mytype = "missile1";
}
function frame36(){
MovieClip(parent.parent.parent.parent).sounds.playsound("missile1", 0, 0.3);
}
function frame48(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame42(){
stop();
}
function frame55(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 31
//entity_missile2_64 (ghostgAA_fla.entity_missile2_64)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entity_missile2_64 extends MovieClip {
public var mytype:String;
public function entity_missile2_64(){
addFrameScript(0, frame1, 8, frame9, 39, frame40, 45, frame46, 52, frame53);
}
function frame1(){
mytype = "missile1";
}
function frame9(){
MovieClip(parent.parent.parent.parent).sounds.playsound("missile1", 0, 0.2);
}
function frame40(){
gotoAndPlay(15);
}
function frame46(){
if (MovieClip(parent).fire){
gotoAndPlay("forwardfire");
} else {
gotoAndPlay("forwardidle");
};
}
function frame53(){
gotoAndPlay("forwardidle");
}
}
}//package ghostgAA_fla
Section 32
//entity_player_23 (ghostgAA_fla.entity_player_23)
package ghostgAA_fla {
import flash.display.*;
public dynamic class entity_player_23 extends MovieClip {
public function entity_player_23(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay("idle1");
}
}
}//package ghostgAA_fla
Section 33
//entityAI_mover1_41 (ghostgAA_fla.entityAI_mover1_41)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_mover1_41 extends MovieClip {
public function entityAI_mover1_41(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (0.25 * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (0.25 * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
function frame2(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (0.25 * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (0.25 * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
}
}//package ghostgAA_fla
Section 34
//entityAI_moverrandom_60 (ghostgAA_fla.entityAI_moverrandom_60)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_moverrandom_60 extends MovieClip {
public var temp:Number;
public function entityAI_moverrandom_60(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
function frame1(){
temp = 0;
temp = Math.random();
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
function frame4(){
gotoAndPlay(2);
}
function frame2(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
}
}//package ghostgAA_fla
Section 35
//entityAI_moverrandom10_43 (ghostgAA_fla.entityAI_moverrandom10_43)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_moverrandom10_43 extends MovieClip {
public var temp:Number;
public function entityAI_moverrandom10_43(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
temp = 0;
temp = ((Math.random() * 5) / 10);
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
function frame2(){
temp = ((Math.random() * 5) / 10);
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
}
}//package ghostgAA_fla
Section 36
//entityAI_moverrandom100_61 (ghostgAA_fla.entityAI_moverrandom100_61)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_moverrandom100_61 extends MovieClip {
public var temp:Number;
public function entityAI_moverrandom100_61(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
temp = 0;
temp = (Math.random() * 5);
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
function frame2(){
temp = (Math.random() * 5);
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv + (temp * Math.cos(((rotation * Math.PI) / 180))));
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + (temp * Math.sin(((rotation * Math.PI) / 180))));
visible = false;
}
}
}//package ghostgAA_fla
Section 37
//entityAI_seek_63 (ghostgAA_fla.entityAI_seek_63)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_seek_63 extends MovieClip {
public var targety:Number;
public var tempspeed:Number;
public var targetx:Number;
public var tempang:Number;
public var targetang:Number;
public var myxv:Number;
public var myyv:Number;
public function entityAI_seek_63(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
myxv = 0;
myyv = 0;
tempang = 0;
tempspeed = 0;
targetx = 0;
targety = 0;
targetang = 0;
myxv = (MovieClip(parent.parent).xv + (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
myyv = MovieClip(parent.parent).yv;
tempang = Math.atan2(myyv, myxv);
tempspeed = (Math.sqrt(((myxv * myxv) + (myyv * myyv))) * 1.005);
targetx = MovieClip(parent.parent.parent.parent).player.x;
targety = MovieClip(parent.parent.parent.parent).player.y;
targetang = Math.atan2((targety - MovieClip(parent.parent).y), (targetx - MovieClip(parent.parent).x));
if (targetang > (tempang + Math.PI)){
targetang = (targetang - (Math.PI * 2));
};
if (targetang < (tempang - Math.PI)){
targetang = (targetang + (Math.PI * 2));
};
if (tempang > targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv - 0.01);
};
if (tempang < targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv + 0.01);
};
MovieClip(parent.parent).xv = ((tempspeed * Math.cos((tempang + MovieClip(parent.parent).rotv))) - (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
MovieClip(parent.parent).yv = (tempspeed * Math.sin((tempang + MovieClip(parent.parent).rotv)));
visible = false;
}
function frame2(){
myxv = (MovieClip(parent.parent).xv + (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
myyv = MovieClip(parent.parent).yv;
tempang = Math.atan2(myyv, myxv);
tempspeed = (Math.sqrt(((myxv * myxv) + (myyv * myyv))) * 1.005);
targetx = MovieClip(parent.parent.parent.parent).player.x;
targety = MovieClip(parent.parent.parent.parent).player.y;
targetang = Math.atan2((targety - MovieClip(parent.parent).y), (targetx - MovieClip(parent.parent).x));
if (targetang > (tempang + Math.PI)){
targetang = (targetang - (Math.PI * 2));
};
if (targetang < (tempang - Math.PI)){
targetang = (targetang + (Math.PI * 2));
};
if (tempang > targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv - 0.01);
};
if (tempang < targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv + 0.01);
};
MovieClip(parent.parent).xv = ((tempspeed * Math.cos((tempang + MovieClip(parent.parent).rotv))) - (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
MovieClip(parent.parent).yv = (tempspeed * Math.sin((tempang + MovieClip(parent.parent).rotv)));
visible = false;
}
}
}//package ghostgAA_fla
Section 38
//entityAI_seekany_67 (ghostgAA_fla.entityAI_seekany_67)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_seekany_67 extends MovieClip {
public var targety:Number;
public var seektarget:entity;
public var tempspeed:Number;
public var targetx:Number;
public var randseek:Number;
public var i:Number;
public var tempang:Number;
public var targetang:Number;
public var myxv:Number;
public var myyv:Number;
public function entityAI_seekany_67(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
myxv = 0;
myyv = 0;
tempang = 0;
tempspeed = 0;
targetx = 0;
targety = 0;
targetang = 0;
if ((((myxv == 0)) || (seektarget.dead))){
i = 0;
randseek = Math.floor((Math.random() * MovieClip(parent.parent.parent.parent).entitylist.length));
while ((((i < 50)) && (((!((MovieClip(parent.parent.parent.parent).entitylist[randseek].etype.substring(0, 5) == "enemy"))) || ((MovieClip(parent.parent.parent.parent).entitylist[randseek] == MovieClip(parent.parent.parent.parent).player)))))) {
i++;
randseek = Math.floor((Math.random() * MovieClip(parent.parent.parent.parent).entitylist.length));
};
seektarget = MovieClip(parent.parent.parent.parent).entitylist[randseek];
};
myxv = (MovieClip(parent.parent).xv + (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
myyv = MovieClip(parent.parent).yv;
tempang = Math.atan2(myyv, myxv);
tempspeed = (Math.sqrt(((myxv * myxv) + (myyv * myyv))) * 1.005);
targetx = seektarget.x;
targety = seektarget.y;
targetang = Math.atan2((targety - MovieClip(parent.parent).y), (targetx - MovieClip(parent.parent).x));
if (targetang > (tempang + Math.PI)){
targetang = (targetang - (Math.PI * 2));
};
if (targetang < (tempang - Math.PI)){
targetang = (targetang + (Math.PI * 2));
};
if (tempang > targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv - 0.02);
};
if (tempang < targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv + 0.02);
};
MovieClip(parent.parent).xv = ((tempspeed * Math.cos((tempang + MovieClip(parent.parent).rotv))) - (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
MovieClip(parent.parent).yv = (tempspeed * Math.sin((tempang + MovieClip(parent.parent).rotv)));
visible = false;
}
function frame2(){
myxv = (MovieClip(parent.parent).xv + (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
myyv = MovieClip(parent.parent).yv;
tempang = Math.atan2(myyv, myxv);
tempspeed = (Math.sqrt(((myxv * myxv) + (myyv * myyv))) * 1.005);
targetx = seektarget.x;
targety = seektarget.y;
targetang = Math.atan2((targety - MovieClip(parent.parent).y), (targetx - MovieClip(parent.parent).x));
if (targetang > (tempang + Math.PI)){
targetang = (targetang - (Math.PI * 2));
};
if (targetang < (tempang - Math.PI)){
targetang = (targetang + (Math.PI * 2));
};
if (tempang > targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv - 0.02);
};
if (tempang < targetang){
MovieClip(parent.parent).rotv = (MovieClip(parent.parent).rotv + 0.02);
};
MovieClip(parent.parent).xv = ((tempspeed * Math.cos((tempang + MovieClip(parent.parent).rotv))) - (MovieClip(parent.parent.parent.parent).contrailspeed * 2));
MovieClip(parent.parent).yv = (tempspeed * Math.sin((tempang + MovieClip(parent.parent).rotv)));
visible = false;
}
}
}//package ghostgAA_fla
Section 39
//entityAI_shooter1_54 (ghostgAA_fla.entityAI_shooter1_54)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_shooter1_54 extends MovieClip {
public function entityAI_shooter1_54(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type2", (MovieClip(parent.parent).x + x), (MovieClip(parent.parent).y + y), ((rotation * Math.PI) / 180), 6);
visible = false;
}
function frame2(){
visible = false;
}
}
}//package ghostgAA_fla
Section 40
//entityAI_shooter2_56 (ghostgAA_fla.entityAI_shooter2_56)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_shooter2_56 extends MovieClip {
public function entityAI_shooter2_56(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type1", (MovieClip(parent.parent).x + x), (MovieClip(parent.parent).y + y), (((rotation + MovieClip(parent.parent).rotation) * Math.PI) / 180), 16);
visible = false;
}
function frame2(){
visible = false;
}
}
}//package ghostgAA_fla
Section 41
//entityAI_shooterfast_85 (ghostgAA_fla.entityAI_shooterfast_85)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_shooterfast_85 extends MovieClip {
public var tempr;
public var tempy;
public var tempx;
public var i;
public var lr:Number;
public var ly:Number;
public var lx:Number;
public function entityAI_shooterfast_85(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
gotoAndPlay(2);
}
function frame1(){
lx = (MovieClip(parent.parent).x + x);
ly = (MovieClip(parent.parent).y + y);
lr = rotation;
visible = false;
}
function frame2(){
i = 0;
while (i < 4) {
tempx = (((lx * i) + ((MovieClip(parent.parent).x + x) * (4 - i))) / 4);
tempy = (((ly * i) + ((MovieClip(parent.parent).y + y) * (4 - i))) / 4);
if (lr > (rotation + 180)){
lr = (lr - 360);
};
if (lr < (rotation - 180)){
lr = (lr + 360);
};
tempr = (((lr * i) + (rotation * (4 - i))) / 4);
tempx = (tempx + ((i * 3) * Math.cos(((tempr * Math.PI) / 180))));
tempy = (tempy + ((i * 3) * Math.sin(((tempr * Math.PI) / 180))));
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type2", tempx, tempy, ((tempr * Math.PI) / 180), 5);
i++;
};
lx = (MovieClip(parent.parent).x + x);
ly = (MovieClip(parent.parent).y + y);
lr = rotation;
visible = false;
}
}
}//package ghostgAA_fla
Section 42
//entityAI_stopper_50 (ghostgAA_fla.entityAI_stopper_50)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entityAI_stopper_50 extends MovieClip {
public function entityAI_stopper_50(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv * 0.9);
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv * 0.9);
visible = false;
}
function frame2(){
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv * 0.9);
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv * 0.9);
visible = false;
}
}
}//package ghostgAA_fla
Section 43
//entitypart_enemybosspart3b_105 (ghostgAA_fla.entitypart_enemybosspart3b_105)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entitypart_enemybosspart3b_105 extends MovieClip {
public var ssp:Number;
public var mytarget:Number;
public var rv:Number;
public function entitypart_enemybosspart3b_105(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
mytarget = 0;
rv = 0;
ssp = 5;
}
function frame3(){
if ((Math.random() * 100) > 90){
mytarget = (-80 + (Math.random() * 160));
};
if (mytarget < (rotation - 180)){
mytarget = (mytarget + 360);
};
if (mytarget > (rotation + 180)){
mytarget = (mytarget - 360);
};
if (rotation > mytarget){
rv--;
};
if (rotation < mytarget){
rv++;
};
rv = (rv * 0.8);
rotation = (rotation + rv);
gotoAndPlay(2);
ssp--;
if (ssp <= 0){
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type2", (MovieClip(parent.parent).x + x), (MovieClip(parent.parent).y + y), (((180 + rotation) * Math.PI) / 180), 6);
if (MovieClip(parent).mystate == 2){
ssp = 3;
} else {
ssp = 10;
};
};
}
function frame2(){
if ((Math.random() * 100) > 90){
mytarget = (-80 + (Math.random() * 160));
};
if (mytarget < (rotation - 180)){
mytarget = (mytarget + 360);
};
if (mytarget > (rotation + 180)){
mytarget = (mytarget - 360);
};
if (rotation > mytarget){
rv--;
};
if (rotation < mytarget){
rv++;
};
rv = (rv * 0.8);
rotation = (rotation + rv);
}
}
}//package ghostgAA_fla
Section 44
//entitypart_explosionspawner_117 (ghostgAA_fla.entitypart_explosionspawner_117)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entitypart_explosionspawner_117 extends MovieClip {
public var tempexp:MovieClip;
public function entitypart_explosionspawner_117(){
addFrameScript(1, frame2);
}
function frame2(){
x = (x + MovieClip(parent.parent).xv);
y = (y + MovieClip(parent.parent).yv);
MovieClip(parent.parent).xv = (MovieClip(parent.parent).xv * 0.85);
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv * 0.85);
MovieClip(parent.parent).yv = (MovieClip(parent.parent).yv + 0.5);
tempexp = new entitypart_explosionpart1();
MovieClip(parent).addChild(tempexp);
tempexp.x = x;
tempexp.y = y;
tempexp.scaleX = ((400 - x) / 300);
tempexp.scaleY = ((400 - x) / 300);
}
}
}//package ghostgAA_fla
Section 45
//entitypart_shieldprojectedanimation_53 (ghostgAA_fla.entitypart_shieldprojectedanimation_53)
package ghostgAA_fla {
import flash.display.*;
public dynamic class entitypart_shieldprojectedanimation_53 extends MovieClip {
public function entitypart_shieldprojectedanimation_53(){
addFrameScript(8, frame9);
}
function frame9(){
gotoAndPlay(1);
}
}
}//package ghostgAA_fla
Section 46
//entitypart_shieldsystem1_51 (ghostgAA_fla.entitypart_shieldsystem1_51)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entitypart_shieldsystem1_51 extends MovieClip {
public function entitypart_shieldsystem1_51(){
addFrameScript(1, frame2);
}
function frame2(){
if (MovieClip(parent.parent).shielded){
gotoAndPlay(1);
} else {
gotoAndStop(3);
};
}
}
}//package ghostgAA_fla
Section 47
//entitypart31_112 (ghostgAA_fla.entitypart31_112)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entitypart31_112 extends MovieClip {
public var ssp:Number;
public function entitypart31_112(){
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
ssp--;
if (ssp <= 0){
ssp = (5 + Math.floor((Math.random() * 5)));
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type2", (MovieClip(parent.parent).x + x), (MovieClip(parent.parent).y + y), (((rotation - 90) * Math.PI) / 180), 6);
};
gotoAndPlay(2);
}
function frame1(){
ssp = 5;
}
}
}//package ghostgAA_fla
Section 48
//entitypart31b_113 (ghostgAA_fla.entitypart31b_113)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class entitypart31b_113 extends MovieClip {
public var xt:Number;
public var ssp:Number;
public function entitypart31b_113(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
ssp--;
if (ssp <= 0){
ssp = (5 + Math.floor((Math.random() * 5)));
MovieClip(parent.parent.parent.parent).spawnprojectile(MovieClip(parent.parent).entID, "type2", (MovieClip(parent.parent).x + x), (MovieClip(parent.parent).y + y), (((rotation - 90) * Math.PI) / 180), 6);
};
gotoAndPlay(2);
}
function frame1(){
ssp = 5;
xt = x;
}
function frame2(){
if (x == xt){
xt = (-50 - Math.floor((Math.random() * 300)));
} else {
if (Math.abs((x - xt)) < 5){
x = xt;
} else {
if (x > xt){
x = (x - 5);
};
if (x < xt){
x = (x + 5);
};
};
};
}
}
}//package ghostgAA_fla
Section 49
//fadein_172 (ghostgAA_fla.fadein_172)
package ghostgAA_fla {
import flash.display.*;
public dynamic class fadein_172 extends MovieClip {
public function fadein_172(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package ghostgAA_fla
Section 50
//firstcomic_165 (ghostgAA_fla.firstcomic_165)
package ghostgAA_fla {
import flash.events.*;
import flash.display.*;
public dynamic class firstcomic_165 extends MovieClip {
public var mb2:SimpleButton;
public function firstcomic_165(){
addFrameScript(0, frame1, 35, frame36);
}
function frame1(){
mb2.addEventListener(MouseEvent.CLICK, mb2c);
}
function frame36(){
MovieClip(parent).gotoAndStop("map");
}
public function mb2c(_arg1:Event){
MovieClip(parent).gotoAndStop("map");
}
}
}//package ghostgAA_fla
Section 51
//gamelevelcompletescreen_181 (ghostgAA_fla.gamelevelcompletescreen_181)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class gamelevelcompletescreen_181 extends MovieClip {
public function gamelevelcompletescreen_181(){
addFrameScript(0, frame1, 79, frame80);
}
function frame80(){
if ((((MovieClip(parent.parent).game.level == 3)) || ((MovieClip(parent.parent).game.level == 3.5)))){
MovieClip(parent.parent).game.destroywin();
} else {
MovieClip(parent.parent).game.destroy();
};
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 52
//gameoverscreen_180 (ghostgAA_fla.gameoverscreen_180)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class gameoverscreen_180 extends MovieClip {
public function gameoverscreen_180(){
addFrameScript(0, frame1, 79, frame80);
}
function frame80(){
MovieClip(parent.parent).game.destroy();
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 53
//healthbar_174 (ghostgAA_fla.healthbar_174)
package ghostgAA_fla {
import flash.display.*;
public dynamic class healthbar_174 extends MovieClip {
public var win:MovieClip;
public var boom:MovieClip;
public var armorbar:MovieClip;
public var checkpoint:MovieClip;
public var energybar:MovieClip;
public var scrbrd:MovieClip;
public var gameover:MovieClip;
}
}//package ghostgAA_fla
Section 54
//healthbar_armorbar_175 (ghostgAA_fla.healthbar_armorbar_175)
package ghostgAA_fla {
import flash.display.*;
public dynamic class healthbar_armorbar_175 extends MovieClip {
public var armorart:MovieClip;
}
}//package ghostgAA_fla
Section 55
//healthbar_boomanim_178 (ghostgAA_fla.healthbar_boomanim_178)
package ghostgAA_fla {
import flash.display.*;
public dynamic class healthbar_boomanim_178 extends MovieClip {
public function healthbar_boomanim_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 56
//healthbar_energybar_4 (ghostgAA_fla.healthbar_energybar_4)
package ghostgAA_fla {
import flash.display.*;
public dynamic class healthbar_energybar_4 extends MovieClip {
public var swirl1:MovieClip;
public var swirl2:MovieClip;
public var swirlback:MovieClip;
}
}//package ghostgAA_fla
Section 57
//instructionspop_159 (ghostgAA_fla.instructionspop_159)
package ghostgAA_fla {
import flash.events.*;
import flash.display.*;
public dynamic class instructionspop_159 extends MovieClip {
public var bb:SimpleButton;
public function instructionspop_159(){
addFrameScript(0, frame1, 1, frame2);
}
public function bbc(_arg1:Event){
gotoAndStop(1);
}
function frame1(){
stop();
}
function frame2(){
stop();
bb.addEventListener(MouseEvent.CLICK, bbc);
}
}
}//package ghostgAA_fla
Section 58
//mapshown_170 (ghostgAA_fla.mapshown_170)
package ghostgAA_fla {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.geom.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mapshown_170 extends MovieClip {
public var lsbn:SimpleButton;
public function mapshown_170(){
addFrameScript(0, frame1);
}
public function lsbc(_arg1:Event){
var _local2:String;
var _local3:URLRequest;
_local2 = null;
_local3 = new URLRequest("http://www.andkon.com/arcade/");
navigateToURL(_local3, _local2);
}
function frame1(){
if (MovieClip(root).levelunlock == 1){
gotoAndStop(2);
};
if (MovieClip(root).levelunlock == 1.5){
gotoAndStop(3);
};
if (MovieClip(root).levelunlock == 2){
gotoAndStop(4);
};
if (MovieClip(root).levelunlock == 2.5){
gotoAndStop(5);
};
if (MovieClip(root).levelunlock == 3){
gotoAndStop(6);
};
if (MovieClip(root).levelunlock > 3){
gotoAndStop(7);
};
lsbn.addEventListener(MouseEvent.CLICK, lsbc);
}
}
}//package ghostgAA_fla
Section 59
//overlay_186 (ghostgAA_fla.overlay_186)
package ghostgAA_fla {
import flash.display.*;
public dynamic class overlay_186 extends MovieClip {
public function overlay_186(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package ghostgAA_fla
Section 60
//physicspoint1_32 (ghostgAA_fla.physicspoint1_32)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint1_32 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint1_32(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 1;
}
}
}//package ghostgAA_fla
Section 61
//physicspoint2_31 (ghostgAA_fla.physicspoint2_31)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint2_31 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint2_31(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 2;
}
}
}//package ghostgAA_fla
Section 62
//physicspoint3_30 (ghostgAA_fla.physicspoint3_30)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint3_30 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint3_30(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 3;
}
}
}//package ghostgAA_fla
Section 63
//physicspoint4_29 (ghostgAA_fla.physicspoint4_29)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint4_29 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint4_29(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 4;
}
}
}//package ghostgAA_fla
Section 64
//physicspoint5_28 (ghostgAA_fla.physicspoint5_28)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint5_28 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint5_28(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 5;
}
}
}//package ghostgAA_fla
Section 65
//physicspoint6_26 (ghostgAA_fla.physicspoint6_26)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint6_26 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint6_26(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 6;
}
}
}//package ghostgAA_fla
Section 66
//physicspoint7_39 (ghostgAA_fla.physicspoint7_39)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint7_39 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint7_39(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 7;
}
}
}//package ghostgAA_fla
Section 67
//physicspoint8_49 (ghostgAA_fla.physicspoint8_49)
package ghostgAA_fla {
import flash.display.*;
public dynamic class physicspoint8_49 extends MovieClip {
public var id:Number;
public var ispoint:Boolean;
public function physicspoint8_49(){
addFrameScript(0, frame1);
}
function frame1(){
ispoint = true;
id = 8;
}
}
}//package ghostgAA_fla
Section 68
//playclicker_12 (ghostgAA_fla.playclicker_12)
package ghostgAA_fla {
import flash.display.*;
public dynamic class playclicker_12 extends MovieClip {
public function playclicker_12(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 69
//projectile_flashanim_21 (ghostgAA_fla.projectile_flashanim_21)
package ghostgAA_fla {
import flash.display.*;
public dynamic class projectile_flashanim_21 extends MovieClip {
public function projectile_flashanim_21(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package ghostgAA_fla
Section 70
//projectile_type2anim_18 (ghostgAA_fla.projectile_type2anim_18)
package ghostgAA_fla {
import flash.display.*;
public dynamic class projectile_type2anim_18 extends MovieClip {
public function projectile_type2anim_18(){
addFrameScript(10, frame11);
}
function frame11(){
gotoAndPlay(1);
}
}
}//package ghostgAA_fla
Section 71
//scoreboard_183 (ghostgAA_fla.scoreboard_183)
package ghostgAA_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreboard_183 extends MovieClip {
public var scr:TextField;
public var bf:MovieClip;
public var bscr:TextField;
}
}//package ghostgAA_fla
Section 72
//soundsload_154 (ghostgAA_fla.soundsload_154)
package ghostgAA_fla {
import flash.display.*;
public dynamic class soundsload_154 extends MovieClip {
public function soundsload_154(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package ghostgAA_fla
Section 73
//AIexplode (AIexplode)
package {
import flash.display.*;
public dynamic class AIexplode extends MovieClip {
public function AIexplode(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 74
//AImdrop (AImdrop)
package {
import flash.display.*;
public dynamic class AImdrop extends MovieClip {
public function AImdrop(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 75
//AImdrop2 (AImdrop2)
package {
import flash.display.*;
public dynamic class AImdrop2 extends MovieClip {
public function AImdrop2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 76
//AIsdrop1 (AIsdrop1)
package {
import flash.display.*;
public dynamic class AIsdrop1 extends MovieClip {
public function AIsdrop1(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 77
//AIsdrop2 (AIsdrop2)
package {
import flash.display.*;
public dynamic class AIsdrop2 extends MovieClip {
public function AIsdrop2(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 78
//AIsdrop3 (AIsdrop3)
package {
import flash.display.*;
public dynamic class AIsdrop3 extends MovieClip {
public function AIsdrop3(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
visible = false;
}
function frame2(){
visible = false;
}
}
}//package
Section 79
//art_foregroundfog (art_foregroundfog)
package {
import flash.display.*;
public dynamic class art_foregroundfog extends MovieClip {
}
}//package
Section 80
//art_foregroundfog2 (art_foregroundfog2)
package {
import flash.display.*;
public dynamic class art_foregroundfog2 extends MovieClip {
}
}//package
Section 81
//bgplate (bgplate)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class bgplate extends MovieClip {
public var elements:Array;
public var lelement:Number;
public var looper:Boolean;
public var relement:Number;
public var rx:Number;
public var dist:Number;
public var initialized:Boolean;
public function bgplate(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Number){
looper = false;
gotoAndStop(_arg1);
dist = _arg2;
elements = new Array();
rx = 0;
initialized = false;
}
public function init(){
var _local1:Number;
_local1 = 0;
initialized = true;
_local1 = 0;
while (_local1 < numChildren) {
elements.push(MovieClip(getChildAt(_local1)));
MovieClip(getChildAt(_local1)).x = Math.round(MovieClip(getChildAt(_local1)).x);
MovieClip(getChildAt(_local1)).y = Math.round(MovieClip(getChildAt(_local1)).y);
MovieClip(getChildAt(_local1)).cacheAsBitmap = true;
MovieClip(getChildAt(_local1)).depth = _local1;
_local1++;
};
if (!looper){
do {
removeChildAt(0);
} while (numChildren > 0);
};
elements.sortOn("x", Array.NUMERIC, Array.DESCENDING);
relement = 0;
lelement = 0;
}
public function fupdate(_arg1:Number){
if (!initialized){
init();
} else {
rx = (rx + (_arg1 / dist));
};
if (((looper) && ((rx < -1000)))){
rx = (rx + 1000);
};
x = Math.round(rx);
if (!looper){
setvisible();
};
}
public function setvisible(){
var _local1:Number;
_local1 = 0;
while ((((elements[relement].x < (-(x) + 550))) && ((relement < (elements.length - 1))))) {
_local1 = 0;
while (_local1 < (numChildren - 1)) {
if ((getChildAt(_local1) is MovieClip)){
if (elements[relement].depth < MovieClip(getChildAt(_local1)).depth){
break;
};
};
_local1++;
};
addChildAt(elements[relement], _local1);
relement++;
};
while ((((elements[lelement].x < (-(x) - 550))) && ((lelement < (elements.length - 1))))) {
removeChild(elements[lelement]);
lelement++;
};
}
}
}//package
Section 82
//boom1 (boom1)
package {
import flash.media.*;
public dynamic class boom1 extends Sound {
}
}//package
Section 83
//click1 (click1)
package {
import flash.media.*;
public dynamic class click1 extends Sound {
}
}//package
Section 84
//click2 (click2)
package {
import flash.media.*;
public dynamic class click2 extends Sound {
}
}//package
Section 85
//contrailer (contrailer)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class contrailer extends MovieClip {
public var oldx:Number;
public var oldy:Number;
public function contrailer(){
oldx = x;
oldy = y;
visible = false;
}
public function render(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = (x - oldx);
_local2 = (y - oldy);
_local3 = Math.atan2(_local2, _local1);
_local4 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local3 = (_local3 + ((parent.parent.rotation * Math.PI) / 180));
_local1 = (_local4 * Math.cos(_local3));
_local2 = (_local4 * Math.sin(_local3));
MovieClip(parent.parent).contrail(x, y, _local1, _local2);
oldx = x;
oldy = y;
}
}
}//package
Section 86
//contrailervirus (contrailervirus)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class contrailervirus extends MovieClip {
public var oldx:Number;
public var oldy:Number;
public function contrailervirus(){
oldx = x;
oldy = y;
visible = false;
}
public function render(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
_local1 = (x - oldx);
_local2 = (y - oldy);
_local3 = Math.atan2(_local2, _local1);
_local4 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local3 = (_local3 + ((parent.parent.rotation * Math.PI) / 180));
_local1 = (_local4 * Math.cos(_local3));
_local2 = (_local4 * Math.sin(_local3));
MovieClip(parent.parent).contrailvirus(x, y, _local1, _local2);
oldx = x;
oldy = y;
}
}
}//package
Section 87
//debugdraw (debugdraw)
package {
import flash.display.*;
public dynamic class debugdraw extends MovieClip {
}
}//package
Section 88
//enemyplate (enemyplate)
package {
import flash.display.*;
public dynamic class enemyplate extends MovieClip {
public var anim:MovieClip;
}
}//package
Section 89
//entity (entity)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class entity extends MovieClip {
public var pvalue:Number;
public var xv:Number;
public var collideready:Boolean;
public var anim:MovieClip;
public var yv:Number;
public var mass:Number;
public var etype:String;
public var fire:Boolean;
public var invincibility:Number;
public var speed:Number;
public var health:Number;
public var flipstate:Number;
public var dead:Boolean;
public var entID:Number;
public var lastrot:Number;
public var rotv:Number;
public var spawner:entity;
public var lastx:Number;
public var lasty:Number;
public var erate:Number;
public var initialized:Boolean;
public var shielded:Boolean;
public var shieldlife:Number;
public var flashhit:Number;
public var ccradius:Number;
public static var entcounter:Number = 0;
public function entity(_arg1:String, _arg2:Number, _arg3:Number, _arg4:entity){
pvalue = 10;
flashhit = 0;
shieldlife = 70;
shielded = false;
invincibility = 0;
spawner = _arg4;
fire = false;
flipstate = 0;
entcounter++;
entID = entcounter;
initialized = false;
collideready = false;
dead = false;
rotv = 0;
ccradius = 0;
alpha = 0;
this.etype = _arg1;
x = _arg2;
y = _arg3;
xv = 0;
yv = 0;
lastx = x;
lasty = y;
if ((((_arg1 == "missile1")) || ((_arg1 == "missile2")))){
health = 5;
mass = 50;
speed = 200;
erate = 5;
pvalue = 5;
} else {
if (_arg1 == "enemybasic1"){
health = 100;
mass = 50;
speed = 80;
erate = 250;
pvalue = 10;
} else {
if (_arg1.substr(0, 11) == "enemybasic2"){
health = 100;
mass = 100;
speed = 100;
erate = 50;
pvalue = 20;
} else {
if (_arg1.substr(0, 11) == "enemysmall1"){
health = 10;
mass = 30;
speed = 140;
erate = 100;
pvalue = 10;
} else {
if (_arg1 == "enemybasic3"){
health = 100;
mass = 100;
speed = 60;
erate = 100;
pvalue = 20;
} else {
if (_arg1 == "enemy1"){
health = 300;
mass = 200;
speed = 30;
erate = 100;
shielded = true;
pvalue = 50;
} else {
if (_arg1 == "escapepod"){
health = 20;
mass = 20;
speed = 50;
erate = 200;
pvalue = 5;
} else {
if (_arg1 == "explosion1"){
health = 1;
mass = 1;
speed = 1;
erate = 0;
} else {
if (_arg1 == "explosion2"){
health = 1;
mass = 1;
speed = 1;
erate = 0;
} else {
if (_arg1 == "explosionvirus"){
health = 1;
mass = 1;
speed = 1;
erate = 0;
} else {
if (_arg1 == "virus"){
health = 1;
mass = 1;
speed = 150;
erate = 0;
} else {
if (_arg1 == "boss1"){
health = 1005000;
mass = 1000;
speed = 5;
erate = 0;
shielded = true;
pvalue = 1000;
} else {
if (_arg1 == "boss2"){
health = 1005000;
mass = 1000;
speed = 5;
erate = 0;
shielded = true;
pvalue = 1000;
} else {
if (_arg1 == "boss3"){
health = 1005000;
mass = 1000;
speed = 5;
erate = 0;
shielded = true;
pvalue = 1000;
} else {
health = 100;
mass = 100;
speed = 100;
erate = 100;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
gotoAndStop(_arg1);
}
public function debugdrawradius(){
MovieClip(root).game.debugger.graphics.lineStyle(1, 0xFFFF00, 1);
MovieClip(root).game.debugger.graphics.drawCircle(x, y, Math.sqrt(ccradius));
}
public function damage(_arg1:Number){
if (etype != "virus"){
flashhit = 3;
if (MovieClip(parent.parent).player == this){
MovieClip(parent.parent.parent).healthbar.armorbar.armorart.gotoAndStop((Math.floor((Math.random() * 3)) + 2));
MovieClip(parent.parent.parent).healthbar.boom.gotoAndPlay(2);
};
if (etype.substr(0, 4) == "boss"){
if (health > 1002500){
health = (health - _arg1);
if (health <= 1002500){
anim.gotoAndPlay("stage1blow");
};
} else {
health = (health - _arg1);
if (health < 1000000){
anim.gotoAndPlay("crashburn");
};
};
} else {
if (invincibility == 0){
health = (health - _arg1);
};
};
if (health <= 0){
dead = true;
MovieClip(root).game.scr = (MovieClip(root).game.scr + pvalue);
};
};
}
public function fupdate(){
var _local1:ColorTransform;
var _local2:Number;
if ((((flashhit >= 3)) || ((flashhit == 1)))){
_local1 = anim.transform.colorTransform;
if (flashhit >= 3){
_local1.greenMultiplier = 2;
_local1.redMultiplier = 2;
_local1.blueMultiplier = 3;
} else {
_local1.greenMultiplier = 1;
_local1.redMultiplier = 1;
_local1.blueMultiplier = 1;
};
anim.transform.colorTransform = _local1;
};
if (flashhit > 0){
flashhit--;
};
if (invincibility > 0){
invincibility--;
};
if (!initialized){
initialized = true;
} else {
if (etype == "explosion2"){
x = (x - 20);
};
collideready = true;
alpha = 1;
if (health <= 0){
dead = true;
};
ccradius = 0;
lastx = x;
lasty = y;
lastrot = rotation;
if (!visible){
visible = true;
};
if (etype != "explosion2"){
x = (x + xv);
y = (y + yv);
if (rotv > 0.3){
rotv = 0.3;
};
if (rotv < -0.3){
rotv = -0.3;
};
rotv = (rotv * 0.8);
rotation = ((Math.atan2(yv, (xv + (MovieClip(root).game.contrailspeed * 2))) * 180) / Math.PI);
};
_local2 = 0;
_local2 = 0;
while (_local2 < anim.numChildren) {
if ((anim.getChildAt(_local2) is MovieClip)){
if ((MovieClip(anim.getChildAt(_local2)) is entitypart)){
MovieClip(anim.getChildAt(_local2)).fupdate();
};
if ((((MovieClip(anim.getChildAt(_local2)) is contrailer)) || ((MovieClip(anim.getChildAt(_local2)) is contrailervirus)))){
MovieClip(anim.getChildAt(_local2)).render();
};
if ((MovieClip(anim.getChildAt(_local2)) is AImdrop)){
MovieClip(parent.parent).spawnentity("missile1", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
if ((MovieClip(anim.getChildAt(_local2)) is AImdrop2)){
MovieClip(parent.parent).spawnentity("missile2", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
if ((MovieClip(anim.getChildAt(_local2)) is AIsdrop1)){
MovieClip(parent.parent).spawnentity("enemybasic2sp", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
if ((MovieClip(anim.getChildAt(_local2)) is AIsdrop2)){
MovieClip(parent.parent).spawnentity("enemysmall1c", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
if ((MovieClip(anim.getChildAt(_local2)) is AIsdrop3)){
MovieClip(parent.parent).spawnentity("enemybasic1", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
if ((MovieClip(anim.getChildAt(_local2)) is AIexplode)){
MovieClip(parent.parent).spawnentity("explosion1", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
MovieClip(parent.parent).spawnentity("explosion2", (MovieClip(anim.getChildAt(_local2)).x + x), (MovieClip(anim.getChildAt(_local2)).y + y), this);
};
};
_local2++;
};
debugdrawradius();
if (etype != "explosion2"){
if ((((((((x < -400)) || ((x > 400)))) || ((y < -400)))) || ((y > 400)))){
dead = true;
};
};
};
}
public function cleanup(){
spawner = null;
}
public function contrailvirus(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:MovieClip;
var _local10:Number;
_local5 = ((Math.cos(((rotation * Math.PI) / 180)) * _arg1) - (Math.sin(((rotation * Math.PI) / 180)) * _arg2));
_local6 = ((Math.sin(((rotation * Math.PI) / 180)) * _arg1) + (Math.cos(((rotation * Math.PI) / 180)) * _arg2));
_local7 = ((Math.cos(((lastrot * Math.PI) / 180)) * _arg1) - (Math.sin(((lastrot * Math.PI) / 180)) * _arg2));
_local8 = ((Math.sin(((lastrot * Math.PI) / 180)) * _arg1) + (Math.cos(((lastrot * Math.PI) / 180)) * _arg2));
_local7 = (_local7 + ((lastx - x) - _local5));
_local8 = (_local8 + ((lasty - y) - _local6));
_local5 = (_local5 + x);
_local6 = (_local6 + y);
_local9 = new MovieClip();
_local10 = ((((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2) * ((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2)) + ((_local8 / 2) * (_local8 / 2)));
_local9.graphics.lineStyle(6, 3399167, (_local10 / 200));
_local9.graphics.moveTo(0, 0);
_local9.graphics.lineTo((((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2) - (_arg3 / 2)), ((_local8 / 2) - (_arg4 / 2)));
MovieClip(root).game.contrailsmap.draw(_local9, new Matrix(1, 0, 0, 1, ((_local5 + 275) / 2), ((_local6 + 200) / 2)));
}
public function contrail(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:MovieClip;
var _local10:Number;
_local5 = ((Math.cos(((rotation * Math.PI) / 180)) * _arg1) - (Math.sin(((rotation * Math.PI) / 180)) * _arg2));
_local6 = ((Math.sin(((rotation * Math.PI) / 180)) * _arg1) + (Math.cos(((rotation * Math.PI) / 180)) * _arg2));
_local7 = ((Math.cos(((lastrot * Math.PI) / 180)) * _arg1) - (Math.sin(((lastrot * Math.PI) / 180)) * _arg2));
_local8 = ((Math.sin(((lastrot * Math.PI) / 180)) * _arg1) + (Math.cos(((lastrot * Math.PI) / 180)) * _arg2));
_local7 = (_local7 + ((lastx - x) - _local5));
_local8 = (_local8 + ((lasty - y) - _local6));
_local5 = (_local5 + x);
_local6 = (_local6 + y);
_local9 = new MovieClip();
_local10 = ((((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2) * ((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2)) + ((_local8 / 2) * (_local8 / 2)));
_local9.graphics.lineStyle(1, 0xFFFFFF, (_local10 / 100));
_local9.graphics.moveTo(0, 0);
_local9.graphics.lineTo((((_local7 - (MovieClip(root).game.contrailspeed * 2)) / 2) - (_arg3 / 2)), ((_local8 / 2) - (_arg4 / 2)));
MovieClip(root).game.contrailsmap.draw(_local9, new Matrix(1, 0, 0, 1, ((_local5 + 275) / 2), ((_local6 + 200) / 2)));
}
}
}//package
Section 90
//entitypart (entitypart)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class entitypart extends MovieClip {
public var loaded:Boolean;
public var worldoy:Number;
public var pointlistworld:Array;
public var worldx:Number;
public var pointlist:Array;
public var worldy:Number;
public var entID:Number;
public var lastrot:Number;
public var worldox:Number;
public function entitypart(){
entID = MovieClip(parent).entID;
pointlist = new Array();
pointlistworld = new Array();
loaded = false;
worldx = x;
worldy = y;
worldox = worldx;
worldoy = worldy;
}
public function debugdrawskeleton(){
var _local1:Number;
_local1 = 1;
while (_local1 < pointlistworld.length) {
MovieClip(root).game.debugger.graphics.lineStyle(1, 0xFF00, 1);
MovieClip(root).game.debugger.graphics.moveTo(pointlistworld[(_local1 - 1)].x, pointlistworld[(_local1 - 1)].y);
MovieClip(root).game.debugger.graphics.lineTo(pointlistworld[_local1].x, pointlistworld[_local1].y);
_local1++;
};
MovieClip(root).game.debugger.graphics.lineStyle(1, 0xFF00, 1);
MovieClip(root).game.debugger.graphics.moveTo(pointlistworld[(pointlistworld.length - 1)].x, pointlistworld[(pointlistworld.length - 1)].y);
MovieClip(root).game.debugger.graphics.lineTo(pointlistworld[0].x, pointlistworld[0].y);
}
public function updatepointstoworld(){
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = 0;
while (_local2 < pointlist.length) {
pointlistworld[_local2].x = pointlist[_local2].x;
pointlistworld[_local2].y = pointlist[_local2].y;
pointlistworld[_local2].protate(0, 0, ((rotation * Math.PI) / 180));
pointlistworld[_local2].ptranslate(x, y);
if (MovieClip(parent.parent).rotation != 0){
pointlistworld[_local2].protate(0, 0, ((MovieClip(parent.parent).rotation * Math.PI) / 180));
};
pointlistworld[_local2].ptranslate(MovieClip(parent.parent).x, MovieClip(parent.parent).y);
_local1 = (((pointlistworld[_local2].x - parent.parent.x) * (pointlistworld[_local2].x - parent.parent.x)) + ((pointlistworld[_local2].y - parent.parent.y) * (pointlistworld[_local2].y - parent.parent.y)));
if (_local1 > MovieClip(parent.parent).ccradius){
MovieClip(parent.parent).ccradius = _local1;
};
_local2++;
};
}
public function fupdate(){
lastrot = rotation;
worldox = worldx;
worldoy = worldy;
if (loaded){
updatepointstoworld();
debugdrawskeleton();
} else {
getpoints();
};
}
public function getpoints(){
var _local1:Number;
_local1 = 0;
_local1 = 0;
while (_local1 < numChildren) {
if ((getChildAt(_local1) is MovieClip)){
if (MovieClip(getChildAt(_local1)).ispoint){
pointlist.push(new physicspoint(getChildAt(_local1).x, getChildAt(_local1).y, MovieClip(getChildAt(_local1)).id));
};
};
_local1++;
};
pointlist.sortOn("id", (Array.NUMERIC | Array.DESCENDING));
_local1 = 0;
do {
if ((getChildAt(_local1) is MovieClip)){
if (MovieClip(getChildAt(_local1)).ispoint){
removeChild(getChildAt(_local1));
_local1--;
};
};
_local1++;
} while (_local1 < numChildren);
_local1 = 0;
while (_local1 < pointlist.length) {
pointlistworld.push(new physicspoint(pointlist[_local1].x, pointlist[_local1].y, pointlist[_local1].id));
_local1++;
};
loaded = true;
}
}
}//package
Section 91
//entitypart_enemyangelbody (entitypart_enemyangelbody)
package {
public dynamic class entitypart_enemyangelbody extends entitypart {
}
}//package
Section 92
//entitypart_enemyangelbody2 (entitypart_enemyangelbody2)
package {
public dynamic class entitypart_enemyangelbody2 extends entitypart {
}
}//package
Section 93
//entitypart_enemyb3a (entitypart_enemyb3a)
package {
public dynamic class entitypart_enemyb3a extends entitypart {
}
}//package
Section 94
//entitypart_enemybosspart1 (entitypart_enemybosspart1)
package {
public dynamic class entitypart_enemybosspart1 extends entitypart {
}
}//package
Section 95
//entitypart_enemybosspart2 (entitypart_enemybosspart2)
package {
public dynamic class entitypart_enemybosspart2 extends entitypart {
}
}//package
Section 96
//entitypart_enemybosspart22 (entitypart_enemybosspart22)
package {
public dynamic class entitypart_enemybosspart22 extends entitypart {
}
}//package
Section 97
//entitypart_enemybosspart2b (entitypart_enemybosspart2b)
package {
public dynamic class entitypart_enemybosspart2b extends entitypart {
}
}//package
Section 98
//entitypart_enemybosspart3 (entitypart_enemybosspart3)
package {
public dynamic class entitypart_enemybosspart3 extends entitypart {
}
}//package
Section 99
//entitypart_enemybosspart32 (entitypart_enemybosspart32)
package {
public dynamic class entitypart_enemybosspart32 extends entitypart {
}
}//package
Section 100
//entitypart_enemybosspart33 (entitypart_enemybosspart33)
package {
public dynamic class entitypart_enemybosspart33 extends entitypart {
}
}//package
Section 101
//entitypart_enemymissile1part1 (entitypart_enemymissile1part1)
package {
public dynamic class entitypart_enemymissile1part1 extends entitypart {
}
}//package
Section 102
//entitypart_enemymissile1part2 (entitypart_enemymissile1part2)
package {
public dynamic class entitypart_enemymissile1part2 extends entitypart {
}
}//package
Section 103
//entitypart_enemysmall1 (entitypart_enemysmall1)
package {
public dynamic class entitypart_enemysmall1 extends entitypart {
}
}//package
Section 104
//entitypart_enemyspinnermain (entitypart_enemyspinnermain)
package {
public dynamic class entitypart_enemyspinnermain extends entitypart {
}
}//package
Section 105
//entitypart_enemytanker (entitypart_enemytanker)
package {
public dynamic class entitypart_enemytanker extends entitypart {
}
}//package
Section 106
//entitypart_escapepod (entitypart_escapepod)
package {
public dynamic class entitypart_escapepod extends entitypart {
}
}//package
Section 107
//entitypart_explosionpart1 (entitypart_explosionpart1)
package {
import flash.display.*;
public dynamic class entitypart_explosionpart1 extends MovieClip {
public function entitypart_explosionpart1(){
addFrameScript(0, frame1, 84, frame85);
}
function frame85(){
stop();
}
function frame1(){
rotation = (Math.random() * 360);
}
}
}//package
Section 108
//entitypart_missile1hull (entitypart_missile1hull)
package {
public dynamic class entitypart_missile1hull extends entitypart {
}
}//package
Section 109
//entitypart_missile1hullcopy (entitypart_missile1hullcopy)
package {
public dynamic class entitypart_missile1hullcopy extends entitypart {
}
}//package
Section 110
//entitypart_playerglow (entitypart_playerglow)
package {
public dynamic class entitypart_playerglow extends entitypart {
}
}//package
Section 111
//entitypart1 (entitypart1)
package {
public dynamic class entitypart1 extends entitypart {
}
}//package
Section 112
//entitypart1b (entitypart1b)
package {
public dynamic class entitypart1b extends entitypart {
}
}//package
Section 113
//entitypart2 (entitypart2)
package {
public dynamic class entitypart2 extends entitypart {
}
}//package
Section 114
//entitypart34 (entitypart34)
package {
public dynamic class entitypart34 extends entitypart {
}
}//package
Section 115
//entitypart34b (entitypart34b)
package {
public dynamic class entitypart34b extends entitypart {
}
}//package
Section 116
//entitypart4 (entitypart4)
package {
public dynamic class entitypart4 extends entitypart {
}
}//package
Section 117
//eshoot1 (eshoot1)
package {
import flash.media.*;
public dynamic class eshoot1 extends Sound {
}
}//package
Section 118
//eshoot2 (eshoot2)
package {
import flash.media.*;
public dynamic class eshoot2 extends Sound {
}
}//package
Section 119
//eshoot3 (eshoot3)
package {
import flash.media.*;
public dynamic class eshoot3 extends Sound {
}
}//package
Section 120
//gamestage (gamestage)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.system.*;
public class gamestage extends MovieClip {
public var mouseclick:Boolean;
public var projectilelist:Array;
public var keyspace:Boolean;
public var debugger:debugdraw;
public var scr:Number;
public var atmospheremc:MovieClip;
public var bgplateback:bgplate;
public var wside:Number;
public var bscr:Number;
public var energy:Number;
public var bgplatemid:bgplate;
public var initialized:Boolean;
public var bgplatefront:bgplate;
public var player:entity;
public var keyleft:Boolean;
public var atmospheremap:BitmapData;
public var entitylist:Array;
public var contrailspeed:Number;
public var contrailsmc:MovieClip;
public var keyjump:Boolean;
public var atmosphere:Bitmap;
public var tempy:Number;
public var tempx:Number;
public var keyright:Boolean;
public var contrails:Bitmap;
public var keyup:Boolean;
public var entitylayer:MovieClip;
public var keydown:Boolean;
public var level:Number;
public var contrailsmap:BitmapData;
public var eplate:enemyplate;
public var temptimer:Number;
public function gamestage(_arg1:Number){
var _local2:ColorTransform;
super();
scr = 0;
bscr = 0;
energy = 100;
temptimer = 0;
wside = 1;
level = _arg1;
contrailspeed = 12;
initialized = false;
keyspace = false;
keyjump = false;
keydown = false;
keyup = false;
keyleft = false;
keyright = false;
mouseclick = false;
eplate = new enemyplate();
eplate.gotoAndStop(Math.floor(level));
bgplateback = new bgplate((("level" + Math.floor(level)) + "back"), 100, 0, 0);
addChild(bgplateback);
bgplatemid = new bgplate((("level" + Math.floor(level)) + "mid"), 60, 0, 0);
addChild(bgplatemid);
bgplatefront = new bgplate((("level" + Math.floor(level)) + "front"), 30, 0, 0);
addChild(bgplatefront);
if (level >= 4){
bgplateback.looper = true;
bgplatemid.looper = true;
bgplatefront.looper = true;
};
contrailsmc = new MovieClip();
contrailsmc.alpha = 0.3;
contrailsmc.scaleX = 2;
contrailsmc.scaleY = 2;
contrailsmc.x = -275;
contrailsmc.y = -200;
contrailsmap = new BitmapData(1000, 200, true, 0);
contrails = new Bitmap(contrailsmap);
contrailsmc.addChild(contrails);
atmospheremc = new MovieClip();
addChild(atmospheremc);
atmospheremc.alpha = 1;
atmospheremc.scaleX = 2;
atmospheremc.scaleY = 2;
atmospheremc.x = -275;
atmospheremc.y = -200;
atmospheremap = new BitmapData(1000, 200, true, 0);
atmosphere = new Bitmap(atmospheremap);
atmospheremc.addChild(atmosphere);
entitylayer = new MovieClip();
addChild(entitylayer);
addChild(contrailsmc);
_local2 = contrailsmc.transform.colorTransform;
if (Math.floor(level) == 3){
_local2.greenMultiplier = 0.4;
_local2.redMultiplier = 0.4;
_local2.blueMultiplier = 0.4;
};
contrailsmc.transform.colorTransform = _local2;
_local2 = atmospheremc.transform.colorTransform;
if (Math.floor(level) == 1){
_local2.greenMultiplier = 0.2;
_local2.redMultiplier = 0.2;
_local2.blueMultiplier = 0;
};
atmospheremc.transform.colorTransform = _local2;
_local2 = entitylayer.transform.colorTransform;
if (Math.floor(level) == 2){
_local2.greenMultiplier = 1.1;
_local2.redMultiplier = 1.1;
_local2.blueMultiplier = 0.8;
};
if (Math.floor(level) == 3){
_local2.greenMultiplier = 0.6;
_local2.redMultiplier = 0.6;
_local2.blueMultiplier = 0.6;
};
entitylayer.transform.colorTransform = _local2;
addEventListener(Event.ENTER_FRAME, frameupdate);
entitylist = new Array();
projectilelist = new Array();
debugger = new debugdraw();
}
public function spawnplayer(_arg1:Number, _arg2:Number){
entitylist.push(new entity("virus", _arg1, _arg2, null));
entitylayer.addChild(entitylist[(entitylist.length - 1)]);
player = entitylist[(entitylist.length - 1)];
}
public function testentitycollisions(){
var _local1:Number;
var _local2:Number;
_local1 = 0;
_local2 = 0;
_local2 = 0;
while (_local2 < (entitylist.length - 1)) {
if (entitylist[_local2].collideready){
_local1 = (_local2 + 1);
while (_local1 < entitylist.length) {
if (entitylist[_local1].collideready){
if (!(((((entitylist[_local1].etype == "missile1")) || ((entitylist[_local1].etype == "missile2")))) && ((((entitylist[_local2].etype == "missile1")) || ((entitylist[_local2].etype == "missile2")))))){
if (((!((entitylist[_local1].spawner == entitylist[_local2]))) && (!((entitylist[_local2].spawner == entitylist[_local1]))))){
if ((((((((entitylist[_local1] == player)) || ((entitylist[_local2] == player)))) || ((entitylist[_local1].spawner == player)))) || ((entitylist[_local2].spawner == player)))){
testentitycollision(entitylist[_local1], entitylist[_local2]);
};
};
};
};
_local1++;
};
};
_local2++;
};
}
private function getplayerinput(){
if (((keyleft) && ((player.x > -235)))){
player.xv = (player.xv - ((3 * player.speed) / 100));
};
if (((keyright) && ((player.x < 235)))){
player.xv = (player.xv + ((3 * player.speed) / 100));
};
if (((keyup) && ((player.y > -160)))){
player.yv = (player.yv - ((3 * player.speed) / 100));
};
if (((keydown) && ((player.y < 160)))){
player.yv = (player.yv + ((3 * player.speed) / 100));
};
player.xv = (player.xv * 0.7);
player.yv = (player.yv * 0.7);
if (player.x <= -255){
player.x = -255;
if (player.xv < 0){
player.xv = 0;
};
};
if (player.x >= 0xFF){
player.x = 0xFF;
if (player.xv > 0){
player.xv = 0;
};
};
if (player.y <= -180){
player.y = -180;
if (player.yv < 0){
player.yv = 0;
};
};
if (player.y >= 180){
player.y = 180;
if (player.yv > 0){
player.yv = 0;
};
};
}
public function frameupdate(_arg1:Event){
var _local2:art_foregroundfog;
var _local3:art_foregroundfog2;
if (!initialized){
init();
} else {
if (bscr <= scr){
if (MovieClip(parent).healthbar.scrbrd.bf.currentFrame != 2){
MovieClip(parent).healthbar.scrbrd.bf.gotoAndStop(2);
};
bscr = scr;
MovieClip(root).bestscore = bscr;
} else {
MovieClip(parent).healthbar.scrbrd.bf.gotoAndStop(1);
};
MovieClip(parent).healthbar.scrbrd.bscr.text = bscr;
MovieClip(parent).healthbar.scrbrd.scr.text = scr;
temptimer--;
if (temptimer <= 0){
eplate.anim.nextFrame();
temptimer = 2;
};
MovieClip(parent).healthbar.energybar.gotoAndStop(Math.floor((energy * 2)));
MovieClip(parent).healthbar.armorbar.gotoAndStop(Math.floor(player.health));
MovieClip(parent).healthbar.armorbar.x = (((energy * 180) / 100) + 20);
MovieClip(parent).healthbar.boom.x = ((MovieClip(parent).healthbar.armorbar.x + ((player.health * 80) / 100)) + 20);
MovieClip(parent).healthbar.energybar.swirl1.alpha = ((Math.random() * 100) / 100);
MovieClip(parent).healthbar.energybar.swirl2.alpha = ((Math.random() * 100) / 100);
MovieClip(parent).healthbar.energybar.swirlback.alpha = ((Math.random() * 100) / 100);
MovieClip(parent).healthbar.energybar.swirl1.scaleX = (MovieClip(parent).healthbar.energybar.swirl1.scaleX + 0.01);
MovieClip(parent).healthbar.energybar.swirl2.scaleX = (MovieClip(parent).healthbar.energybar.swirl2.scaleX + 0.01);
MovieClip(parent).healthbar.energybar.swirl1.x = (MovieClip(parent).healthbar.energybar.swirl1.x + 0.3);
MovieClip(parent).healthbar.energybar.swirl2.x = (MovieClip(parent).healthbar.energybar.swirl2.x + 0.3);
if ((Math.random() * 100) < 10){
MovieClip(parent).healthbar.energybar.swirl1.x = 0;
MovieClip(parent).healthbar.energybar.swirl1.scaleX = ((Math.random() * 0.5) + 0.5);
};
if ((Math.random() * 100) < 10){
MovieClip(parent).healthbar.energybar.swirl2.x = 0;
MovieClip(parent).healthbar.energybar.swirl2.scaleX = ((Math.random() * 0.5) + 0.5);
};
if (player.etype == "virus"){
if (energy > 0){
energy = (energy - 0.1);
};
} else {
if (energy < 100){
energy = (energy + (0.025 * (player.erate / 100)));
};
};
MovieClip(parent).FPScounter.showdebug.text = ("Entities: " + entitylist.length);
MovieClip(parent).FPScounter.showdebug.text = (MovieClip(parent).FPScounter.showdebug.text + (("\nSystem Memory in use:\n" + Math.floor((System.totalMemory / 0x100000))) + " Megabytes"));
checkspawns();
debugger.graphics.clear();
contrailsmap.scroll(-(contrailspeed), 0);
atmospheremap.scroll(-(contrailspeed), 0);
contrailsmap.fillRect(new Rectangle((1000 - contrailspeed), 0, contrailspeed, 200), 0);
contrailsmap.colorTransform(new Rectangle(0, 0, 1000, 200), new ColorTransform(1, 1, 1, 0.85, 0, 0, 0, 0));
_local2 = new art_foregroundfog();
_local3 = new art_foregroundfog2();
if ((Math.random() * 100) < 10){
_local3.gotoAndStop(2);
};
if (Math.floor(level) == 3){
atmospheremap.draw(_local3, new Matrix(1, 0, 0, 1, ((Math.random() * 300) + 400), ((Math.random() * 20) - 35)));
};
if (Math.floor(level) == 2){
atmospheremap.draw(_local2, new Matrix(1, 0, 0, 1, ((Math.random() * 300) + 400), ((Math.random() * 200) + 160)));
};
if (Math.floor(level) == 1){
atmospheremap.draw(_local2, new Matrix(1, 0, 0, 1, ((Math.random() * 300) + 400), ((Math.random() * 200) - 180)));
};
getplayerinput();
updateentities();
updateprojectiles();
bgplatefront.fupdate(-20);
bgplatemid.fupdate(-20);
bgplateback.fupdate(-20);
testprojectilecollisions();
testentitycollisions();
cullentities();
};
}
public function spawndialog(_arg1:String, _arg2:String){
var _local3:popupdialog;
_local3 = new popupdialog(_arg1, _arg2);
addChild(_local3);
}
public function testentitycollisionradius(_arg1:entity, _arg2:entity):Boolean{
var _local3:Number;
_local3 = 0;
_local3 = (((_arg2.x - _arg1.x) * (_arg2.x - _arg1.x)) + ((_arg2.y - _arg1.y) * (_arg2.y - _arg1.y)));
if (_local3 < (_arg1.ccradius + _arg2.ccradius)){
return (true);
};
return (false);
}
public function activatecheckpoint(){
MovieClip(parent).healthbar.checkpoint.play();
if ((((level == MovieClip(parent).levelunlock)) && ((level == Math.floor(level))))){
MovieClip(parent).levelunlock = (MovieClip(parent).levelunlock + 0.5);
};
}
public function keyreleased(_arg1:KeyboardEvent){
if (_arg1.keyCode == 65){
keyspace = false;
player.fire = false;
};
if (_arg1.keyCode == 83){
keyjump = false;
};
if (_arg1.keyCode == 37){
keyleft = false;
};
if (_arg1.keyCode == 39){
keyright = false;
};
if (_arg1.keyCode == 38){
keyup = false;
};
if (_arg1.keyCode == 40){
keydown = false;
};
}
public function testcollision(_arg1:projectile, _arg2:entity){
if (_arg2.etype != "virus"){
_arg1.tested = true;
if (_arg1.originID != _arg2.entID){
if (testcollisionradius(_arg1, _arg2)){
MovieClip(root).game.debugger.graphics.lineStyle(1, 0xFF0000, 1);
MovieClip(root).game.debugger.graphics.moveTo(_arg2.x, _arg2.y);
MovieClip(root).game.debugger.graphics.lineTo(_arg1.x, _arg1.y);
testcollisiongeometry(_arg1, _arg2);
};
};
};
}
public function mousereleased(_arg1:Event){
mouseclick = false;
}
public function keypressed(_arg1:KeyboardEvent){
if (_arg1.keyCode == 65){
keyspace = true;
player.fire = true;
};
if (_arg1.keyCode == 83){
keyjump = true;
player.damage(1000);
};
if (_arg1.keyCode == 37){
keyleft = true;
};
if (_arg1.keyCode == 39){
keyright = true;
};
if (_arg1.keyCode == 38){
keyup = true;
};
if (_arg1.keyCode == 40){
keydown = true;
};
}
public function init(){
var _local1:Number;
bscr = MovieClip(root).bestscore;
if (level < 4){
MovieClip(parent).healthbar.scrbrd.y = (MovieClip(parent).healthbar.scrbrd.y - 100);
};
spawnplayer(-100, 0);
if (level == 1){
spawnentity("escapepod", -100, 0, null);
} else {
spawnentity(MovieClip(parent).lastship, -100, 0, null);
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, keypressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyreleased);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseclicked);
stage.addEventListener(MouseEvent.MOUSE_UP, mousereleased);
initialized = true;
eplate.anim.gotoAndStop(2);
eplate.anim.myroot = this;
if (level != Math.floor(level)){
eplate.anim.gotoAndStop(eplate.anim.mycheckpoint);
_local1 = 0;
while (_local1 < (eplate.anim.mycheckpoint * 2)) {
bgplatefront.fupdate(-20);
bgplatemid.fupdate(-20);
bgplateback.fupdate(-20);
_local1++;
};
};
if (level == 1){
MovieClip(parent).sounds.musicsequence("01213234");
};
if (level == 2){
MovieClip(parent).sounds.musicsequence("556575");
};
if (level == 3){
MovieClip(parent).sounds.musicsequence("01213234");
};
MovieClip(parent).sounds.stopmusic();
MovieClip(parent).sounds.playmusic();
}
public function spawnentity(_arg1:String, _arg2:Number, _arg3:Number, _arg4:entity){
if (_arg1 == "explosion1"){
MovieClip(parent).sounds.playsound("boom1", (Math.random() * 50), 0.8);
};
entitylist.push(new entity(_arg1, _arg2, _arg3, _arg4));
entitylayer.addChild(entitylist[(entitylist.length - 1)]);
entitylayer.setChildIndex(entitylist[(entitylist.length - 1)], 0);
}
public function cullentities(){
var _local1:Number;
var _local2:entity;
if (energy <= 0){
player.dead = true;
MovieClip(parent).healthbar.gameover.play();
};
_local1 = 0;
while (_local1 < entitylist.length) {
if (entitylist[_local1].dead){
if (((!((level == 4))) && ((entitylist[_local1].etype.substr(0, 4) == "boss")))){
if ((((level == MovieClip(parent).levelunlock)) || (((level + 0.5) == MovieClip(parent).levelunlock)))){
MovieClip(parent).levelunlock = (MovieClip(parent).levelunlock + 0.5);
};
MovieClip(parent).healthbar.win.play();
};
if ((((((((((entitylist[_local1].health <= 0)) && (!((entitylist[_local1].etype == "explosion1"))))) && (!((entitylist[_local1].etype == "explosion2"))))) && (!((entitylist[_local1].etype == "explosionvirus"))))) && (!((entitylist[_local1].etype == "virus"))))){
spawnentity("explosion1", entitylist[_local1].x, entitylist[_local1].y, null);
if (((!((entitylist[_local1].etype == "missile1"))) && (!((entitylist[_local1].etype == "missile2"))))){
spawnentity("explosion2", entitylist[_local1].x, entitylist[_local1].y, null);
entitylayer.setChildIndex(entitylist[(entitylist.length - 1)], 0);
entitylist[(entitylist.length - 1)].xv = (40 + (entitylist[_local1].xv * 2));
entitylist[(entitylist.length - 1)].yv = (entitylist[_local1].yv * 2);
};
};
if (entitylist[_local1] == player){
if (player.etype == "virus"){
spawnentity("explosionvirus", entitylist[_local1].x, entitylist[_local1].y, null);
} else {
if (!(((player.etype == "missile1")) || ((player.etype == "missile2")))){
energy = (energy - 10);
};
spawnplayer(entitylist[_local1].x, entitylist[_local1].y);
};
};
_local2 = entitylist[_local1];
entitylist[_local1].cleanup();
entitylist[_local1].gotoAndStop("null");
entitylayer.removeChild(entitylist[_local1]);
entitylist.splice(_local1, 1);
_local2 = null;
_local1--;
};
_local1++;
};
}
public function updateprojectiles(){
var _local1:Number;
_local1 = 0;
_local1 = 0;
while (_local1 < projectilelist.length) {
projectilelist[_local1].fupdate();
_local1++;
};
_local1 = 0;
while (_local1 < projectilelist.length) {
if (projectilelist[_local1].dead){
removeChild(projectilelist[_local1]);
projectilelist.splice(_local1, 1);
_local1--;
};
_local1++;
};
}
public function testentitycollisiongeometry(_arg1:entity, _arg2:entity){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Boolean;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local3 = 0;
_local4 = 0;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = false;
_local5 = 0;
while (_local5 < _arg2.anim.numChildren) {
if ((_arg2.anim.getChildAt(_local5) is MovieClip)){
if ((MovieClip(_arg2.anim.getChildAt(_local5)) is entitypart)){
_local6 = 0;
while (_local6 < (MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld.length - 1)) {
_local9 = MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].x;
_local11 = MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].y;
_local10 = MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[(_local6 + 1)].x;
_local12 = MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[(_local6 + 1)].y;
_local3 = 0;
while (_local3 < _arg1.anim.numChildren) {
if ((_arg1.anim.getChildAt(_local3) is MovieClip)){
if ((MovieClip(_arg1.anim.getChildAt(_local3)) is entitypart)){
_local4 = 0;
while (_local4 < (MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld.length - 1)) {
_local7 = lineintersect(_local9, _local11, _local10, _local12, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[_local4].x, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[_local4].y, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[(_local4 + 1)].x, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[(_local4 + 1)].y);
if (_local7 != -1){
_local8 = true;
};
_local4++;
};
_local7 = lineintersect(_local9, _local11, _local10, _local12, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[_local4].x, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[_local4].y, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[0].x, MovieClip(_arg1.anim.getChildAt(_local3)).pointlistworld[0].y);
if (_local7 != -1){
_local8 = true;
};
};
};
_local3++;
};
_local6++;
};
};
};
_local5++;
};
if (_local8){
collideentities(_arg1, _arg2);
};
}
public function testcollisiongeometry(_arg1:projectile, _arg2:entity){
var _local3:Boolean;
var _local4:MovieClip;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:Number;
var _local25:*;
var _local26:Number;
var _local27:Number;
var _local28:Number;
var _local29:Number;
_local3 = false;
_local4 = null;
_local5 = 0;
_local6 = 0;
_local7 = 0;
_local8 = -1;
_local9 = -1;
_local10 = 1000;
_local11 = 0;
_local12 = 0;
_local13 = 0;
_local14 = 0;
_local15 = 0;
_local16 = 0;
tempx = 0;
tempy = 0;
_local5 = 0;
while (_local5 < _arg2.anim.numChildren) {
if ((_arg2.anim.getChildAt(_local5) is MovieClip)){
if ((MovieClip(_arg2.anim.getChildAt(_local5)) is entitypart)){
_local13 = _arg1.ox2;
_local14 = _arg1.oy2;
_local13 = (_local13 + (MovieClip(_arg2.anim.getChildAt(_local5)).worldx - MovieClip(_arg2.anim.getChildAt(_local5)).worldox));
_local14 = (_local14 + (MovieClip(_arg2.anim.getChildAt(_local5)).worldy - MovieClip(_arg2.anim.getChildAt(_local5)).worldoy));
MovieClip(root).game.debugger.graphics.lineStyle(1, 0xFF00FF, 1);
MovieClip(root).game.debugger.graphics.moveTo(_arg1.x, _arg1.y);
MovieClip(root).game.debugger.graphics.lineTo(_local13, _local14);
_local6 = 0;
while (_local6 < (MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld.length - 1)) {
_local7 = lineintersect(_local13, _local14, _arg1.x, _arg1.y, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].x, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].y, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[(_local6 + 1)].x, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[(_local6 + 1)].y);
if (((!((_local7 == -1))) && ((_local7 < _local10)))){
_local8 = _local5;
_local10 = _local7;
_local9 = _local6;
_local15 = _local13;
_local16 = _local14;
_local11 = tempx;
_local12 = tempy;
_local4 = MovieClip(_arg2.anim.getChildAt(_local5));
if ((MovieClip(_arg2.anim.getChildAt(_local5)) is entitypart4)){
_local3 = true;
} else {
_local3 = false;
};
};
_local6++;
};
_local7 = lineintersect(_local13, _local14, _arg1.x, _arg1.y, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].x, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[_local6].y, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[0].x, MovieClip(_arg2.anim.getChildAt(_local5)).pointlistworld[0].y);
if (((!((_local7 == -1))) && ((_local7 < _local10)))){
_local8 = _local5;
_local10 = _local7;
_local9 = _local6;
_local15 = _local13;
_local16 = _local14;
_local11 = tempx;
_local12 = tempy;
_local4 = MovieClip(_arg2.anim.getChildAt(_local5));
if ((MovieClip(_arg2.anim.getChildAt(_local5)) is entitypart4)){
_local3 = true;
} else {
_local3 = false;
};
};
};
};
_local5++;
};
if (_local9 != -1){
MovieClip(root).game.debugger.graphics.lineStyle(5, 0xFFFF00, 1);
MovieClip(root).game.debugger.graphics.drawCircle(_local11, _local12, 2);
_local17 = 0;
if (_local9 == (MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld.length - 1)){
_local17 = Math.atan2((MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[0].y - MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[_local9].y), (MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[0].x - MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[_local9].x));
} else {
_local17 = Math.atan2((MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[(_local9 + 1)].y - MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[_local9].y), (MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[(_local9 + 1)].x - MovieClip(_arg2.anim.getChildAt(_local8)).pointlistworld[_local9].x));
};
_local18 = _arg1.xv;
_local19 = _arg1.yv;
_local20 = Math.sqrt(((_local18 * _local18) + (_local19 * _local19)));
_local21 = ((Math.cos(-(_local17)) * _local18) - (Math.sin(-(_local17)) * _local19));
_local22 = ((Math.sin(-(_local17)) * _local18) + (Math.cos(-(_local17)) * _local19));
_local22 = -(_local22);
_local17 = (_local17 + 0);
_local18 = ((Math.cos(_local17) * _local21) - (Math.sin(_local17) * _local22));
_local19 = ((Math.sin(_local17) * _local21) + (Math.cos(_local17) * _local22));
_local23 = Math.atan2(_local19, _local18);
_arg1.rotation = ((_local23 * 180) / Math.PI);
_local18 = (_local20 * Math.cos(_local23));
_local19 = (_local20 * Math.sin(_local23));
_arg1.xv = _local18;
_arg1.yv = _local19;
_arg1.ox2 = (_local11 + (_arg1.yv * 0.1));
_arg1.oy2 = (_local12 + (_arg1.yv * 0.1));
_arg1.ox1 = (_local11 + (_arg1.xv * 0.2));
_arg1.oy1 = (_local12 + (_arg1.yv * 0.2));
_arg1.x = (_local11 + _arg1.xv);
_arg1.y = (_local12 + _arg1.yv);
_arg1.bouncecount++;
if (_arg1.ptype != "spark"){
if (_local3){
MovieClip(_arg2).shieldlife = (MovieClip(_arg2).shieldlife - 10);
if (MovieClip(_arg2).shieldlife <= 0){
MovieClip(_arg2.anim).removeChild(_local4);
MovieClip(_arg2).shielded = false;
};
} else {
_arg2.damage(20);
};
_local24 = Math.ceil((Math.random() * 3));
if (_local24 == 1){
MovieClip(parent).sounds.playsound("plink1", (Math.random() * 50), 0.3);
};
if (_local24 == 2){
MovieClip(parent).sounds.playsound("plink2", (Math.random() * 50), 0.3);
};
if (_local24 == 3){
MovieClip(parent).sounds.playsound("plink3", (Math.random() * 50), 0.3);
};
spawnprojectile(-1, "flash", _local11, _local12, 0, 0);
_local25 = 0;
while (_local25 < 5) {
_local26 = ((_local23 - 1) + ((Math.random() * 20) / 10));
_local27 = (2 + (Math.random() * 8));
_local28 = (_local27 * Math.cos(_local26));
_local29 = (_local27 * Math.sin(_local26));
spawnprojectile(-1, "spark", (_local11 + _local28), (_local12 + _local29), _local26, _local27);
_local25++;
};
_arg1.visible = false;
_arg1.dead = true;
};
};
}
public function checkspawns(){
var _local1:Number;
_local1 = 0;
while (_local1 < eplate.anim.numChildren) {
if (eplate.anim.getChildAt(_local1) != null){
spawnentity(MovieClip(eplate.anim.getChildAt(_local1)).mytype, eplate.anim.getChildAt(_local1).x, eplate.anim.getChildAt(_local1).y, null);
};
_local1++;
};
}
public function testcollisionradius(_arg1:projectile, _arg2:entity):Boolean{
var _local3:Number;
var _local4:Number;
_local3 = 0;
_local3 = (((_arg1.x - _arg2.x) * (_arg1.x - _arg2.x)) + ((_arg1.y - _arg2.y) * (_arg1.y - _arg2.y)));
_local4 = 0;
_local4 = (((_arg1.ox2 - _arg2.x) * (_arg1.ox2 - _arg2.x)) + ((_arg1.oy2 - _arg2.y) * (_arg1.oy2 - _arg2.y)));
if ((((_local3 < _arg2.ccradius)) || ((_local4 < _arg2.ccradius)))){
return (true);
};
return (false);
}
public function updateentities(){
var _local1:Number;
_local1 = 0;
_local1 = 0;
while (_local1 < entitylist.length) {
entitylist[_local1].fupdate();
_local1++;
};
}
public function spawnprojectile(_arg1:Number, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local7:Number;
_local7 = Math.ceil((Math.random() * 3));
if (_arg2 == "type1"){
if (_local7 == 1){
MovieClip(parent).sounds.playsound("vshoot1", (Math.random() * 50), 0.3);
};
if (_local7 == 2){
MovieClip(parent).sounds.playsound("vshoot2", (Math.random() * 50), 0.3);
};
if (_local7 == 3){
MovieClip(parent).sounds.playsound("vshoot3", (Math.random() * 50), 0.3);
};
};
if (_arg2 == "type2"){
if (_local7 == 1){
MovieClip(parent).sounds.playsound("eshoot1", (Math.random() * 50), 0.2);
};
if (_local7 == 2){
MovieClip(parent).sounds.playsound("eshoot2", (Math.random() * 50), 0.2);
};
if (_local7 == 3){
MovieClip(parent).sounds.playsound("eshoot3", (Math.random() * 50), 0.2);
};
};
projectilelist.push(new projectile(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
addChild(projectilelist[(projectilelist.length - 1)]);
}
public function destroywin(){
var _local1:entity;
MovieClip(parent).sounds.stopmusic();
while (entitylist.length > 0) {
_local1 = entitylist[0];
entitylist[0].cleanup();
entitylist[0].gotoAndStop("null");
entitylayer.removeChild(entitylist[0]);
entitylist.splice(0, 1);
_local1 = null;
};
bgplatefront.stop();
bgplatemid.stop();
bgplateback.stop();
eplate.stop();
eplate.myroot = null;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keypressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyreleased);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseclicked);
stage.removeEventListener(MouseEvent.MOUSE_UP, mousereleased);
removeEventListener(Event.ENTER_FRAME, frameupdate);
MovieClip(parent).killgamewin();
}
public function lineintersect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Number{
var _local9:VoidVector;
var _local10:VoidVector;
var _local11:VoidVector;
var _local12:VoidVector;
var _local13:VoidVector;
_local9 = new VoidVector(_arg1, _arg2);
_local10 = new VoidVector(_arg3, _arg4);
_local11 = new VoidVector(_arg5, _arg6);
_local12 = new VoidVector(_arg7, _arg8);
_local13 = VoidMath.lineintersect(_local9, _local10, _local11, _local12);
if (_local13 == null){
return (-1);
};
tempx = _local13.x;
tempy = _local13.y;
return ((((_arg1 - _local13.x) * (_arg1 - _local13.x)) + ((_arg2 - _local13.y) * (_arg2 - _local13.y))));
}
public function testprojectilecollisions(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = 0;
_local2 = 0;
_local3 = 0;
_local2 = 0;
while (_local2 < entitylist.length) {
if (entitylist[_local2].collideready){
_local1 = 0;
while (_local1 < projectilelist.length) {
if (projectilelist[_local1].collides){
if ((((((projectilelist[_local1].originID == player.entID)) && (!((entitylist[_local2] == player))))) || (((!((projectilelist[_local1].originID == player.entID))) && ((entitylist[_local2] == player)))))){
_local3 = 0;
projectilelist[_local1].tested = false;
while (((!(projectilelist[_local1].tested)) && ((_local3 < 10)))) {
_local3++;
testcollision(projectilelist[_local1], entitylist[_local2]);
};
};
};
_local1++;
};
};
_local2++;
};
}
public function testentitycollision(_arg1:entity, _arg2:entity){
if (testentitycollisionradius(_arg1, _arg2)){
testentitycollisiongeometry(_arg1, _arg2);
};
}
public function mouseclicked(_arg1:Event){
mouseclick = true;
}
public function destroy(){
var _local1:entity;
MovieClip(parent).sounds.stopmusic();
while (entitylist.length > 0) {
_local1 = entitylist[0];
entitylist[0].cleanup();
entitylist[0].gotoAndStop("null");
entitylayer.removeChild(entitylist[0]);
entitylist.splice(0, 1);
_local1 = null;
};
bgplatefront.stop();
bgplatemid.stop();
bgplateback.stop();
eplate.stop();
eplate.myroot = null;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keypressed);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyreleased);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouseclicked);
stage.removeEventListener(MouseEvent.MOUSE_UP, mousereleased);
removeEventListener(Event.ENTER_FRAME, frameupdate);
MovieClip(parent).killgame();
}
public function collideentities(_arg1:entity, _arg2:entity){
var _local3:Number;
_local3 = 0;
if ((((player.etype == "virus")) && ((((_arg1 == player)) || ((_arg2 == player)))))){
if (((_arg1.shielded) || (_arg2.shielded))){
_local3 = Math.sqrt((((_arg1.x - _arg2.x) * (_arg1.x - _arg2.x)) + ((_arg1.y - _arg2.y) * (_arg1.y - _arg2.y))));
if (_arg1 == player){
_arg1.xv = (_arg1.xv + ((((_arg1.x - _arg2.x) / _local3) * (_arg2.mass / _arg1.mass)) * 0.1));
_arg1.yv = (_arg1.yv + ((((_arg1.y - _arg2.y) / _local3) * (_arg2.mass / _arg1.mass)) * 0.1));
};
if (_arg2 == player){
_arg2.xv = (_arg2.xv + ((((_arg2.x - _arg1.x) / _local3) * (_arg1.mass / _arg2.mass)) * 0.1));
_arg2.yv = (_arg2.yv + ((((_arg2.y - _arg1.y) / _local3) * (_arg1.mass / _arg2.mass)) * 0.1));
};
} else {
MovieClip(parent).sounds.playsound("virusinfect");
if (_arg1 == player){
_arg1.dead = true;
player = _arg2;
player.invincibility = 2;
} else {
if (_arg2 == player){
_arg2.dead = true;
player = _arg1;
player.invincibility = 2;
};
};
MovieClip(parent).lastship = player.etype;
player.spawner = null;
if (player.flipstate == 0){
player.anim.gotoAndPlay("flip");
};
if (player.flipstate == 1){
player.anim.gotoAndPlay("flip2");
};
};
} else {
if ((((_arg1 == player)) || ((_arg2 == player)))){
if (_arg1.etype.substr(0, 4) != "boss"){
_arg1.damage(1000);
};
if (_arg2.etype.substr(0, 4) != "boss"){
_arg2.damage(1000);
};
if (!(((player.etype == "missile1")) || ((player.etype == "missile2")))){
energy = (energy - 10);
};
};
_arg1.damage(_arg2.mass);
_arg2.damage(_arg1.mass);
_local3 = Math.sqrt((((_arg1.x - _arg2.x) * (_arg1.x - _arg2.x)) + ((_arg1.y - _arg2.y) * (_arg1.y - _arg2.y))));
_arg1.xv = (_arg1.xv + ((((_arg1.x - _arg2.x) / _local3) * (_arg2.mass / _arg1.mass)) * 6));
_arg1.yv = (_arg1.yv + ((((_arg1.y - _arg2.y) / _local3) * (_arg2.mass / _arg1.mass)) * 6));
_arg2.xv = (_arg2.xv + ((((_arg2.x - _arg1.x) / _local3) * (_arg1.mass / _arg2.mass)) * 6));
_arg2.yv = (_arg2.yv + ((((_arg2.y - _arg1.y) / _local3) * (_arg1.mass / _arg2.mass)) * 6));
};
}
}
}//package
Section 121
//maingame (maingame)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class maingame extends MovieClip {
public var urlStart:Number;
public var healthbar:MovieClip;
public var domEnd:Number;
public var overlay:MovieClip;
public var playclicker:MovieClip;
public var mmb22:SimpleButton;
public var link_btn:SimpleButton;
public var mb1b:SimpleButton;
public var ads:MovieClip;
public var LastDot:Number;
public var mmb:SimpleButton;
public var domain:String;
public var mb2b:SimpleButton;
public var initialized:Boolean;
public var mb3b:SimpleButton;
public var creds:MovieClip;
public var instr:MovieClip;
public var urlEnd:Number;
public var FPScounter:VoidFPS;
public var bestscore:Number;
public var mb1:SimpleButton;
public var mb2:SimpleButton;
public var mb3:SimpleButton;
public var mb4:SimpleButton;
public var sounds:VoidSound;
public var chosenlevel:Number;
public var url:String;
public var mmb1:SimpleButton;
public var mmb2:SimpleButton;
public var mmb3:SimpleButton;
public var mmb4:SimpleButton;
public var levelunlock:Number;
public var mySharedObject:SharedObject;
public var lastship:String;
public var game:gamestage;
public var loadanim:MovieClip;
public function maingame(){
addFrameScript(0, this.frame1, 1, this.frame2, 4, this.frame5, 5, this.frame6, 7, this.frame8, 8, this.frame9, 9, this.frame10, 10, this.frame11);
this.sounds = new VoidSound();
this.initialized = false;
}
public function mmb22c(_arg1:Event){
gotoAndStop("mainmenu");
}
public function mb2bc(_arg1:Event){
if (this.levelunlock >= 2.5){
this.chosenlevel = 2.5;
gotoAndStop("loadlevel");
};
}
function frame10(){
gotoAndStop("unlicensed");
}
public function killgame(){
while (numChildren > 0) {
removeChildAt(0);
};
this.game = null;
gotoAndStop("map");
}
function frame5(){
gotoAndStop("mainmenu");
}
function frame6(){
stop();
if (!(this.initialized)){
this.init();
};
this.mmb1.addEventListener(MouseEvent.CLICK, this.mmb1c);
this.mmb2.addEventListener(MouseEvent.CLICK, this.mmb2c);
this.mmb3.addEventListener(MouseEvent.CLICK, this.mmb3c);
this.mmb4.addEventListener(MouseEvent.CLICK, this.mmb4c);
this.link_btn.addEventListener(MouseEvent.CLICK, this.mmb3c);
}
function frame1(){
stage.stageFocusRect = false;
stage.showDefaultContextMenu = false;
this.url = stage.loaderInfo.url;
this.urlStart = (this.url.indexOf("://") + 3);
this.urlEnd = this.url.indexOf("/", this.urlStart);
this.domain = this.url.substring(this.urlStart, this.urlEnd);
this.LastDot = (this.domain.lastIndexOf(".") - 1);
this.domEnd = (this.domain.lastIndexOf(".", this.LastDot) + 1);
this.domain = this.domain.substring(this.domEnd, this.domain.length);
this.levelunlock = 1;
this.bestscore = 0;
this.mySharedObject = SharedObject.getLocal("GhostGuidance");
if (!(this.mySharedObject.data.unlocked)){
this.mySharedObject.data.unlocked = 1;
this.mySharedObject.data.bestscore = 1;
} else {
this.levelunlock = this.mySharedObject.data.unlocked;
this.bestscore = this.mySharedObject.data.bestscore;
};
this.chosenlevel = 1;
this.lastship = "escapepod";
}
function frame11(){
this.mmb22.addEventListener(MouseEvent.CLICK, this.mmb22c);
}
function frame9(){
this.startgame(this.chosenlevel);
setChildIndex(this.FPScounter, (numChildren - 1));
setChildIndex(this.healthbar, (numChildren - 1));
setChildIndex(this.overlay, (numChildren - 1));
}
function frame2(){
stop();
addEventListener(Event.ENTER_FRAME, this.loading);
}
function frame8(){
stop();
this.mySharedObject.data.unlocked = this.levelunlock;
this.mySharedObject.data.bestscore = this.bestscore;
this.mb1.addEventListener(MouseEvent.CLICK, this.mb1c);
this.mb1b.addEventListener(MouseEvent.CLICK, this.mb1bc);
this.mb2.addEventListener(MouseEvent.CLICK, this.mb2c);
this.mb2b.addEventListener(MouseEvent.CLICK, this.mb2bc);
this.mb3.addEventListener(MouseEvent.CLICK, this.mb3c);
this.mb3b.addEventListener(MouseEvent.CLICK, this.mb3bc);
this.mb4.addEventListener(MouseEvent.CLICK, this.mb4c);
this.mmb.addEventListener(MouseEvent.CLICK, this.mmbc);
}
public function mb1bc(_arg1:Event){
if (this.levelunlock >= 1.5){
this.chosenlevel = 1.5;
gotoAndStop("loadlevel");
};
}
public function mmb1c(_arg1:Event){
gotoAndStop("intro");
}
public function mb1c(_arg1:Event){
if (this.levelunlock >= 1){
this.chosenlevel = 1;
gotoAndStop("loadlevel");
};
}
public function mmb2c(_arg1:Event){
this.instr.play();
}
public function clickplay(_arg1:Event){
removeEventListener(Event.ENTER_FRAME, this.loading);
gotoAndStop("sponsorintro");
}
public function mb2c(_arg1:Event){
if (this.levelunlock >= 2){
this.chosenlevel = 2;
gotoAndStop("loadlevel");
};
}
public function mmb3c(_arg1:Event){
var _loc2_:String;
var _loc3_:URLRequest;
_loc2_ = null;
_loc3_ = new URLRequest("http://www.andkon.com/arcade/");
navigateToURL(_loc3_, _loc2_);
}
public function mmb4c(_arg1:Event){
this.creds.play();
}
public function mb3c(_arg1:Event){
if (this.levelunlock >= 3){
this.chosenlevel = 3;
gotoAndStop("loadlevel");
};
}
public function mb4c(_arg1:Event){
this.chosenlevel = 4;
gotoAndStop("loadlevel");
}
public function init(){
this.initialized = true;
this.sounds.regsound(new boom1(), "boom1");
this.sounds.regsound(new plink1(), "plink1");
this.sounds.regsound(new plink2(), "plink2");
this.sounds.regsound(new plink3(), "plink3");
this.sounds.regsound(new eshoot1(), "eshoot1");
this.sounds.regsound(new eshoot2(), "eshoot2");
this.sounds.regsound(new eshoot3(), "eshoot3");
this.sounds.regsound(new vshoot1(), "vshoot1");
this.sounds.regsound(new vshoot2(), "vshoot2");
this.sounds.regsound(new vshoot3(), "vshoot3");
this.sounds.regsound(new click1(), "click1");
this.sounds.regsound(new click2(), "click2");
this.sounds.regsound(new missile1(), "missile1");
this.sounds.regsound(new virusinfect(), "virusinfect");
this.sounds.regmusic(new music1a(), "music1a");
this.sounds.regmusic(new music1b(), "music1b");
this.sounds.regmusic(new music1c(), "music1c");
this.sounds.regmusic(new music1d(), "music1d");
this.sounds.regmusic(new music1e(), "music1e");
this.sounds.regmusic(new music2a(), "music2a");
this.sounds.regmusic(new music2b(), "music2b");
this.sounds.regmusic(new music2c(), "music2c");
this.sounds.vsoundvolume = 1;
this.sounds.vmusicvolume = 0.5;
}
public function loading(_arg1:Event){
var _loc2_:*;
var _loc3_:*;
var _loc4_:*;
_loc2_ = stage.loaderInfo.bytesTotal;
_loc3_ = stage.loaderInfo.bytesLoaded;
_loc4_ = Math.round(((_loc3_ * 200) / _loc2_));
this.loadanim.swirl1.alpha = ((Math.random() * 100) / 100);
this.loadanim.swirl2.alpha = ((Math.random() * 100) / 100);
this.loadanim.swirlback.alpha = ((Math.random() * 100) / 100);
this.loadanim.swirl1.scaleX = (this.loadanim.swirl1.scaleX + 0.01);
this.loadanim.swirl2.scaleX = (this.loadanim.swirl2.scaleX + 0.01);
this.loadanim.swirl1.x = (this.loadanim.swirl1.x + 0.3);
this.loadanim.swirl2.x = (this.loadanim.swirl2.x + 0.3);
if ((Math.random() * 100) < 10){
this.loadanim.swirl1.x = 0;
this.loadanim.swirl1.scaleX = ((Math.random() * 0.5) + 0.5);
};
if ((Math.random() * 100) < 10){
this.loadanim.swirl2.x = 0;
this.loadanim.swirl2.scaleX = ((Math.random() * 0.5) + 0.5);
};
this.loadanim.gotoAndStop(_loc4_);
if (_loc3_ >= (_loc2_ / 20)){
if (this.ads.currentFrame != 2){
this.ads.gotoAndStop(2);
};
if (_loc3_ >= _loc2_){
if (this.playclicker.currentFrame != 2){
this.playclicker.gotoAndStop(2);
this.playclicker.addEventListener(MouseEvent.CLICK, this.clickplay);
};
};
};
}
public function startgame(_arg1:Number){
this.game = new gamestage(_arg1);
addChild(this.game);
this.game.x = 275;
this.game.y = 200;
}
public function killgamewin(){
while (numChildren > 0) {
removeChildAt(0);
};
this.game = null;
gotoAndStop("winscreen");
}
public function mmbc(_arg1:Event){
gotoAndStop("mainmenu");
}
public function mb3bc(_arg1:Event){
if (this.levelunlock >= 3.5){
this.chosenlevel = 3.5;
gotoAndStop("loadlevel");
};
}
}
}//package
Section 122
//missile1 (missile1)
package {
import flash.media.*;
public dynamic class missile1 extends Sound {
}
}//package
Section 123
//music1a (music1a)
package {
import flash.media.*;
public dynamic class music1a extends Sound {
}
}//package
Section 124
//music1b (music1b)
package {
import flash.media.*;
public dynamic class music1b extends Sound {
}
}//package
Section 125
//music1c (music1c)
package {
import flash.media.*;
public dynamic class music1c extends Sound {
}
}//package
Section 126
//music1d (music1d)
package {
import flash.media.*;
public dynamic class music1d extends Sound {
}
}//package
Section 127
//music1e (music1e)
package {
import flash.media.*;
public dynamic class music1e extends Sound {
}
}//package
Section 128
//music2a (music2a)
package {
import flash.media.*;
public dynamic class music2a extends Sound {
}
}//package
Section 129
//music2b (music2b)
package {
import flash.media.*;
public dynamic class music2b extends Sound {
}
}//package
Section 130
//music2c (music2c)
package {
import flash.media.*;
public dynamic class music2c extends Sound {
}
}//package
Section 131
//physicspoint (physicspoint)
package {
public class physicspoint {
public var x:Number;
public var y:Number;
public var id:Number;
public function physicspoint(_arg1:Number, _arg2:Number, _arg3:Number){
this.x = _arg1;
this.y = _arg2;
this.id = _arg3;
}
public function protate(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local4 = (x - _arg1);
_local5 = (y - _arg2);
_local6 = ((Math.cos(_arg3) * _local4) - (Math.sin(_arg3) * _local5));
_local7 = ((Math.sin(_arg3) * _local4) + (Math.cos(_arg3) * _local5));
x = (_local6 + _arg1);
y = (_local7 + _arg2);
}
public function ptranslate(_arg1:Number, _arg2:Number){
x = (x + _arg1);
y = (y + _arg2);
}
}
}//package
Section 132
//plink1 (plink1)
package {
import flash.media.*;
public dynamic class plink1 extends Sound {
}
}//package
Section 133
//plink2 (plink2)
package {
import flash.media.*;
public dynamic class plink2 extends Sound {
}
}//package
Section 134
//plink3 (plink3)
package {
import flash.media.*;
public dynamic class plink3 extends Sound {
}
}//package
Section 135
//popupdialog (popupdialog)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class popupdialog extends MovieClip {
public var life:Number;
public var init:Boolean;
public var avatar:MovieClip;
public var dialogtext:TextField;
public var dtcount:Number;
public var dialogtarget:String;
public function popupdialog(_arg1:String, _arg2:String){
dtcount = 0;
dialogtarget = _arg2;
avatar.gotoAndStop(_arg1);
dialogtext.text = "";
life = 240;
x = 0;
y = 152;
addEventListener(Event.ENTER_FRAME, eframe);
}
public function destroy(){
removeEventListener(Event.ENTER_FRAME, eframe);
MovieClip(parent).removeChild(this);
}
public function eframe(_arg1:Event){
if (!init){
init = true;
};
dialogtext.appendText(dialogtarget.substr(dtcount, 2));
dtcount = (dtcount + 2);
if (life > 0){
life--;
} else {
destroy();
};
}
}
}//package
Section 136
//projectile (projectile)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class projectile extends MovieClip {
public var collides:Boolean;
public var xv:Number;
public var yv:Number;
public var ox2:Number;
public var dead:Boolean;
public var ox1:Number;
public var oy1:Number;
public var oy2:Number;
public var bouncecount:Number;
public var ptype:String;
public var speedadjusted:Boolean;
public var originID:Number;
public var tested:Boolean;
public function projectile(_arg1:Number, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
collides = true;
bouncecount = 0;
tested = false;
originID = _arg1;
this.ptype = _arg2;
speedadjusted = false;
x = _arg3;
y = _arg4;
xv = (_arg6 * Math.cos(_arg5));
yv = (_arg6 * Math.sin(_arg5));
ox1 = x;
ox2 = (x - xv);
oy1 = y;
oy2 = (y - yv);
dead = false;
visible = false;
gotoAndStop(_arg2);
if ((((_arg2 == "spark")) || ((_arg2 == "flash")))){
collides = false;
};
}
public function fupdate(){
if (ptype == "spark"){
bouncecount = (bouncecount + 0.3);
xv = (xv * 0.8);
yv = (yv * 0.8);
};
if (bouncecount > 3){
dead = true;
};
if (speedadjusted){
rotation = ((Math.atan2((y - oy2), ((x - ox2) + MovieClip(parent).contrailspeed)) * 180) / Math.PI);
} else {
rotation = ((Math.atan2((y - oy2), (x - ox2)) * 180) / Math.PI);
};
visible = true;
ox2 = ox1;
oy2 = oy1;
ox1 = x;
oy1 = y;
x = (x + xv);
y = (y + yv);
if ((((((((x < -300)) || ((x > 300)))) || ((y < -225)))) || ((y > 225)))){
dead = true;
};
debugdrawpath();
}
public function debugdrawpath(){
MovieClip(parent).debugger.graphics.lineStyle(1, 0xFF0000, 100);
MovieClip(parent).debugger.graphics.moveTo(x, y);
MovieClip(parent).debugger.graphics.lineTo(ox2, oy2);
}
}
}//package
Section 137
//virusinfect (virusinfect)
package {
import flash.media.*;
public dynamic class virusinfect extends Sound {
}
}//package
Section 138
//VoidFPS (VoidFPS)
package {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
public class VoidFPS extends MovieClip {
public var lasttime:Number;// = 0
public var thistime:Number;// = 0
public var showdebug:TextField;
public var showFPS:TextField;
public var averagefps:Number;// = 0
public var fps:Number;// = 0
public function VoidFPS(){
thistime = 0;
lasttime = 0;
fps = 0;
averagefps = 0;
super();
addEventListener(Event.ENTER_FRAME, frameupdate);
thistime = getTimer();
lasttime = thistime;
averagefps = 0;
}
public function frameupdate(_arg1:Event){
thistime = getTimer();
fps = (thistime - lasttime);
if (fps != 0){
fps = (1000 / fps);
};
averagefps = (((averagefps * 9) + fps) / 10);
showFPS.text = (Math.round(averagefps) + " FPS");
lasttime = thistime;
}
}
}//package
Section 139
//VoidMath (VoidMath)
package {
public class VoidMath {
public static function lineintersect(_arg1:VoidVector, _arg2:VoidVector, _arg3:VoidVector, _arg4:VoidVector):VoidVector{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:VoidVector;
if (!(((((((_arg1.x > _arg3.x)) && ((_arg1.x > _arg4.x)))) && ((((_arg2.x > _arg3.x)) && ((_arg2.x > _arg4.x)))))) || ((((((_arg1.x < _arg3.x)) && ((_arg1.x < _arg4.x)))) && ((((_arg2.x < _arg3.x)) && ((_arg2.x < _arg4.x)))))))){
if (!(((((((_arg1.y > _arg3.y)) && ((_arg1.y > _arg4.y)))) && ((((_arg2.y > _arg3.y)) && ((_arg2.y > _arg4.y)))))) || ((((((_arg1.y < _arg3.y)) && ((_arg1.y < _arg4.y)))) && ((((_arg2.y < _arg3.y)) && ((_arg2.y < _arg4.y)))))))){
_local5 = (_arg2.y - _arg1.y);
_local6 = (_arg1.x - _arg2.x);
_local7 = ((_arg2.x * _arg1.y) - (_arg1.x * _arg2.y));
_local8 = (_arg4.y - _arg3.y);
_local9 = (_arg3.x - _arg4.x);
_local10 = ((_arg4.x * _arg3.y) - (_arg3.x * _arg4.y));
_local11 = ((_local5 * _local9) - (_local8 * _local6));
if (_local11 != 0){
_local12 = new VoidVector((((_local6 * _local10) - (_local9 * _local7)) / _local11), (((_local8 * _local7) - (_local5 * _local10)) / _local11));
if (((!((((_local12.x < (_arg1.x - 0.01))) && ((_local12.x < (_arg2.x - 0.01)))))) && (!((((_local12.x > (_arg1.x + 0.01))) && ((_local12.x > (_arg2.x + 0.01)))))))){
if (((!((((_local12.x < (_arg3.x - 0.01))) && ((_local12.x < (_arg4.x - 0.01)))))) && (!((((_local12.x > (_arg3.x + 0.01))) && ((_local12.x > (_arg4.x + 0.01)))))))){
if (((!((((_local12.y < (_arg1.y - 0.01))) && ((_local12.y < (_arg2.y - 0.01)))))) && (!((((_local12.y > (_arg1.y + 0.01))) && ((_local12.y > (_arg2.y + 0.01)))))))){
if (((!((((_local12.y < (_arg3.y - 0.01))) && ((_local12.y < (_arg4.y - 0.01)))))) && (!((((_local12.y > (_arg3.y + 0.01))) && ((_local12.y > (_arg4.y + 0.01)))))))){
return (_local12);
};
return (null);
} else {
return (null);
};
} else {
return (null);
};
} else {
return (null);
};
} else {
return (null);
};
} else {
return (null);
};
//unresolved jump
};
return (null);
}
}
}//package
Section 140
//VoidSound (VoidSound)
package {
import flash.media.*;
import flash.events.*;
import flash.utils.*;
class VoidSound {
private var vchannels:Array;
private var vmusiclist:Array;
private var soundvolume:Number;
private var currentchannel:Number;
private var vmusic:Dictionary;
private var vmusicsequence:String;
private var vtransform:SoundTransform;
private var vmusicmarker:Number;
private var vsounds:Dictionary;
private var vmusicchannel;
private var musicvolume:Number;
function VoidSound(){
var _local1:Number;
super();
musicvolume = 1;
soundvolume = 1;
vmusicmarker = 0;
vmusicsequence = "0";
vmusiclist = new Array();
currentchannel = 0;
vtransform = new SoundTransform(1);
vsounds = new Dictionary();
vmusic = new Dictionary();
vchannels = new Array();
_local1 = 0;
while (_local1 < 10) {
vchannels.push(new SoundChannel());
_local1++;
};
vmusicchannel = new SoundChannel();
}
public function regsound(_arg1:Sound, _arg2:String):void{
vsounds[_arg2] = _arg1;
}
public function get vmusicvolume():Number{
return (musicvolume);
}
public function get vsoundvolume():Number{
return (soundvolume);
}
public function musicswap(_arg1:Event){
vmusicmarker++;
if (vmusicmarker > (vmusicsequence.length - 1)){
vmusicmarker = 0;
};
vtransform.volume = musicvolume;
vtransform.pan = 0;
if (vmusic[vmusiclist[(vmusicsequence.charCodeAt(vmusicmarker) - 48)]] == null){
trace("invalid music");
} else {
vmusicchannel = vmusic[vmusiclist[(vmusicsequence.charCodeAt(vmusicmarker) - 48)]].play(0, 0, vtransform);
};
vmusicchannel.addEventListener(Event.SOUND_COMPLETE, musicswap);
}
public function regmusic(_arg1:Sound, _arg2:String):void{
vmusic[_arg2] = _arg1;
vmusiclist.push(_arg2);
}
public function playsound(_arg1:String, _arg2:int=0, _arg3:Number=1, _arg4:int=0, _arg5:Number=0, _arg6:Number=0){
var _local7:Number;
if (((!((_arg5 == 0))) || (!((_arg6 == 0))))){
_local7 = (Math.sqrt(((_arg5 * _arg5) + (_arg6 * _arg6))) / 180);
if (_local7 < 1){
_local7 = 1;
};
vtransform.volume = ((soundvolume * _arg3) / _local7);
vtransform.pan = (_arg5 / 200);
} else {
vtransform.volume = (soundvolume * _arg3);
vtransform.pan = 0;
};
if (vsounds[_arg1] == null){
trace("invalid sound");
} else {
vchannels[currentchannel] = vsounds[_arg1].play(_arg2, _arg4, vtransform);
};
currentchannel++;
if (currentchannel > (vchannels.length - 1)){
currentchannel = 0;
};
}
public function set vmusicvolume(_arg1:Number){
if (_arg1 < 0){
_arg1 = 0;
};
musicvolume = _arg1;
vtransform.volume = musicvolume;
vmusicchannel.soundTransform = vtransform;
}
public function stopmusic(){
if (vmusicchannel != null){
vmusicchannel.stop();
};
}
public function musicsequence(_arg1:String):void{
vmusicsequence = _arg1;
}
public function set vsoundvolume(_arg1:Number){
if (_arg1 < 0){
_arg1 = 0;
};
soundvolume = _arg1;
}
public function playmusic(){
vmusicmarker = 0;
vtransform.volume = musicvolume;
vtransform.pan = 0;
if (vmusic[vmusiclist[0]] == null){
trace("invalid music");
} else {
vmusicchannel = vmusic[vmusiclist[(vmusicsequence.charCodeAt(vmusicmarker) - 48)]].play(0, 0, vtransform);
};
vmusicchannel.addEventListener(Event.SOUND_COMPLETE, musicswap);
}
}
}//package
Section 141
//VoidVector (VoidVector)
package {
public class VoidVector {
public var x:Number;
public var y:Number;
public function VoidVector(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
}
public function vrotated(_arg1:Number):VoidVector{
var _local2:*;
var _local3:*;
var _local4:VoidVector;
_local2 = ((Math.cos(_arg1) * x) - (Math.sin(_arg1) * y));
_local3 = ((Math.sin(_arg1) * x) + (Math.cos(_arg1) * y));
_local4 = new VoidVector(_local2, _local3);
return (_local4);
}
public function vrotate(_arg1:Number){
var _local2:*;
var _local3:*;
_local2 = ((Math.cos(_arg1) * x) - (Math.sin(_arg1) * y));
_local3 = ((Math.sin(_arg1) * x) + (Math.cos(_arg1) * y));
x = _local2;
y = _local3;
}
}
}//package
Section 142
//vshoot1 (vshoot1)
package {
import flash.media.*;
public dynamic class vshoot1 extends Sound {
}
}//package
Section 143
//vshoot2 (vshoot2)
package {
import flash.media.*;
public dynamic class vshoot2 extends Sound {
}
}//package
Section 144
//vshoot3 (vshoot3)
package {
import flash.media.*;
public dynamic class vshoot3 extends Sound {
}
}//package