Section 1
//b1_25 (shapeinvasion_fla.b1_25)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b1_25 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 2
//b10_44 (shapeinvasion_fla.b10_44)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b10_44 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 3
//b11_45 (shapeinvasion_fla.b11_45)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b11_45 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 4
//b12_46 (shapeinvasion_fla.b12_46)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b12_46 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 5
//b13_48 (shapeinvasion_fla.b13_48)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b13_48 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 6
//b2_31 (shapeinvasion_fla.b2_31)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b2_31 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 7
//b3_36 (shapeinvasion_fla.b3_36)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b3_36 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 8
//b4_38 (shapeinvasion_fla.b4_38)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b4_38 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 9
//b5_39 (shapeinvasion_fla.b5_39)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b5_39 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 10
//b6_40 (shapeinvasion_fla.b6_40)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b6_40 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 11
//b7_41 (shapeinvasion_fla.b7_41)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b7_41 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 12
//b8_42 (shapeinvasion_fla.b8_42)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b8_42 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 13
//b9_43 (shapeinvasion_fla.b9_43)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class b9_43 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 14
//base_73 (shapeinvasion_fla.base_73)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class base_73 extends MovieClip {
public var f0:MovieClip;
public var f6:MovieClip;
public var f7:MovieClip;
public var f4:MovieClip;
public var f8:MovieClip;
public var f1:MovieClip;
public var f5:MovieClip;
public var f3:MovieClip;
public var f2:MovieClip;
public var cracks:MovieClip;
}
}//package shapeinvasion_fla
Section 15
//bck_72 (shapeinvasion_fla.bck_72)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class bck_72 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 16
//betbuybutton_20 (shapeinvasion_fla.betbuybutton_20)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class betbuybutton_20 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 17
//button_26 (shapeinvasion_fla.button_26)
package shapeinvasion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class button_26 extends MovieClip {
public var costs:TextField;
}
}//package shapeinvasion_fla
Section 18
//download_65 (shapeinvasion_fla.download_65)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class download_65 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 19
//easy_66 (shapeinvasion_fla.easy_66)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class easy_66 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 20
//extreme_69 (shapeinvasion_fla.extreme_69)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class extreme_69 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 21
//gun_29 (shapeinvasion_fla.gun_29)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class gun_29 extends MovieClip {
public function gun_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shapeinvasion_fla
Section 22
//hard_68 (shapeinvasion_fla.hard_68)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class hard_68 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 23
//help_70 (shapeinvasion_fla.help_70)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class help_70 extends MovieClip {
public var bck:MovieClip;
public var nxt:MovieClip;
}
}//package shapeinvasion_fla
Section 24
//mainb_86 (shapeinvasion_fla.mainb_86)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class mainb_86 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 25
//MainTimeline (shapeinvasion_fla.MainTimeline)
package shapeinvasion_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var dusts;
public var easy:MovieClip;
public var load1;
public var load2;
public var missiles;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var b4:MovieClip;
public var b5:MovieClip;
public var scores;
public var al:Number;
public var unavailable:Array;
public var pointing:MovieClip;
public var places;
public var i;
public var u;
public var o;
public var remove:Boolean;
public var blastradius;
public var dis:Number;
public var extreme:MovieClip;
public var tbullets;
public var money;
public var enemytimer:Number;
public var mjlogo:MovieClip;
public var updates;
public var normal:MovieClip;
public var density:Number;
public var hard:MovieClip;
public var bdis;
public var blueglow;
public var startdis;
public var relrate;
public var etype;
public var netypes:Number;
public var bfinx;
public var bfiny;
public var instruct:MovieClip;
public var pauses:Boolean;
public var pbullets;
public var gun:MovieClip;
public var loadbar:MovieClip;
public var al2:Number;
public var al3:Number;
public var betmenu:MovieClip;
public var rows1;
public var rows2;
public var rows3;
public var rows4;
public var submitscore:MovieClip;
public var topbars:MovieClip;
public var buymen;
public var splinters;
public var redglow;
public var delta_x:Number;
public var delta_y:Number;
public var between_levels:Boolean;
public var levelended:Boolean;
public var evalues;
public var bangle;
public var bpaths:MovieClip;
public var enddis;
public var stran2:SoundTransform;
public var rows;
public var stran1:SoundTransform;
public var stran3:SoundTransform;
public var pausescreen;
public var stran4:SoundTransform;
public var r2:Boolean;
public var etimer:Number;
public var lifelevel;
public var moneyfactor;
public var ratesleft;
public var s1:Sound;
public var levelpercents2;
public var levelpercents3;
public var levelpercents4;
public var s2b:Sound;
public var s7:Sound;
public var s8:Sound;
public var enemies:Array;
public var exs;
public var s4:Sound;
public var stansform:SoundTransform;
public var s6:Sound;
public var s2c:Sound;
public var s9:Sound;
public var levelpercents1;
public var ra:Number;
public var leveltimes2;
public var s2a:Sound;
public var btime;
public var s3:Sound;
public var balpha;
public var costs;
public var leveltimer:Number;
public var leveltimes;
public var rr:Number;
public var sc;
public var relrate2;
public var ltimer;
public var s5:Sound;
public var cashobjects;
public var towers;
public var sheildon:Boolean;
public var loop;
public var base:MovieClip;
public var shootrates;
public var temp2;
public var parts;
public var damages;
public var pbounce:Boolean;
public var life:Number;
public var speedupgrades;
public var trails;
public var lifelevel2;
public var bstartx;
public var bstarty;
public var gtimer;
public var names;
public var armoron:Boolean;
public var shooting:Boolean;
public var damage;
public var bullettimer:Number;
public var level:Number;
public var gunfire;
public var rates;
public var buying:Boolean;
public var bullets:Array;
public var playb:MovieClip;
public var difficulty:Number;
public var double:Boolean;
public var temp;
public var nolives:Boolean;
public var damageleft;
public var shaketimer;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function create_dust(_arg1:Number){
al2 = dusts.length;
dusts[al2] = new dust();
dusts[al2].x = bullets[i].x;
dusts[al2].y = bullets[i].y;
dusts[al2].rotation = _arg1;
dusts[al2].timer = 15;
dusts[al2].scaleX = 0.5;
dusts[al2].scaleY = 0.5;
addChild(dusts[al2]);
}
public function removeobjects(){
al = enemies.length;
i = 0;
while (i < al) {
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
i++;
};
al = bullets.length;
i = 0;
while (i < al) {
removeChild(bullets[i]);
bullets.splice(i, 1);
i--;
al--;
i++;
};
al = parts.length;
i = 0;
while (i < al) {
removeChild(parts[i]);
parts.splice(i, 1);
i--;
al--;
i++;
};
al = dusts.length;
i = 0;
while (i < al) {
removeChild(dusts[i]);
dusts.splice(i, 1);
i--;
al--;
i++;
};
al = splinters.length;
i = 0;
while (i < al) {
removeChild(splinters[i]);
splinters.splice(i, 1);
i--;
al--;
i++;
};
al = trails.length;
i = 0;
while (i < al) {
removeChild(trails[i]);
trails.splice(i, 1);
i--;
al--;
i++;
};
al = exs.length;
i = 0;
while (i < al) {
removeChild(exs[i]);
exs.splice(i, 1);
i--;
al--;
i++;
};
al = towers.length;
i = 0;
while (i < al) {
removeChild(towers[i]);
towers.splice(i, 1);
i--;
al--;
i++;
};
al = pbullets.length;
i = 0;
while (i < al) {
removeChild(pbullets[i]);
pbullets.splice(i, 1);
i--;
al--;
i++;
};
al = tbullets.length;
i = 0;
while (i < al) {
removeChild(tbullets[i]);
tbullets.splice(i, 1);
i--;
al--;
i++;
};
al = missiles.length;
i = 0;
while (i < al) {
removeChild(missiles[i]);
missiles.splice(i, 1);
i--;
al--;
i++;
};
al = cashobjects.length;
i = 0;
while (i < al) {
removeChild(cashobjects[i]);
cashobjects.splice(i, 1);
i--;
al--;
i++;
};
}
public function button_stower(_arg1:Event){
if ((((costs[1] <= money)) && (!((unavailable[1] == true))))){
if (places[2] == null){
create_tower(2, 111.6);
places[2] = 1;
} else {
if (places[5] == null){
create_tower(2, 339.6);
places[5] = 1;
unavailable[1] = true;
};
};
money = (money - costs[1]);
upgraded();
costs[1] = (costs[1] * moneyfactor);
};
}
public function remove2(){
}
public function remove_buymenu(){
removeChild(buymen);
buymen.removeEventListener("enterFrame", buy_menu_refresh);
buymen.stower.removeEventListener(MouseEvent.MOUSE_UP, button_stower);
buymen.mtower.removeEventListener(MouseEvent.MOUSE_UP, button_mtower);
buymen.ptower.removeEventListener(MouseEvent.MOUSE_UP, button_ptower);
buymen.cont.removeEventListener(MouseEvent.ROLL_OVER, continue_over);
buymen.cont.removeEventListener(MouseEvent.ROLL_OUT, continue_out);
buymen.cont.removeEventListener(MouseEvent.CLICK, continue_click);
buymen = null;
}
public function button_pdouble(_arg1:Event){
if ((((costs[10] <= money)) && (!((unavailable[10] == true))))){
if (double == false){
double = true;
unavailable[10] = true;
};
money = (money - costs[10]);
upgraded();
costs[10] = (costs[10] * moneyfactor);
};
}
public function rover(_arg1:Event){
s7.play(0, 0, stran3);
_arg1.currentTarget.baseb.gotoAndStop(2);
}
public function extremeclick(_arg1:Event){
gotoAndStop(6);
difficulty = 4;
s8.play(0, 0, stran3);
remove2();
}
function frame4(){
easy.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
easy.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
normal.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
normal.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
hard.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
hard.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
extreme.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
extreme.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
easy.addEventListener(MouseEvent.CLICK, easyclick, false, 0, true);
normal.addEventListener(MouseEvent.CLICK, normalclick, false, 0, true);
hard.addEventListener(MouseEvent.CLICK, hardclick, false, 0, true);
extreme.addEventListener(MouseEvent.CLICK, extremeclick, false, 0, true);
easy.baseb.gotoAndStop(1);
normal.baseb.gotoAndStop(1);
hard.baseb.gotoAndStop(1);
extreme.baseb.gotoAndStop(1);
difficulty = 2;
}
function frame5(){
instruct.bck.addEventListener(MouseEvent.CLICK, bckk1, false, 0, true);
instruct.nxt.addEventListener(MouseEvent.CLICK, nxtt1, false, 0, true);
instruct.gotoAndStop(1);
instruct.bck.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
instruct.bck.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
instruct.nxt.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
instruct.nxt.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
instruct.nxt.gotoAndStop(1);
instruct.bck.baseb.gotoAndStop(1);
instruct.nxt.baseb.gotoAndStop(1);
}
function frame1(){
stop();
load1 = new URLLoader();
load2 = new URLLoader();
levelpercents1 = new Array();
levelpercents2 = new Array();
levelpercents3 = new Array();
levelpercents4 = new Array();
playb.visible = false;
stage.addEventListener("enterFrame", preef);
mjlogo.addEventListener(MouseEvent.CLICK, mjclick);
s7 = new knock();
s8 = new crunch();
stran3 = new SoundTransform();
info_load();
load2.addEventListener(Event.COMPLETE, looad2);
}
public function looad(){
rows1 = load2.data.rows1;
loop = 0;
while (loop < rows1) {
levelpercents1[loop] = load2.data[("l1" + loop)];
loop++;
};
rows2 = load2.data.rows2;
loop = 0;
while (loop < rows2) {
levelpercents2[loop] = load2.data[("l2" + loop)];
loop++;
};
rows3 = load2.data.rows3;
loop = 0;
while (loop < rows3) {
levelpercents3[loop] = load2.data[("l3" + loop)];
loop++;
};
rows4 = load2.data.rows4;
loop = 0;
while (loop < rows4) {
levelpercents4[loop] = load2.data[("l4" + loop)];
loop++;
};
}
public function create_splinter(){
al3 = splinters.length;
splinters[al3] = new splinter();
splinters[al3].xpos = bullets[i].x;
splinters[al3].ypos = bullets[i].y;
splinters[al3].ang = ((Math.random() * Math.PI) * 2);
splinters[al3].timer = ((Math.random() * 10) + 20);
splinters[al3].rspeed = (Math.random() * 7);
splinters[al3].speed = ((Math.random() * 3) + 2);
addChild(splinters[al3]);
}
public function removes(){
b1.removeEventListener(MouseEvent.MOUSE_UP, b1c);
b2.removeEventListener(MouseEvent.MOUSE_UP, b2c);
b3.removeEventListener(MouseEvent.MOUSE_UP, b3c);
b4.removeEventListener(MouseEvent.MOUSE_UP, b4c);
b5.removeEventListener(MouseEvent.MOUSE_UP, b5c);
b1.addEventListener(MouseEvent.MOUSE_OVER, rover);
b2.removeEventListener(MouseEvent.MOUSE_OVER, rover);
b3.removeEventListener(MouseEvent.MOUSE_OVER, rover);
b4.removeEventListener(MouseEvent.MOUSE_OVER, rover);
b5.removeEventListener(MouseEvent.MOUSE_OVER, rover);
b1.removeEventListener(MouseEvent.MOUSE_OUT, rout);
b2.removeEventListener(MouseEvent.MOUSE_OUT, rout);
b3.removeEventListener(MouseEvent.MOUSE_OUT, rout);
b4.removeEventListener(MouseEvent.MOUSE_OUT, rout);
b5.removeEventListener(MouseEvent.MOUSE_OUT, rout);
}
public function key_up(_arg1:KeyboardEvent){
}
public function mouse_up(_arg1:Event){
shooting = false;
}
public function button_srate(_arg1:Event){
if ((((money >= costs[4])) && (!((unavailable[4] == true))))){
if (shootrates[2] == 50){
shootrates[2] = 27;
} else {
if (shootrates[2] == 27){
shootrates[2] = 15;
unavailable[4] = true;
};
};
money = (money - costs[4]);
upgraded();
costs[4] = (costs[4] * moneyfactor);
};
}
function frame3(){
stop();
b1.addEventListener(MouseEvent.MOUSE_UP, b1c, false, 0, true);
b2.addEventListener(MouseEvent.MOUSE_UP, b2c, false, 0, true);
b3.addEventListener(MouseEvent.MOUSE_UP, b3c, false, 0, true);
b4.addEventListener(MouseEvent.MOUSE_UP, b4c, false, 0, true);
b5.addEventListener(MouseEvent.MOUSE_UP, b5c, false, 0, true);
b1.addEventListener(MouseEvent.MOUSE_OVER, rover, false, 0, true);
b2.addEventListener(MouseEvent.MOUSE_OVER, rover, false, 0, true);
b3.addEventListener(MouseEvent.MOUSE_OVER, rover, false, 0, true);
b4.addEventListener(MouseEvent.MOUSE_OVER, rover, false, 0, true);
b5.addEventListener(MouseEvent.MOUSE_OVER, rover, false, 0, true);
b1.addEventListener(MouseEvent.MOUSE_OUT, rout, false, 0, true);
b2.addEventListener(MouseEvent.MOUSE_OUT, rout, false, 0, true);
b3.addEventListener(MouseEvent.MOUSE_OUT, rout, false, 0, true);
b4.addEventListener(MouseEvent.MOUSE_OUT, rout, false, 0, true);
b5.addEventListener(MouseEvent.MOUSE_OUT, rout, false, 0, true);
b1.baseb.gotoAndStop(1);
b2.baseb.gotoAndStop(1);
b3.baseb.gotoAndStop(1);
b4.baseb.gotoAndStop(1);
b5.baseb.gotoAndStop(1);
SoundMixer.stopAll();
}
public function button_mtower(_arg1:Event){
if ((((costs[2] <= money)) && (!((unavailable[2] == true))))){
if (places[1] == null){
create_tower(3, 45.5);
places[1] = 1;
} else {
if (places[6] == null){
create_tower(3, 403.5);
places[6] = 1;
unavailable[2] = true;
};
};
money = (money - costs[2]);
upgraded();
costs[2] = (costs[2] * moneyfactor);
};
}
public function ef(_arg1:Event){
updates++;
if (buying == false){
if (pauses == false){
if (nolives == false){
if (levelended == false){
if (leveltimer > 0){
e_create();
leveltimer--;
};
gun_actions();
tower_actions();
lifes();
pointer_dis();
};
};
enemy_actions();
bullet_actions();
part_actions();
cash_actions();
shake();
detect_end();
};
};
topbar_stuff();
if (submitscore != null){
score_sub();
};
}
public function create_buymenu(){
buymen = new buymenu();
buymen.x = 0;
buymen.y = 100;
addChild(buymen);
buymen.addEventListener("enterFrame", buy_menu_refresh);
buymen.upgraded.visible = false;
buymen.cont.addEventListener(MouseEvent.ROLL_OVER, continue_over, false, 0, true);
buymen.cont.addEventListener(MouseEvent.ROLL_OUT, continue_out, false, 0, true);
buymen.cont.addEventListener(MouseEvent.CLICK, continue_click, false, 0, true);
buymen.cont.gotoAndStop(1);
if (unavailable[1] != true){
buymen.stower.addEventListener(MouseEvent.MOUSE_UP, button_stower, false, 0, true);
buymen.stower.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.stower.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.stower.buttons.gotoAndStop(1);
} else {
buymen.stower.buttons.gotoAndStop(1);
};
if (unavailable[2] != true){
buymen.mtower.addEventListener(MouseEvent.MOUSE_UP, button_mtower, false, 0, true);
buymen.mtower.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.mtower.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.mtower.buttons.gotoAndStop(1);
} else {
buymen.mtower.buttons.gotoAndStop(1);
};
if (unavailable[3] != true){
buymen.ptower.addEventListener(MouseEvent.MOUSE_UP, button_ptower, false, 0, true);
buymen.ptower.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.ptower.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.ptower.buttons.gotoAndStop(1);
} else {
buymen.ptower.buttons.gotoAndStop(1);
};
if (unavailable[4] != true){
buymen.srate.addEventListener(MouseEvent.MOUSE_UP, button_srate, false, 0, true);
buymen.srate.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.srate.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.srate.buttons.gotoAndStop(1);
} else {
buymen.srate.buttons.gotoAndStop(1);
};
if (unavailable[5] != true){
buymen.sdamage.addEventListener(MouseEvent.MOUSE_UP, button_sdamage, false, 0, true);
buymen.sdamage.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.sdamage.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.sdamage.buttons.gotoAndStop(1);
} else {
buymen.sdamage.buttons.gotoAndStop(1);
};
if (unavailable[6] != true){
buymen.mrate.addEventListener(MouseEvent.MOUSE_UP, button_mrate, false, 0, true);
buymen.mrate.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.mrate.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.mrate.buttons.gotoAndStop(1);
} else {
buymen.mrate.buttons.gotoAndStop(1);
};
if (unavailable[7] != true){
buymen.mdamage.addEventListener(MouseEvent.MOUSE_UP, button_mdamage, false, 0, true);
buymen.mdamage.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.mdamage.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.mdamage.buttons.gotoAndStop(1);
} else {
buymen.mdamage.buttons.gotoAndStop(1);
};
if (unavailable[8] != true){
buymen.mblast.addEventListener(MouseEvent.MOUSE_UP, button_mblast, false, 0, true);
buymen.mblast.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.mblast.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.mblast.buttons.gotoAndStop(1);
} else {
buymen.mblast.buttons.gotoAndStop(1);
};
if (unavailable[9] != true){
buymen.pdensity.addEventListener(MouseEvent.MOUSE_UP, button_pdensity, false, 0, true);
buymen.pdensity.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.pdensity.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.pdensity.buttons.gotoAndStop(1);
} else {
buymen.pdensity.buttons.gotoAndStop(1);
};
if (unavailable[10] != true){
buymen.pdouble.addEventListener(MouseEvent.MOUSE_UP, button_pdouble, false, 0, true);
buymen.pdouble.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.pdouble.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.pdouble.buttons.gotoAndStop(1);
} else {
buymen.pdouble.buttons.gotoAndStop(1);
};
if (unavailable[11] != true){
buymen.pbounce.addEventListener(MouseEvent.MOUSE_UP, button_pbounce, false, 0, true);
buymen.pbounce.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.pbounce.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.pbounce.buttons.gotoAndStop(1);
} else {
buymen.pbounce.buttons.gotoAndStop(1);
};
if (unavailable[12] != true){
buymen.grate.addEventListener(MouseEvent.MOUSE_UP, button_grate, false, 0, true);
buymen.grate.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.grate.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.grate.buttons.gotoAndStop(1);
} else {
buymen.grate.buttons.gotoAndStop(1);
};
if (unavailable[13] != true){
buymen.gdamage.addEventListener(MouseEvent.MOUSE_UP, button_gdamage, false, 0, true);
buymen.gdamage.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.gdamage.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.gdamage.buttons.gotoAndStop(1);
} else {
buymen.gdamage.buttons.gotoAndStop(1);
};
if (life < 100){
unavailable[14] = false;
};
if (unavailable[14] != true){
buymen.repair.addEventListener(MouseEvent.MOUSE_UP, button_repair, false, 0, true);
buymen.repair.addEventListener(MouseEvent.ROLL_OVER, extras, false, 0, true);
buymen.repair.addEventListener(MouseEvent.ROLL_OUT, extras2, false, 0, true);
buymen.repair.buttons.gotoAndStop(1);
} else {
buymen.repair.buttons.gotoAndStop(1);
};
}
public function part_actions(){
al = parts.length;
i = 0;
while (i < al) {
parts[i].xpos = (parts[i].xpos + ((Math.cos(parts[i].ang) * parts[i].speed) * 2));
parts[i].ypos = (parts[i].ypos + ((Math.sin(parts[i].ang) * parts[i].speed) * 2));
parts[i].x = parts[i].xpos;
parts[i].y = parts[i].ypos;
parts[i].timer--;
if (parts[i].timer < 0){
removeChild(parts[i]);
parts.splice(i, 1);
i--;
al--;
};
i++;
};
al = dusts.length;
i = 0;
while (i < al) {
dusts[i].timer--;
if (dusts[i].timer < 0){
removeChild(dusts[i]);
dusts.splice(i, 1);
i--;
al--;
};
i++;
};
al = splinters.length;
i = 0;
while (i < al) {
splinters[i].timer--;
splinters[i].xpos = (splinters[i].xpos + (Math.cos(splinters[i].ang) * splinters[i].speed));
splinters[i].ypos = (splinters[i].ypos + (Math.sin(splinters[i].ang) * splinters[i].speed));
splinters[i].x = splinters[i].xpos;
splinters[i].y = splinters[i].ypos;
splinters[i].rotation = (splinters[i].rotation + splinters[i].rspeed);
if (splinters[i].timer < 0){
removeChild(splinters[i]);
splinters.splice(i, 1);
i--;
al--;
};
i++;
};
al = trails.length;
i = 0;
while (i < al) {
trails[i].timer--;
if (trails[i].timer < 0){
removeChild(trails[i]);
trails.splice(i, 1);
i--;
al--;
};
i++;
};
al = exs.length;
i = 0;
while (i < al) {
exs[i].timer--;
if (exs[i].timer < 0){
removeChild(exs[i]);
exs.splice(i, 1);
i--;
al--;
};
i++;
};
}
public function remove_betmenu(){
removeChild(betmenu);
betmenu = null;
}
public function create_tbullets(){
al = tbullets.length;
tbullets[al] = new tbullet();
tbullets[al].gotoAndStop(1);
tbullets[al].ang = ra;
tbullets[al].speed = 5;
tbullets[al].xpos = towers[i].x;
tbullets[al].ypos = towers[i].y;
tbullets[al].cacheAsBitmap = true;
tbullets[al].rotation = ((ra / Math.PI) * 180);
addChild(tbullets[al]);
}
public function base_repair(){
i = 0;
while (i < 9) {
if (base[("f" + i)].currentFrame != 1){
base[("f" + i)].gotoAndStop((base[("f" + i)].currentFrame - 1));
};
i++;
};
}
function frame6(){
stop();
stage.quality = StageQuality.MEDIUM;
if (load2.data != null){
looad();
};
enemies = new Array();
bullets = new Array();
parts = new Array();
dusts = new Array();
splinters = new Array();
trails = new Array();
exs = new Array();
towers = new Array();
pbullets = new Array();
tbullets = new Array();
missiles = new Array();
cashobjects = new Array();
places = new Array();
pbounce = false;
enemytimer = 50;
bullettimer = 10;
nolives = false;
level = 1;
leveltimes = new Array(20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 30, 30, 30, 30, 30, 30, 30, 10, 25, 5, 30);
leveltimes2 = 40;
relrate = new Array(40, 120, 170, 160, 230, 110, 130, 180, 150, 100, 95, 90, 130, 110, 120, 80, 80, 65, 55, 50, 20, 43);
relrate2 = 50;
lifelevel = new Array(0, 1, 1.1, 1.2, 1.2, 1.3, 1.3, 1.4, 1.4, 1.5, 1.5, 1.6, 1.6, 1.7, 1.7, 2, 2.1, 2.2, 2.3, 2.4, 2, 2.6);
lifelevel2 = 2.6;
switch (difficulty){
case 1:
temp = 0.6;
temp2 = 1;
break;
case 2:
temp2 = 1;
temp = 1;
break;
case 3:
temp2 = 0.9;
temp = 1.5;
break;
case 4:
temp2 = 0.8;
temp = 2;
break;
};
i = 0;
while (i < lifelevel.length) {
lifelevel[i] = (lifelevel[i] * temp);
relrate[i] = (relrate[i] * temp2);
i++;
};
lifelevel2 = (lifelevel2 * temp);
relrate2 = (relrate2 * temp2);
between_levels = false;
levelended = false;
life = 100;
armoron = false;
sheildon = false;
pointing = new Symbol10();
addChild(pointing);
base.f0.gotoAndStop(1);
base.f1.gotoAndStop(1);
base.f2.gotoAndStop(1);
base.f3.gotoAndStop(1);
base.f4.gotoAndStop(1);
base.f5.gotoAndStop(1);
base.f6.gotoAndStop(1);
base.f7.gotoAndStop(1);
base.f8.gotoAndStop(1);
rates = 20;
ratesleft = 5;
damage = 10;
damageleft = 5;
gunfire = false;
bstartx = new Array();
bstarty = new Array();
bfinx = new Array();
bfiny = new Array();
btime = new Array();
balpha = new Array();
bangle = new Array();
bdis = new Array();
blueglow = new Array();
blueglow[0] = new GlowFilter();
blueglow[0].blurX = 10;
blueglow[0].blurY = 10;
blueglow[0].color = 0xFFFF;
redglow = new Array();
redglow[0] = new GlowFilter();
redglow[0].blurX = 10;
redglow[0].blurY = 10;
redglow[0].color = 0xFF0000;
moneyfactor = 2.5;
costs = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
costs[0] = 0;
costs[1] = 200;
costs[2] = 450;
costs[3] = 400;
costs[4] = 100;
costs[5] = 120;
costs[6] = 150;
costs[7] = 170;
costs[8] = 230;
costs[9] = 110;
costs[10] = 350;
costs[11] = 280;
costs[12] = 170;
costs[13] = 190;
costs[14] = 50;
unavailable = new Array();
blastradius = 50;
shootrates = new Array(0, 200, 50, 300);
damages = new Array(0, 0, 10, 15);
evalues = new Array(0, 10, 17, 8, 14, 10, 31, 4, 9, 26);
scores = 0;
sc = 0;
money = 0;
double = false;
density = 0.8;
speedupgrades = 1;
updates = 0;
ltimer = new Timer(1000);
ltimer.addEventListener(TimerEvent.TIMER, tt);
ltimer.start();
gtimer = new Timer(10);
gtimer.start();
gtimer.addEventListener(TimerEvent.TIMER, ef);
stage.addEventListener("enterFrame", ef2);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse_up);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse_move);
stage.addEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.addEventListener(KeyboardEvent.KEY_UP, key_up);
stansform = new SoundTransform(1);
stran1 = new SoundTransform(0.4);
stran2 = new SoundTransform(0.7);
stran4 = new SoundTransform(1);
s1 = new ss1();
s2a = new ss2a();
s2b = new ss2b();
s2c = new ss2c();
s3 = new gun2();
s4 = new explode1();
s5 = new laser3();
s6 = new plasma();
s9 = new music();
s9.play(0, 10000, stran4);
submitscore = null;
leveltimer = (leveltimes[1] * 50);
etimer = relrate[1];
netypes = 1;
levelended = false;
between_levels = false;
level = 1;
life = 100;
Mouse.hide();
}
public function button_pdensity(_arg1:Event){
if ((((costs[9] <= money)) && (!((unavailable[9] == true))))){
if (density == 0.8){
density = 1.3;
} else {
if (density == 1.3){
density = 1.7;
unavailable[9] = true;
};
};
money = (money - costs[9]);
upgraded();
costs[9] = (costs[9] * moneyfactor);
};
}
public function lifes(){
base.cracks.alpha = (1 - (life / 100));
if (life <= 0){
submitscore = new submiter();
addChild(submitscore);
if (submitscore != null){
removeobjects();
Mouse.show();
if (pointing != null){
removeChild(pointing);
pointing = null;
};
submitscore.x = 121;
submitscore.y = 147;
submitscore.blendMode = BlendMode.OVERLAY;
submitscore.gotoAndStop(1);
submitscore.scores.text = sc;
submitscore.submit.addEventListener(MouseEvent.CLICK, submit_score, false, 0, true);
submitscore.submit.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
submitscore.submit.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
submitscore.menus.addEventListener(MouseEvent.CLICK, submit_menu, false, 0, true);
submitscore.menus.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
submitscore.menus.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
submitscore.namer.addEventListener(MouseEvent.CLICK, nameclick, false, 0, true);
submitscore.viewhs.addEventListener(MouseEvent.CLICK, view_highscores, false, 0, true);
submitscore.playmore.addEventListener(MouseEvent.CLICK, play_more_g, false, 0, true);
submitscore.playmore2.addEventListener(MouseEvent.CLICK, play_more_g, false, 0, true);
submitscore.viewhs.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
submitscore.playmore.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
submitscore.playmore2.addEventListener(MouseEvent.ROLL_OVER, rover, false, 0, true);
submitscore.viewhs.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
submitscore.playmore.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
submitscore.playmore2.addEventListener(MouseEvent.ROLL_OUT, rout, false, 0, true);
submitscore.viewhs.baseb.gotoAndStop(1);
submitscore.playmore.baseb.gotoAndStop(1);
submitscore.menus.baseb.gotoAndStop(1);
submitscore.viewhs.baseb.gotoAndStop(1);
submitscore.playmore.baseb.gotoAndStop(1);
submitscore.playmore2.baseb.gotoAndStop(1);
submitscore.submit.baseb.gotoAndStop(1);
};
nolives = true;
};
}
public function create(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7){
switch (_arg1){
case 1:
al = enemies.length;
enemies[al] = new triangle();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (20 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 3:
al = enemies.length;
enemies[al] = new rect();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (30 * _arg4);
enemies[al].types = 2;
enemies[al].speed = (0.8 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 2:
al = enemies.length;
enemies[al] = new square();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (25 * _arg4);
enemies[al].types = 3;
enemies[al].speed = (1 * speedupgrades);
enemies[al].accel = 4;
enemies[al].ang = _arg7;
enemies[al].sp1 = _arg6;
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 4:
al = enemies.length;
enemies[al] = new circle();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (25 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1.6 * speedupgrades);
enemies[al].accel = 4;
enemies[al].ang = _arg7;
enemies[al].sp1 = _arg6;
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 5:
al = enemies.length;
enemies[al] = new circletri();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (30 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 6:
if (_arg2 < 62){
_arg2 = (_arg2 + 50);
};
if (_arg2 > 386){
_arg2 = (_arg2 - 50);
};
al = enemies.length;
enemies[al] = new plank();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (100 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (0.5 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 7:
al = enemies.length;
enemies[al] = new supercircle();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (40 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 8:
al = enemies.length;
enemies[al] = new rectcircle();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (40 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1 * speedupgrades);
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
case 9:
al = enemies.length;
enemies[al] = new hex();
enemies[al].xpos = _arg2;
enemies[al].ypos = _arg3;
enemies[al].life = (40 * _arg4);
enemies[al].types = _arg1;
enemies[al].speed = (1 * speedupgrades);
enemies[al].timer = 100;
addChild(enemies[al]);
enemies[al].cacheAsBitmap = true;
enemytimer = 50;
break;
};
enemies[al].life = (enemies[al].life * 1.5);
if (relrate.length > level){
enemytimer = (relrate[level] - ((relrate[level] / 2) * (1 - ((leveltimer / 50) / leveltimes[level]))));
} else {
enemytimer = (relrate2 - ((relrate2 / 2) * (1 - ((leveltimer / 50) / leveltimes2))));
};
if ((((_arg7 == 1)) && ((sheildon == true)))){
enemies[al].protect = true;
enemies[al].filters = blueglow;
} else {
if ((((_arg7 == 3)) && ((armoron == true)))){
enemies[al].life = (enemies[al].life * 2.5);
enemies[al].filters = redglow;
enemies[al].protect = false;
} else {
enemies[al].protect = false;
};
};
enemies[al].movement = 0;
enemies[al].xplus = 0;
enemies[al].yplus = 0;
}
public function gun_actions(){
delta_x = (mouseX - gun.x);
delta_y = (mouseY - gun.y);
ra = Math.atan2(delta_y, delta_x);
gun.rotation = (((ra / Math.PI) * 180) - 90);
bullettimer--;
if (shooting == true){
if (bullettimer < 0){
create_bullets();
gun.gotoAndStop(2);
s1.play(0, 0, stran1);
gunfire = true;
bullettimer = rates;
};
};
}
public function normalclick(_arg1:Event){
gotoAndStop(6);
difficulty = 2;
s8.play(0, 0, stran3);
remove2();
}
public function topbar_stuff(){
setChildIndex(topbars, (numChildren - 1));
topbars.moneys.text = ("Money:" + money);
topbars.scores.text = ("Score:" + sc);
topbars.lifebar.scaleX = (life / 100);
if (life >= 55){
topbars.lifebar.gotoAndStop(1);
} else {
if ((((life < 55)) && ((life > 25)))){
topbars.lifebar.gotoAndStop(2);
} else {
topbars.lifebar.gotoAndStop(3);
};
};
if (pointing != null){
setChildIndex(pointing, (numChildren - 1));
pointing.x = mouseX;
pointing.y = mouseY;
pointing.rotation = (pointing.rotation + 2);
};
}
public function buy_menu_refresh(_arg1:Event){
i = 0;
while (i < costs.length) {
costs[i] = Math.round(costs[i]);
i++;
};
if (unavailable[1] != true){
buymen.stower.buttons2.gotoAndStop(1);
if (costs[1] > money){
buymen.stower.buttons2.gotoAndStop(3);
};
} else {
buymen.stower.buttons2.gotoAndStop(2);
};
buymen.stower.buttons.costs.text = ("Cost:" + costs[1]);
if (unavailable[2] != true){
buymen.mtower.buttons2.gotoAndStop(1);
if (costs[2] > money){
buymen.mtower.buttons2.gotoAndStop(3);
};
} else {
buymen.mtower.buttons2.gotoAndStop(2);
};
buymen.mtower.buttons.costs.text = ("Cost:" + costs[2]);
if (unavailable[3] != true){
buymen.ptower.buttons2.gotoAndStop(1);
if (costs[3] > money){
buymen.ptower.buttons2.gotoAndStop(3);
};
} else {
buymen.ptower.buttons2.gotoAndStop(2);
};
buymen.ptower.buttons.costs.text = ("Cost:" + costs[3]);
if (((!((unavailable[4] == true))) && (!((places[2] == null))))){
buymen.srate.buttons2.gotoAndStop(1);
if (costs[4] > money){
buymen.srate.buttons2.gotoAndStop(3);
};
} else {
buymen.srate.buttons2.gotoAndStop(2);
};
buymen.srate.buttons.costs.text = ("Cost:" + costs[4]);
if (((!((unavailable[5] == true))) && (!((places[2] == null))))){
buymen.sdamage.buttons2.gotoAndStop(1);
if (costs[5] > money){
buymen.sdamage.buttons2.gotoAndStop(3);
};
} else {
buymen.sdamage.buttons2.gotoAndStop(2);
};
buymen.sdamage.buttons.costs.text = ("Cost:" + costs[5]);
if (((!((unavailable[6] == true))) && (!((places[1] == null))))){
buymen.mrate.buttons2.gotoAndStop(1);
if (costs[6] > money){
buymen.mrate.buttons2.gotoAndStop(3);
};
} else {
buymen.mrate.buttons2.gotoAndStop(2);
};
buymen.mrate.buttons.costs.text = ("Cost:" + costs[6]);
if (((!((unavailable[7] == true))) && (!((places[1] == null))))){
buymen.mdamage.buttons2.gotoAndStop(1);
if (costs[7] > money){
buymen.mdamage.buttons2.gotoAndStop(3);
};
} else {
buymen.mdamage.buttons2.gotoAndStop(2);
};
buymen.mdamage.buttons.costs.text = ("Cost:" + costs[7]);
if (((!((unavailable[8] == true))) && (!((places[1] == null))))){
buymen.mblast.buttons2.gotoAndStop(1);
if (costs[8] > money){
buymen.mblast.buttons2.gotoAndStop(3);
};
} else {
buymen.mblast.buttons2.gotoAndStop(2);
};
buymen.mblast.buttons.costs.text = ("Cost:" + costs[8]);
if (((!((unavailable[9] == true))) && (!((places[3] == null))))){
buymen.pdensity.buttons2.gotoAndStop(1);
if (costs[9] > money){
buymen.pdensity.buttons2.gotoAndStop(3);
};
} else {
buymen.pdensity.buttons2.gotoAndStop(2);
};
buymen.pdensity.buttons.costs.text = ("Cost:" + costs[9]);
if (((!((unavailable[10] == true))) && (!((places[3] == null))))){
buymen.pdouble.buttons2.gotoAndStop(1);
if (costs[10] > money){
buymen.pdouble.buttons2.gotoAndStop(3);
};
} else {
buymen.pdouble.buttons2.gotoAndStop(2);
};
buymen.pdouble.buttons.costs.text = ("Cost:" + costs[10]);
if (((!((unavailable[11] == true))) && (!((places[3] == null))))){
buymen.pbounce.buttons2.gotoAndStop(1);
if (costs[11] > money){
buymen.pbounce.buttons2.gotoAndStop(3);
};
} else {
buymen.pbounce.buttons2.gotoAndStop(2);
};
buymen.pbounce.buttons.costs.text = ("Cost:" + costs[11]);
if (unavailable[12] != true){
buymen.grate.buttons2.gotoAndStop(1);
if (costs[12] > money){
buymen.grate.buttons2.gotoAndStop(3);
};
} else {
buymen.grate.buttons2.gotoAndStop(2);
};
buymen.grate.buttons.costs.text = ("Cost:" + costs[12]);
if (unavailable[13] != true){
buymen.gdamage.buttons2.gotoAndStop(1);
if (costs[13] > money){
buymen.gdamage.buttons2.gotoAndStop(3);
};
} else {
buymen.gdamage.buttons2.gotoAndStop(2);
};
buymen.gdamage.buttons.costs.text = ("Cost:" + costs[13]);
if (life == 100){
unavailable[14] = true;
} else {
unavailable[14] = false;
};
if (unavailable[14] != true){
buymen.repair.buttons2.gotoAndStop(1);
if (costs[14] > money){
buymen.repair.buttons2.gotoAndStop(3);
};
} else {
buymen.repair.buttons2.gotoAndStop(2);
};
buymen.repair.buttons.costs.text = ("Cost:" + costs[14]);
if (buymen.upgraded.alpha > 0){
buymen.upgraded.alpha = (buymen.upgraded.alpha - 0.03);
};
}
public function create_pbullets(){
al = pbullets.length;
pbullets[al] = new pbullet();
pbullets[al].gotoAndStop(1);
pbullets[al].ang = ((ra / 180) * Math.PI);
pbullets[al].speed = 10;
pbullets[al].xpos = towers[i].x;
pbullets[al].ypos = towers[i].y;
pbullets[al].cacheAsBitmap = true;
pbullets[al].rotation = ((ra / Math.PI) * 180);
addChild(pbullets[al]);
}
public function submit_menu(_arg1:Event){
back_to_menu();
}
public function create_betmenu(){
betmenu = new betweenmenu();
betmenu.x = 218;
betmenu.y = 247;
betmenu.ltxt.text = ("Level " + level);
betmenu.next.addEventListener(MouseEvent.CLICK, nclick);
betmenu.next.addEventListener(MouseEvent.ROLL_OVER, rover);
betmenu.next.addEventListener(MouseEvent.ROLL_OUT, rout);
betmenu.buy.addEventListener(MouseEvent.CLICK, bclick);
betmenu.buy.addEventListener(MouseEvent.ROLL_OVER, rover);
betmenu.buy.addEventListener(MouseEvent.ROLL_OUT, rout);
betmenu.buy.baseb.gotoAndStop(1);
betmenu.next.baseb.gotoAndStop(1);
switch (difficulty){
case 1:
betmenu.percents.text = (levelpercents1[level] + "% of players pass this level");
break;
case 2:
betmenu.percents.text = (levelpercents2[level] + "% of players pass this level");
break;
case 3:
betmenu.percents.text = (levelpercents3[level] + "% of players pass this level");
break;
case 4:
betmenu.percents.text = (levelpercents4[level] + "% of players pass this level");
break;
};
addChild(betmenu);
}
public function detect_end(){
if ((((((((leveltimer <= 0)) && ((enemies.length == 0)))) && ((between_levels == false)))) && ((life > 0)))){
levelended = true;
create_betmenu();
between_levels = true;
Mouse.show();
removeChild(pointing);
pointing = null;
};
}
public function button_repair(_arg1:Event){
if ((((costs[14] <= money)) && (!((unavailable[14] == true))))){
if (life < 100){
life = (life + 10);
money = (money - costs[14]);
base_repair();
if (life > 100){
life = 100;
};
};
};
}
public function back_to_menu(){
gtimer.removeEventListener(TimerEvent.TIMER, ef);
stage.removeEventListener("enterFrame", ef2);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouse_up);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouse_move);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, key_down);
stage.removeEventListener(KeyboardEvent.KEY_UP, key_up);
removeChild(submitscore);
(submitscore == null);
removeobjects();
topbars.visible = false;
if (pointing != null){
removeChild(pointing);
pointing = null;
};
topbars = null;
SoundMixer.stopAll();
gotoAndStop(3);
}
public function continue_over(_arg1:Event){
s7.play(0, 0, stran3);
buymen.cont.gotoAndStop(2);
}
public function play_more_g(_arg1:Event){
navigateToURL(new URLRequest("http://www.theextragame.com/?from=2"), "_blank");
s8.play(0, 0, stran3);
}
public function rout(_arg1:Event){
_arg1.currentTarget.baseb.gotoAndStop(1);
}
public function button_sdamage(_arg1:Event){
if ((((money >= costs[5])) && (!((unavailable[5] == true))))){
if (damages[2] == 10){
damages[2] = 20;
} else {
if (damages[2] == 20){
damages[2] = 35;
unavailable[5] = true;
};
};
money = (money - costs[5]);
upgraded();
costs[5] = (costs[5] * moneyfactor);
};
}
public function looad2(_arg1:Event){
looad();
}
public function upgraded(){
buymen.upgraded.visible = true;
buymen.upgraded.alpha = 1;
}
public function info_load(){
load1.load(new URLRequest(((("http://stats.onlinehighscores.com/views/shapeinvasion.php?url=" + loaderInfo.loaderURL) + "&r=") + (Math.random() * 10000))));
load2.dataFormat = URLLoaderDataFormat.VARIABLES;
load2.load(new URLRequest(("http://gameinfo.onlinehighscores.com/shapeinvasion/levels.php?ran=" + Math.round((Math.random() * 1000)))));
}
public function over1(_arg1:Event){
playb.baseb.gotoAndStop(2);
s7.play(0, 0, stran3);
}
public function nclick(_arg1:Event){
Mouse.hide();
pointing = new Symbol10();
addChild(pointing);
s8.play(0, 0, stran3);
level++;
if ((((leveltimes.length > level)) && ((relrate.length > level)))){
leveltimer = (leveltimes[level] * 50);
etimer = relrate[level];
if (speedupgrades < 20){
speedupgrades = (speedupgrades + 0.03);
};
} else {
leveltimes2++;
leveltimer = (leveltimes2 * 50);
relrate2 = (relrate2 * 0.85);
etimer = relrate2;
lifelevel2 = (lifelevel2 + 0.1);
};
if (netypes < 9){
netypes++;
};
levelended = false;
between_levels = false;
remove_betmenu();
}
public function nameclick(_arg1:Event){
submitscore.namer.text = "";
submitscore.namer.removeEventListener(MouseEvent.CLICK, nameclick);
}
public function tower_actions(){
i = 0;
while (i < towers.length) {
switch (towers[i].types){
case 1:
towers[i].timer--;
if (towers[i].timer < 0){
towers[i].timer = shootrates[towers[i].types];
if (double == true){
towers[i].timer2 = 25;
};
u = 0;
while (u < (10 * density)) {
ra = (245 + ((6 / density) * u));
create_pbullets();
u++;
};
s5.play(0, 0, stran2);
};
if (double == true){
towers[i].timer2--;
if (towers[i].timer2 < 0){
towers[i].timer2 = 100000;
u = 0;
while (u < (5 * density)) {
ra = (245 + ((12 / density) * u));
create_pbullets();
u++;
};
s5.play(0, 0, stran2);
};
};
break;
case 2:
towers[i].closest = 999999;
u = 0;
while (u < enemies.length) {
delta_x = (enemies[u].xpos - towers[i].x);
delta_y = (enemies[u].ypos - towers[i].y);
dis = Math.sqrt(((delta_x * delta_x) + (delta_y * delta_y)));
if (dis < towers[i].closest){
towers[i].closest = dis;
towers[i].eno = u;
};
u++;
};
towers[i].timer--;
if (enemies.length > 0){
delta_x = (enemies[towers[i].eno].xpos - towers[i].x);
delta_y = (enemies[towers[i].eno].ypos - towers[i].y);
ra = Math.atan2(delta_y, delta_x);
towers[i].gun.rotation = (((ra / Math.PI) * 180) - 90);
if (towers[i].timer < 0){
create_tbullets();
s3.play(0, 0, stran1);
towers[i].timer = shootrates[towers[i].types];
};
};
break;
case 3:
towers[i].closest = 999999;
u = 0;
while (u < enemies.length) {
delta_x = (enemies[u].xpos - towers[i].x);
delta_y = (enemies[u].ypos - towers[i].y);
dis = Math.sqrt(((delta_x * delta_x) + (delta_y * delta_y)));
if (dis < towers[i].closest){
towers[i].closest = dis;
towers[i].eno = u;
};
u++;
};
towers[i].timer--;
if (enemies.length > 0){
delta_x = (enemies[towers[i].eno].xpos - towers[i].x);
delta_y = (enemies[towers[i].eno].ypos - towers[i].y);
ra = Math.atan2(delta_y, delta_x);
towers[i].gun.rotation = (((ra / Math.PI) * 180) + 90);
if (towers[i].timer < 0){
create_missiles();
s6.play(0, 0, stran2);
towers[i].timer = shootrates[towers[i].types];
};
};
break;
};
i++;
};
}
public function create_tower(_arg1, _arg2){
al = towers.length;
switch (_arg1){
case 1:
towers[al] = new pulsetower();
break;
case 2:
towers[al] = new stower();
break;
case 3:
towers[al] = new mtower();
break;
};
towers[al].x = _arg2;
towers[al].y = gun.y;
towers[al].types = _arg1;
towers[al].timer = 10;
addChild(towers[al]);
}
public function mjclick(_arg1:Event){
navigateToURL(new URLRequest("http://www.mjgames-online.com/?from=2"));
}
public function e_create(){
enemytimer--;
if (enemytimer < 0){
switch (level){
case 1:
temp = 1;
armoron = false;
sheildon = false;
break;
case 2:
temp = 2;
armoron = false;
sheildon = false;
break;
case 3:
temp = Math.round(((Math.random() * (2 - 1)) + 1));
armoron = false;
sheildon = false;
break;
case 4:
temp = 3;
armoron = false;
sheildon = false;
break;
case 5:
temp = Math.round(((Math.random() * (3 - 1)) + 1));
armoron = false;
sheildon = false;
break;
case 6:
temp = 4;
armoron = false;
sheildon = false;
break;
case 7:
temp = Math.round(((Math.random() * (4 - 1)) + 1));
armoron = true;
sheildon = false;
break;
case 8:
temp = 5;
armoron = false;
sheildon = false;
break;
case 9:
temp = Math.round(((Math.random() * (5 - 1)) + 1));
armoron = true;
sheildon = false;
break;
case 10:
temp = 6;
armoron = false;
sheildon = false;
break;
case 11:
temp = Math.round(((Math.random() * (6 - 1)) + 1));
armoron = true;
sheildon = true;
break;
case 12:
temp = 7;
armoron = false;
sheildon = false;
break;
case 13:
temp = Math.round(((Math.random() * (7 - 1)) + 1));
armoron = true;
sheildon = true;
break;
case 14:
temp = 8;
armoron = false;
sheildon = false;
break;
case 15:
temp = Math.round(((Math.random() * (8 - 1)) + 1));
armoron = true;
sheildon = true;
break;
case 16:
temp = 9;
armoron = false;
sheildon = false;
break;
case 17:
temp = Math.round(((Math.random() * (9 - 1)) + 1));
armoron = true;
sheildon = true;
break;
default:
temp = Math.round(((Math.random() * (9 - 1)) + 1));
armoron = true;
sheildon = true;
break;
};
if (lifelevel.length > level){
create(temp, ((Math.random() * 400) + 25), -20, lifelevel[level], 1, 0, Math.round((Math.random() * 4)));
} else {
create(temp, ((Math.random() * 400) + 25), -20, lifelevel2, 1, 0, Math.round((Math.random() * 4)));
};
};
}
public function view_highscores(_arg1:Event){
navigateToURL(new URLRequest("http://www.onlinehighscores.com/highscores/shapeinvasion.php"), "_blank");
s8.play(0, 0, stran3);
}
public function b1c(_arg1:Event){
s8.play(0, 0, stran3);
removes();
gotoAndStop(4);
}
public function b2c(_arg1:Event){
s8.play(0, 0, stran3);
removes();
gotoAndStop(5);
}
public function button_ptower(_arg1:Event){
if ((((costs[3] <= money)) && (!((unavailable[3] == true))))){
if (places[3] == null){
create_tower(1, 170.8);
places[3] = 1;
} else {
if (places[4] == null){
create_tower(1, 277);
places[4] = 1;
unavailable[3] = true;
};
};
money = (money - costs[3]);
upgraded();
costs[3] = (costs[3] * moneyfactor);
};
}
public function physics(){
if (enemies[i].movement == 0){
enemies[i].xplus = (enemies[i].xplus + (Math.cos((Math.PI / 2)) * 0.02));
enemies[i].yplus = (enemies[i].yplus + (Math.sin((Math.PI / 2)) * 0.02));
} else {
if (enemies[i].movement == 2){
enemies[i].mtimer--;
if (enemies[i].mtimer < 0){
enemies[i].movement = 0;
};
};
};
ra = Math.atan2(enemies[i].yplus, enemies[i].xplus);
dis = Math.sqrt(((enemies[i].yplus * enemies[i].yplus) + (enemies[i].xplus * enemies[i].xplus)));
if (dis > enemies[i].speed){
enemies[i].xplus = (Math.cos(ra) * (dis - 0.2));
enemies[i].yplus = (Math.sin(ra) * (dis - 0.2));
};
if ((((enemies[i].xpos < (12.5 + (enemies[i].width / 2)))) && ((enemies[i].xplus < 0)))){
enemies[i].xplus = (enemies[i].xplus * -1);
};
if ((((enemies[i].xpos > (437.5 - (enemies[i].width / 2)))) && ((enemies[i].xplus > 0)))){
enemies[i].xplus = (enemies[i].xplus * -1);
};
if ((((enemies[i].ypos < (20 + enemies[i].width))) && ((enemies[i].yplus < 0)))){
enemies[i].yplus = (enemies[i].yplus * -1);
};
enemies[i].xpos = (enemies[i].xpos + enemies[i].xplus);
enemies[i].ypos = (enemies[i].ypos + enemies[i].yplus);
}
public function extras2(_arg1:Event){
_arg1.currentTarget.buttons.gotoAndStop(1);
}
public function extras(_arg1:Event){
if (_arg1.currentTarget.buttons2.currentFrame == 1){
s7.play(0, 0, stran3);
_arg1.currentTarget.buttons.gotoAndStop(2);
};
}
public function bclick(_arg1:Event){
s8.play(0, 0, stran3);
create_buymenu();
buying = true;
}
public function b3c(_arg1:Event){
s8.play(0, 0, stran3);
navigateToURL(new URLRequest("http://www.onlinehighscores.com/highscores/shapeinvasion.php"), "_blank");
}
public function preef(_arg1:Event){
loadbar.scaleX = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal);
if (((((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) == 1)) && ((playb.visible == false)))){
playb.visible = true;
playb.addEventListener(MouseEvent.CLICK, clickr);
playb.addEventListener(MouseEvent.ROLL_OVER, over1);
playb.addEventListener(MouseEvent.ROLL_OUT, out1);
playb.baseb.gotoAndStop(1);
};
}
public function tt(_arg1:Event){
updates = 0;
}
public function b4c(_arg1:Event){
s8.play(0, 0, stran3);
navigateToURL(new URLRequest("http://www.theextragame.com/?from=1"), "_blank");
}
public function button_gdamage(_arg1:Event){
if ((((costs[13] <= money)) && (!((unavailable[13] == true))))){
damage = (damage + 5);
damageleft = (damageleft - 1);
money = (money - costs[13]);
upgraded();
costs[13] = (costs[13] * moneyfactor);
if (damageleft <= 0){
unavailable[13] = true;
};
};
}
public function button_grate(_arg1:Event){
if ((((costs[12] <= money)) && (!((unavailable[12] == true))))){
rates = (rates * 0.7);
ratesleft--;
upgraded();
money = (money - costs[12]);
costs[12] = (costs[12] * moneyfactor);
if (ratesleft <= 0){
unavailable[12] = true;
};
};
}
public function out1(_arg1:Event){
playb.baseb.gotoAndStop(1);
}
public function button_mdamage(_arg1:Event){
if ((((money >= costs[7])) && (!((unavailable[7] == true))))){
if (damages[3] == 15){
damages[3] = 30;
} else {
if (damages[3] == 30){
damages[3] = 45;
} else {
if (damages[3] == 45){
damages[3] = 60;
unavailable[7] = true;
};
};
};
money = (money - costs[7]);
upgraded();
costs[7] = (costs[7] * moneyfactor);
};
}
public function particles(){
shaketimer = 20;
if (r2 == true){
if (remove == true){
sc = (sc + evalues[enemies[i].types]);
money = (money + evalues[enemies[i].types]);
cash_create();
};
u = 0;
while (u < 9) {
al2 = parts.length;
parts[al2] = new part();
parts[al2].xpos = enemies[i].xpos;
parts[al2].ypos = enemies[i].ypos;
parts[al2].ang = ((Math.random() * Math.PI) * 2);
parts[al2].speed = ((Math.random() * 3) + 4);
parts[al2].timer = ((Math.random() * 20) + 30);
parts[al2].rotation = (Math.random() * 360);
parts[al2].scaleX = ((Math.random() * 1.7) + 0.3);
parts[al2].scaleY = ((Math.random() * 1.7) + 0.3);
addChild(parts[al2]);
u++;
};
};
}
public function key_down(_arg1:KeyboardEvent){
if ((((_arg1.keyCode == 80)) && ((nolives == false)))){
if (pauses == false){
pauses = true;
pausescreen = new pausescreens();
addChild(pausescreen);
} else {
if (pauses == true){
removeChild(pausescreen);
pausescreen = null;
pauses = false;
};
};
};
if (_arg1.keyCode == 81){
life = -1;
};
if ((((_arg1.keyCode == 83)) && (!((stran1.volume == 0))))){
stran1.volume = 0;
stran2.volume = 0;
stran3.volume = 0;
stran4.volume = 0;
SoundMixer.stopAll();
} else {
if ((((_arg1.keyCode == 83)) && ((stran1.volume == 0)))){
stran1.volume = 0.4;
stran2.volume = 0.7;
stran3.volume = 1;
stran4.volume = 1;
s9.play(0, 0, stran4);
};
};
}
public function b5c(_arg1:Event){
navigateToURL(new URLRequest("http://www.theextragame.com/downloads/shape_invasion.php"), "_self");
}
public function easyclick(_arg1:Event){
gotoAndStop(6);
difficulty = 1;
s8.play(0, 0, stran3);
remove2();
}
public function bullet_actions(){
al = bullets.length;
al2 = enemies.length;
i = 0;
while (i < al) {
temp = 0;
while (temp == 0) {
remove = false;
u = 0;
while (u < al2) {
if (enemies[u].hitTestPoint(bullets[i].xpos, bullets[i].ypos)){
remove = true;
delta_x = (enemies[u].x - pointing.x);
delta_y = (enemies[u].y - pointing.y);
dis = ((delta_x * delta_x) + (delta_y * delta_y));
if (dis < 60){
enemies[u].life = (enemies[u].life - (damage * 3.5));
} else {
if (dis < 500){
enemies[u].life = (enemies[u].life - (damage * 2));
} else {
enemies[u].life = (enemies[u].life - damage);
};
};
enemies[u].movement = 2;
enemies[u].mtimer = 25;
if (enemies[u].accel == null){
enemies[u].accel = 1;
};
o = 0;
while (o < 5) {
create_splinter();
o++;
};
if (enemies[u].protect == false){
enemies[u].xplus = (enemies[u].xplus + (Math.cos(bullets[i].ang) * 0.5));
enemies[u].yplus = (enemies[u].yplus + (Math.sin(bullets[i].ang) * 0.5));
} else {
enemies[u].xplus = (enemies[u].xplus + (Math.cos(bullets[i].ang) * 0.15));
enemies[u].yplus = (enemies[u].yplus + (Math.sin(bullets[i].ang) * 0.15));
};
temp = Math.round((Math.random() * 2));
switch (temp){
case 0:
s2a.play(0, 0, stran2);
break;
case 1:
s2c.play(0, 0, stran2);
break;
case 2:
s2b.play(0, 0, stran2);
break;
};
};
u++;
};
bullets[i].xpos = (bullets[i].xpos + (Math.cos(bullets[i].ang) * bullets[i].speed));
bullets[i].ypos = (bullets[i].ypos + (Math.sin(bullets[i].ang) * bullets[i].speed));
bullets[i].x = bullets[i].xpos;
bullets[i].y = bullets[i].ypos;
if (bullets[i].xpos < 12.5){
remove = true;
create_dust(90);
};
if (bullets[i].xpos > 437){
remove = true;
create_dust(270);
};
if (bullets[i].ypos < 37){
remove = true;
};
if (remove == true){
temp = 1;
al2 = bstartx.length;
balpha[al2] = 1;
bstartx[al2] = bullets[i].startx;
bstarty[al2] = bullets[i].starty;
bfinx[al2] = bullets[i].xpos;
bfiny[al2] = bullets[i].ypos;
btime[al2] = 1;
bangle[al2] = bullets[i].ang;
delta_x = (bullets[i].startx - bullets[i].xpos);
delta_y = (bullets[i].starty - bullets[i].ypos);
bdis[al2] = Math.sqrt(((delta_x * delta_x) + (delta_y * delta_y)));
removeChild(bullets[i]);
bullets.splice(i, 1);
i--;
al--;
};
};
i++;
};
al = pbullets.length;
al2 = enemies.length;
i = 0;
while (i < al) {
remove = false;
pbullets[i].xpos = (pbullets[i].xpos + (Math.cos(pbullets[i].ang) * pbullets[i].speed));
pbullets[i].ypos = (pbullets[i].ypos + (Math.sin(pbullets[i].ang) * pbullets[i].speed));
pbullets[i].x = pbullets[i].xpos;
pbullets[i].y = pbullets[i].ypos;
u = 0;
while (u < al2) {
if (enemies[u].hitTestPoint(pbullets[i].xpos, pbullets[i].ypos)){
remove = true;
if (enemies[u].protect == false){
enemies[u].movement = 2;
enemies[u].mtimer = 15;
if (enemies[u].accel == null){
enemies[u].accel = 1;
};
enemies[u].xplus = (enemies[u].xplus + (Math.cos(pbullets[i].ang) * 0.8));
enemies[u].yplus = (enemies[u].yplus + (Math.sin(pbullets[i].ang) * 0.8));
};
};
u++;
};
if (pbullets[i].xpos < 12.5){
if (pbounce == true){
pbullets[i].ang = ((((360 - ((pbullets[i].ang / Math.PI) * 180)) - 180) / 180) * Math.PI);
} else {
remove = true;
};
};
if (pbullets[i].xpos > 437){
if (pbounce == true){
pbullets[i].ang = ((((360 - ((pbullets[i].ang / Math.PI) * 180)) - 180) / 180) * Math.PI);
} else {
remove = true;
};
};
if (pbullets[i].ypos < 37){
remove = true;
};
if (remove == true){
removeChild(pbullets[i]);
pbullets.splice(i, 1);
i--;
al--;
};
i++;
};
al = tbullets.length;
al2 = enemies.length;
i = 0;
while (i < al) {
remove = false;
tbullets[i].xpos = (tbullets[i].xpos + (Math.cos(tbullets[i].ang) * 8));
tbullets[i].ypos = (tbullets[i].ypos + (Math.sin(tbullets[i].ang) * 8));
tbullets[i].x = tbullets[i].xpos;
tbullets[i].y = tbullets[i].ypos;
u = 0;
while (u < al2) {
if (enemies[u].hitTestPoint(tbullets[i].xpos, tbullets[i].ypos)){
enemies[u].life = (enemies[u].life - damages[2]);
remove = true;
};
u++;
};
if (tbullets[i].xpos < 12.5){
remove = true;
};
if (tbullets[i].xpos > 437){
remove = true;
};
if (tbullets[i].ypos < 37){
remove = true;
};
if (remove == true){
removeChild(tbullets[i]);
tbullets.splice(i, 1);
i--;
al--;
};
i++;
};
al = missiles.length;
i = 0;
while (i < al) {
remove = false;
r2 = false;
missiles[i].xpos = (missiles[i].xpos + (Math.cos(missiles[i].ang) * 8));
missiles[i].ypos = (missiles[i].ypos + (Math.sin(missiles[i].ang) * 8));
missiles[i].x = missiles[i].xpos;
missiles[i].y = missiles[i].ypos;
missiles[i].timer--;
if (missiles[i].timer < 0){
create_trails();
missiles[i].timer = 1;
};
al2 = enemies.length;
u = 0;
while (u < al2) {
if (missiles[i].hitTestObject(enemies[u])){
create_explosion();
enemies[u].life = (enemies[u].life - damages[3]);
s4.play(0, 0, stran2);
remove = true;
r2 = true;
};
u++;
};
if (missiles[i].xpos < 12.5){
remove = true;
r2 = true;
create_explosion();
};
if (missiles[i].xpos > 437){
remove = true;
r2 = true;
create_explosion();
};
if (missiles[i].ypos < 37){
remove = true;
};
if (remove == true){
if (r2 == true){
al2 = enemies.length;
o = 0;
while (o < al2) {
delta_x = (enemies[o].xpos - missiles[i].xpos);
delta_y = (enemies[o].ypos - missiles[i].ypos);
dis = Math.sqrt(((delta_x * delta_x) + (delta_y * delta_y)));
if (dis < (blastradius + 1)){
ra = Math.atan2(delta_y, delta_x);
if (enemies[o].protect == false){
enemies[o].xplus = (enemies[o].xplus + (Math.cos(ra) * 2.5));
enemies[o].yplus = (enemies[o].yplus + (Math.sin(ra) * 2.5));
} else {
enemies[o].xplus = (enemies[o].xplus + (Math.cos(ra) * 0.5));
enemies[o].yplus = (enemies[o].yplus + (Math.sin(ra) * 0.5));
};
if (dis < blastradius){
enemies[o].life = (enemies[o].life - (damages[3] / (1 - (dis / blastradius))));
};
};
o++;
};
};
removeChild(missiles[i]);
missiles.splice(i, 1);
i--;
al--;
};
i++;
};
}
public function button_pbounce(_arg1:Event){
if ((((costs[11] <= money)) && (!((unavailable[11] == true))))){
if (pbounce == false){
pbounce = true;
unavailable[11] = true;
};
money = (money - costs[11]);
upgraded();
costs[11] = (costs[11] * moneyfactor);
};
}
public function bckk1(_arg1:Event){
switch (instruct.currentFrame){
case 1:
gotoAndStop(3);
break;
case 2:
instruct.gotoAndStop(1);
break;
case 3:
instruct.nxt.gotoAndStop(1);
instruct.gotoAndStop(2);
break;
};
}
public function shake(){
if (shaketimer > 0){
};
}
public function score_sub(){
if (submitscore != null){
if (submitscore.currentFrame == 1){
names = submitscore.namer.text;
};
};
}
public function mouse_move(_arg1:Event){
}
public function fence_damage(){
temp = 10;
if (enemies[i].xpos < 60){
temp = 0;
} else {
if ((((enemies[i].xpos > 60)) && ((enemies[i].xpos < 105)))){
temp = 1;
} else {
if ((((enemies[i].xpos > 105)) && ((enemies[i].xpos < 150)))){
temp = 2;
} else {
if ((((enemies[i].xpos > 150)) && ((enemies[i].xpos < 195)))){
temp = 3;
} else {
if ((((enemies[i].xpos > 195)) && ((enemies[i].xpos < 240)))){
temp = 4;
} else {
if ((((enemies[i].xpos > 240)) && ((enemies[i].xpos < 285)))){
temp = 5;
} else {
if ((((enemies[i].xpos > 285)) && ((enemies[i].xpos < 330)))){
temp = 6;
} else {
if ((((enemies[i].xpos > 330)) && ((enemies[i].xpos < 375)))){
temp = 7;
} else {
if ((((enemies[i].xpos > 375)) && ((enemies[i].xpos < 440)))){
temp = 8;
};
};
};
};
};
};
};
};
};
if (temp != 10){
if (base[("f" + temp)].currentFrame < 6){
base[("f" + temp)].gotoAndStop((base[("f" + temp)].currentFrame + 1));
};
};
}
public function enemy_actions(){
al = enemies.length;
i = 0;
while (i < al) {
remove = false;
r2 = false;
switch (enemies[i].types){
case 1:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 2:
physics();
r2 = false;
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
if (r2 == true){
if (lifelevel.length > level){
create(2, (enemies[i].x - 15), enemies[i].y, lifelevel[level], 1, 1, ((250 / 180) * Math.PI));
create(2, (enemies[i].x + 15), enemies[i].y, lifelevel[level], 1, 1, ((290 / 180) * Math.PI));
} else {
create(2, (enemies[i].x - 15), enemies[i].y, lifelevel2, 1, 1, ((250 / 180) * Math.PI));
create(2, (enemies[i].x + 15), enemies[i].y, lifelevel2, 1, 1, ((290 / 180) * Math.PI));
};
};
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 3:
if (enemies[i].sp1 == 1){
enemies[i].xpos = (enemies[i].xpos + (Math.cos(enemies[i].ang) * enemies[i].accel));
enemies[i].ypos = (enemies[i].ypos + (Math.sin(enemies[i].ang) * enemies[i].accel));
enemies[i].accel = (enemies[i].accel - 0.2);
if (enemies[i].xpos < (12.5 + (enemies[i].width / 2))){
enemies[i].ang = (1.5 * Math.PI);
};
if (enemies[i].xpos > (437.5 - (enemies[i].width / 2))){
enemies[i].ang = (1.5 * Math.PI);
};
if (enemies[i].accel < 0){
enemies[i].sp1 = 0;
};
} else {
physics();
};
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 4:
if (enemies[i].sp1 == 1){
enemies[i].xpos = (enemies[i].xpos + (Math.cos(enemies[i].ang) * enemies[i].accel));
enemies[i].ypos = (enemies[i].ypos + (Math.sin(enemies[i].ang) * enemies[i].accel));
enemies[i].accel = (enemies[i].accel - 0.2);
if (enemies[i].xpos < (12.5 + (enemies[i].width / 2))){
enemies[i].ang = (1.5 * Math.PI);
};
if (enemies[i].xpos > (437.5 - (enemies[i].width / 2))){
enemies[i].ang = (1.5 * Math.PI);
};
if (enemies[i].accel < 0){
enemies[i].sp1 = 0;
};
} else {
physics();
};
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 5:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
if (r2 == true){
if (lifelevel.length > level){
create(1, enemies[i].x, enemies[i].y, lifelevel[level], 1, 0, 0);
} else {
create(1, enemies[i].x, enemies[i].y, lifelevel2, 1, 0, 0);
};
};
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 6:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 7:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
if (r2 == true){
if (lifelevel.length > level){
create(3, enemies[i].x, enemies[i].y, lifelevel[level], 1, 0, 0);
} else {
create(3, enemies[i].x, enemies[i].y, lifelevel2, 1, 0, 0);
};
};
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 8:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
if (r2 == true){
if (lifelevel.length > level){
create(4, (enemies[i].x - 15), enemies[i].y, lifelevel[level], 1, 1, ((250 / 180) * Math.PI));
create(4, (enemies[i].x + 15), enemies[i].y, lifelevel[level], 1, 1, ((290 / 180) * Math.PI));
} else {
create(4, (enemies[i].x - 15), enemies[i].y, lifelevel2, 1, 1, ((250 / 180) * Math.PI));
create(4, (enemies[i].x + 15), enemies[i].y, lifelevel2, 1, 1, ((290 / 180) * Math.PI));
};
};
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
case 9:
physics();
enemies[i].x = enemies[i].xpos;
enemies[i].y = enemies[i].ypos;
enemies[i].timer--;
if (enemies[i].timer < 0){
if (lifelevel.length > level){
create(1, enemies[i].x, enemies[i].y, lifelevel[level], 1, 0, 0);
} else {
create(1, enemies[i].x, enemies[i].y, lifelevel2, 1, 0, 0);
};
enemies[(enemies.length - 1)].yplus = (Math.random() * 3);
enemies[(enemies.length - 1)].xplus = (Math.random() * 3);
enemies[i].timer = 100;
};
if (enemies[i].life < 1){
remove = true;
r2 = true;
};
if (enemies[i].y > 550){
remove = true;
};
if (remove == true){
particles();
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
};
break;
};
if ((((((r2 == false)) && ((remove == false)))) && ((enemies[i].ypos > 480)))){
fence_damage();
remove = false;
r2 = true;
particles();
life = (life - 5);
removeChild(enemies[i]);
enemies.splice(i, 1);
i--;
al--;
r2 = false;
};
i++;
};
}
public function button_mblast(_arg1:Event){
if ((((money >= costs[8])) && (!((unavailable[8] == true))))){
if (blastradius == 50){
blastradius = 80;
} else {
if (blastradius == 80){
blastradius = 120;
unavailable[8] = true;
};
};
money = (money - costs[8]);
upgraded();
costs[8] = (costs[8] * moneyfactor);
};
}
public function create_bullets(){
al = bullets.length;
bullets[al] = new bullet1();
bullets[al].gotoAndStop(1);
bullets[al].ang = ra;
bullets[al].speed = 5;
bullets[al].xpos = gun.x;
bullets[al].ypos = gun.y;
bullets[al].startx = gun.x;
bullets[al].starty = gun.y;
bullets[al].cacheAsBitmap = true;
bullets[al].rotation = ((ra / Math.PI) * 180);
addChild(bullets[al]);
}
public function bullet_paths(){
al = bstartx.length;
bpaths.graphics.clear();
i = 0;
while (i < al) {
startdis = ((((bdis[i] / 3) * (btime[i] - 1)) + (Math.random() * 10)) - 5);
enddis = ((((bdis[i] / 3) * btime[i]) + (Math.random() * 10)) - 5);
bpaths.graphics.moveTo((bstartx[i] + (Math.cos(bangle[i]) * startdis)), (bstarty[i] + (Math.sin(bangle[i]) * startdis)));
if (pointing != null){
switch (pointing.currentFrame){
case 1:
bpaths.graphics.lineStyle(1.49, 0xFFFFFF, balpha[i]);
break;
case 2:
bpaths.graphics.lineStyle(2, 0xFFFFFF, balpha[i]);
break;
case 3:
bpaths.graphics.lineStyle(4, 0xFFFFFF, balpha[i]);
break;
};
} else {
bpaths.graphics.lineStyle(1.49, 0xFFFFFF, balpha[i]);
};
bpaths.graphics.lineTo((bstartx[i] + (Math.cos(bangle[i]) * enddis)), (bstarty[i] + (Math.sin(bangle[i]) * enddis)));
var _local1 = btime;
var _local2 = i;
var _local3 = (_local1[_local2] + 1);
_local1[_local2] = _local3;
if (btime[i] >= 4){
bstartx.splice(i, 1);
bstarty.splice(i, 1);
bfinx.splice(i, 1);
bfiny.splice(i, 1);
balpha.splice(i, 1);
btime.slice(i, 1);
bangle.splice(i, 1);
bdis.splice(i, 1);
i--;
al--;
};
i++;
};
}
public function hardclick(_arg1:Event){
gotoAndStop(6);
difficulty = 3;
s8.play(0, 0, stran3);
remove2();
}
public function button_mrate(_arg1:Event){
if ((((money >= costs[6])) && (!((unavailable[6] == true))))){
if (shootrates[3] == 300){
shootrates[3] = 220;
} else {
if (shootrates[3] == 220){
shootrates[3] = 140;
unavailable[6] = true;
};
};
money = (money - costs[6]);
upgraded();
costs[6] = (costs[6] * moneyfactor);
};
}
public function cash_create(){
al2 = cashobjects.length;
cashobjects[al2] = new cashup();
cashobjects[al2].x = enemies[i].x;
cashobjects[al2].y = enemies[i].y;
cashobjects[al2].cashtxt.text = ("$" + evalues[enemies[i].types]);
cashobjects[al2].timer = 50;
cashobjects[al2].timer2 = 40;
addChild(cashobjects[al2]);
}
public function create_explosion(){
al3 = exs.length;
exs[al3] = new explosion();
exs[al3].x = missiles[i].x;
exs[al3].y = missiles[i].y;
exs[al3].scaleX = (blastradius / 100);
exs[al3].scaleY = (blastradius / 100);
exs[al3].timer = 14;
addChild(exs[al3]);
}
public function pointer_dis(){
if (pointing != null){
al = enemies.length;
pointing.gotoAndStop(1);
i = 0;
while (i < al) {
delta_x = (enemies[i].x - pointing.x);
delta_y = (enemies[i].y - pointing.y);
dis = ((delta_x * delta_x) + (delta_y * delta_y));
if (dis < 60){
pointing.gotoAndStop(3);
i = 100000;
} else {
if (dis < 500){
pointing.gotoAndStop(2);
i = 100000;
};
};
i++;
};
};
}
public function nxtt1(_arg1:Event){
switch (instruct.currentFrame){
case 1:
instruct.gotoAndStop(2);
break;
case 2:
instruct.gotoAndStop(3);
break;
case 3:
instruct.nxt.gotoAndStop(2);
gotoAndStop(3);
break;
};
}
public function submit_score(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
navigateToURL(new URLRequest(("http://www.onlinehighscores.com/highscores/shapeinvasion.php?date=2&type=" + difficulty)), "_blank");
_local2 = Math.round(((Math.sin((sc * 23)) / 29) * 5743));
if (_local2 < 0){
_local2 = (_local2 * -1);
};
_local3 = new URLRequest(((((((((((((("http://www.onlinehighscores.com/database/shapeinvasion/insert.php?names=" + names) + "&level=") + level) + "&score=") + sc) + "&ident=") + _local2) + "&dif=") + difficulty) + "&ident2=") + Math.round((Math.random() * 100))) + "&encrypl=") + Math.round((Math.random() * 1000))));
_local4 = new URLLoader();
_local4.load(_local3);
submitscore.submit.removeEventListener(MouseEvent.ROLL_OVER, rover);
submitscore.submit.removeEventListener(MouseEvent.ROLL_OUT, rout);
submitscore.gotoAndStop(2);
}
public function continue_out(_arg1:Event){
buymen.cont.gotoAndStop(1);
}
public function ef2(_arg1:Event){
if (buying == false){
if (pauses == false){
bullet_paths();
if (gunfire == false){
gun.gotoAndStop(1);
};
if (gunfire == true){
gunfire = false;
};
};
};
}
public function create_trails(){
al2 = trails.length;
trails[al2] = new trail();
trails[al2].x = missiles[i].x;
trails[al2].y = missiles[i].y;
trails[al2].timer = 19;
addChild(trails[al2]);
}
public function create_missiles(){
al = missiles.length;
missiles[al] = new missile();
missiles[al].gotoAndStop(1);
missiles[al].ang = ra;
missiles[al].speed = 5;
missiles[al].xpos = towers[i].x;
missiles[al].ypos = towers[i].y;
missiles[al].cacheAsBitmap = true;
missiles[al].rotation = ((ra / Math.PI) * 180);
missiles[al].timer = 7;
addChild(missiles[al]);
}
public function clickr(_arg1:Event){
if (load2.data != null){
looad();
};
stage.removeEventListener("enterFrame", preef);
playb.removeEventListener(MouseEvent.ROLL_OVER, over1);
playb.removeEventListener(MouseEvent.ROLL_OUT, out1);
s8.play(0, 0, stran3);
gotoAndPlay(2);
}
public function continue_click(_arg1:Event){
s8.play(0, 0, stran3);
remove_buymenu();
buying = false;
}
public function cash_actions(){
al = cashobjects.length;
i = 0;
while (i < al) {
cashobjects[i].y--;
cashobjects[i].timer2--;
cashobjects[i].timer;
if (cashobjects[i].timer2 < 0){
cashobjects[i].alpha = (cashobjects[i].alpha - 0.1);
};
if (cashobjects[i].timer < 0){
removeChild(cashobjects[i]);
cashobjects.splice(i, 1);
};
i++;
};
}
public function mouse_down(_arg1:Event){
shooting = true;
}
}
}//package shapeinvasion_fla
Section 26
//mn2_62 (shapeinvasion_fla.mn2_62)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class mn2_62 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 27
//mn3_63 (shapeinvasion_fla.mn3_63)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class mn3_63 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 28
//mn4_64 (shapeinvasion_fla.mn4_64)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class mn4_64 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 29
//next_19 (shapeinvasion_fla.next_19)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class next_19 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 30
//normal_67 (shapeinvasion_fla.normal_67)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class normal_67 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 31
//nxt_71 (shapeinvasion_fla.nxt_71)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class nxt_71 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 32
//repair_51 (shapeinvasion_fla.repair_51)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class repair_51 extends MovieClip {
public var buttons:MovieClip;
public var buttons2:MovieClip;
}
}//package shapeinvasion_fla
Section 33
//submitb_85 (shapeinvasion_fla.submitb_85)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class submitb_85 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 34
//Symbol11_58 (shapeinvasion_fla.Symbol11_58)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class Symbol11_58 extends MovieClip {
public function Symbol11_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package shapeinvasion_fla
Section 35
//Symbol6_15 (shapeinvasion_fla.Symbol6_15)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class Symbol6_15 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 36
//topbar_79 (shapeinvasion_fla.topbar_79)
package shapeinvasion_fla {
import flash.display.*;
import flash.text.*;
public dynamic class topbar_79 extends MovieClip {
public var scores:TextField;
public var lifebar:MovieClip;
public var moneys:TextField;
}
}//package shapeinvasion_fla
Section 37
//viewhs_87 (shapeinvasion_fla.viewhs_87)
package shapeinvasion_fla {
import flash.display.*;
public dynamic class viewhs_87 extends MovieClip {
public var baseb:MovieClip;
}
}//package shapeinvasion_fla
Section 38
//betweenmenu (betweenmenu)
package {
import flash.display.*;
import flash.text.*;
public dynamic class betweenmenu extends MovieClip {
public var next:MovieClip;
public var ltxt:TextField;
public var buy:MovieClip;
public var percents:TextField;
}
}//package
Section 39
//bullet1 (bullet1)
package {
import flash.display.*;
public class bullet1 extends MovieClip {
public var xpos;
public var ypos;
public var starty;
public var startx;
public var speed;
public var ang;
public function bullet1(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 40
//buymenu (buymenu)
package {
import flash.display.*;
public dynamic class buymenu extends MovieClip {
public var pbounce:MovieClip;
public var mdamage:MovieClip;
public var cont:MovieClip;
public var pdouble:MovieClip;
public var stower:MovieClip;
public var pdensity:MovieClip;
public var ptower:MovieClip;
public var gdamage:MovieClip;
public var sdamage:MovieClip;
public var repair:MovieClip;
public var mblast:MovieClip;
public var mtower:MovieClip;
public var mrate:MovieClip;
public var grate:MovieClip;
public var upgraded:MovieClip;
public var srate:MovieClip;
}
}//package
Section 41
//cashup (cashup)
package {
import flash.display.*;
import flash.text.*;
public dynamic class cashup extends MovieClip {
public var cashtxt:TextField;
}
}//package
Section 42
//circle (circle)
package {
import flash.display.*;
public dynamic class circle extends MovieClip {
}
}//package
Section 43
//circletri (circletri)
package {
import flash.display.*;
public dynamic class circletri extends MovieClip {
}
}//package
Section 44
//crunch (crunch)
package {
import flash.media.*;
public dynamic class crunch extends Sound {
}
}//package
Section 45
//dust (dust)
package {
import flash.display.*;
public dynamic class dust extends MovieClip {
}
}//package
Section 46
//explode1 (explode1)
package {
import flash.media.*;
public dynamic class explode1 extends Sound {
}
}//package
Section 47
//explosion (explosion)
package {
import flash.display.*;
public dynamic class explosion extends MovieClip {
}
}//package
Section 48
//gun2 (gun2)
package {
import flash.media.*;
public dynamic class gun2 extends Sound {
}
}//package
Section 49
//hex (hex)
package {
import flash.display.*;
public dynamic class hex extends MovieClip {
}
}//package
Section 50
//knock (knock)
package {
import flash.media.*;
public dynamic class knock extends Sound {
}
}//package
Section 51
//laser3 (laser3)
package {
import flash.media.*;
public dynamic class laser3 extends Sound {
}
}//package
Section 52
//missile (missile)
package {
import flash.display.*;
public dynamic class missile extends MovieClip {
}
}//package
Section 53
//mtower (mtower)
package {
import flash.display.*;
public dynamic class mtower extends MovieClip {
public var gun:MovieClip;
}
}//package
Section 54
//music (music)
package {
import flash.media.*;
public dynamic class music extends Sound {
}
}//package
Section 55
//part (part)
package {
import flash.display.*;
public dynamic class part extends MovieClip {
public var xpos;
public var ypos;
public var ang;
public function part(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 56
//pausescreens (pausescreens)
package {
import flash.display.*;
public dynamic class pausescreens extends MovieClip {
}
}//package
Section 57
//pbullet (pbullet)
package {
import flash.display.*;
public dynamic class pbullet extends MovieClip {
}
}//package
Section 58
//plank (plank)
package {
import flash.display.*;
public dynamic class plank extends MovieClip {
}
}//package
Section 59
//plasma (plasma)
package {
import flash.media.*;
public dynamic class plasma extends Sound {
}
}//package
Section 60
//pulsetower (pulsetower)
package {
import flash.display.*;
public dynamic class pulsetower extends MovieClip {
}
}//package
Section 61
//rect (rect)
package {
import flash.display.*;
public dynamic class rect extends MovieClip {
public var life;
public var types;
public function rect(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 62
//rectcircle (rectcircle)
package {
import flash.display.*;
public dynamic class rectcircle extends MovieClip {
}
}//package
Section 63
//splinter (splinter)
package {
import flash.display.*;
public dynamic class splinter extends MovieClip {
}
}//package
Section 64
//square (square)
package {
import flash.display.*;
public dynamic class square extends MovieClip {
public var xpos;
public var life;
public var ypos;
public var timer;
public var sp1;
public var types;
public var ang;
public var accel;
public function square(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package
Section 65
//ss1 (ss1)
package {
import flash.media.*;
public dynamic class ss1 extends Sound {
}
}//package
Section 66
//ss2a (ss2a)
package {
import flash.media.*;
public dynamic class ss2a extends Sound {
}
}//package
Section 67
//ss2b (ss2b)
package {
import flash.media.*;
public dynamic class ss2b extends Sound {
}
}//package
Section 68
//ss2c (ss2c)
package {
import flash.media.*;
public dynamic class ss2c extends Sound {
}
}//package
Section 69
//stower (stower)
package {
import flash.display.*;
public dynamic class stower extends MovieClip {
public var gun:MovieClip;
}
}//package
Section 70
//submiter (submiter)
package {
import flash.display.*;
import flash.text.*;
public dynamic class submiter extends MovieClip {
public var menus:MovieClip;
public var submit:MovieClip;
public var scores:TextField;
public var namer:TextField;
public var viewhs:MovieClip;
public var playmore:MovieClip;
public var playmore2:MovieClip;
}
}//package
Section 71
//supercircle (supercircle)
package {
import flash.display.*;
public dynamic class supercircle extends MovieClip {
}
}//package
Section 72
//Symbol10 (Symbol10)
package {
import flash.display.*;
public dynamic class Symbol10 extends MovieClip {
}
}//package
Section 73
//tbullet (tbullet)
package {
import flash.display.*;
public dynamic class tbullet extends MovieClip {
}
}//package
Section 74
//trail (trail)
package {
import flash.display.*;
public dynamic class trail extends MovieClip {
}
}//package
Section 75
//triangle (triangle)
package {
import flash.display.*;
public dynamic class triangle extends MovieClip {
public var life;
public var types;
public function triangle(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package