Section 1
//as3_shared_objects (classesAS3.as3_shared_objects)
package classesAS3 {
import flash.net.*;
import flash.text.*;
import flash.display.*;
public class as3_shared_objects extends Sprite {
var shared:SharedObject;
public function as3_shared_objects(){
super();
shared = SharedObject.getLocal("qfpreloaded2");
if (shared.data.visits == undefined){
shared.data.visits = 1;
shared.data.levelNumber = 1;
shared.data.score = 0;
};
shared.close();
}
public function show_text(str){
var shared_text:TextField;
var format:TextFormat;
shared_text = new TextField();
format = new TextFormat();
format.font = "Lucida Console";
format.color = 0xFFFF00;
shared_text.width = 300;
shared_text.defaultTextFormat = format;
shared_text.x = 25;
shared_text.y = 15;
addChild(shared_text);
shared_text.appendText((("You visited this page " + str) + " times"));
}
public function saveGameCookie(score, level){
shared = SharedObject.getLocal("qfpreloaded2");
shared.data.levelNumber = level;
shared.data.score = score;
shared.close();
}
public function newGame(){
var levelData:Object;
shared = SharedObject.getLocal("qfpreloaded2");
shared.data.visits++;
shared.data.levelNumber = 1;
shared.data.score = 0;
levelData = new Object();
levelData.visits = shared.data.visits;
levelData.levelNumber = shared.data.levelNumber;
levelData.score = shared.data.score;
shared.close();
return (levelData);
}
public function loadOldGame(){
var levelData:Object;
shared = SharedObject.getLocal("qfpreloaded2");
levelData = new Object();
if (shared.data.visits != undefined){
levelData.visits = shared.data.visits;
levelData.levelNumber = shared.data.levelNumber;
levelData.score = shared.data.score;
} else {
levelData.visits++;
levelData.levelNumber = 1;
levelData.score = 0;
};
shared.close();
return (levelData);
}
}
}//package classesAS3
Section 2
//GameAlienBoss (classesAS3.GameAlienBoss)
package classesAS3 {
import flash.display.*;
public class GameAlienBoss extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mReleaseMc2:MovieClip;
public var mReleaseMc3:MovieClip;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var mySmoke;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameAlienBoss(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 3
//GameAlienWalker (classesAS3.GameAlienWalker)
package classesAS3 {
import flash.display.*;
public class GameAlienWalker extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameAlienWalker(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 4
//GameArcher1 (classesAS3.GameArcher1)
package classesAS3 {
import flash.display.*;
public class GameArcher1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameArcher1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myParent.removeChild(this);
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -250){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 5
//GameBadArcher1 (classesAS3.GameBadArcher1)
package classesAS3 {
import flash.display.*;
public class GameBadArcher1 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameBadArcher1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 6
//GameBadArcher2 (classesAS3.GameBadArcher2)
package classesAS3 {
import flash.display.*;
public class GameBadArcher2 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameBadArcher2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 7
//GameBadGuy (classesAS3.GameBadGuy)
package classesAS3 {
import classesAS3.*;
import flash.filters.*;
import flash.display.*;
import flash.media.*;
class GameBadGuy {
var justAppeared:Boolean;
var xVel:Number;// = 0
var myDamageDelay:Number;
var delayToFire2:Number;// = 0
var hitVel;
var yPos:Number;// = 0
var cArraylength:Number;
public var myCoinValue:Number;// = 0
var inToGround:Number;
var myOldAnimationState:Number;
public var shipBossHead1:MovieClip;// = null
var numberOfMissiles;// = 0
public var soldierState:int;
var myDamage:Number;
var myArmour:Number;
var range:Number;
var energyMc:MovieClip;
var shipBossMoveArray:Array;
public var rt:Object;
var speed:Number;// = 0
var gravity:Number;
var delayToMove:Number;
var yDir:Number;
var collisionArray:Array;
var myName:String;
var movedLoops:Number;// = 0
var projectileMc:Object;
var speedOld:Number;
var energyBarMc:GameEnergyBar;
var dead:Boolean;
var glowFilter:GlowFilter;
var yVel:Number;// = 0
public var shieldOn:Boolean;// = false
var plantBossMoveArray:Array;
var distanceArray:Array;
public var carBossHead1:MovieClip;// = null
var myParent:Object;
var mC:Object;
public var energy:Number;// = 0
public var subBossHead1:MovieClip;// = null
var moveIndex:Number;// = 0
var shieldDelay:Number;// = 300
var alienBossMoveArray:Array;
public var frozen:Boolean;// = false
var myFireDelay:Number;
var carBossMoveArray:Array;
var energyBarOn:Number;
var myProjectile:String;
var Useful:GameUseful;
public var plantBossHead1:MovieClip;// = null
var energyStart:Number;// = 0
var subBossMoveArray:Array;
var xPos:Number;// = 0
var xOrigin:Number;// = 0
var headHitBlock:Object;
var delayToMove2:Number;// = 0
public var currentMapIndexX:Number;
var myScoreValue:Number;
var missileName:String;
var delayToFireMissile:Number;// = 1
public var plantBossHead3:MovieClip;// = null
public var currentMapIndexY:Number;
public var plantBossHead2:MovieClip;// = null
public var alienBossHead1:MovieClip;// = null
var targetX:Number;
var targetY:Number;
public var myCurrentSound:SoundChannel;
var filterDelay:Number;
var myRange:Number;
var xDir:Number;
var collisionCheck:Number;
var yOrigin:Number;// = 0
public static const SOLDIER_STATE_DEFEND:int = 1;
public static const SOLDIER_STATE_FALLING:int = 4;
public static const SOLDIER_E_MOVE:int = 5;
public static const SOLDIER_STATE_RETREAT:int = 3;
public static const SOLDIER_E_STAND:int = 0;
public static const SOLDIER_STATE_ATTACK:int = 0;
public static const SOLDIER_E_BUILD:int = 2;
public static const SOLDIER_STATE_MOVE:int = 5;
public static const SOLDIER_STATE_FIGHTING:int = 2;
function GameBadGuy(myN, rt2, xStart, yStart, mcc, uu, sp, myScore, dM, myP, myC){
var rangeVary:Number;
var mapXYObject:Object;
var carBossMove0:Array;
var carBossMove1:Array;
var carBossMove2:Array;
var carBossMove3:Array;
var carBossMove4:Array;
var alienBossMove0:Array;
var alienBossMove1:Array;
var alienBossMove2:Array;
var alienBossMove3:Array;
var alienBossMove4:Array;
var plantBossMove0:Array;
var plantBossMove1:Array;
var subBossMove0:Array;
var shipBossMove0:Array;
var shipBossMove1:Array;
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
speed = 0;
energyStart = 0;
energy = 0;
delayToFireMissile = 1;
numberOfMissiles = 0;
frozen = false;
myCoinValue = 0;
moveIndex = 0;
delayToMove2 = 0;
delayToFire2 = 0;
movedLoops = 0;
plantBossHead1 = null;
plantBossHead2 = null;
plantBossHead3 = null;
carBossHead1 = null;
subBossHead1 = null;
alienBossHead1 = null;
shipBossHead1 = null;
shieldDelay = 300;
shieldOn = false;
super();
mC = mcc;
mC.myObject = this;
rt = rt2;
myProjectile = myP;
myCoinValue = myC;
cArraylength = 4;
myDamage = dM;
myArmour = 1;
if (mC.myType == "badArcher1"){
myFireDelay = uu.RandomNumber(30, 60);
myRange = 340;
myArmour = 4;
} else {
if (mC.myType == "badKnight1"){
myFireDelay = uu.RandomNumber(30, 40);
myRange = 410;
myArmour = 4;
} else {
if (mC.myType == "badKnight3"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
myArmour = 1.3;
} else {
if (mC.myType == "viking1"){
myFireDelay = uu.RandomNumber(50, 70);
myRange = 420;
myArmour = 12;
} else {
if (mC.myType == "badArcher2"){
myFireDelay = uu.RandomNumber(10, 30);
myRange = 450;
myArmour = 3;
} else {
if (mC.myType == "badKnight3"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 140;
} else {
if (mC.myType == "ram"){
myFireDelay = 200;
myRange = 450;
myArmour = 8;
} else {
if (mC.myType == "dragon"){
myFireDelay = 150;
myRange = 500;
myArmour = 15;
} else {
if (mC.myType == "bird"){
myFireDelay = uu.RandomNumber(40, 50);
myRange = 450;
myArmour = 10;
} else {
if (mC.myType == "badKnight2"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
myArmour = 0.1;
} else {
if (mC.myType == "carBoss"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
myArmour = 80;
} else {
if (mC.myType == "plantBoss"){
myFireDelay = 200;
myRange = 120;
myArmour = 60;
} else {
if (mC.myType == "subBoss"){
myFireDelay = uu.RandomNumber(80, 120);
shieldDelay = uu.RandomNumber(80, 220);
myRange = 120;
myArmour = 80;
} else {
if (mC.myType == "shipBoss"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
myArmour = 80;
} else {
if (mC.myType == "alienBoss"){
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
myArmour = 70;
} else {
myFireDelay = uu.RandomNumber(80, 120);
myRange = 120;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
Useful = uu;
myScoreValue = myScore;
rangeVary = Useful.RandomNumber(1, 10);
rangeVary = (rangeVary - 10);
collisionArray = new Array();
dead = false;
inToGround = 0;
xOrigin = xStart;
yOrigin = yStart;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
myParent = mC.myParent;
hitVel = 0;
energyBarOn = 0;
gravity = 0.1;
rangeVary = Useful.RandomNumber(1, 10);
rangeVary = (rangeVary / 120);
sp = (sp + rangeVary);
speed = sp;
speedOld = sp;
xDir = -1;
mC.scaleX = 1;
distanceArray = new Array();
glowFilter = new GlowFilter(0xFFFFFF, 1, 3, 3, 3, 1);
numberOfMissiles = 0;
myDamageDelay = 8;
energyStart = 100;
energy = energyStart;
soldierState = SOLDIER_STATE_ATTACK;
filterDelay = 1;
myName = myN;
collisionCheck = 0;
delayToMove = 0;
if (mC.myType == "subBoss"){
mC.gotoAndStop("stand");
} else {
mC.gotoAndStop("run");
};
updatePosition();
targetX = mC.x;
myOldAnimationState = mC.currentFrame;
mapXYObject = getCurrentMapIndex(mC);
currentMapIndexX = mapXYObject.indexX;
currentMapIndexY = mapXYObject.indexY;
carBossMove0 = new Array(0, 0, -2, 0, 150);
carBossMove1 = new Array(80, 0, 0, -2, 50);
carBossMove2 = new Array(80, 0, 0, 2, 50);
carBossMove3 = new Array(80, 0, 0, 2, 50);
carBossMove4 = new Array(80, 0, 0, -2, 50);
alienBossMove0 = new Array(0, 0, -2, 0, 150);
alienBossMove1 = new Array(80, 0, 0, -2, 30);
alienBossMove2 = new Array(80, 0, 0, 2, 30);
alienBossMove3 = new Array(80, 0, 0, 2, 40);
alienBossMove4 = new Array(80, 0, 0, -2, 40);
plantBossMove0 = new Array(0, 0, -4, 0, 80);
plantBossMove1 = new Array(80000, 100, 0, -2, 50);
subBossMove0 = new Array(200, 0, 0, 0, 100);
shipBossMove0 = new Array(0, 0, -4, 0, 90);
shipBossMove1 = new Array(80000, 100, 0, -2, 50);
carBossMoveArray = new Array(carBossMove0, carBossMove1, carBossMove2, carBossMove3, carBossMove4);
plantBossMoveArray = new Array(plantBossMove0, plantBossMove1);
shipBossMoveArray = new Array(shipBossMove0, shipBossMove1);
subBossMoveArray = new Array(subBossMove0, plantBossMove1);
alienBossMoveArray = new Array(alienBossMove0, alienBossMove1, alienBossMove2, alienBossMove3, alienBossMove4);
}
function updatePosition(){
if (frozen == false){
xVel = (xDir * speed);
xPos = (xPos + hitVel);
hitVel = 0;
xPos = (xPos + xVel);
yPos = (yPos + yVel);
mC.x = (xOrigin + xPos);
mC.y = (yOrigin + yPos);
if (mC.x < -50){
rt.aliensLeft--;
remove();
};
};
}
function checkIfInRange(){
var mapXYObject:Object;
if (mC.x > (rt.movieWidth - (rt.blockSize / 2))){
updatePosition();
} else {
mapXYObject = getCurrentMapIndex(mC);
currentMapIndexX = mapXYObject.indexX;
currentMapIndexY = mapXYObject.indexY;
if (checkForMines()){
findEnemy(mapXYObject.indexX, mapXYObject.indexY);
if (distanceArray.length != 0){
if (distanceArray[0].distSprite.myObject.myProjectile == "no_fire"){
if (distanceArray[0].dist < rt.blockSize){
soldierState = SOLDIER_STATE_FIGHTING;
checkForFire();
} else {
soldierState = SOLDIER_STATE_ATTACK;
if (mC.currentFrame != 2){
mC.gotoAndStop("run");
};
updatePosition();
};
} else {
if (distanceArray[0].distSprite == rt.civMc){
if (distanceArray[0].dist < (myRange + 100)){
soldierState = SOLDIER_STATE_FIGHTING;
checkForFire();
updatePosition();
} else {
soldierState = SOLDIER_STATE_ATTACK;
if (mC.currentFrame != 2){
mC.gotoAndStop("run");
};
updatePosition();
};
} else {
if (distanceArray[0].dist < myRange){
soldierState = SOLDIER_STATE_FIGHTING;
checkForFire();
} else {
soldierState = SOLDIER_STATE_ATTACK;
if (mC.currentFrame != 2){
mC.gotoAndStop("run");
};
updatePosition();
};
};
};
} else {
soldierState = SOLDIER_STATE_ATTACK;
if (mC.currentFrame != 2){
mC.gotoAndStop("run");
};
updatePosition();
};
};
};
}
function applyGravity(){
yVel = (yVel + gravity);
}
function getCurrentMapIndex(spriteObject):Object{
var mapXYIndex:Object;
var sprX:Number;
var sprY:Number;
mapXYIndex = new Object();
sprX = int((spriteObject.x / rt.blockSize));
mapXYIndex.indexX = sprX;
sprX = (sprX * rt.blockSize);
mapXYIndex.xPos = sprX;
sprY = int((spriteObject.y / rt.blockSizeY));
mapXYIndex.indexY = sprY;
sprY = (sprY * rt.blockSizeY);
mapXYIndex.yPos = sprY;
return (mapXYIndex);
}
public function fireProjectile2(localMc){
var targetObj:Object;
var spriteData:Object;
var yStart:Number;
var missileSpeed:Number;
var newXY:Object;
if (rt.rt.gameState != 5){
if (rt.rt.gameState != 4){
if (distanceArray.length > 0){
targetObj = distanceArray[0].distSprite;
yStart = 0;
missileSpeed = 6;
if (energy < 30){
missileSpeed = 8;
} else {
if (energy < 60){
missileSpeed = 6;
};
};
if (myName == "plantBoss"){
projectileMc = new GameLaserSaucer();
missileSpeed = 6;
} else {
if (myName == "carBoss"){
projectileMc = new GameHeavyTankMissile();
} else {
if (myName == "alienBoss"){
projectileMc = new GameLaserBig();
} else {
if (myName == "shipBoss"){
projectileMc = new GameLaserBig();
missileSpeed = (missileSpeed + 2);
} else {
projectileMc = new GameHeavyTankMissile();
};
};
};
};
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(localMc);
if (myProjectile == "grenade"){
spriteData = Useful.getArcVelocity(1, 20, newXY.newX, newXY.newY, targetObj.x, (targetObj.y - 10));
} else {
spriteData = Useful.pointTowards(targetObj.x, targetObj.y, newXY.newX, newXY.newY);
};
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, myProjectile, Useful, spriteData, missileSpeed, this, myDamage, 0, currentMapIndexY));
};
};
};
}
function bossFindEnemy(){
var tempArray:Array;
var i1:*;
var ii:Number;
var distanceObject:Object;
var storeGoodGuy:*;
var yy:*;
distanceArray = new Array();
tempArray = new Array();
i1 = 0;
while (i1 < rt.goodGuysArray.length) {
storeGoodGuy = false;
yy = rt.goodGuysArray[i1].mC.y;
yy = int((yy / rt.blockSizeY));
if (yy != 4){
if (rt.goodGuysArray[i1].myProjectile != "no_fire"){
storeGoodGuy = true;
};
} else {
if (rt.goodGuysArray[i1].myProjectile != "no_fire"){
if (rt.goodGuysArray[i1].mC.myType == "kingGood"){
storeGoodGuy = true;
};
};
};
if (storeGoodGuy == true){
tempArray.push(rt.goodGuysArray[i1]);
};
i1++;
};
ii = Useful.RandomNumber(1, tempArray.length);
ii--;
distanceObject = new Object();
distanceObject.distSprite = tempArray[ii].mC;
distanceArray.push(distanceObject);
}
public function fireProjectile3(localMc){
var targetObj:Object;
var spriteData:Object;
var yStart:Number;
var missileSpeed:Number;
var newXY:Object;
if (rt.rt.gameState != 5){
if (rt.rt.gameState != 4){
if (distanceArray.length > 0){
targetObj = distanceArray[0].distSprite;
yStart = 0;
missileSpeed = 10;
projectileMc = new GameHeavyTankMissile();
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(localMc);
spriteData = Useful.getArcVelocity(0.5, 10, newXY.newX, newXY.newY, targetObj.x, (targetObj.y - 10));
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, "grenade", Useful, spriteData, missileSpeed, this, myDamage, 0, currentMapIndexY));
};
};
};
}
function checkForMines():Boolean{
var collisionMc:*;
var tileObject:*;
tileObject = rt.Tiles.getMapTile(currentMapIndexX, currentMapIndexY);
if (tileObject.usage == "object"){
collisionMc = tileObject.tile;
if (collisionMc.myType == "mine"){
if (mC.hitTestObject(collisionMc)){
myDamageDelay = 1;
decreaseEnergy(100);
collisionMc.myObject.myDamageDelay = 1;
collisionMc.myObject.decreaseEnergy(150, this);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 17, 2, 20, true, false, false, 8, 4, collisionMc.goodBad, currentMapIndexY, myCoinValue));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 40, true, false, false, 8, 0, collisionMc.goodBad, currentMapIndexY, myCoinValue));
return (false);
};
};
};
return (true);
}
function findEnemy(mapIndexX, mapIndexY){
var distanceGoodKing:Object;
var collisionMc:*;
var i2:int;
var distanceObject:Object;
var tileObject:*;
distanceArray = new Array();
distanceGoodKing = new Object();
i2 = mapIndexX;
while (i2 >= 0) {
distanceObject = new Object();
tileObject = rt.Tiles.getMapTile(i2, mapIndexY);
if (tileObject.usage == "object"){
collisionMc = tileObject.tile;
if (collisionMc.myType != "mine"){
distanceObject.distSprite = collisionMc;
if (distanceObject.distSprite != rt.mainSoldier.mC){
distanceObject.dist = Useful.getDistance(mC.x, mC.y, distanceObject.distSprite.x, distanceObject.distSprite.y);
distanceArray.push(distanceObject);
break;
};
};
};
i2--;
};
if (rt.civMc != null){
if (mC.x > rt.civMc.x){
distanceObject = new Object();
distanceObject.distSprite = rt.civMc;
distanceObject.dist = Useful.getDistance(mC.x, mC.y, distanceObject.distSprite.x, distanceObject.distSprite.y);
distanceArray.push(distanceObject);
distanceArray.sortOn("dist", Array.NUMERIC);
};
};
}
function updatePosition2(){
var oldX:*;
var oldY:*;
xPos = (xPos + xVel);
yPos = (yPos + yVel);
oldX = mC.x;
oldY = mC.y;
mC.x = (xOrigin + xPos);
mC.y = (yOrigin + yPos);
}
public function increaseEnergy(damage){
var barRatio:Number;
energy = (energy + damage);
if (energy > 100){
energy = 100;
};
barRatio = (400 / 100);
rt.timerClip.timer.x = -(((100 - energy) * barRatio));
}
function updatePosition3(speedX, speedY){
if (frozen == false){
xVel = speedX;
yVel = speedY;
xPos = (xPos + hitVel);
hitVel = 0;
xPos = (xPos + xVel);
yPos = (yPos + yVel);
mC.x = (xOrigin + xPos);
mC.y = (yOrigin + yPos);
if (mC.x < -50){
rt.aliensLeft--;
remove();
};
};
}
function moveCarBoss(moveArray){
var myMove:Array;
var delayMove:Number;
var delayFire:Number;
var xMove:Number;
var yMove:Number;
var loopsToMove:Number;
myMove = moveArray[moveIndex];
delayMove = myMove[0];
delayFire = myMove[1];
xMove = myMove[2];
yMove = myMove[3];
loopsToMove = myMove[4];
if (delayMove > delayToMove2){
delayToMove2++;
if (moveIndex != 0){
delayToFire2++;
delayToFire2 = 0;
bossFindEnemy();
soldierState = SOLDIER_STATE_FIGHTING;
checkForFire();
};
} else {
soldierState = SOLDIER_STATE_ATTACK;
if (mC.currentFrame != 2){
mC.gotoAndStop("run");
};
if (loopsToMove >= movedLoops){
movedLoops++;
} else {
delayToMove2 = 0;
delayToFire2 = 0;
moveIndex++;
movedLoops = 0;
if (moveIndex >= moveArray.length){
moveIndex = 1;
};
};
updatePosition3(xMove, yMove);
};
}
function checkForFire(){
var myFireDelay2:*;
if (distanceArray[0].distSprite == rt.civMc){
myFireDelay2 = myFireDelay;
delayToFireMissile = myFireDelay2;
if (mC.currentFrame != 3){
mC.gotoAndStop("attack");
};
} else {
delayToFireMissile--;
if (delayToFireMissile == 0){
myFireDelay2 = myFireDelay;
delayToFireMissile = myFireDelay2;
mC.gotoAndStop("attack");
} else {
if (mC.currentFrame == 2){
if (mC.myType == "subBoss"){
mC.gotoAndStop("run");
} else {
mC.gotoAndStop("stand");
};
};
};
};
}
public function remove(){
var i2:int;
var arrayIndex:Number;
var i1:*;
if (myCurrentSound != null){
myCurrentSound.stop();
};
i2 = 0;
while (i2 < mC.myParent.numChildren) {
if (mC.myParent.getChildAt(i2) == mC){
mC.myParent.removeChild(mC);
mC.stop();
};
i2++;
};
arrayIndex = -1;
i1 = 0;
while (i1 < rt.badGuysArray.length) {
if (this == rt.badGuysArray[i1]){
arrayIndex = i1;
};
i1++;
};
if (arrayIndex >= 0){
rt.badGuysArray.splice(arrayIndex, 1);
};
}
public function fireProjectile(){
var targetObj:Object;
var spriteData:Object;
var yStart:Number;
var missileSpeed:Number;
var newXY:Object;
if (rt.rt.gameState != 5){
if (rt.rt.gameState != 4){
if (distanceArray.length > 0){
targetObj = distanceArray[0].distSprite;
yStart = 0;
missileSpeed = 16;
if (myName == "badKnight3"){
projectileMc = new GameAlienGrenade();
} else {
if (myName == "badArcher1"){
rt.Sounds.playSoundFx("laserCannonFx", 0.5, 0, 1);
projectileMc = new GameLaserBig();
} else {
if (myName == "badKnight1"){
projectileMc = new GameLightTankMissile();
} else {
if (myName == "viking1"){
projectileMc = new GameHeavyTankMissile();
missileSpeed = 20;
} else {
if (myName == "plantBoss"){
projectileMc = new GameHeavyTankMissile();
missileSpeed = 6;
} else {
if (myName == "carBoss"){
projectileMc = new GameHeavyTankMissile();
missileSpeed = 8;
} else {
if (myName == "ram"){
projectileMc = new GameFreezeBullet();
missileSpeed = 20;
} else {
if (myName == "badArcher2"){
projectileMc = new GameLaserSaucer();
} else {
if (myName == "bird"){
projectileMc = new GameLaserBig();
} else {
if (myName == "dragon"){
rt.Sounds.playSoundFx("mothershipFx", 0.1, 0, 1);
projectileMc = new GameLaserBig();
} else {
rt.Sounds.playSoundFx("zapFx", 0.5, 0, 1);
yStart = 20;
projectileMc = new GameArrow();
};
};
};
};
};
};
};
};
};
};
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(mC.mReleaseMc);
if (myProjectile == "grenade"){
spriteData = Useful.getArcVelocity(1, 20, newXY.newX, newXY.newY, targetObj.x, (targetObj.y - 10));
} else {
spriteData = Useful.pointTowards(targetObj.x, targetObj.y, newXY.newX, newXY.newY);
};
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, myProjectile, Useful, spriteData, missileSpeed, this, myDamage, 0, currentMapIndexY));
};
};
};
}
function decreaseEnergy(damage){
var energyOld:*;
var barRatio:Number;
var e:Number;
var i4:Number;
var ammoChance:Number;
var risingScoreMc:*;
if (mC.myType == "badArcher1"){
};
myDamageDelay--;
if (myDamageDelay == 0){
myDamageDelay = 1;
energyOld = energy;
if (energy > 0){
damage = (damage / myArmour);
energy = (energy - damage);
if (rt.bossOn == true){
barRatio = (400 / 100);
rt.timerClip.timer.x = -(((100 - energy) * barRatio));
} else {
if (energyBarOn == 0){
energyBarOn = 1;
energyBarMc = new GameEnergyBar(this);
mC.addChild(energyBarMc);
};
energyBarMc.x = 0;
energyBarMc.y = -35;
e = (energy / 10);
energyBarMc.bar.bar.y = int((10 - e));
if (energyBarMc.bar.bar.y > 10){
energyBarMc.bar.bar.y = 10;
};
};
if (energy <= 0){
if (rt.bossOn == true){
i4 = 0;
while (i4 < (myCoinValue + 1)) {
rt.explosionsArray.push(new GameExplosion(rt, 370, 180, 4, rt.Useful, 1, 1, 200, true, false, false, 8, 4, mC.goodBad, currentMapIndexY, 1));
i4++;
};
rt.removeBossEnergy();
rt.gameExplosions = new GameMultipleExplosion(this, Useful, 15, mC.x, mC.y, 200, 1, 2);
} else {
ammoChance = Useful.RandomNumber(1, 100);
if (ammoChance < 20){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 5, rt.Useful, 1, 0, 20, true, false, false, 8, 4, mC.goodBad, currentMapIndexY, myCoinValue));
} else {
i4 = 0;
while (i4 < (myCoinValue + 1)) {
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 4, rt.Useful, 1, 0, 20, true, false, false, 8, 4, mC.goodBad, currentMapIndexY, myCoinValue));
i4++;
};
};
};
inToGround = 0;
dead = true;
myCurrentSound = rt.Sounds.playSoundFx("die_v1_Fx", 0.4, 0, 1);
if (energyOld == 100){
mC.gotoAndStop("deadHead");
rt.increaseScore(200);
risingScoreMc = new GameHeadShotTxt(rt, rt.inGameScoreMc, 200);
rt.inGameScoreMc.addChild(risingScoreMc);
risingScoreMc.x = mC.x;
risingScoreMc.y = (mC.y - 10);
} else {
rt.increaseScore(myScoreValue);
risingScoreMc = new GameRisingMoney(rt, rt.inGameScoreMc, myScoreValue);
rt.inGameScoreMc.addChild(risingScoreMc);
risingScoreMc.x = mC.x;
risingScoreMc.y = (mC.y - 10);
mC.gotoAndStop("die");
};
rt.aliensLeft--;
if (rt.aliensLeft < 0){
rt.aliensLeft = 0;
};
return (true);
} else {
if (rt.bossOn != true){
if (mC.currentFrame != 3){
mC.gotoAndStop("hurt");
if (myName == "badKnight3"){
myCurrentSound = rt.Sounds.playSoundFx("hitEnemyFx", 0.4, 0, 1);
} else {
if (myName == "badArcher1"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
if (myName == "badKnight1"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
if (myName == "viking1"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
if (myName == "ram"){
myCurrentSound = rt.Sounds.playSoundFx("hitEnemyFx", 0.4, 0, 1);
} else {
if (myName == "badArcher2"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
if (myName == "bird"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
if (myName == "dragon"){
myCurrentSound = rt.Sounds.playSoundFx("die_v2_Fx", 0.4, 0, 1);
} else {
myCurrentSound = rt.Sounds.playSoundFx("hitEnemyFx", 0.4, 0, 1);
};
};
};
};
};
};
};
};
};
};
};
};
};
return (false);
}
function mainLoop(){
if (dead == true){
if (mC.currentFrame < 5){
remove();
};
} else {
if (mC.myType == "subBoss"){
shieldDelay--;
if (shieldDelay == 0){
shieldDelay = Useful.RandomNumber(280, 520);
shieldOn = true;
mC.gotoAndStop("subShield");
};
};
if (shieldOn == false){
if (mC.myType == "carBoss"){
moveCarBoss(carBossMoveArray);
} else {
if (mC.myType == "plantBoss"){
moveCarBoss(plantBossMoveArray);
} else {
if (mC.myType == "subBoss"){
moveCarBoss(subBossMoveArray);
} else {
if (mC.myType == "shipBoss"){
moveCarBoss(shipBossMoveArray);
} else {
if (mC.myType == "alienBoss"){
moveCarBoss(alienBossMoveArray);
} else {
if (filterDelay > 1){
filterDelay--;
if (filterDelay == 1){
mC.filters = [];
};
};
if (delayToMove > 0){
delayToMove--;
} else {
checkIfInRange();
};
};
};
};
};
};
};
};
}
}
}//package classesAS3
Section 8
//GameBadKnight1 (classesAS3.GameBadKnight1)
package classesAS3 {
import flash.display.*;
public class GameBadKnight1 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameBadKnight1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 9
//GameBadKnight2 (classesAS3.GameBadKnight2)
package classesAS3 {
import flash.display.*;
public class GameBadKnight2 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myParent:Object;
public var myShapeDef:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public var soldierMc:MovieClip;
public function GameBadKnight2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 10
//GameBadKnight3 (classesAS3.GameBadKnight3)
package classesAS3 {
import flash.display.*;
public class GameBadKnight3 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameBadKnight3(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 11
//GameBenches (classesAS3.GameBenches)
package classesAS3 {
import flash.display.*;
public class GameBenches extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameBenches(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 12
//GameBonusTxt (classesAS3.GameBonusTxt)
package classesAS3 {
import flash.display.*;
public class GameBonusTxt extends MovieClip {
public var inGameScoreMc:Sprite;
public var txt:MovieClip;
public var scoreNumber:Number;
public var rt:Object;
public function GameBonusTxt(rt2, inGame, scoreN){
super();
addFrameScript(24, frame25);
rt = rt2;
inGameScoreMc = inGame;
scoreNumber = scoreN;
txt.bonusTxt.text = (("+" + String(scoreNumber)) + " Gold");
}
function frame25(){
this.inGameScoreMc.removeChild(this);
stop();
}
}
}//package classesAS3
Section 13
//GameBox2d (classesAS3.GameBox2d)
package classesAS3 {
public class GameBox2d {
public var rt:Object;
public var real_y_mouse:Number;
public var m_iterations:int;// = 10
public var m_timeStep:Number;// = 0.0333333333333333
public var worldGravityVx:Number;
public var BxScalingFactor:Number;
public var pixels_in_a_meter;// = 30
public var currentIconIndex:Number;
public var bodyGrabbed;
public var Useful:GameUseful;
public var real_x_mouse:Number;
public var worldGravityVy:Number;
public static const BAD_FLAG:Boolean = true;
public static const GOOD_FLAG:Boolean = false;
public function GameBox2d(rt2, UseF, bx){
m_iterations = 10;
m_timeStep = (1 / 30);
pixels_in_a_meter = 30;
super();
rt = rt2;
Useful = UseF;
BxScalingFactor = bx;
worldGravityVx = 0;
worldGravityVy = 20;
}
function getScaledPos2(){
}
public function destroyEverything(){
}
public function setupBox2d(){
}
public function setupGrabbedItem(itemType, dens, fric, rest, grab, xx, yy, startFrame){
var skipSetup:Boolean;
var mousePosX:Number;
var mousePosY:Number;
var newBody:Object;
skipSetup = false;
if (grab == "position"){
mousePosX = xx;
mousePosY = yy;
} else {
mousePosX = (rt.stage.mouseX - rt.spritesMc.x);
mousePosY = rt.stage.mouseY;
};
if (itemType == "rocketTower"){
newBody = new GameRocketTower(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "tree1"){
newBody = new GameTree1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "tree2"){
newBody = new GameTree2(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "slab1"){
newBody = new GameSlab1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "slab2"){
newBody = new GameSlab2(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "cars1"){
newBody = new GameCars1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "cars2"){
newBody = new GameCars2(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "iceHole1"){
newBody = new GameIceHole1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "iceHole2"){
newBody = new GameIceHole2(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "benches"){
newBody = new GameBenches(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "fountain"){
newBody = new GameFountain(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "gunTower"){
newBody = new GameGunTower(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "shipBoss"){
newBody = new GameShipBoss(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "alienBoss"){
newBody = new GameAlienBoss(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "carBoss"){
newBody = new GameCarBoss(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "subBoss"){
newBody = new GameSubBoss(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "plantBoss"){
newBody = new GamePlantBoss(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "badKnight2"){
newBody = new GameBadKnight2(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "badArcher2"){
newBody = new GameBadArcher2(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "badArcher1"){
newBody = new GameBadArcher1(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "badKnight3"){
newBody = new GameBadKnight3(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "badKnight1"){
newBody = new GameBadKnight1(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "viking1"){
newBody = new GameViking1(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "bird"){
newBody = new GameAlienWalker(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "dragon"){
newBody = new GameMothership(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "ram"){
newBody = new GameRam1(this, null, null, itemType, rt.inGameGoodGuysMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
} else {
if (itemType == "kingGood"){
newBody = new GameKingGood(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.soldier.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getBadDepthIndex(yy));
newBody.x = xx;
newBody.y = yy;
rt.goodGuysArray.push(new GameGoodGuy(rt, xx, yy, newBody, rt.Useful, 200, 1, 10, "", 1, 10));
rt.Tiles.setMapTile(xx, yy, rt.goodGuysArray[(rt.goodGuysArray.length - 1)].mC);
} else {
if (itemType == "baseRepair"){
newBody = new GameKingGood(this, null, null, "baseRepair", rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "archer"){
newBody = new GameArcher1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "wizard"){
newBody = new GameWizard1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "knight2"){
newBody = new GameKnight2(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "mining"){
newBody = new GameMining(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "knight"){
newBody = new GameKnight1(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "knight4"){
newBody = new GameKnight4(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "knight3"){
newBody = new GameKnight3(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "mine"){
newBody = new GameMine(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "barbedWire"){
newBody = new GameWire(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "brickWall"){
newBody = new GameWall(this, null, null, itemType, rt.inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
bodyGrabbed = newBody;
} else {
if (itemType == "woodBad"){
newBody = new GamePlank(this, null, null, itemType, rt.inGameEnemyMc, BAD_FLAG);
rt.inGameGoodGuysMc.addChildAt(newBody, rt.getTopDepth());
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
return (newBody);
}
public function setupEnemyKings(itemType, dens, fric, rest, grab, xx, yy){
}
public function runBox2d(){
var sprY:Number;
var mapIndexY:Number;
var sprX:Number;
var mapIndexX:Number;
var tileObject:Object;
if (bodyGrabbed != null){
if (bodyGrabbed.myType != "mine"){
sprY = int((rt.stage.mouseY / rt.blockSizeY));
mapIndexY = sprY;
sprY = (sprY * rt.blockSizeY);
bodyGrabbed.x = rt.blockSize;
bodyGrabbed.y = sprY;
} else {
sprX = int((rt.stage.mouseX / rt.blockSize));
mapIndexX = sprX;
sprX = (sprX * rt.blockSize);
bodyGrabbed.x = sprX;
sprY = int((rt.stage.mouseY / rt.blockSizeY));
mapIndexY = sprY;
sprY = (sprY * rt.blockSizeY);
bodyGrabbed.y = sprY;
};
if (mapIndexY < rt.levelHeightBlocks){
if (mapIndexX < rt.levelWidthBlocks){
if (mapIndexY >= 0){
if (mapIndexX >= 0){
if (bodyGrabbed.myType == "baseRepair"){
if (mapIndexX == 0){
rt.freezeMc(bodyGrabbed, 6627073, 0);
} else {
rt.freezeMc(bodyGrabbed, 6627073, 0.7);
};
} else {
if (mapIndexX == 0){
rt.freezeMc(bodyGrabbed, 6627073, 0.7);
} else {
tileObject = rt.Tiles.getMapTile(mapIndexX, mapIndexY);
if (tileObject.usage == "noPlot"){
rt.freezeMc(bodyGrabbed, 6627073, 0.7);
} else {
if (tileObject.usage == "object"){
rt.freezeMc(bodyGrabbed, 6627073, 0.7);
} else {
rt.freezeMc(bodyGrabbed, 6627073, 0);
};
};
};
};
};
};
};
};
};
}
function getScaledPosX(){
}
function getScaledPosY(){
}
}
}//package classesAS3
Section 14
//GameCarBoss (classesAS3.GameCarBoss)
package classesAS3 {
import flash.display.*;
public class GameCarBoss extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mReleaseMc2:MovieClip;
public var mReleaseMc3:MovieClip;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var mySmoke;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var damage:MovieClip;
public var rt:Object;
public var energy:Number;
public var myParent:Object;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameCarBoss(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 15
//GameCars1 (classesAS3.GameCars1)
package classesAS3 {
import flash.display.*;
public class GameCars1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameCars1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 16
//GameCars2 (classesAS3.GameCars2)
package classesAS3 {
import flash.display.*;
public class GameCars2 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameCars2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 17
//GameCivMan (classesAS3.GameCivMan)
package classesAS3 {
import flash.display.*;
public class GameCivMan extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameCivMan(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 18
//GameCivWoman (classesAS3.GameCivWoman)
package classesAS3 {
import flash.display.*;
public class GameCivWoman extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameCivWoman(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 19
//GameCross (classesAS3.GameCross)
package classesAS3 {
import flash.display.*;
public class GameCross extends MovieClip {
public var myParent:Object;
public var rt:Object;
public function GameCross(rt2, myP){
super();
addFrameScript(110, frame111);
rt = rt2;
myParent = myP;
}
public function remove(){
var arrayIndex:Number;
var i1:*;
arrayIndex = 0;
i1 = 0;
while (i1 < rt.targetArray.length) {
if (this == rt.targetArray[i1]){
arrayIndex = i1;
};
i1++;
};
rt.targetArray.splice(arrayIndex, 1);
myParent.removeChild(this);
this.stop();
}
function frame111(){
MovieClip(this).remove();
}
}
}//package classesAS3
Section 20
//GameEnergyBar (classesAS3.GameEnergyBar)
package classesAS3 {
import flash.display.*;
public class GameEnergyBar extends MovieClip {
public var bar:energyBar;
var enemy:Object;
public function GameEnergyBar(enemySprite){
super();
addFrameScript(22, frame23);
enemy = enemySprite;
}
function frame23(){
this.enemy.energyBarOn = 0;
MovieClip(this.parent).removeChild(this);
stop();
}
}
}//package classesAS3
Section 21
//GameExplosion (classesAS3.GameExplosion)
package classesAS3 {
import classesAS3.*;
class GameExplosion {
var xVel:Number;// = 0
var explodeFrame:Number;
var numberOfParticles:Number;
var myCoinValue:Number;// = 0
var yPos:Number;// = 0
var myRow:Number;
var numberOfLoops:Number;
var Useful:GameUseful;
var myDamage:Number;
var xPos:Number;// = 0
var xOrigin:Number;// = 0
var rt:Object;
var mType:Number;
var artillary:Number;
var mC:Object;
var gravity:Number;
var myParentGB:Boolean;
var speed:Number;
var yVel:Number;// = 0
var fullRange:Boolean;
var Count:Number;
var arrayIndex:Number;
var explodeDistance:Number;
var yOrigin:Number;// = 0
function GameExplosion(rt2, xStart, yStart, type, useF, numberOfP, numberOfL, dist, gravityS, artillaryS, fullR, sp, myD, myGB, myR, myC){
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
myCoinValue = 0;
super();
rt = rt2;
Useful = useF;
myDamage = myD;
myParentGB = myGB;
myCoinValue = myC;
myRow = myR;
fullRange = fullR;
numberOfParticles = numberOfP;
numberOfLoops = numberOfL;
explodeDistance = dist;
gravity = gravityS;
artillary = artillaryS;
speed = sp;
xOrigin = xStart;
yOrigin = yStart;
xPos = 0;
yPos = 0;
Count = 0;
mType = type;
}
function remove(){
var arrayIndex:Number;
var i1:*;
arrayIndex = 0;
i1 = 0;
while (i1 < rt.explosionsArray.length) {
if (this == rt.explosionsArray[i1]){
arrayIndex = i1;
};
i1++;
};
rt.explosionsArray.splice(arrayIndex, 1);
}
function mainLoop(){
var z:int;
var rot:Number;
var vectors:Object;
var numCoins:Number;
var newMc:GameParticle;
var i1:*;
z = 0;
while (z < numberOfParticles) {
if (fullRange == false){
rot = Useful.RandomNumber(1, 180);
rot = (rot + 180);
if (rot > 359){
rot = (rot - 359);
};
} else {
rot = Useful.RandomNumber(1, 360);
};
vectors = Useful.getVectorFromAngle(rot);
numCoins = 0;
if (mType == 4){
i1 = 0;
while (i1 < rt.particlesArray.length) {
if (rt.particlesArray[i1].mC.currentFrame == 4){
numCoins++;
};
i1++;
};
};
newMc = new GameParticle(rt, Useful, xOrigin, yOrigin, mType, vectors.vx, vectors.vy, ((vectors.vx * explodeDistance) + xOrigin), ((vectors.vy * explodeDistance) + yOrigin), artillary, gravity, explodeDistance, speed, myDamage, myParentGB, myRow, numCoins);
if (mType == 5){
rt.inGameGoodGuysMc.addChildAt(newMc, rt.getBadDepthIndex(yOrigin));
} else {
rt.inGameExplosionsMc.addChild(newMc);
};
rt.particlesArray.push(newMc);
if (newMc.currentFrame < 4){
newMc.rotation = rot;
};
z++;
};
Count++;
if (Count > numberOfLoops){
remove();
};
}
}
}//package classesAS3
Section 22
//GameExplosionAnim (classesAS3.GameExplosionAnim)
package classesAS3 {
import flash.display.*;
public class GameExplosionAnim extends MovieClip {
public var myParent:Object;
public var rt:Object;
public var myIndex:Number;
public function GameExplosionAnim(){
super();
addFrameScript(18, frame19);
}
public function removeMe(){
}
function frame19(){
this.removeMe();
stop();
}
}
}//package classesAS3
Section 23
//GameExtraAmmo (classesAS3.GameExtraAmmo)
package classesAS3 {
import flash.display.*;
public class GameExtraAmmo extends MovieClip {
public var inGameScoreMc:Sprite;
public var txt:MovieClip;
public var scoreNumber:Number;
public var rt:Object;
public function GameExtraAmmo(rt2, inGame, scoreN){
super();
addFrameScript(19, frame20);
rt = rt2;
inGameScoreMc = inGame;
scoreNumber = scoreN;
txt.ammoExtraTxt.text = (("+" + String(scoreNumber)) + " ammo");
}
function frame20(){
this.inGameScoreMc.removeChild(this);
stop();
}
}
}//package classesAS3
Section 24
//GameFloor (classesAS3.GameFloor)
package classesAS3 {
import flash.display.*;
public class GameFloor extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var noRotation:Boolean;// = false
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameFloor(rt2, bD, sD, mT, myP, myE, gB){
noRotation = false;
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
goodBad = gB;
energy = myE;
}
public function removeMe(){
myParent.removeChild(this);
}
}
}//package classesAS3
Section 25
//GameFountain (classesAS3.GameFountain)
package classesAS3 {
import flash.display.*;
public class GameFountain extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameFountain(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 26
//GameGame (classesAS3.GameGame)
package classesAS3 {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
import flash.net.*;
import flash.ui.*;
import fl.motion.*;
import flash.geom.*;
public class GameGame extends MovieClip {
var depthCheck:Number;
var left:Number;
var inGameFloorMc:Sprite;
public var bossHit2:Boolean;// = false
public var bossHit3:Boolean;// = false
var StartTimer:Number;
var badGuysArray:Array;
var selectionArray:Array;
var backObjectsArray:Array;
var timerClip:timerAnimMc;
var bf:BlurFilter;
public var fireMissileX:Number;
public var fireMissileY:Number;
var sec:Number;
var playerMc:MovieClip;
var inGameColourMc:Sprite;
var bf2:BlurFilter;
var levelTime:Number;
var movieWidth:Number;
var movieHeight:Number;
var inGamePickupsMc:Sprite;
var shift:Matrix;
var inGameEnemyMc:Sprite;
var baseGunType:String;
var spritesMc:Sprite;
var startGunsNum:Number;
var moneyMax:Number;
var filterAlienDelay:Number;
var inGameMissilesMc:Sprite;
var moneyDelay:Number;
var levelWidth:Number;
var oldScore:Number;
var aliensLeft:Number;
var itemsToUpgradeMc:Sprite;
var clickloc:Point;
var zombiesLeft:Array;
var wallCost:Number;
var money:Number;
var levelWidthBlocks:Number;
var gameOverMsgMc:GameOverMsgAnim;
var pauseSwitch:Boolean;
var oldUpgrade2:Boolean;
var oldUpgrade3:Boolean;
var inGameCliffMc:Sprite;
var oldUpgrade5:Boolean;
var oldUpgrade6:Boolean;
var oldUpgrade1:Boolean;
var minutes:Number;
var oldUpgrade8:Boolean;
var filterDelay:Number;
public var bossHit:Boolean;// = false
var oldUpgrade7:Boolean;
var oldUpgrade4:Boolean;
var inGameRangeMc:Sprite;
var oldUpgrade9:Boolean;
var lives:Number;
var inGameScoreMc:Sprite;
var groundArray:Array;
var explosionsArray:Array;
var planeMc:GamePlane;
var energyAlien:Number;
var freezeDelay:Number;
var itemsToBuyMc:Sprite;
public var upgrade10:Boolean;
var cmf:ColorMatrixFilter;
var timeBonus:Number;
var top:Number;
var crosshairMc:crosshair;
var oldMouseY:Number;
var currentPickup:String;
public var Box2d:GameBox2d;
var oldMouseX:Number;
var Sounds:GameSounds;
var aliensLeftArray:Array;
var levelCompleteMsg:GameLevelComplete;
public var soldiersIconsArray:Array;
var subWave:Number;// = 25
var inGameGoodGuysMc:Sprite;
var maxScrollSpeed:Number;
var bmd:BitmapData;
public var mainSoldier:Object;
public var upgrade1:Boolean;
public var upgrade2:Boolean;
var gameExplosions:GameMultipleExplosion;
var soundsSwitch:Boolean;// = true
var radarArrowMc:MovieClip;
public var upgrade6:Boolean;
public var upgrade8:Boolean;
var inGameCWords:Sprite;
public var upgrade3:Boolean;
public var upgrade4:Boolean;
public var upgrade5:Boolean;
var crosshairOn:Boolean;// = false
public var upgrade7:Boolean;
public var upgrade9:Boolean;
var mineDamage:Number;
var scrollScreen:String;
var musicSwitch:Boolean;// = true
var marchingAntsMc:Sprite;
var baseType:String;
var bouldersArray:Array;
var releaseloc:Point;
var levelHeight:Number;
var enemyCastles:Array;
var fulltime:Number;
var panelItemsData:Array;
var startGameMsgMc:GameStartMsg;
var ammoLowMc:MovieClip;
var backSkyMc:backgroundSkyMc;
public var fireMissileOld:Boolean;
var MAX_BADGUYS:Number;// = 40
var badGuysLevels:Array;
var waveDelay:Number;
var spring:Number;
var zombiesLeftC:Number;
public var fireMissile:Boolean;
var clockDelay:Number;
public var jetMc:jetIconMc;
var minDisplay:String;
var right:Number;
var zoomScreen:String;// = ""
var flagMc:halfWayFlag;
var bottom:Number;
var pauseMc:MovieClip;
var blockSize:Number;
public var bossOn:Boolean;// = false
var inGameActionMc:Sprite;
public var rt:Object;
public var goodGuyCurrent:Array;
var missilesArray:Array;
public var scrollvx:Number;
var presentationMc:Sprite;
var upgradesCost:Array;
var bossData2:Array;
var bossData3:Array;
var bossData4:Array;
var bossData5:Array;
var inGameZoomMc:Sprite;
var badGuyData1:Array;
var inGameCatapultBtnMc:Sprite;
var badGuyData5:Array;
var badGuyData6:Array;
var badGuyData7:Array;
var badGuyData8:Array;
var badGuyData3:Array;
var badGuyData4:Array;
var badGuyData2:Array;
var bossData1:Array;
var goodGuysArray:Array;
var itemsArray:Array;
var badGuyData9:Array;
var civAppear:Number;
public var civMc;// = null
var energy:Number;
public var statsMc:GameWeaponsPanel;
public var score:Number;
var inGameExplosionsMc:Sprite;
var inGameMc:Sprite;
public var headShots:Number;// = 0
var Useful:GameUseful;
var inGameCatapultCatchMc:Sprite;
var mineCost:Number;
var upgradesArray:Array;
var ammo:Number;// = 500
public var miningSpeedUp:Number;
var marquee_mc:MovieClip;
var oldUpgrade10:Boolean;
var oldMoney:Number;
var floorMc:GameFloor;
public var gunsArray:Array;
var backMcWidth:Number;
var stageNames:Array;
public var wavesInStage:Number;// = 5
var wave;
public var bossLevel2:Number;
public var bossLevel4:Number;
var inGameBuildingsMc:Sprite;
var Player:GamePlayer;
var currentMoneyDelay:Number;
var friction:Number;
public var bossLevel3:Number;
public var bossLevel5:Number;
var bestScore:Number;
var scrollxPos:Number;
var movedOverHalf:Boolean;
public var bossLevel1:Number;
var pickupsArray:Array;
var tilesObject;
var bObjectsArray:Array;
var backgroundLevelMc:Sprite;
var levelHeightBlocks:Number;
var radarArrowMcLayer:Sprite;
public var levelStart:Number;
var secDisplay:String;
public var targetArray:Array;
var levelMax:Number;
var springLength:Number;
public var Tiles:GameTiles;
var delayToWave;
var waveDelayD:Number;
var glowFilter:GlowFilter;
var monsterTotal:Number;// = 0
var inGameGraphicsMc:Sprite;
public var frozenArray:Array;
var oldEnergy:Number;
var particlesArray:Array;
var numberOfStartItems:Number;
var enemyArray:Array;
var rangeMc:MovieClip;
var itemsCost:Array;
public var basesArray:Array;
var inGameBackgroundMc:Sprite;
public var destroyedArray:Array;
public var goodGuyRanges:Array;
var inGameBackgroundMc2:Sprite;
var currentTimeBonus:Number;
var timerStartY:Number;
var pickupType:String;
var inGameStatsMc:Sprite;
var inGameMsgsMc:Sprite;
var numBases:Number;
var pickupAdded:Boolean;
var timerStartY2:Number;
var numGuns:Number;
public var miningArray:Array;
var blockSizeY:Number;
public var levelNumber:Number;
var badKingMc:Object;
public var maxLevels:Number;
public static const SOLDIER_STATE_DEFEND:int = 1;
public static const SOLDIER_STATE_RETREAT:int = 3;
public static const SOLDIER_E_MOVE:int = 5;
public static const SOLDIER_STATE_CRYSTAL:int = 2;
public static const BAD_FLAG:Boolean = true;
public static const SOLDIER_E_STAND:int = 0;
public static const GOOD_FLAG:Boolean = false;
public static const SOLDIER_STATE_ATTACK:int = 0;
public static const SOLDIER_STATE_MOVE:int = 5;
public static const SOLDIER_E_BUILD:int = 2;
public static const STATE_SYSTEM_END_MSG:int = 12;
public static const SOLDIER_STATE_FALLING:int = 4;
public function GameGame(rt2, stageWidth, stageHeight, levelW, levelH, startLives, uu, maxL, bx){
var bossGroup1:Array;
var bossGroup2:Array;
var bossGroup3:Array;
var bossGroup4:Array;
var bossGroup5:Array;
var badGuyGroup1:Array;
var badGuyGroup2:Array;
var badGuyGroup3:Array;
var badGuyGroup4:Array;
var badGuyGroup5:Array;
var badGuyGroup6:Array;
var badGuyGroup7:Array;
var badGuyGroup8:Array;
var badGuyGroup9:Array;
var badGuyGroup10:Array;
var badGuyGroup12:Array;
var badGuyGroup13:Array;
var badGuyGroup11:Array;
var badGuyGroup14:Array;
var badGuyGroup15:Array;
var badGuyGroup15b:Array;
var badGuyGroup15c:Array;
var badGuyGroup16:Array;
var badGuyGroup16b:Array;
var badGuyGroup16c:Array;
var badGuyGroup17:Array;
var badGuyGroup18:Array;
var badGuyGroup19:Array;
var badGuyGroup20:Array;
var badGuyGroup21:Array;
var badGuyGroup22:Array;
var badGuyGroup23:Array;
var badGuysLevel1:Array;
var badGuysLevel2:Array;
var badGuysLevel3:Array;
var badGuysLevel4:Array;
var badGuysLevel6:Array;
var badGuysLevel7:Array;
var badGuysLevel5:Array;
var badGuysLevel7b:Array;
var badGuysLevel8:Array;
var badGuysLevel9:Array;
var badGuysLevel10:Array;
var badGuysLevel10b:Array;
var badGuysLevel11:Array;
var badGuysLevel12:Array;
var badGuysLevel13b:Array;
var badGuysLevel14:Array;
var badGuysLevel15:Array;
var badGuysLevel13:Array;
var badGuysLevel16:Array;
var badGuysLevel17:Array;
var badGuysLevel18:Array;
var badGuysLevel19:Array;
var badGuysLevel20:Array;
var badGuysLevel20b:Array;
var badGuysLevel21:Array;
var badGuysLevel23b:Array;
var badGuysLevel22:Array;
var badGuysLevel23:Array;
var badGuysLevel25:Array;
var badGuysLevel24:Array;
var backObjects1:*;
soundsSwitch = true;
musicSwitch = true;
zoomScreen = "";
MAX_BADGUYS = 40;
crosshairOn = false;
ammo = 500;
monsterTotal = 0;
civMc = null;
wavesInStage = 5;
subWave = 25;
bossOn = false;
bossHit = false;
bossHit2 = false;
bossHit3 = false;
headShots = 0;
super();
rt = rt2;
Useful = uu;
Box2d = new GameBox2d(this, Useful, bx);
Tiles = new GameTiles(this);
startGunsNum = 3;
numGuns = 0;
upgrade1 = false;
upgrade2 = false;
upgrade3 = false;
upgrade4 = false;
upgrade5 = false;
movieWidth = stageWidth;
movieHeight = stageHeight;
backMcWidth = 1240;
maxLevels = maxL;
mineDamage = 20;
blockSize = 70;
blockSizeY = 57.5;
miningSpeedUp = 15;
Sounds = new GameSounds(this);
levelWidthBlocks = levelW;
levelHeightBlocks = levelH;
levelWidth = (levelWidthBlocks * blockSize);
levelHeight = (levelHeightBlocks * blockSizeY);
inGameMc = new Sprite();
addChild(inGameMc);
presentationMc = new Sprite();
addChild(presentationMc);
inGameActionMc = new Sprite();
inGameMc.addChild(inGameActionMc);
inGameStatsMc = new Sprite();
inGameMc.addChild(inGameStatsMc);
inGameZoomMc = new Sprite();
inGameActionMc.addChild(inGameZoomMc);
inGameGraphicsMc = new Sprite();
inGameZoomMc.addChild(inGameGraphicsMc);
inGameMsgsMc = new Sprite();
inGameMc.addChild(inGameMsgsMc);
inGameBackgroundMc = new Sprite();
inGameGraphicsMc.addChild(inGameBackgroundMc);
spritesMc = new Sprite();
inGameGraphicsMc.addChild(spritesMc);
backgroundLevelMc = new Sprite();
spritesMc.addChild(backgroundLevelMc);
inGameCliffMc = new Sprite();
spritesMc.addChild(inGameCliffMc);
inGameCatapultCatchMc = new Sprite();
spritesMc.addChild(inGameCatapultCatchMc);
inGameFloorMc = new Sprite();
spritesMc.addChild(inGameFloorMc);
inGameBuildingsMc = new Sprite();
spritesMc.addChild(inGameBuildingsMc);
playerMc = new MovieClip();
spritesMc.addChild(playerMc);
inGameEnemyMc = new Sprite();
spritesMc.addChild(inGameEnemyMc);
inGameRangeMc = new Sprite();
spritesMc.addChild(inGameRangeMc);
inGameGoodGuysMc = new Sprite();
spritesMc.addChild(inGameGoodGuysMc);
inGameCatapultBtnMc = new Sprite();
spritesMc.addChild(inGameCatapultBtnMc);
inGameColourMc = new Sprite();
spritesMc.addChild(inGameColourMc);
inGamePickupsMc = new Sprite();
inGameColourMc.addChild(inGamePickupsMc);
inGameMissilesMc = new Sprite();
inGameColourMc.addChild(inGameMissilesMc);
inGameExplosionsMc = new Sprite();
inGameColourMc.addChild(inGameExplosionsMc);
inGameScoreMc = new Sprite();
inGameColourMc.addChild(inGameScoreMc);
radarArrowMcLayer = new Sprite();
inGameColourMc.addChild(radarArrowMcLayer);
bf = new BlurFilter(2, 2, BitmapFilterQuality.LOW);
bf2 = new BlurFilter(5, 5, BitmapFilterQuality.LOW);
cmf = new ColorMatrixFilter([1.3, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 14, 20, 0, 0, 0, 0, 1, 0]);
missilesArray = new Array();
enemyArray = new Array();
goodGuysArray = new Array();
missilesArray = new Array();
badGuysArray = new Array();
Tiles.clearTilesArray();
explosionsArray = new Array();
particlesArray = new Array();
pickupsArray = new Array();
backObjectsArray = new Array();
groundArray = new Array();
itemsArray = new Array();
selectionArray = new Array();
soldiersIconsArray = new Array();
frozenArray = new Array();
gunsArray = new Array();
basesArray = new Array();
miningArray = new Array();
panelItemsData = new Array("swordsman", 150, "130 Gold. Soldier with machine gun. Low attack, moderate armour. Click or hotkey 1", "knight", 450, "250 Gold. Grenadier. Moderate attack, low armour. Click or hotkey 2", "archer", 800, "400 Gold. Bazooker. Moderate attack, low armour. Click or hotkey 3", "crossbowman", 1000, "550 Gold. Mortar. Moderate attack, moderate armour. Click or hotkey 4", "wizard", 1500, "850 Gold. Machine gun nest. Moderate attack, good armour. Click or hotkey 5", "Super Knight", 2000, "1000 Gold. Artillery. Good attack, low armour. Click or hotkey 6", "Wooden block", 2600, "100 Gold. Gun tower. Good attack, good armour. Click or hotkey 7", "Wooden plank", 3500, "1500 Gold. Rocket tower. Good attack, moderate armour. Click or hotkey 8", "more ammo", 50, "50 Gold. Gives you 400 more ammo. Click or hotkey q or spacebar", "swordsman", 2500, "1500 Gold. Increase armour. Increases armour for all soldiers and buildings. Click or hotkey w", "swordsman", 3000, "2000 Gold. Radar. Tells you where aliens are about to attack. Click or hotkey e", "swordsman", 3500, "2500 Gold. Medical packs. Soldiers slowly heal themselves if hurt. Click or hotkey r", "swordsman", 4000, "4000 Gold. AirStrikes. Player may drop one airstrike per stage. Click or hotkey t", "swordsman", 0, "Unlimited ammo. No need to keep reloading.", "swordsman", 0, "Discount Pack. Get all 4 upgrades for an 800 coins discount!");
goodGuyRanges = new Array(135, 180, 270, 270, 270, 340, 270, 340, 60, 60, 60, 60, 60, 60, 60, 200, 200, 200, 200, 200);
itemsCost = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);
upgradesCost = new Array(10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10);
bossLevel1 = 5;
bossLevel2 = 10;
bossLevel3 = 15;
bossLevel4 = 20;
bossLevel5 = 25;
badGuyData1 = new Array("badKnight2", 405, 0.5, 0, "position", 700, 150, 1, 2, 10, 10, "bullet", 0);
badGuyData2 = new Array("badKnight3", 405, 0.5, 0, "position", 700, 350, 1, 1.5, 13, 3, "grenade", 1);
badGuyData3 = new Array("badArcher1", 405, 0.5, 0, "position", 700, 350, 1, 2, 15, 18, "bullet", 2);
badGuyData4 = new Array("badKnight1", 405, 0.5, 0, "position", 700, 350, 1, 2, 17, 8, "bullet", 2);
badGuyData5 = new Array("viking1", 405, 0.5, 0, "position", 700, 350, 1, 1.5, 17, 10, "bullet", 3);
badGuyData6 = new Array("ram", 405, 0.5, 0, "position", 700, 350, 1, 2.5, 18, 15, "bullet", 3);
badGuyData7 = new Array("badArcher2", 405, 0.5, 0, "position", 700, 350, 1, 5, 10, 14, "bullet", 3);
badGuyData8 = new Array("bird", 405, 0.5, 0, "position", 700, 150, 1, 2, 15, 20, "bullet", 3);
badGuyData9 = new Array("dragon", 405, 0.5, 0, "position", 700, 150, 1, 2, 15, 25, "bullet", 3);
bossData1 = new Array("carBoss", 405, 0.5, 0, "position", 760, 150, 1, 0.2, 20, 25, "bullet", 8);
bossData2 = new Array("plantBoss", 405, 0.5, 0, "position", 760, 150, 1, 2, 20, 25, "bullet", 8);
bossData3 = new Array("subBoss", 405, 0.5, 0, "position", 380, 150, 1, 2, 20, 25, "bullet", 8);
bossData4 = new Array("shipBoss", 405, 0.5, 0, "position", 760, 150, 1, 2, 20, 25, "bullet", 8);
bossData5 = new Array("alienBoss", 405, 0.5, 0, "position", 760, 150, 1, 2, 20, 25, "bullet", 8);
bossGroup1 = new Array(bossData1);
bossGroup2 = new Array(bossData2);
bossGroup3 = new Array(bossData3);
bossGroup4 = new Array(bossData4);
bossGroup5 = new Array(bossData5);
badGuyGroup1 = new Array(badGuyData1);
badGuyGroup2 = new Array(badGuyData1, badGuyData1);
badGuyGroup3 = new Array(badGuyData1, badGuyData1, badGuyData1);
badGuyGroup4 = new Array(badGuyData1, badGuyData1, badGuyData2, badGuyData1);
badGuyGroup5 = new Array(badGuyData1, badGuyData1, badGuyData1, badGuyData2);
badGuyGroup6 = new Array(badGuyData2);
badGuyGroup7 = new Array(badGuyData2, badGuyData2);
badGuyGroup8 = new Array(badGuyData3, badGuyData2);
badGuyGroup9 = new Array(badGuyData3, badGuyData3, badGuyData4);
badGuyGroup10 = new Array(badGuyData3, badGuyData3, badGuyData3);
badGuyGroup12 = new Array(badGuyData4);
badGuyGroup13 = new Array(badGuyData4, badGuyData4, badGuyData4);
badGuyGroup11 = new Array(badGuyData5);
badGuyGroup14 = new Array(badGuyData6);
badGuyGroup15 = new Array(badGuyData7);
badGuyGroup15b = new Array(badGuyData7, badGuyData7, badGuyData6);
badGuyGroup15c = new Array(badGuyData7, badGuyData7, badGuyData7, badGuyData6);
badGuyGroup16 = new Array(badGuyData8);
badGuyGroup16b = new Array(badGuyData8, badGuyData8);
badGuyGroup16c = new Array(badGuyData8, badGuyData8, badGuyData8, badGuyData9);
badGuyGroup17 = new Array(badGuyData9, badGuyData9);
badGuyGroup18 = new Array(badGuyData4, badGuyData4);
badGuyGroup19 = new Array(badGuyData5, badGuyData5);
badGuyGroup20 = new Array(badGuyData6, badGuyData6);
badGuyGroup21 = new Array(badGuyData7, badGuyData7);
badGuyGroup22 = new Array(badGuyData8, badGuyData8);
badGuyGroup23 = new Array(badGuyData9, badGuyData9);
badGuysLevel1 = new Array(badGuyGroup3, badGuyGroup3, badGuyGroup3, badGuyGroup4, badGuyGroup3);
badGuysLevel2 = new Array(badGuyGroup1, badGuyGroup1, badGuyGroup7, badGuyGroup4, badGuyGroup4);
badGuysLevel3 = new Array(badGuyGroup1, badGuyGroup2, badGuyGroup6, badGuyGroup7, badGuyGroup4, badGuyGroup7, badGuyGroup7);
badGuysLevel4 = new Array(badGuyGroup2, badGuyGroup3, badGuyGroup4, badGuyGroup7, badGuyGroup7, badGuyGroup7, badGuyGroup2, badGuyGroup1);
badGuysLevel6 = new Array(badGuyGroup3, badGuyGroup2, badGuyGroup6, badGuyGroup6, badGuyGroup5, badGuyGroup7, badGuyGroup4, badGuyGroup7, badGuyGroup4, badGuyGroup4);
badGuysLevel7 = new Array(badGuyGroup4, badGuyGroup8, badGuyGroup10, badGuyGroup8, badGuyGroup2, badGuyGroup7, badGuyGroup2);
badGuysLevel5 = new Array(bossGroup2);
badGuysLevel7b = new Array(badGuyGroup3, badGuyGroup2, badGuyGroup9, badGuyGroup7, badGuyGroup4, badGuyGroup7, badGuyGroup15, badGuyGroup1, badGuyGroup2, badGuyGroup7, badGuyGroup5, badGuyGroup10, badGuyGroup10, badGuyGroup10, badGuyGroup10);
badGuysLevel8 = new Array(badGuyGroup3, badGuyGroup2, badGuyGroup7, badGuyGroup4, badGuyGroup10, badGuyGroup10, badGuyGroup6, badGuyGroup2, badGuyGroup7, badGuyGroup7, badGuyGroup10, badGuyGroup10);
badGuysLevel9 = new Array(badGuyGroup3, badGuyGroup2, badGuyGroup3, badGuyGroup8, badGuyGroup8, badGuyGroup4, badGuyGroup2, badGuyGroup10, badGuyGroup15c, badGuyGroup12, badGuyGroup12, badGuyGroup2, badGuyGroup7, badGuyGroup5, badGuyGroup10, badGuyGroup10);
badGuysLevel10 = new Array(bossGroup1);
badGuysLevel10b = new Array(badGuyGroup4, badGuyGroup5, badGuyGroup10, badGuyGroup10, badGuyGroup6, badGuyGroup8, badGuyGroup9, badGuyGroup2, badGuyGroup15c, badGuyGroup9, badGuyGroup2, badGuyGroup7, badGuyGroup5, badGuyGroup10, badGuyGroup10);
badGuysLevel11 = new Array(badGuyGroup6, badGuyGroup6, badGuyGroup14, badGuyGroup7, badGuyGroup9, badGuyGroup4, badGuyGroup5, badGuyGroup5);
badGuysLevel12 = new Array(badGuyGroup7, badGuyGroup8, badGuyGroup7, badGuyGroup8, badGuyGroup8, badGuyGroup8, badGuyGroup7, badGuyGroup7, badGuyGroup12, badGuyGroup12, badGuyGroup5, badGuyGroup7, badGuyGroup8, badGuyGroup7, badGuyGroup8, badGuyGroup8);
badGuysLevel13b = new Array(badGuyGroup7, badGuyGroup8, badGuyGroup7, badGuyGroup6, badGuyGroup8, badGuyGroup8, badGuyGroup6, badGuyGroup7, badGuyGroup7, badGuyGroup7, badGuyGroup7, badGuyGroup8, badGuyGroup5, badGuyGroup14, badGuyGroup8, badGuyGroup12, badGuyGroup12);
badGuysLevel14 = new Array(badGuyGroup4, badGuyGroup8, badGuyGroup5, badGuyGroup7, badGuyGroup8, badGuyGroup9, badGuyGroup9, badGuyGroup7, badGuyGroup6, badGuyGroup13, badGuyGroup7, badGuyGroup8, badGuyGroup6, badGuyGroup13, badGuyGroup7, badGuyGroup6, badGuyGroup8, badGuyGroup6, badGuyGroup8);
badGuysLevel15 = new Array(bossGroup4);
badGuysLevel13 = new Array(badGuyGroup1, badGuyGroup2, badGuyGroup15, badGuyGroup15, badGuyGroup15, badGuyGroup15, badGuyGroup15, badGuyGroup13, badGuyGroup13, badGuyGroup8, badGuyGroup7, badGuyGroup5, badGuyGroup6, badGuyGroup10, badGuyGroup10, badGuyGroup13);
badGuysLevel16 = new Array(badGuyGroup10, badGuyGroup9, badGuyGroup2, badGuyGroup7, badGuyGroup14, badGuyGroup14, badGuyGroup11, badGuyGroup8);
badGuysLevel17 = new Array(badGuyGroup10, badGuyGroup3, badGuyGroup7, badGuyGroup8, badGuyGroup10, badGuyGroup11);
badGuysLevel18 = new Array(badGuyGroup10, badGuyGroup12, badGuyGroup12, badGuyGroup9, badGuyGroup13, badGuyGroup10, badGuyGroup12, badGuyGroup12);
badGuysLevel19 = new Array(badGuyGroup10, badGuyGroup15c, badGuyGroup12, badGuyGroup6, badGuyGroup7, badGuyGroup11, badGuyGroup11, badGuyGroup11, badGuyGroup3, badGuyGroup4, badGuyGroup3, badGuyGroup4);
badGuysLevel20 = new Array(bossGroup5);
badGuysLevel20b = new Array(badGuyGroup10, badGuyGroup12, badGuyGroup4, badGuyGroup7, badGuyGroup7, badGuyGroup7, badGuyGroup5, badGuyGroup8, badGuyGroup2, badGuyGroup13, badGuyGroup13, badGuyGroup11, badGuyGroup11, badGuyGroup11, badGuyGroup2, badGuyGroup2, badGuyGroup2);
badGuysLevel21 = new Array(badGuyGroup8, badGuyGroup2, badGuyGroup16b, badGuyGroup7, badGuyGroup7, badGuyGroup11);
badGuysLevel23b = new Array(badGuyGroup8, badGuyGroup2, badGuyGroup2, badGuyGroup4, badGuyGroup2, badGuyGroup4, badGuyGroup7, badGuyGroup12, badGuyGroup7, badGuyGroup5, badGuyGroup8, badGuyGroup2, badGuyGroup13, badGuyGroup13, badGuyGroup11, badGuyGroup11, badGuyGroup11, badGuyGroup5, badGuyGroup5, badGuyGroup5, badGuyGroup16c, badGuyGroup16c);
badGuysLevel22 = new Array(badGuyGroup8, badGuyGroup10, badGuyGroup9, badGuyGroup11, badGuyGroup14, badGuyGroup14, badGuyGroup11, badGuyGroup2, badGuyGroup3, badGuyGroup5, badGuyGroup9, badGuyGroup16b, badGuyGroup16c);
badGuysLevel23 = new Array(badGuyGroup8, badGuyGroup12, badGuyGroup10, badGuyGroup14, badGuyGroup16, badGuyGroup4, badGuyGroup2, badGuyGroup7, badGuyGroup10, badGuyGroup12, badGuyGroup12);
badGuysLevel25 = new Array(bossGroup3);
badGuysLevel24 = new Array(badGuyGroup8, badGuyGroup10, badGuyGroup12, badGuyGroup14, badGuyGroup7, badGuyGroup12, badGuyGroup7, badGuyGroup5, badGuyGroup8, badGuyGroup9, badGuyGroup13, badGuyGroup13, badGuyGroup11, badGuyGroup11, badGuyGroup11, badGuyGroup6, badGuyGroup5, badGuyGroup5, badGuyGroup23, badGuyGroup23, badGuyGroup23);
badGuysLevels = new Array(badGuysLevel1, badGuysLevel2, badGuysLevel3, badGuysLevel4, badGuysLevel5, badGuysLevel6, badGuysLevel7, badGuysLevel8, badGuysLevel9, badGuysLevel10, badGuysLevel11, badGuysLevel12, badGuysLevel13, badGuysLevel14, badGuysLevel15, badGuysLevel16, badGuysLevel17, badGuysLevel18, badGuysLevel19, badGuysLevel20, badGuysLevel21, badGuysLevel22, badGuysLevel23, badGuysLevel24, badGuysLevel25);
backObjects1 = new Array("tree1", "tree2");
bObjectsArray = new Array(backObjects1);
aliensLeftArray = new Array(20, 25, 25, 30, 1, 30, 30, 35, 35, 1, 40, 40, 40, 40, 1, 45, 45, 45, 45, 1, 50, 50, 50, 50, 1);
stageNames = new Array("'Park'", "'Shopping Mall'", "'Desert'", "'Urban'", "'Frozen wastes'");
glowFilter = new GlowFilter(6750054, 1, 8, 8, 3, 1);
scrollvx = 0;
score = 0;
bestScore = 0;
lives = startLives;
energy = 100;
money = 0;
energyAlien = 100;
currentMoneyDelay = 50;
moneyDelay = currentMoneyDelay;
moneyMax = 10000;
spring = 0.01;
friction = 0.8;
springLength = 10;
left = -20;
right = (movieWidth - 20);
top = 0;
bottom = movieHeight;
levelStart = 1;
levelNumber = levelStart;
levelMax = 25;
wave = 0;
delayToWave = 100;
maxScrollSpeed = 24;
scrollxPos = 0;
secDisplay = "00";
minDisplay = "00";
StartTimer = 1;
clockDelay = 10;
minutes = StartTimer;
sec = 0;
fulltime = 0;
numberOfStartItems = 3;
pauseSwitch = false;
filterDelay = 1;
filterAlienDelay = 1;
scrollScreen = "";
mineCost = 10;
wallCost = 20;
setupBasesArray();
setupGunsArray();
}
public function setupGame(setupType){
monsterTotal = 0;
bossOn = false;
gameExplosions = null;
headShots = 0;
civAppear = Useful.RandomNumber(200, 1000);
if (setupType != "level"){
newArrays();
depthCheck = 50;
oldEnergy = energy;
oldScore = score;
oldUpgrade1 = upgrade1;
oldUpgrade2 = upgrade2;
oldUpgrade3 = upgrade3;
oldUpgrade4 = upgrade4;
oldUpgrade5 = upgrade5;
waveDelay = (200 - (levelNumber * 12));
if (waveDelay < 60){
waveDelay = 60;
};
delayToWave = 20;
};
levelTime = 0;
waveDelayD = 1;
wave = 0;
freezeDelay = 2;
aliensLeft = aliensLeftArray[(levelNumber - 1)];
if (setupType != "level"){
currentMoneyDelay = 50;
moneyDelay = currentMoneyDelay;
moneyMax = (10000 + ((levelNumber - 1) * 20));
setupPanel();
setupBackground();
soundFxBtn2();
musicBtn2();
setScore();
setLevel();
setMoney();
setupLevelBases();
setupGuns();
};
setAmmo();
setupStartGameMsg();
checkForAfford();
rt.stage.focus = rt;
}
public function getTopDepth(){
return ((inGameGoodGuysMc.numChildren - 1));
}
function endLevelStuff(){
var levelNumber2:*;
rt.gameState = 6;
killAllExplosions();
levelNumber++;
inGameMsgsMc.removeChild(levelCompleteMsg);
levelCompleteMsg = null;
spritesMc.x = 0;
newLevelStuff();
levelNumber2 = int((levelNumber / wavesInStage));
levelNumber2 = (levelNumber2 * wavesInStage);
if ((levelNumber2 + 1) != levelNumber){
destroyEverything("level");
} else {
destroyEverything("");
};
levelNumber2 = int((levelNumber / wavesInStage));
levelNumber2 = (levelNumber2 * wavesInStage);
if ((levelNumber2 + 1) != levelNumber){
setupGame("level");
} else {
if (crosshairOn == true){
crosshairOn = false;
Mouse.show();
inGameMsgsMc.removeChild(crosshairMc);
crosshairMc = null;
};
if (backSkyMc != null){
inGameBackgroundMc.removeChild(backSkyMc);
};
rt.setupMapScreen();
};
}
function runWave(){
var levelNumber2:*;
var badGuys:Array;
var waveSpeedUp:Number;
if (badGuysArray.length < MAX_BADGUYS){
delayToWave--;
if (delayToWave == 0){
levelNumber2 = int((levelNumber / wavesInStage));
levelNumber2 = (levelNumber2 * wavesInStage);
if (levelNumber2 == levelNumber){
bossOn = true;
if (monsterTotal == 0){
destroyObjectsMines();
setupWave(wave);
};
} else {
setupWave(wave);
wave++;
badGuys = badGuysLevels[(levelNumber - 1)];
if (wave >= badGuys.length){
wave = 0;
};
waveDelayD--;
if (waveDelayD == 0){
waveDelayD = 1;
waveSpeedUp = (levelNumber * 3);
if (waveSpeedUp > 15){
waveSpeedUp = 15;
};
waveDelay = (waveDelay - waveSpeedUp);
if (waveDelay < 80){
waveDelay = 80;
};
};
delayToWave = waveDelay;
};
};
};
}
function setupBadSoldier(badGuyData, xx, yy){
var badGuyName:String;
var badGuyDens:Number;
var badGuyFric:Number;
var badGuyRest:Number;
var badGuyX:Number;
var badGuyY:Number;
var speed:Number;
var badGuyScore:Number;
var badGuyDamage:Number;
var badGuyP:String;
var badGuyC:String;
var bodyMc:*;
badGuyName = badGuyData[0];
badGuyDens = badGuyData[1];
badGuyFric = badGuyData[2];
badGuyRest = badGuyData[3];
badGuyX = xx;
badGuyY = yy;
speed = badGuyData[8];
badGuyScore = badGuyData[9];
badGuyDamage = badGuyData[10];
badGuyP = badGuyData[11];
badGuyC = badGuyData[12];
bodyMc = Box2d.setupGrabbedItem(badGuyName, badGuyDens, badGuyFric, badGuyRest, "position", badGuyX, badGuyY, 1);
badGuysArray.push(new GameBadGuy(badGuyName, this, bodyMc.x, bodyMc.y, bodyMc, Useful, speed, badGuyScore, badGuyDamage, badGuyP, badGuyC));
}
function setupSoldier(soldier, xx, yy){
var soldierType:*;
soldierType = soldier.myType;
if (soldierType == "knight"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[0], 1, 5, "bullet", 0.6, itemsCost[0]));
} else {
if (soldierType == "knight2"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[1], 1, 7, "grenade", 0.7, itemsCost[1]));
} else {
if (soldierType == "archer"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[2], 0, 3, "bullet", 0.6, itemsCost[2]));
} else {
if (soldierType == "wizard"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[3], 0, 7, "bullet", 1, itemsCost[3]));
} else {
if (soldierType == "knight3"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[4], 2, 8, "grenade", 0.8, itemsCost[4]));
} else {
if (soldierType == "knight4"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[5], 1, 10, "grenade", 1, itemsCost[5]));
} else {
if (soldierType == "gunTower"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[6], 1, 10, "bullet", 2, itemsCost[6]));
} else {
if (soldierType == "rocketTower"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[7], 1, 10, "grenade", 2, itemsCost[7]));
} else {
if (soldierType == "mining"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[9], 1, 5, "", 1, itemsCost[9]));
} else {
if (soldierType == "mine"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[8], 1, 5, "", 1, itemsCost[8]));
} else {
if (soldierType == "barbedWire"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[8], 1, 5, "no_fire", 1, itemsCost[11]));
} else {
if (soldierType == "brickWall"){
goodGuysArray.push(new GameGoodGuy(this, xx, yy, soldier, Useful, goodGuyRanges[8], 1, 5, "no_fire", 2, itemsCost[12]));
};
};
};
};
};
};
};
};
};
};
};
};
setNewDepth();
}
function soundFxBtn(){
if (statsMc.soundFxMc.currentFrame == 1){
statsMc.soundFxMc.gotoAndStop("off");
soundsSwitch = false;
} else {
statsMc.soundFxMc.gotoAndStop("on");
soundsSwitch = true;
};
}
public function checkForAfford(){
var i:*;
var itemCost:Number;
i = 0;
while (i < 8) {
if (panelItemsData[((i * 3) + 1)] > money){
if (itemsArray[i].currentFrame != 2){
itemsArray[i].gotoAndStop("notBuy");
};
} else {
if (itemsArray[i].currentFrame != 1){
if (soldiersIconsArray[i] != true){
itemsArray[i].gotoAndStop(1);
};
};
};
i++;
};
i = 0;
while (i < 5) {
itemCost = panelItemsData[(((i + 8) * 3) + 1)];
if (upgradesArray[i].currentFrame != 3){
if (itemCost > money){
if (upgradesArray[i].currentFrame != 2){
upgradesArray[i].gotoAndStop("notBuy");
};
} else {
if (upgradesArray[i].currentFrame != 1){
upgradesArray[i].gotoAndStop(1);
};
};
};
i++;
};
}
function setupNewGun(yy:Number, mType:String){
gunsArray[(yy - 1)] = mType;
}
function doMoneyIncrease(){
moneyDelay--;
if (moneyDelay == 0){
if (moneyDelay < 10){
moneyDelay = 10;
};
money++;
if (money > moneyMax){
money = moneyMax;
};
};
setMoney();
checkForAfford();
}
function setLevel(){
statsMc.levelTxt.text = ((String(levelNumber) + "/") + String((wavesInStage * 5)));
}
function checkForDestroyed(xx, yy){
var i2:*;
i2 = 0;
i2 = 0;
while (i2 < goodGuysArray.length) {
if (goodGuysArray[i2].currentMapIndexY == yy){
if (goodGuysArray[i2].currentMapIndexX == xx){
goodGuysArray[i2].remove();
break;
};
};
i2++;
};
}
function decreaseScore(decrease){
score = int((score - decrease));
if (score >= 0){
setScore();
} else {
score = 0;
setScore();
};
}
function loadGunsArray(oldArray){
var i:*;
i = 0;
while (i < oldArray.length) {
gunsArray[i] = oldArray[i];
i++;
};
}
function findRandomBase():Number{
var i2:Number;
var tempBaseIndex:Array;
var i:*;
var iii:Number;
var ii:Number;
i2 = 0;
tempBaseIndex = new Array();
i = 0;
while (i < basesArray.length) {
if (basesArray[i] == true){
tempBaseIndex.push(i);
};
i++;
};
iii = Useful.RandomNumber(1, tempBaseIndex.length);
ii = tempBaseIndex[(iii - 1)];
return ((ii + 1));
}
function runStartChat(){
Box2d.runBox2d();
finishSetup();
}
function setupRange(spriteIndex){
var spritesRange:*;
spritesRange = goodGuyRanges[spriteIndex];
if (spriteIndex != 8){
if (spriteIndex != 9){
spritesRange = int((spritesRange / blockSize));
if (upgrade2 == true){
spritesRange = (spritesRange + 1);
};
};
};
rangeMc = new rangeSquares();
inGameRangeMc.addChild(rangeMc);
rangeMc.gotoAndStop((spritesRange + 1));
}
function setupGunsArray(){
var i:*;
i = 0;
while (i < (levelHeightBlocks - 2)) {
gunsArray[i] = "";
i++;
};
gunsArray[3] = "knight";
}
function decreaseEnergy(dec:Number){
var risingScoreMc:*;
risingScoreMc = new GameRisingScore(rt, inGameScoreMc, dec);
inGameScoreMc.addChild(risingScoreMc);
if (Player != null){
risingScoreMc.x = Player.mC.x;
risingScoreMc.y = Player.mC.y;
};
}
public function setupJets(iconMc){
var yy:Number;
var i:*;
var newBody:*;
var randomSpeed:Number;
yy = 100;
i = 0;
while (i < 5) {
newBody = new GameJetFighter(this, null, null, "jet", inGameExplosionsMc, GOOD_FLAG);
inGameExplosionsMc.addChild(newBody);
randomSpeed = Useful.RandomNumber(6, 10);
newBody.y = yy;
goodGuysArray.push(new GameGoodGuy(this, -40, yy, newBody, Useful, 0, randomSpeed, 80, "bomb", 1, 10));
yy = (yy + 80);
i++;
};
statsMc.removeChild(iconMc);
}
function musicBtn2(){
if (musicSwitch == false){
statsMc.musicMc.gotoAndStop("off");
} else {
statsMc.musicMc.gotoAndStop("on");
};
}
function loadBasesArray(oldArray){
var i:*;
i = 0;
while (i < oldArray.length) {
basesArray[i] = oldArray[i];
i++;
};
}
function setupLevelBases(){
var i2:Number;
var i:*;
var yy:*;
var xx:*;
i2 = 1;
numBases = 0;
i = 0;
while (i < basesArray.length) {
if (basesArray[i] == true){
numBases++;
yy = (i2 * blockSizeY);
xx = 0;
Box2d.setupGrabbedItem("kingGood", 405, 0.5, 0, "position", xx, yy, 1);
};
i2++;
i++;
};
i2 = 0;
while (i2 < goodGuysArray.length) {
goodGuysArray[i2].mainLoop();
i2++;
};
}
function setupJetIcon(){
jetMc = new jetIconMc();
statsMc.addChild(jetMc);
jetMc.x = 355;
jetMc.y = -454;
}
function setMoney(){
statsMc.money.text = String(int(money));
}
function increaseScore(increase){
score = int((score + increase));
if (score > 0){
setScore();
};
}
public function setDepths(){
var sortedItems:Array;
var i2:int;
var i:int;
var distanceObject:Object;
sortedItems = new Array();
i2 = 0;
while (i2 < badGuysArray.length) {
distanceObject = new Object();
distanceObject.distSprite = badGuysArray[i2];
distanceObject.dist = badGuysArray[i2].mC.y;
sortedItems.push(distanceObject);
i2++;
};
i2 = 0;
while (i2 < goodGuysArray.length) {
distanceObject = new Object();
distanceObject.distSprite = goodGuysArray[i2];
distanceObject.dist = goodGuysArray[i2].mC.y;
sortedItems.push(distanceObject);
i2++;
};
sortedItems.sortOn("dist", Array.NUMERIC);
i = sortedItems.length;
while (i--) {
if (sortedItems[i].distSprite.mC != null){
if (sortedItems[i].distSprite.mC.parent == inGameGoodGuysMc){
if (inGameGoodGuysMc.getChildIndex(sortedItems[i].distSprite.mC) != i){
if (i >= inGameGoodGuysMc.numChildren){
inGameGoodGuysMc.setChildIndex(sortedItems[i].distSprite.mC, (inGameGoodGuysMc.numChildren - 1));
} else {
if (i < 0){
inGameGoodGuysMc.setChildIndex(sortedItems[i].distSprite.mC, (inGameGoodGuysMc.numChildren - 1));
} else {
inGameGoodGuysMc.setChildIndex(sortedItems[i].distSprite.mC, i);
};
};
};
};
};
};
}
function killAllGoodGuys(){
var i2:int;
i2 = 0;
while (i2 < goodGuysArray.length) {
goodGuysArray[i2].remove();
i2++;
};
}
public function setupPanel():void{
statsMc = new GameWeaponsPanel(this);
inGameStatsMc.addChild(statsMc);
statsMc.y = (movieHeight - 94);
statsMc.msg.text = "Welcome Commander! Defend the bases!";
setupPanelItems();
}
function setEnergy(){
if (filterDelay > 1){
filterDelay--;
if (filterDelay == 1){
Player.mC.filters = [];
};
};
}
function checkForGameOver(){
if (numBases == 0){
gameOver("game_over");
};
if (particlesArray.length == 0){
if (aliensLeft == 0){
gameOver("level_complete");
};
};
}
function finishSetup(){
rt.finishSetup();
rt.stage.focus = rt;
}
public function setMyBase(yy){
yy = int((yy / blockSizeY));
basesArray[(yy - 1)] = true;
}
public function findMyBase(yy){
yy = int((yy / blockSizeY));
basesArray[(yy - 1)] = false;
}
function killAllExplosions(){
var i2:*;
i2 = (explosionsArray.length - 1);
while (i2 >= 0) {
explosionsArray[i2].remove();
i2--;
};
i2 = (particlesArray.length - 1);
while (i2 >= 0) {
particlesArray[i2].remove();
i2--;
};
}
function setLives(){
var addd:MovieClip;
addd = inGameStatsMc["ingamestatsmc"];
addd = addd["wg"];
addd = addd["stats"];
addd.lives.text = lives;
}
function musicBtn(){
if (statsMc.musicMc.currentFrame == 1){
statsMc.musicMc.gotoAndStop("off");
rt.titleMusicChannel.stop();
musicSwitch = false;
} else {
statsMc.musicMc.gotoAndStop("on");
musicSwitch = true;
rt.titleMusicChannel = rt.titleMusic.play(0, 10000);
Sounds.setVolume(rt.titleMusicChannel, 0.1);
};
}
public function getBadDepthIndex(yy):Number{
var depthIndex:Number;
var i:*;
var mc:*;
depthIndex = 0;
i = (inGameGoodGuysMc.numChildren - 1);
while (i >= 0) {
mc = inGameGoodGuysMc.getChildAt(i);
if (yy < mc.y){
depthIndex = i;
} else {
depthIndex = (i + 1);
break;
};
i--;
};
if (inGameGoodGuysMc.numChildren != 0){
if (depthIndex >= inGameGoodGuysMc.numChildren){
depthIndex = (inGameGoodGuysMc.numChildren - 1);
} else {
if (depthIndex < 0){
depthIndex = (inGameGoodGuysMc.numChildren - 1);
};
};
};
return (depthIndex);
}
function checkPanel(){
var i2:*;
i2 = 0;
while (i2 < itemsArray.length) {
if (itemsArray[i2].hitTestPoint(stage.mouseX, stage.mouseY, true)){
statsMc.msg.text = panelItemsData[((i2 * 3) + 2)];
};
i2++;
};
i2 = 0;
while (i2 < upgradesArray.length) {
if (upgradesArray[i2].hitTestPoint(stage.mouseX, stage.mouseY, true)){
if (i2 == 0){
if (upgrade1 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 1){
if (upgrade2 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 2){
if (upgrade3 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 3){
if (upgrade4 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 4){
if (upgrade5 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 5){
if (upgrade6 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
if (i2 == 6){
if (upgrade7 == true){
statsMc.msg.text = ("Purchased.\n" + panelItemsData[(((i2 + 8) * 3) + 2)]);
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
} else {
statsMc.msg.text = panelItemsData[(((i2 + 8) * 3) + 2)];
};
};
};
};
};
};
};
};
i2++;
};
if (statsMc.q1.hitTestPoint(stage.mouseX, stage.mouseY, true)){
statsMc.msg.text = "Click to Quit game";
} else {
if (statsMc.musicMc.hitTestPoint(stage.mouseX, stage.mouseY, true)){
statsMc.msg.text = "Click to turn music on/off";
} else {
if (statsMc.soundFxMc.hitTestPoint(stage.mouseX, stage.mouseY, true)){
statsMc.msg.text = "Click to turn sound effects on/off";
} else {
if (statsMc.p1.hitTestPoint(stage.mouseX, stage.mouseY, true)){
statsMc.msg.text = "Click to pause/unpause game";
};
};
};
};
}
public function setupGoodGuy(myMc):void{
var xx:*;
var yy:*;
if (myMc.myObject == null){
xx = stage.mouseX;
yy = stage.mouseY;
setupSoldier(myMc, xx, yy);
};
}
function setupBasesArray(){
var i:*;
i = 0;
while (i < (levelHeightBlocks - 2)) {
basesArray[i] = true;
i++;
};
}
function deleteRange(){
}
function setAmmo(){
if (upgrade6 == true){
statsMc.ammoTxt.text = "unlimited";
} else {
statsMc.ammoTxt.text = String(ammo);
};
}
public function getMapIndex(spriteObject):Object{
var mapXYIndex:Object;
var sprX:Number;
var sprY:Number;
mapXYIndex = new Object();
sprX = int((spriteObject.x / blockSize));
mapXYIndex.indexX = sprX;
sprX = (sprX * blockSize);
mapXYIndex.xPos = sprX;
sprY = int((spriteObject.y / blockSizeY));
mapXYIndex.indexY = sprY;
sprY = (sprY * blockSizeY);
mapXYIndex.yPos = sprY;
return (mapXYIndex);
}
function pauseOn(){
pauseSwitch = true;
}
public function getMapIndexXY(xx, yy):Object{
var mapXYIndex:Object;
var sprX:Number;
var sprY:Number;
mapXYIndex = new Object();
sprX = int((xx / blockSize));
mapXYIndex.indexX = sprX;
mapXYIndex.xPos = sprX;
sprY = int((yy / blockSizeY));
mapXYIndex.indexY = sprY;
mapXYIndex.yPos = sprY;
return (mapXYIndex);
}
public function on_mouse_down(){
var bought:Boolean;
var xx2:*;
var yy2:*;
var xx:*;
var yy:*;
if (jetMc != null){
if (jetMc.hitTestPoint(rt.mouseX, rt.mouseY, true)){
setupJets(jetMc);
};
};
if (statsMc.logo_btn5.hitTestPoint(rt.mouseX, rt.mouseY, true)){
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_INGAMELOGO"), "_blank");
};
if (fireMissile == false){
fireMissile = true;
fireMissileX = rt.mouseX;
fireMissileY = rt.mouseY;
};
bought = false;
if (Box2d.bodyGrabbed != null){
xx2 = rt.stage.mouseX;
yy2 = rt.stage.mouseY;
xx = int((xx2 / blockSize));
yy = int((yy2 / blockSizeY));
if (Tiles.getMapTile(1, yy).usage == "noTile"){
fireMissile = false;
checkForDestroyed(1, yy);
if (rt.stage.mouseX >= blockSize){
if (Box2d.bodyGrabbed.myType == "knight"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[0]);
itemsArray[0].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "knight2"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[1]);
itemsArray[1].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "archer"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[2]);
itemsArray[2].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "wizard"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[4]);
itemsArray[4].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "knight3"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[3]);
itemsArray[3].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "knight4"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[5]);
itemsArray[5].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "mining"){
Sounds.playSoundFx("dropMiningFx", 0.3, 0, 1);
decreaseMoney(itemsCost[9]);
miningArray.push(Box2d.bodyGrabbed);
itemsArray[9].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (Box2d.bodyGrabbed.myType == "gunTower"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[6]);
itemsArray[6].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "rocketTower"){
Sounds.playSoundFx("dropFx", 0.5, 0, 1);
decreaseMoney(itemsCost[7]);
itemsArray[7].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "mine"){
Sounds.playSoundFx("mineActiveFx", 0.5, 0, 1);
decreaseMoney(itemsCost[8]);
itemsArray[8].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "barbedWire"){
Sounds.playSoundFx("dropFx", 1, 0, 1);
decreaseMoney(itemsCost[11]);
itemsArray[11].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
} else {
if (Box2d.bodyGrabbed.myType == "brickWall"){
Sounds.playSoundFx("dropFx", 1, 0, 1);
decreaseMoney(itemsCost[12]);
itemsArray[12].back.gotoAndStop(2);
setupGoodGuy(Box2d.bodyGrabbed);
Tiles.setMapTile(blockSize, yy2, goodGuysArray[(goodGuysArray.length - 1)].mC);
setupNewGun(yy, Box2d.bodyGrabbed.myType);
};
};
};
};
};
};
};
};
};
};
};
};
if (Box2d.bodyGrabbed.myType != "baseRepair"){
deleteRange();
Box2d.bodyGrabbed = null;
};
};
};
} else {
if (ammo == 0){
if (upgrade6 == false){
fireMissileOld = true;
fireMissile = false;
};
};
};
}
function setupStartGameMsg(){
var levelNumber2:*;
startGameMsgMc = new GameStartMsg(this);
levelNumber2 = int((levelNumber / wavesInStage));
levelNumber2 = (levelNumber2 * wavesInStage);
if (levelNumber2 == levelNumber){
startGameMsgMc.textBox.titleTxt.text = ("Wave " + levelNumber);
startGameMsgMc.textBox.placeTxt.text = stageNames[int(((levelNumber - 1) / wavesInStage))];
startGameMsgMc.textBox.mainTxt.text = "Get ready the big bad is\ncoming!";
} else {
startGameMsgMc.textBox.titleTxt.text = ("Wave " + levelNumber);
startGameMsgMc.textBox.placeTxt.text = stageNames[int(((levelNumber - 1) / wavesInStage))];
startGameMsgMc.textBox.mainTxt.text = "Get ready they are on their way!\nRemember use the SPACEBAR\nto reload!";
};
inGameMsgsMc.addChild(startGameMsgMc);
startGameMsgMc.x = 200;
startGameMsgMc.y = 150;
}
function freezeMc(mcToFreeze, colourV, colourM){
var c:Color;
c = new Color();
c.setTint(colourV, colourM);
mcToFreeze.transform.colorTransform = c;
}
function setupPanelItems(){
var x1:Number;
var x2:Number;
var i:*;
var lockedBought:Number;
var itemMc:*;
itemsToBuyMc = new Sprite();
statsMc.addChild(itemsToBuyMc);
itemsToBuyMc.x = 8;
itemsToBuyMc.y = 5;
itemsArray = new Array();
x1 = 0;
x2 = 0;
i = 0;
while (i < 8) {
itemMc = new GamePanelBuyMc(this, i);
itemsToBuyMc.addChild(itemMc);
if (panelItemsData[((i * 3) + 1)] > money){
itemMc.gotoAndStop("notBuy");
};
itemsCost[i] = panelItemsData[((i * 3) + 1)];
soldiersIconsArray[i] = false;
itemMc.costTxt.text = itemsCost[i];
itemMc.itemsMc.gotoAndStop((i + 1));
if (i == 8){
x1 = 5;
} else {
if (i == 11){
x1 = 10;
};
};
itemMc.x = (i * 50);
itemMc.x = (itemMc.x + x1);
itemMc.x = (itemMc.x + x2);
itemsArray.push(itemMc);
i++;
};
itemsToUpgradeMc = new Sprite();
statsMc.addChild(itemsToUpgradeMc);
upgradesArray = new Array();
itemsToUpgradeMc.x = 425;
itemsToUpgradeMc.y = 35;
x1 = 0;
x2 = 0;
lockedBought = 0;
i = 0;
while (i < 5) {
itemMc = new GamePanelUpgrades(this, i);
itemsToUpgradeMc.addChild(itemMc);
if (panelItemsData[(((i + 8) * 3) + 1)] > money){
itemMc.gotoAndStop("notBuy");
};
upgradesCost[i] = panelItemsData[(((i + 8) * 3) + 1)];
itemMc.icons.gotoAndStop((i + 1));
if (i == 0){
if (upgrade1 == true){
itemMc.gotoAndStop("bought");
};
} else {
if (i == 1){
if (upgrade2 == true){
itemMc.gotoAndStop("bought");
};
} else {
if (i == 2){
if (upgrade3 == true){
itemMc.gotoAndStop("bought");
};
} else {
if (i == 3){
if (upgrade4 == true){
itemMc.gotoAndStop("bought");
};
} else {
if (i == 4){
if (upgrade5 == true){
itemMc.gotoAndStop("bought");
setupJetIcon();
};
};
};
};
};
};
itemMc.x = (i * 32);
itemMc.x = (itemMc.x + x1);
itemMc.x = (itemMc.x + x2);
upgradesArray.push(itemMc);
i++;
};
}
function killAllMissiles(){
var i2:*;
i2 = (missilesArray.length - 1);
while (i2 >= 0) {
missilesArray[i2].remove();
i2--;
};
}
public function keyBuyUpgrades(i2){
var cost:Number;
if (i2 >= 0){
if (i2 < 8){
if (Box2d.bodyGrabbed == null){
cost = (money - itemsCost[i2]);
if (cost >= 0){
if (itemsArray[i2].back.currentFrame == 1){
filterDelay = 1;
soldiersIconsArray[i2] = true;
itemsArray[i2].gotoAndStop("notBuy");
Box2d.currentIconIndex = i2;
if (i2 == 6){
Box2d.setupGrabbedItem("gunTower", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 7){
Box2d.setupGrabbedItem("rocketTower", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 8){
Box2d.setupGrabbedItem("mine", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 0){
Box2d.setupGrabbedItem("knight", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 1){
Box2d.setupGrabbedItem("knight2", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 4){
Box2d.setupGrabbedItem("wizard", 405, 0.5, 0, "position", 0, 0, 1);
} else {
if (i2 == 5){
Box2d.setupGrabbedItem("knight4", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 2){
Box2d.setupGrabbedItem("archer", 405, 0.5, 0, "position", 0, 0, 1);
} else {
if (i2 == 3){
Box2d.setupGrabbedItem("knight3", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 7){
Box2d.setupGrabbedItem("gunTower", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 8){
Box2d.setupGrabbedItem("rocketTower", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 9){
Box2d.setupGrabbedItem("mining", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 10){
Box2d.setupGrabbedItem("baseRepair", 405, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 11){
Box2d.setupGrabbedItem("barbedWire", 405, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 12){
Box2d.setupGrabbedItem("brickWall", 405, 0.5, 0, "position", 48, 200, 1);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
} else {
i2 = (i2 - 8);
cost = (money - upgradesCost[i2]);
if (cost >= 0){
if (upgradesArray[i2].back.currentFrame == 1){
if (upgradesArray[i2].currentFrame != 3){
upgradesArray[i2].gotoAndStop("notBuy");
if (i2 == 3){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade4(i2);
} else {
if (i2 == 4){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade5(i2);
} else {
if (i2 == 5){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade6(i2);
} else {
if (i2 == 6){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade7(i2);
} else {
if (i2 == 0){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade1(i2);
} else {
if (i2 == 1){
upgradesArray[i2].back.gotoAndStop(2);
Sounds.playSoundFx("newSoldierFx", 0.5, 0, 1);
decreaseMoney(upgradesCost[i2]);
setupUpgrade2(i2);
} else {
if (i2 == 2){
decreaseMoney(upgradesCost[i2]);
upgradesArray[i2].back.gotoAndStop(2);
setupUpgrade3(i2);
};
};
};
};
};
};
};
};
};
};
};
};
}
function newLevelStuff(){
wave = 0;
}
public function destroyEverything(destroyType){
var i2:Number;
var numChild:Number;
killAllBadGuys();
if (destroyType != "level"){
killAllGoodGuys();
goodGuysArray.splice(0);
numChild = inGameGoodGuysMc.numChildren;
i2 = 0;
while (i2 < numChild) {
inGameGoodGuysMc.removeChildAt(0);
i2++;
};
newArrays();
};
badGuysArray.splice(0);
explosionsArray.splice(0);
particlesArray.splice(0);
missilesArray.splice(0);
i2 = 0;
numChild = inGameEnemyMc.numChildren;
i2 = 0;
while (i2 < numChild) {
inGameEnemyMc.removeChildAt(0);
i2++;
};
numChild = inGameMissilesMc.numChildren;
i2 = 0;
while (i2 < numChild) {
inGameMissilesMc.removeChildAt(0);
i2++;
};
numChild = inGameExplosionsMc.numChildren;
i2 = 0;
while (i2 < numChild) {
inGameExplosionsMc.removeChildAt(0);
i2++;
};
if (destroyType != "level"){
inGameStatsMc.removeChild(statsMc);
statsMc = null;
};
}
function deleteGrabbed(){
itemsArray[Box2d.currentIconIndex].gotoAndStop(1);
soldiersIconsArray[Box2d.currentIconIndex] = false;
inGameGoodGuysMc.removeChild(Box2d.bodyGrabbed);
Box2d.bodyGrabbed = null;
deleteRange();
}
public function restartLevel(){
if (gameOverMsgMc != null){
inGameMsgsMc.removeChild(gameOverMsgMc);
};
gameOverMsgMc = null;
money = oldMoney;
energy = oldEnergy;
score = oldScore;
rt.gameState = 6;
if (levelCompleteMsg != null){
inGameMsgsMc.removeChild(levelCompleteMsg);
levelCompleteMsg = null;
};
inGameBackgroundMc.removeChild(backSkyMc);
backSkyMc.stop();
backSkyMc = null;
spritesMc.x = 0;
newLevelStuff();
destroyEverything("gameOver");
rt.setupMapScreen();
}
function setupBossEnergy(){
timerClip = new timerAnimMc();
statsMc.addChildAt(timerClip, 1);
timerClip.x = 120;
timerClip.y = -20;
}
public function on_mouse_up(){
scrollScreen = "";
fireMissile = false;
fireMissileOld = false;
}
function runCivs(){
var civType:Number;
var newBody:*;
var ff:Number;
civAppear--;
if (civAppear <= 0){
civType = Useful.RandomNumber(1, 2);
civAppear = 100000;
if (civMc == null){
if (bossOn == false){
if (civType == 1){
newBody = new GameCivMan(this, null, null, "civMan", inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
newBody.x = 760;
ff = Useful.RandomNumber(2, 6);
ff = (ff * blockSizeY);
newBody.y = ff;
inGameGoodGuysMc.addChildAt(newBody, getBadDepthIndex(ff));
goodGuysArray.push(new GameGoodGuy(this, newBody.x, newBody.y, newBody, Useful, goodGuyRanges[0], 1, 5, "bullet", 5, itemsCost[0]));
} else {
newBody = new GameCivWoman(this, null, null, "civWoman", inGameGoodGuysMc, GOOD_FLAG);
newBody.gotoAndStop(1);
newBody.x = 760;
ff = Useful.RandomNumber(2, 6);
ff = (ff * blockSizeY);
newBody.y = ff;
inGameGoodGuysMc.addChildAt(newBody, getBadDepthIndex(ff));
goodGuysArray.push(new GameGoodGuy(this, newBody.x, newBody.y, newBody, Useful, goodGuyRanges[0], 1, 5, "bullet", 0.6, itemsCost[0]));
};
civMc = newBody;
};
};
};
}
public function quitGame(){
ammo = 500;
Sounds.playSoundFx("gameOverFx", 0.3, 0, 1);
destroyEverything("gameOver");
if (civMc != null){
civMc = null;
};
rt.gameState = 1;
levelNumber = 1;
if (gameOverMsgMc != null){
inGameMsgsMc.removeChild(gameOverMsgMc);
};
gameOverMsgMc = null;
upgrade1 = false;
upgrade2 = false;
upgrade3 = false;
upgrade4 = false;
upgrade5 = false;
inGameBackgroundMc.removeChild(backSkyMc);
backSkyMc.stop();
backSkyMc = null;
Player = null;
energy = 100;
energyAlien = 100;
money = 0;
score = 0;
currentMoneyDelay = 50;
moneyDelay = currentMoneyDelay;
moneyMax = 10000;
spritesMc.x = 0;
setupBasesArray();
setupGunsArray();
rt.setupTitleScreen();
}
function destroyObjectsMines(){
var i2:int;
i2 = 0;
while (i2 < goodGuysArray.length) {
if (goodGuysArray[i2].myProjectile == "no_fire"){
goodGuysArray[i2].mC.soldier.gotoAndStop("die");
goodGuysArray[i2].dead = true;
} else {
if (goodGuysArray[i2].mC.myType == "mine"){
goodGuysArray[i2].mC.soldier.gotoAndStop("die");
goodGuysArray[i2].dead = true;
};
};
i2++;
};
}
function decreaseMoney(dec:Number){
money = (money - dec);
if (money < 0){
money = 0;
};
setMoney();
}
function runDepth(){
depthCheck--;
if (depthCheck == 0){
depthCheck = 50;
setDepths();
};
}
function setupWave(currentWave){
var badGuys:Array;
var badGuysGroup:Array;
var i:*;
var badGuyData:Array;
var badGuyName:String;
var badGuyDens:Number;
var badGuyFric:Number;
var badGuyRest:Number;
var badGuyX:Number;
var badGuyY:Number;
var speed:Number;
var levelNumber2:*;
var rangeVary:*;
var gg:*;
var badGuyScore:Number;
var badGuyDamage:Number;
var badGuyP:String;
var badGuyC:String;
var bodyMc:MovieClip;
var ff:Number;
badGuys = badGuysLevels[(levelNumber - 1)];
badGuysGroup = badGuys[currentWave];
i = 0;
while (i < badGuysGroup.length) {
if (monsterTotal < aliensLeftArray[(levelNumber - 1)]){
badGuyData = badGuysGroup[i];
badGuyName = badGuyData[0];
badGuyDens = badGuyData[1];
badGuyFric = badGuyData[2];
badGuyRest = badGuyData[3];
badGuyX = badGuyData[5];
badGuyY = badGuyData[6];
speed = badGuyData[8];
badGuyY = Useful.RandomNumber(1, 7);
levelNumber2 = int((levelNumber / wavesInStage));
levelNumber2 = (levelNumber2 * wavesInStage);
if (levelNumber2 == levelNumber){
setupBossEnergy();
if (levelNumber == subWave){
badGuyY = (3 * blockSizeY);
} else {
badGuyY = 50;
};
} else {
ff = Useful.RandomNumber(1, 100);
if (ff < 70){
badGuyY = findRandomBase();
};
badGuyY = (badGuyY * blockSizeY);
};
badGuyY = (badGuyY + Useful.RandomNumber(1, (blockSizeY - 20)));
rangeVary = (levelNumber / 200);
if (rangeVary > 1.4){
rangeVary = 1.4;
};
gg = 18;
if (gg < 0){
gg = 1;
};
rangeVary = (rangeVary + (currentWave / 10));
if (rangeVary > 1.5){
rangeVary = 1.5;
};
speed = (speed + rangeVary);
badGuyScore = badGuyData[9];
badGuyDamage = badGuyData[10];
badGuyP = badGuyData[11];
badGuyC = badGuyData[12];
bodyMc = Box2d.setupGrabbedItem(badGuyName, badGuyDens, badGuyFric, badGuyRest, "position", badGuyX, badGuyY, 1);
badGuysArray.push(new GameBadGuy(badGuyName, this, badGuyX, badGuyY, bodyMc, Useful, speed, badGuyScore, badGuyDamage, badGuyP, badGuyC));
runRadar(badGuyY);
monsterTotal++;
};
i++;
};
}
function doFrozen(){
var i2:*;
freezeDelay--;
if (freezeDelay == 0){
freezeDelay = 2;
i2 = 0;
while (i2 < frozenArray.length) {
freezeMc(frozenArray[i2].mC, frozenArray[i2].colourValue, frozenArray[i2].colourMult);
if (frozenArray[i2].defrost == false){
frozenArray[i2].colourMult = (frozenArray[i2].colourMult + 0.1);
if (frozenArray[i2].colourMult >= 0.8){
frozenArray[i2].colourMult = 0.93;
if (frozenArray[i2].toDefrost == 0){
frozenArray[i2].toDefrost = 50;
} else {
frozenArray[i2].toDefrost--;
if (frozenArray[i2].toDefrost == 0){
frozenArray[i2].defrost = true;
};
};
};
} else {
frozenArray[i2].colourMult = (frozenArray[i2].colourMult - 0.1);
if (frozenArray[i2].colourMult < 0){
frozenArray[i2].colourMult = 0;
if (frozenArray[i2].mC.myObject != null){
frozenArray[i2].mC.myObject.frozen = false;
};
frozenArray.splice(i2, 1);
};
};
i2++;
};
};
}
function setupUpgrade4(i){
upgrade4 = true;
upgradesArray[i].gotoAndStop(3);
}
function setupUpgrade5(i){
upgrade5 = true;
setupJetIcon();
upgradesArray[i].gotoAndStop(3);
}
function setupUpgrade3(i){
upgrade3 = true;
upgradesArray[i].gotoAndStop(3);
}
public function gameComplete(){
if (crosshairOn == true){
crosshairOn = false;
Mouse.show();
inGameMsgsMc.removeChild(crosshairMc);
crosshairMc = null;
};
if (levelCompleteMsg != null){
inGameMsgsMc.removeChild(levelCompleteMsg);
levelCompleteMsg = null;
};
rt.gameState = 5;
Sounds.playSoundFx("gameOverFx", 1, 0, 1);
quitGame();
}
function newArrays(){
missilesArray = new Array();
enemyArray = new Array();
missilesArray = new Array();
targetArray = new Array();
badGuysArray = new Array();
explosionsArray = new Array();
particlesArray = new Array();
pickupsArray = new Array();
soldiersIconsArray = new Array();
frozenArray = new Array();
backObjectsArray = new Array();
destroyedArray = new Array();
miningArray = new Array();
itemsArray = new Array();
selectionArray = new Array();
}
function setupGuns(){
var i2:Number;
var i:*;
var yy:*;
var xx:*;
i2 = 1;
numGuns = 0;
i = 0;
while (i < gunsArray.length) {
if (gunsArray[i] != ""){
yy = (i2 * blockSizeY);
xx = blockSize;
if (gunsArray[i] == "knight"){
Box2d.setupGrabbedItem("knight", 405, 0.5, 0, "position", 120, 370, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
if (i == 3){
mainSoldier = goodGuysArray[(goodGuysArray.length - 1)];
};
} else {
if (gunsArray[i] == "knight2"){
Box2d.setupGrabbedItem("knight2", 405, 0.5, 0, "position", 120, 370, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "archer"){
Box2d.setupGrabbedItem("archer", 405, 0.5, 0, "position", 0, 0, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "wizard"){
Box2d.setupGrabbedItem("wizard", 405, 0.5, 0, "position", 0, 0, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "knight3"){
Box2d.setupGrabbedItem("knight3", 405, 0.5, 0, "position", 120, 370, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "knight4"){
Box2d.setupGrabbedItem("knight4", 405, 0.5, 0, "position", 120, 370, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "gunTower"){
Box2d.setupGrabbedItem("gunTower", 805, 0.5, 0, "position", 48, 200, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
} else {
if (gunsArray[i] == "rocketTower"){
Box2d.setupGrabbedItem("rocketTower", 405, 0.5, 0, "position", 120, 370, 1);
setupSoldier(Box2d.bodyGrabbed, xx, yy);
Tiles.setMapTile(xx, yy, goodGuysArray[(goodGuysArray.length - 1)].mC);
};
};
};
};
};
};
};
};
Box2d.bodyGrabbed.x = xx;
Box2d.bodyGrabbed.y = yy;
Box2d.bodyGrabbed = null;
numGuns++;
};
i2++;
i++;
};
i2 = 0;
while (i2 < goodGuysArray.length) {
goodGuysArray[i2].mainLoop();
i2++;
};
}
function setupUpgrade2(i){
upgradesArray[i].gotoAndStop(3);
upgrade2 = true;
}
function setScore(){
statsMc.aliensLeftTxt.text = String(aliensLeft);
if (score > 999999){
score = 999999;
};
if (score < 10){
statsMc.score.text = ("00000" + String(score));
} else {
if (score < 100){
statsMc.score.text = ("0000" + String(score));
} else {
if (score < 1000){
statsMc.score.text = ("000" + String(score));
} else {
if (score < 10000){
statsMc.score.text = ("00" + String(score));
} else {
if (score < 100000){
statsMc.score.text = ("0" + String(score));
} else {
statsMc.score.text = String(score);
};
};
};
};
};
}
function soundFxBtn2(){
if (soundsSwitch == false){
statsMc.soundFxMc.gotoAndStop("off");
} else {
statsMc.soundFxMc.gotoAndStop("on");
};
}
function runRadar(yy){
if (upgrade3 == true){
if (radarArrowMcLayer.numChildren == 0){
radarArrowMc = new radarArrowAnim();
radarArrowMc.x = (700 - 15);
radarArrowMcLayer.addChild(radarArrowMc);
};
radarArrowMc.gotoAndPlay(1);
radarArrowMc.y = yy;
};
}
function setupUpgrade6(i){
upgrade6 = true;
upgradesArray[i].gotoAndStop(3);
}
public function findMining(myMine):Number{
var i2:*;
i2 = 0;
i2 = 0;
while (i2 < miningArray.length) {
if (miningArray[i2] == myMine){
break;
};
i2++;
};
return (i2);
}
function increaseEnergy(dec:Number){
energy = (energy + dec);
if (energy > 10000){
energy = 10000;
};
setEnergy();
}
function setupUpgrade1(i){
ammo = (ammo + 400);
setAmmo();
Sounds.playSoundFx("reloadFx", 1, 0, 1);
if (fireMissileOld == true){
fireMissile = true;
};
}
function endGame(){
aliensLeft = 0;
}
function setupBackObjects(){
var bObjects:Array;
var i:Number;
var badGuyName:String;
var badGuyX:Number;
var badGuyY:Number;
var bodyMc:*;
bObjects = bObjectsArray[0];
i = Useful.RandomNumber(1, 2);
i--;
badGuyName = bObjects[i];
badGuyX = Useful.RandomNumber(4, 9);
badGuyY = Useful.RandomNumber(2, 6);
badGuyX = (badGuyX * blockSize);
badGuyY = (badGuyY * blockSizeY);
bodyMc = Box2d.setupGrabbedItem(badGuyName, 405, 0.5, 0, "position", badGuyX, badGuyY, 1);
bodyMc.x = badGuyX;
bodyMc.y = badGuyY;
goodGuysArray.push(new GameGoodGuy(this, badGuyX, badGuyY, bodyMc, Useful, goodGuyRanges[0], 1, 5, "no_fire", 0.5, 10));
}
function setupUpgrade7(i){
upgrade6 = true;
}
function killAllBadGuys(){
var i2:int;
i2 = 0;
while (i2 < badGuysArray.length) {
badGuysArray[i2].remove();
i2++;
};
}
public function setNewDepth(){
setDepths();
}
function checkForPanelClick(){
var i2:*;
var cost:Number;
if (Box2d.bodyGrabbed != null){
deleteGrabbed();
} else {
i2 = 0;
while (i2 < itemsArray.length) {
if (itemsArray[i2].hitTestPoint(stage.mouseX, stage.mouseY, true)){
cost = (money - itemsCost[i2]);
if (cost >= 0){
if (itemsArray[i2].back.currentFrame == 1){
filterDelay = 1;
soldiersIconsArray[i2] = true;
itemsArray[i2].gotoAndStop("notBuy");
Box2d.currentIconIndex = i2;
if (i2 == 6){
Box2d.setupGrabbedItem("gunTower", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 7){
Box2d.setupGrabbedItem("rocketTower", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 8){
Box2d.setupGrabbedItem("mine", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 0){
Box2d.setupGrabbedItem("knight", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 1){
Box2d.setupGrabbedItem("knight2", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 4){
Box2d.setupGrabbedItem("wizard", 405, 0.5, 0, "position", 0, 0, 1);
} else {
if (i2 == 5){
Box2d.setupGrabbedItem("knight4", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 2){
Box2d.setupGrabbedItem("archer", 405, 0.5, 0, "position", 0, 0, 1);
} else {
if (i2 == 3){
Box2d.setupGrabbedItem("knight3", 405, 0.5, 0, "position", 120, 370, 1);
} else {
if (i2 == 7){
Box2d.setupGrabbedItem("gunTower", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 8){
Box2d.setupGrabbedItem("rocketTower", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 9){
Box2d.setupGrabbedItem("mining", 805, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 10){
Box2d.setupGrabbedItem("baseRepair", 405, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 11){
Box2d.setupGrabbedItem("barbedWire", 405, 0.5, 0, "position", 48, 200, 1);
} else {
if (i2 == 12){
Box2d.setupGrabbedItem("brickWall", 405, 0.5, 0, "position", 48, 200, 1);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
i2++;
};
i2 = 0;
while (i2 < upgradesArray.length) {
if (upgradesArray[i2].hitTestPoint(stage.mouseX, stage.mouseY, true)){
cost = (money - upgradesCost[i2]);
if (cost >= 0){
if (upgradesArray[i2].back.currentFrame == 1){
if (upgradesArray[i2].currentFrame != 3){
upgradesArray[i2].gotoAndStop("notBuy");
if (i2 == 3){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade4(i2);
} else {
if (i2 == 4){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade5(i2);
} else {
if (i2 == 5){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade6(i2);
} else {
if (i2 == 6){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade7(i2);
} else {
if (i2 == 0){
upgradesArray[i2].back.gotoAndStop(2);
decreaseMoney(upgradesCost[i2]);
setupUpgrade1(i2);
} else {
if (i2 == 1){
upgradesArray[i2].back.gotoAndStop(2);
Sounds.playSoundFx("newSoldierFx", 0.5, 0, 1);
decreaseMoney(upgradesCost[i2]);
setupUpgrade2(i2);
} else {
if (i2 == 2){
decreaseMoney(upgradesCost[i2]);
upgradesArray[i2].back.gotoAndStop(2);
setupUpgrade3(i2);
};
};
};
};
};
};
};
};
};
};
};
i2++;
};
checkForAfford();
};
}
public function runEndMsgs(){
gameOver("level_complete");
Sounds.mainLoop();
Box2d.runBox2d();
}
function setupBackground(){
backSkyMc = new backgroundSkyMc();
backSkyMc.gotoAndStop((int(((levelNumber - 1) / wavesInStage)) + 1));
inGameBackgroundMc.addChild(backSkyMc);
spritesMc.x = 0;
backSkyMc.x = 0;
inGameBackgroundMc.x = 0;
scrollxPos = spritesMc.x;
setupBackObjects();
}
function deleteGun(yy:Number){
gunsArray[(yy - 1)] = "";
}
function pauseOff(){
pauseSwitch = false;
rt.gameState = "play";
}
public function gameOverLoop(){
}
function increaseMoney(dec:Number){
money = (money + dec);
if (money > 10000){
money = 10000;
};
setMoney();
checkForAfford();
}
function getBasesArray(oldArray){
var i:*;
i = 0;
while (i < oldArray.length) {
basesArray[i] = oldArray[i];
i++;
};
}
function setupPlayer(userData){
Player = new GamePlayer(userData, this, Useful);
}
public function removeBossEnergy(){
statsMc.removeChild(timerClip);
timerClip = null;
}
public function mainLoop(){
var i2:int;
var i:*;
var numGuns:Number;
if (bossOn == true){
if (gameExplosions != null){
gameExplosions.mainLoop();
};
};
if (rt.mouseY < 480){
if (crosshairOn == false){
crosshairOn = true;
Mouse.hide();
crosshairMc = new crosshair();
inGameMsgsMc.addChild(crosshairMc);
};
crosshairMc.x = rt.mouseX;
crosshairMc.y = rt.mouseY;
} else {
if (crosshairOn == true){
crosshairOn = false;
Mouse.show();
inGameMsgsMc.removeChild(crosshairMc);
crosshairMc = null;
};
};
if (aliensLeft == 0){
fireMissile = false;
};
if (fireMissile == true){
numGuns = 0;
i = 0;
while (i < (levelHeightBlocks - 2)) {
if (gunsArray[i] != ""){
numGuns++;
};
i++;
};
ammo = (ammo - numGuns);
if (ammo < 0){
ammo = 0;
fireMissile = false;
fireMissileOld = true;
};
setAmmo();
fireMissileX = rt.mouseX;
fireMissileY = rt.mouseY;
};
if (ammo < 50){
if (ammoLowMc == null){
ammoLowMc = new GameAmmoLow();
inGameCatapultBtnMc.addChild(ammoLowMc);
};
ammoLowMc.x = rt.mouseX;
ammoLowMc.y = rt.mouseY;
} else {
if (ammoLowMc != null){
inGameCatapultBtnMc.removeChild(ammoLowMc);
ammoLowMc = null;
};
};
checkForGameOver();
Box2d.runBox2d();
runCivs();
doMoneyIncrease();
checkPanel();
Sounds.mainLoop();
i2 = 0;
while (i2 < badGuysArray.length) {
badGuysArray[i2].mainLoop();
i2++;
};
i2 = 0;
while (i2 < goodGuysArray.length) {
goodGuysArray[i2].mainLoop();
i2++;
};
i2 = 0;
while (i2 < missilesArray.length) {
missilesArray[i2].mainLoop();
i2++;
};
if (frozenArray.length > 0){
doFrozen();
};
i2 = (missilesArray.length - 1);
while (i2 >= 0) {
if (missilesArray[i2].dead == true){
missilesArray.splice(i2, 1);
};
i2--;
};
i2 = 0;
while (i2 < explosionsArray.length) {
explosionsArray[i2].mainLoop();
i2++;
};
i = 0;
while (i < particlesArray.length) {
particlesArray[i].mainLoop();
i++;
};
runWave();
levelTime++;
setLevel();
setScore();
runDepth();
}
public function gameOver(gameOverType){
var i2:*;
var numChild:Number;
fireMissile = false;
killAllMissiles();
if (ammoLowMc != null){
inGameCatapultBtnMc.removeChild(ammoLowMc);
ammoLowMc = null;
};
if (Box2d.bodyGrabbed != null){
deleteGrabbed();
};
i2 = 0;
while (i2 < badGuysArray.length) {
badGuysArray[i2].dead = true;
badGuysArray[i2].mC.gotoAndStop("die");
i2++;
};
if (gameOverType == "game_over"){
if (ammoLowMc != null){
inGameCatapultBtnMc.removeChild(ammoLowMc);
ammoLowMc = null;
};
Mouse.show();
if (crosshairOn == true){
crosshairOn = false;
Mouse.show();
inGameMsgsMc.removeChild(crosshairMc);
crosshairMc = null;
};
setupBasesArray();
setupGunsArray();
rt.gameState = 5;
Sounds.playSoundFx("gameOverFx", 1, 0, 1);
increaseScore(money);
gameOverMsgMc = new GameOverMsgAnim(this);
inGameMsgsMc.addChild(gameOverMsgMc);
gameOverMsgMc.play();
gameOverMsgMc.x = (movieWidth / 2);
gameOverMsgMc.y = (movieHeight / 2);
} else {
numChild = inGameMissilesMc.numChildren;
i2 = 0;
while (i2 < numChild) {
inGameMissilesMc.removeChildAt(0);
i2++;
};
Sounds.playSoundFx("levelCompleteFx", 1, 0, 1);
increaseScore(money);
increaseScore((headShots * 10));
rt.gameState = 5;
levelCompleteMsg = new GameLevelComplete(this);
inGameMsgsMc.addChild(levelCompleteMsg);
levelCompleteMsg.x = (movieWidth / 2);
levelCompleteMsg.y = ((movieHeight / 2) - 100);
};
}
}
}//package classesAS3
Section 27
//GameGoodGuy (classesAS3.GameGoodGuy)
package classesAS3 {
import flash.filters.*;
import flash.display.*;
import flash.media.*;
public class GameGoodGuy {
var xVel:Number;// = 0
var myDamageDelay:Number;
var hitVel;
var yPos:Number;// = 0
var inToGround:Number;
var myOldAnimationState:Number;
var numberOfMissiles;// = 0
public var soldierState:int;
var myDamage:Number;
var myArmour:Number;
var range:Number;
var energyMc:MovieClip;
public var rt:Object;
var myScore:Number;
var speed:Number;// = 0
var gravity:Number;
var delayToMove:Number;
var myName:String;
var projectileMc:Object;
var speedOld:Number;
var energyBarMc:GameEnergyBar;
var dead:Boolean;
var glowFilter:GlowFilter;
var yVel:Number;// = 0
var distanceArray:Array;
var knightPower:Boolean;
var myParent:Object;
var mC:Object;
var animMc:Object;
var energy:Number;// = 0
public var myCost:Number;
public var frozen:Boolean;// = false
var myFireDelay:Number;
var energyBarOn:Number;
var myProjectile:String;
var Useful:GameUseful;
var energyStart:Number;// = 0
var xPos:Number;// = 0
var xOrigin:Number;// = 0
var headHitBlock:Object;
var currentMapIndexX:Number;
var missileName:String;
var dropBombDelay:Number;
var delayToFireMissile:Number;// = 1
var currentMapIndexY:Number;
var targetX:Number;
var targetY:Number;
var filterDelay:Number;
var myRange:Number;
var xDir:Number;
var collisionCheck:Number;
public var myCurrentSound:SoundChannel;
var yOrigin:Number;// = 0
public static const SOLDIER_STATE_DEFEND:int = 1;
public static const SOLDIER_STATE_FALLING:int = 4;
public static const SOLDIER_E_MOVE:int = 5;
public static const SOLDIER_STATE_RETREAT:int = 3;
public static const SOLDIER_E_STAND:int = 0;
public static const SOLDIER_STATE_ATTACK:int = 0;
public static const SOLDIER_E_BUILD:int = 2;
public static const SOLDIER_STATE_MOVE:int = 5;
public static const SOLDIER_STATE_FIGHTING:int = 2;
public function GameGoodGuy(rt2, xStart, yStart, mcc, uu, myR, sp, myD, myP, myA, myC){
var rangeVary:Number;
var mapXYObject:Object;
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
speed = 0;
energyStart = 0;
energy = 0;
delayToFireMissile = 1;
numberOfMissiles = 0;
frozen = false;
super();
mC = mcc;
animMc = mcc.soldier;
myArmour = myA;
myCost = myC;
mC.myObject = this;
rt = rt2;
myDamage = myD;
myFireDelay = 100;
myProjectile = myP;
Useful = uu;
rangeVary = Useful.RandomNumber(1, 10);
rangeVary = (rangeVary - 10);
myRange = myR;
dead = false;
inToGround = 0;
xOrigin = xStart;
yOrigin = yStart;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
myParent = mC.myParent;
hitVel = 0;
energyBarOn = 0;
gravity = 0.1;
rangeVary = Useful.RandomNumber(1, 10);
rangeVary = (rangeVary / 50);
speed = (sp + rangeVary);
speedOld = (sp + rangeVary);
xDir = 1;
distanceArray = new Array();
glowFilter = new GlowFilter(0xFFFFFF, 1, 3, 3, 3, 1);
numberOfMissiles = 0;
energyStart = 100;
energy = energyStart;
myDamageDelay = 8;
soldierState = SOLDIER_STATE_ATTACK;
filterDelay = 1;
knightPower = false;
myName = mC.myType;
collisionCheck = 0;
delayToMove = 5;
dropBombDelay = rt.Useful.RandomNumber(10, 20);
targetX = mC.x;
mapXYObject = getCurrentMapIndex(mC);
currentMapIndexX = mapXYObject.indexX;
currentMapIndexY = mapXYObject.indexY;
}
function applyGravity(){
yVel = (yVel + gravity);
}
function updatePosition(){
}
function checkIfInRange(){
var mapXYObject:Object;
var myRange2:Number;
mapXYObject = getCurrentMapIndex(mC);
currentMapIndexX = mapXYObject.indexX;
currentMapIndexY = mapXYObject.indexY;
findEnemy((mapXYObject.indexX + 1), mapXYObject.indexY);
myRange2 = myRange;
if (distanceArray.length != 0){
if (distanceArray[0].dist < myRange2){
soldierState = SOLDIER_STATE_FIGHTING;
checkForFire();
} else {
soldierState = SOLDIER_STATE_ATTACK;
};
} else {
soldierState = SOLDIER_STATE_ATTACK;
};
}
function doJet(){
var mapXYObject:Object;
mC.x = (mC.x + speed);
if (mC.x > (rt.movieWidth + 60)){
remove();
} else {
dropBombDelay--;
if (dropBombDelay == 0){
dropBombDelay = rt.Useful.RandomNumber(10, 20);
mapXYObject = getCurrentMapIndex(mC);
currentMapIndexX = mapXYObject.indexX;
currentMapIndexY = mapXYObject.indexY;
dropBomb();
};
};
}
function dropBomb(){
var spriteData:Object;
var newXY:Object;
projectileMc = new jetFighterBomb();
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(mC.mReleaseMc);
spriteData = Useful.pointTowards(mC.x, mC.y, newXY.newX, newXY.newY);
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, myProjectile, Useful, spriteData, 16, this, myDamage, 0, currentMapIndexY));
}
function getCurrentMapIndex(spriteObject):Object{
var mapXYIndex:Object;
var sprX:Number;
var sprY:Number;
mapXYIndex = new Object();
sprX = int((spriteObject.x / rt.blockSize));
mapXYIndex.indexX = sprX;
sprX = (sprX * rt.blockSize);
mapXYIndex.xPos = sprX;
sprY = int((spriteObject.y / rt.blockSizeY));
mapXYIndex.indexY = sprY;
sprY = (sprY * rt.blockSizeY);
mapXYIndex.yPos = sprY;
return (mapXYIndex);
}
function doCiv(){
var risingScoreMc:*;
mC.x = (mC.x - 0.5);
if (mC.x < rt.blockSize){
rt.increaseMoney(250);
risingScoreMc = new GameBonusTxt(rt, rt.inGameScoreMc, 250);
rt.inGameScoreMc.addChild(risingScoreMc);
risingScoreMc.x = rt.civMc.x;
risingScoreMc.y = (rt.civMc.y - 10);
rt.civMc = null;
remove();
};
}
function findEnemy(xx, yy){
var distanceBadKing:Object;
var i2:int;
var distanceObject:Object;
var sprite1:MovieClip;
yy = (yy * rt.blockSizeY);
distanceArray = new Array();
distanceBadKing = new Object();
i2 = 0;
while (i2 < rt.badGuysArray.length) {
distanceObject = new Object();
sprite1 = rt.badGuysArray[i2].mC;
if (sprite1.x < rt.movieWidth){
if (sprite1.y > yy){
if (sprite1.y < (yy + rt.blockSizeY)){
distanceObject.distSprite = sprite1;
distanceObject.dist = Useful.getDistance(mC.x, mC.y, distanceObject.distSprite.x, distanceObject.distSprite.y);
distanceArray.push(distanceObject);
};
};
};
i2++;
};
distanceArray.sortOn("dist", Array.NUMERIC);
}
function increaseEnergy(){
energy = (energy + 0.1);
if (energy > 100){
energy = 100;
};
}
function checkForFire(){
var myFireDelay2:*;
var spriteData:Object;
var newXY:Object;
var mapI:Object;
if (rt.rt.gameState != 5){
delayToFireMissile = 0;
if (delayToFireMissile == 0){
myFireDelay2 = myFireDelay;
if (rt.upgrade1 == true){
myFireDelay2 = int((myFireDelay / 2));
};
delayToFireMissile = myFireDelay2;
if (animMc.currentFrame != 3){
animMc.gotoAndStop("attack");
};
if (myProjectile != "grenade"){
if (mC.myType != "archer"){
if (mC.myType != "knight4"){
if (mC.myType != "rocketTower"){
if (mC.myType != "gunTower"){
if (mC.myType != "knight"){
if (mC.myType != "wizard"){
if (mC.myType == "knight2"){
projectileMc = new GameGrenade();
} else {
projectileMc = new GameBullet();
};
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(animMc.mReleaseMc);
if (myProjectile == "grenade"){
spriteData = Useful.getArcVelocity(1, 8, newXY.newX, newXY.newY, rt.fireMissileX, (rt.fireMissileY - 10));
} else {
spriteData = Useful.pointTowards(rt.fireMissileX, rt.fireMissileY, newXY.newX, newXY.newY);
};
mapI = rt.getMapIndexXY(rt.fireMissileX, rt.fireMissileY);
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, myProjectile, Useful, spriteData, 16, this, myDamage, mapI.xPos, mapI.yPos));
};
};
};
};
};
};
};
};
};
}
function remove(){
var i2:int;
var arrayIndex:Number;
var i1:*;
if (myCurrentSound != null){
myCurrentSound.stop();
};
i2 = 0;
while (i2 < rt.inGameGoodGuysMc.numChildren) {
if (rt.inGameGoodGuysMc.getChildAt(i2) == mC){
rt.inGameGoodGuysMc.removeChild(mC);
mC.stop();
};
i2++;
};
arrayIndex = 0;
i1 = 0;
while (i1 < rt.goodGuysArray.length) {
if (this == rt.goodGuysArray[i1]){
arrayIndex = i1;
};
i1++;
};
rt.goodGuysArray.splice(arrayIndex, 1);
}
public function fireProjectile(){
var spriteData:Object;
var newXY:Object;
var mapI:Object;
if (rt.rt.gameState != 5){
if (rt.rt.gameState != 4){
spriteData = new Object();
if (mC.myType == "knight2"){
projectileMc = new GameGrenade();
} else {
if (mC.myType == "archer"){
projectileMc = new GameMissileMc();
} else {
if (mC.myType == "knight3"){
projectileMc = new GameMortarShell();
} else {
if (mC.myType == "knight4"){
projectileMc = new GameShell();
rt.Sounds.playSoundFx("artilleryFx", 0.1, 0, 1);
} else {
if (mC.myType == "rocketTower"){
rt.Sounds.playSoundFx("rocketFx", 0.1, 0, 1);
projectileMc = new GameRocket();
} else {
rt.Sounds.playSoundFx("pistolFx", 0.05, 0, 1);
projectileMc = new GameBullet();
};
};
};
};
};
rt.inGameMissilesMc.addChild(projectileMc);
newXY = rt.Useful.localToGlobalXY(animMc.mReleaseMc);
if (myProjectile == "grenade"){
if (mC.myType == "knight4"){
spriteData = Useful.getArcVelocity(2, 20, newXY.newX, newXY.newY, rt.fireMissileX, (rt.fireMissileY - 10));
} else {
spriteData = Useful.getArcVelocity(1, 8, newXY.newX, newXY.newY, rt.fireMissileX, (rt.fireMissileY - 10));
};
} else {
spriteData = Useful.pointTowards(rt.fireMissileX, rt.fireMissileY, newXY.newX, newXY.newY);
};
mapI = rt.getMapIndexXY(rt.fireMissileX, rt.fireMissileY);
rt.missilesArray.push(new GameMissile(projectileMc, rt, newXY.newX, newXY.newY, myProjectile, Useful, spriteData, 16, this, myDamage, mapI.xPos, mapI.yPos));
};
};
}
function decreaseEnergy(damage, missile){
var e:Number;
var myArmour2:*;
var mapXYObject:Object;
myDamageDelay = 1;
if (energy > 0){
if (filterDelay > 1){
damage = int((damage / 2));
};
if (knightPower == true){
damage = (damage - 3);
if (damage < 1){
damage = 1;
};
};
if (myProjectile != "no_fire"){
if (rt.upgrade2 == true){
myArmour2 = (myArmour + 0.3);
damage = (damage / myArmour2);
} else {
damage = (damage / myArmour);
};
};
energy = (energy - damage);
if (energyBarOn == 0){
energyBarOn = 1;
energyBarMc = new GameEnergyBar(this);
mC.addChild(energyBarMc);
};
energyBarMc.x = 0;
energyBarMc.y = -25;
e = (energy / 10);
energyBarMc.bar.bar.y = int((10 - e));
if (energy <= 0){
mapXYObject = rt.getMapIndex(mC);
rt.Tiles.setMapClear(mapXYObject.indexX, mapXYObject.indexY);
if (mC.myType == "civMan"){
rt.civMc = null;
} else {
if (mC.myType == "civWoman"){
rt.civMc = null;
} else {
if (mC.myType == "kingGood"){
rt.findMyBase(mC.y);
rt.numBases--;
myCurrentSound = rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
} else {
if (myProjectile == "no_fire"){
myCurrentSound = rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 17, 2, 20, true, false, false, 8, 3, mC.goodBad, currentMapIndexY, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, mC.goodBad, currentMapIndexY, 0));
} else {
rt.deleteGun(mapXYObject.indexY);
myCurrentSound = rt.Sounds.playSoundFx("die_v1_Fx", 1, 0, 1);
};
};
};
};
dead = true;
if (myCurrentSound != null){
myCurrentSound.stop();
};
animMc.gotoAndStop("die");
return (true);
} else {
if (myProjectile == "no_fire"){
if (energy < 30){
mC.soldier.gotoAndStop("hurt");
};
} else {
if (animMc.currentFrame != 3){
animMc.gotoAndStop("hurt");
};
};
};
};
return (false);
}
function mainLoop(){
var civ:Boolean;
if (myProjectile != "no_fire"){
civ = false;
if (mC.myType == "civMan"){
civ = true;
} else {
if (mC.myType == "civWoman"){
civ = true;
};
};
if (civ == true){
mC.scaleX = -1;
if (dead != true){
doCiv();
};
} else {
xDir = -1;
mC.scaleX = 1;
if (dead == true){
if (animMc.currentFrame != 5){
if (mC.myType != "kingGood"){
remove();
};
};
} else {
if (filterDelay > 1){
filterDelay--;
if (filterDelay == 1){
mC.filters = [];
};
};
if (delayToMove > 0){
delayToMove--;
} else {
if (frozen == false){
if (mC.myType != "kingGood"){
if (mC.myType != "mining"){
if (mC.myType != "mine"){
if (mC.myType != "jet"){
if (rt.fireMissile == true){
checkForFire();
};
if (rt.upgrade7 == true){
increaseEnergy();
};
} else {
doJet();
};
};
};
};
};
};
};
};
};
}
}
}//package classesAS3
Section 28
//GameGunTower (classesAS3.GameGunTower)
package classesAS3 {
import flash.display.*;
public class GameGunTower extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameGunTower(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 29
//GameHeadShotTxt (classesAS3.GameHeadShotTxt)
package classesAS3 {
import flash.display.*;
public class GameHeadShotTxt extends MovieClip {
public var inGameScoreMc:Sprite;
public var txt:MovieClip;
public var scoreNumber:Number;
public var rt:Object;
public function GameHeadShotTxt(rt2, inGame, scoreN){
super();
addFrameScript(30, frame31);
rt = rt2;
inGameScoreMc = inGame;
scoreNumber = scoreN;
txt.headTxt.text = (("Head shot!!\n" + String(scoreNumber)) + " score");
}
function frame31(){
this.inGameScoreMc.removeChild(this);
stop();
}
}
}//package classesAS3
Section 30
//GameHitFloorSmoke (classesAS3.GameHitFloorSmoke)
package classesAS3 {
import flash.display.*;
public class GameHitFloorSmoke extends MovieClip {
public var myType:String;
public var myObject:Object;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public function GameHitFloorSmoke(rt2, myP, myO){
super();
myObject = myO;
rt = rt2;
myParent = myP;
myType = "smoke";
}
public function removeMe(){
if (myObject != null){
myObject.mySmoke = null;
if (this.parent != null){
myParent.removeChild(this);
};
};
}
}
}//package classesAS3
Section 31
//GameIceHole1 (classesAS3.GameIceHole1)
package classesAS3 {
import flash.display.*;
public class GameIceHole1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameIceHole1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 32
//GameIceHole2 (classesAS3.GameIceHole2)
package classesAS3 {
import flash.display.*;
public class GameIceHole2 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameIceHole2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 33
//GameIntroAnim (classesAS3.GameIntroAnim)
package classesAS3 {
import flash.net.*;
import flash.events.*;
import flash.display.*;
public class GameIntroAnim extends MovieClip {
public var link_btn2:SimpleButton;
public var link_btn:SimpleButton;
var rt:Object;
public function GameIntroAnim(rt2){
super();
addFrameScript(0, frame1, 90, frame91, 91, frame92);
rt = rt2;
this.play();
}
public function gotoBadHed(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_SPLASH"), "_blank");
}
function frame91(){
stop();
}
function frame1(){
link_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBadHed, false);
link_btn2.addEventListener(MouseEvent.MOUSE_DOWN, gotoPlayGame, false);
}
function frame92(){
this.rt.introFinished();
stop();
}
public function gotoPlayGame(e:MouseEvent):void{
gotoAndPlay("continue_to_menu");
}
}
}//package classesAS3
Section 34
//GameJetFighter (classesAS3.GameJetFighter)
package classesAS3 {
import flash.display.*;
public class GameJetFighter extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameJetFighter(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 35
//GameKingGood (classesAS3.GameKingGood)
package classesAS3 {
import flash.display.*;
public class GameKingGood extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
var soldierState:Number;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public static const SOLDIER_STATE_DEFEND:int = 1;
public static const SOLDIER_STATE_ATTACK:int = 0;
public static const SOLDIER_STATE_FIGHTING:int = 2;
public function GameKingGood(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myParent.removeChild(this);
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt.rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
public function mainLoop(){
}
}
}//package classesAS3
Section 36
//GameKnight1 (classesAS3.GameKnight1)
package classesAS3 {
import flash.display.*;
public class GameKnight1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameKnight1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 37
//GameKnight2 (classesAS3.GameKnight2)
package classesAS3 {
import flash.display.*;
public class GameKnight2 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameKnight2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 38
//GameKnight3 (classesAS3.GameKnight3)
package classesAS3 {
import flash.display.*;
public class GameKnight3 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameKnight3(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 39
//GameKnight4 (classesAS3.GameKnight4)
package classesAS3 {
import flash.display.*;
public class GameKnight4 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameKnight4(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 40
//GameLevelComplete (classesAS3.GameLevelComplete)
package classesAS3 {
import flash.display.*;
public class GameLevelComplete extends MovieClip {
public var rt:Object;
public var msg:MovieClip;
public var howWellDone:Number;
public var levelNumber:Number;
public function GameLevelComplete(rt2){
super();
addFrameScript(0, frame1, 14, frame15, 30, frame31, 142, frame143, 152, frame153);
rt = rt2;
howWellDone = 1;
this.play();
}
function frame143(){
if (this.rt.levelNumber == this.rt.levelMax){
stop();
msg.gotoAndStop(2);
} else {
play();
};
}
function frame153(){
if (this.rt.levelNumber == this.rt.levelMax){
this.rt.gameComplete();
} else {
this.rt.endLevelStuff();
};
stop();
}
function frame15(){
msg.scoreBonus.text = String(this.rt.money);
msg.timeBonus.text = String((this.rt.headShots * 10));
msg.totalScore.text = String(this.rt.score);
levelNumber = this.rt.levelNumber;
if (levelNumber < this.rt.levelMax){
levelNumber++;
};
if (this.rt.levelNumber == this.rt.levelMax){
msg.titleMc.gotoAndStop("gameComplete");
};
}
function frame1(){
play();
}
function frame31(){
}
}
}//package classesAS3
Section 41
//GameLoop (classesAS3.GameLoop)
package classesAS3 {
import flash.net.*;
import mochi.as3.*;
import flash.events.*;
import flash.system.*;
import flash.text.*;
import flash.display.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
public dynamic class GameLoop extends MovieClip {
public var gperc2:Number;// = 0
public var pauseScreen:GamePause;
public var mochi_Auto_ID:String;// = "a21cca36d59cb18b"
public var mouseNumberDown:Number;
public var cookieData:Object;
public var mapScreen2:GameMapScreen;
var fadeOutArray:Array;
public var gskip:Number;// = 0
public var mochiId:String;// = "dc88f0b8ba614a15"
public var MindJolt_Site:Boolean;// = false
public var hiScores:ZattikkaHiScores;
public var introAnim:GameIntroAnim;
public var box2dDone:Boolean;// = false
public var Cookie:as3_shared_objects;
public var titleMusic:SoundMusic1;
public var percentLoaded:int;
public var Useful:GameUseful;
public var domain:String;
var FPS:TextField;
public var itemsBought:Number;// = 0
public var mochi_Medi_ID:String;// = "cb49260a2ff639f9"
public var titleScreen:GameTitleScreen;
public var GameMain:GameGame;
public var loaderStarted:Boolean;// = false
public var loadingBox:LoadingBox;
public var mochi_Radar_ID:String;// = "bb4630f54c147b79"
public var titleStarted:Boolean;// = false
public var mochiScoreId:String;// = "002c83d7f37a0997"
var Memory:TextField;
public var Kongregate_Site:Boolean;// = false
public var userLoggedIn:Boolean;
public var mouseDownClicked:Boolean;// = false
public var mochiOn:Boolean;// = false
public var userProperties:Object;
public var mochi_Air_ID:String;// = "833440b3828dd212"
public var mainBtnsSetup;
public var allowed_site:String;// = "arcadebomb.com"
public var titleScreenMc:Sprite;
public var ArcadeBomb_Site:Boolean;// = false
public var mochi_All_ID:String;// = "5678e0e591766af6"
public var titleMusicChannel:SoundChannel;
var Instructions:TextField;
public var gperc:Number;// = 0
public var gameState:int;// = 2
public var policyLoaded:Boolean;// = false
var currentTime:int;// = 0
public var keyPressDown:Boolean;// = false
public static const STATE_SYSTEM_PLAY:int = 3;
public static const STATE_SYSTEM_INTRO:int = 9;
public static const STATE_SYSTEM_PAUSE:int = 4;
public static const STATE_SYSTEM_LOADER:int = 0;
public static const STATE_SYSTEM_SETUP_GAME:int = 8;
public static const STATE_SYSTEM_CHAT:int = 10;
public static const STATE_SYSTEM_END_MSG:int = 12;
public static const STATE_SYSTEM_MOCHI:int = 2;
public static const STATE_SYSTEM_NEW_LEVEL:int = 7;
public static const STATE_SYSTEM_GAME_COMPLETE:int = 6;
public static const STATE_SYSTEM_START_MSG:int = 11;
public static const STATE_SYSTEM_TITLE:int = 1;
public static const STATE_SYSTEM_GAME_OVER:int = 5;
public function GameLoop():void{
var MovieDimensionWidth:Number;
var MovieDimensionHeight:Number;
var LevelDimensionWidth:Number;
var LevelDimensionHeight:Number;
var numberOfStartLives:Number;
var maxNumberOfLevels:Number;
var Box2dScalingFactor:Number;
policyLoaded = false;
mochiOn = false;
mochiId = "dc88f0b8ba614a15";
mochiScoreId = "002c83d7f37a0997";
mochi_Radar_ID = "bb4630f54c147b79";
mochi_Medi_ID = "cb49260a2ff639f9";
mochi_Air_ID = "833440b3828dd212";
mochi_Auto_ID = "a21cca36d59cb18b";
mochi_All_ID = "5678e0e591766af6";
gameState = STATE_SYSTEM_MOCHI;
loaderStarted = false;
titleStarted = false;
itemsBought = 0;
gperc = 0;
gperc2 = 0;
gskip = 0;
currentTime = 0;
FPS = new TextField();
Instructions = new TextField();
Memory = new TextField();
allowed_site = "arcadebomb.com";
MindJolt_Site = false;
Kongregate_Site = false;
ArcadeBomb_Site = false;
keyPressDown = false;
mouseDownClicked = false;
box2dDone = false;
super();
addFrameScript(0, frame1, 2, frame3);
userLoggedIn = false;
MochiBot.track(this, "70fd3daa");
MochiBot.track(this, "ff592708");
mouseNumberDown = 0;
mainBtnsSetup = false;
fadeOutArray = new Array();
Useful = new GameUseful(root);
MovieDimensionWidth = 700;
MovieDimensionHeight = 560;
LevelDimensionWidth = 10;
LevelDimensionHeight = 9;
numberOfStartLives = 3;
maxNumberOfLevels = 25;
Box2dScalingFactor = 30;
GameMain = new GameGame(root, MovieDimensionWidth, MovieDimensionHeight, LevelDimensionWidth, LevelDimensionHeight, numberOfStartLives, Useful, maxNumberOfLevels, Box2dScalingFactor);
titleScreenMc = new Sprite();
addChild(titleScreenMc);
addChild(GameMain);
addEventListener(Event.ENTER_FRAME, runGame, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyListener);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyListenerDown);
}
public function doTitleScreenStuff(){
if (titleMusicChannel == null){
if (GameMain.musicSwitch == true){
titleMusicChannel = titleMusic.play(0, 10000);
GameMain.Sounds.setVolume(titleMusicChannel, 0.5);
};
};
titleScreen.playBtn.addEventListener(MouseEvent.MOUSE_UP, playGame);
mainBtnsSetup = true;
titleScreen.instructionsBtn.addEventListener(MouseEvent.MOUSE_UP, doInstScreen);
titleScreen.controlsBtn.addEventListener(MouseEvent.MOUSE_UP, doControlsScreen);
titleScreen.musicBtn.addEventListener(MouseEvent.MOUSE_UP, doSoundBtn);
}
public function showLeaderBoard2(msgMc){
var o:Object;
var boardID:String;
var msgMc = msgMc;
o = {n:[0, 0, 2, 12, 8, 3, 13, 7, 15, 3, 7, 10, 0, 9, 9, 7], f:function (i:Number, s:String):String{
if (s.length == 16){
return (s);
};
return (this.f((i + 1), (s + this.n[i].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:mochiScoreId, onClose:msgMc.gotoAndStop("mainScreen")});
}
public function showLeaderBoard(msgMc){
var o:Object;
var boardID:String;
var msgMc = msgMc;
o = {n:[0, 0, 2, 12, 8, 3, 13, 7, 15, 3, 7, 10, 0, 9, 9, 7], f:function (i:Number, s:String):String{
if (s.length == 16){
return (s);
};
return (this.f((i + 1), (s + this.n[i].toString(16))));
}};
boardID = o.f(0, "");
MochiScores.showLeaderboard({boardID:mochiScoreId, score:GameMain.score, onClose:msgMc.play});
}
public function doControlsScreen(event:MouseEvent):void{
titleScreen.gotoAndStop("controls");
}
public function setupTitleScreen(){
titleScreen = new GameTitleScreen(this);
titleScreen.x = 0;
titleScreenMc.addChild(titleScreen);
titleScreen.playBtn.addEventListener(MouseEvent.MOUSE_UP, playGame);
if (GameMain.musicSwitch == false){
titleMusic = new SoundMusic1();
titleMusicChannel = null;
} else {
if (titleMusic == null){
titleMusic = new SoundMusic1();
titleMusicChannel = null;
};
};
if (titleMusicChannel != null){
GameMain.Sounds.setVolume(titleMusicChannel, 0.5);
};
}
public function doScoresBtns(){
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.1);
};
titleScreen.backBtn.addEventListener(MouseEvent.MOUSE_UP, doLastScoreScreen);
}
public function doInstrBtns(){
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.1);
};
titleScreen.backBtn.addEventListener(MouseEvent.MOUSE_UP, doLastInstScreen);
}
public function doMapScreenOld(event:MouseEvent):void{
GameMain.levelNumber = userProperties.levelNumber;
GameMain.score = userProperties.score;
GameMain.loadBasesArray(userProperties.bases);
GameMain.upgrade1 = userProperties.upgrade1;
GameMain.upgrade2 = userProperties.upgrade2;
titleScreenMc.removeChild(titleScreen);
setupMapScreen();
}
public function mouseMoveHandler(ev:Event):void{
}
public function keyListener(event:KeyboardEvent):void{
keyPressDown = false;
GameMain.scrollScreen = "";
GameMain.zoomScreen = "";
if (event.keyCode == 80){
if (gameState != STATE_SYSTEM_PAUSE){
if (gameState == STATE_SYSTEM_PLAY){
gameState = STATE_SYSTEM_PAUSE;
pauseScreen = new GamePause(this);
GameMain.addChild(pauseScreen);
};
} else {
gameState = STATE_SYSTEM_PLAY;
GameMain.removeChild(this.pauseScreen);
};
};
if (event.keyCode == 67){
if (gameState == STATE_SYSTEM_PLAY){
};
};
if (event.keyCode == 90){
if (gameState == STATE_SYSTEM_PLAY){
};
} else {
if (event.keyCode == 69){
if (gameState == STATE_SYSTEM_PLAY){
};
} else {
if (event.keyCode == 82){
if (gameState == STATE_SYSTEM_PLAY){
};
} else {
if (event.keyCode == 78){
if (gameState == STATE_SYSTEM_PLAY){
};
} else {
if (event.keyCode == 77){
if (gameState == STATE_SYSTEM_PLAY){
};
} else {
if (event.keyCode == Keyboard.UP){
keyPressDown = true;
} else {
if (event.keyCode == Keyboard.DOWN){
keyPressDown = true;
};
};
};
};
};
};
};
}
public function loggedIn(event:Object):void{
userProperties = event.userProperties;
userLoggedIn = true;
}
function frame3(){
stop();
}
public function registerItem(event:Object):void{
if (event.id == mochi_Radar_ID){
GameMain.upgrade3 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[2].gotoAndStop(3);
GameMain.upgradesArray[2].lockMc.gotoAndStop("unlocked");
};
} else {
if (event.id == mochi_Medi_ID){
GameMain.upgrade4 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[3].gotoAndStop(3);
GameMain.upgradesArray[3].lockMc.gotoAndStop("unlocked");
};
} else {
if (event.id == mochi_Air_ID){
GameMain.upgrade5 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[4].gotoAndStop(3);
GameMain.upgradesArray[4].lockMc.gotoAndStop("unlocked");
};
} else {
if (event.id == mochi_Auto_ID){
GameMain.upgrade6 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[5].gotoAndStop(3);
GameMain.upgradesArray[5].lockMc.gotoAndStop("unlocked");
};
} else {
if (event.id == mochi_All_ID){
GameMain.upgrade7 = true;
GameMain.upgrade2 = true;
GameMain.upgrade3 = true;
GameMain.upgrade4 = true;
GameMain.upgrade5 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[2].gotoAndStop(3);
GameMain.upgradesArray[2].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[3].gotoAndStop(3);
GameMain.upgradesArray[3].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[4].gotoAndStop(3);
GameMain.upgradesArray[4].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[5].gotoAndStop(3);
GameMain.upgradesArray[5].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[6].gotoAndStop(3);
GameMain.upgradesArray[6].lockMc.gotoAndStop("unlocked");
};
};
};
};
};
};
itemsBought++;
if (itemsBought >= 4){
GameMain.upgrade7 = true;
if (GameMain.statsMc != null){
GameMain.upgradesArray[6].gotoAndStop(3);
GameMain.upgradesArray[6].lockMc.gotoAndStop("unlocked");
};
};
}
public function doMainScreen(event:MouseEvent):void{
titleScreen.gotoAndStop("mainScreen");
}
public function loggedOut(event:Object):void{
if (userLoggedIn == true){
userLoggedIn = false;
};
}
public function doPlay():void{
GameMain.mainLoop();
}
public function properties_saved(ev:Object):void{
}
function frame1(){
stop();
}
public function doSoundBtn(event:MouseEvent):void{
if (titleScreen.musicMc.currentFrame == 1){
titleScreen.musicMc.gotoAndStop("off");
GameMain.musicSwitch = false;
titleMusicChannel.stop();
} else {
titleScreen.musicMc.gotoAndStop("on");
GameMain.musicSwitch = true;
titleMusicChannel = titleMusic.play(0, 10000);
};
}
function doBackBtn2(event:MouseEvent):void{
titleScreen.gotoAndStop("mainScreen");
}
public function saveProperties(){
MochiCoins.saveUserProperties({bases:GameMain.basesArray, score:GameMain.score, levelNumber:GameMain.levelNumber, upgrade1:GameMain.upgrade1, upgrade2:GameMain.upgrade2});
}
public function mouseLeftClick(ev:Event):void{
if (gameState == STATE_SYSTEM_PLAY){
if (this.mouseY < 480){
GameMain.on_mouse_down();
} else {
if (mouseDownClicked == false){
mouseDownClicked = true;
GameMain.checkForPanelClick();
};
};
} else {
if (gameState == STATE_SYSTEM_START_MSG){
GameMain.startGameMsgMc.gotoAndStop("endStartMsg");
};
};
}
public function doMapScreen(event:MouseEvent):void{
titleScreenMc.removeChild(titleScreen);
setupMapScreen();
}
public function loadingComplete(){
this.loadingBox.removeEventListener(Event.ENTER_FRAME, loadingUpdater, false);
if (loadingBox != null){
this.removeChild(loadingBox);
};
loadingBox = null;
finishPreload();
}
public function doSetup(event:MouseEvent):void{
removeChild(mapScreen2);
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.3);
};
GameMain.setupGame("start");
gameState = STATE_SYSTEM_START_MSG;
}
public function showHUD():void{
FPS.text = "FPS";
FPS.textColor = 0xFFFFFF;
Memory.text = "mem";
Memory.x = 200;
stage.addChild(FPS);
stage.addChild(Memory);
}
public function openURL(pageToOpen:String){
var url:String;
var req:URLRequest;
url = pageToOpen;
req = new URLRequest(url);
navigateToURL(req, "_blank");
}
public function handleError(ev:Object):void{
switch (ev.type){
case MochiCoins.PROPERTIES_SIZE:
break;
case MochiCoins.NO_USER:
userLoggedIn = false;
break;
};
}
function doLastContScreen(event:MouseEvent):void{
fadeOutArray.push(GameMain.Sounds.currentChannel);
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.5);
};
titleScreen.gotoAndStop("mainScreen");
}
public function startChat(){
gameState = STATE_SYSTEM_CHAT;
}
public function introFinished(){
removeChild(introAnim);
gameState = STATE_SYSTEM_TITLE;
}
function setupMapScreen(){
mapScreen2 = new GameMapScreen(this);
mapScreen2.x = 0;
addChild(mapScreen2);
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.1);
};
}
function doNextInstScreen(event:MouseEvent):void{
if (titleScreen.currentFrame < 4){
titleScreen.nextFrame();
} else {
titleScreen.gotoAndStop("mainScreen");
};
}
public function FadeOut(channel){
var transform1:SoundTransform;
var vol:Number;
var i2:*;
if (channel != null){
transform1 = channel.soundTransform;
vol = transform1.volume;
vol = (vol - 0.1);
GameMain.Sounds.setVolume(channel, vol);
if (vol <= 0){
channel.stop();
i2 = 0;
while (i2 < fadeOutArray.length) {
if (fadeOutArray[i2] == channel){
fadeOutArray.splice(i2, 1);
};
i2++;
};
};
};
}
function doNextContScreen(event:MouseEvent):void{
if (titleScreen.currentFrame < 7){
titleScreen.nextFrame();
} else {
titleScreen.gotoAndStop("mainScreen");
};
}
function doLastInstScreen(event:MouseEvent):void{
fadeOutArray.push(GameMain.Sounds.currentChannel);
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.5);
};
titleScreen.gotoAndStop("mainScreen");
}
function pauseGame(){
if (gameState != 4){
if (gameState == 3){
gameState = 4;
pauseScreen = new GamePause(this);
GameMain.addChild(pauseScreen);
};
} else {
gameState = 3;
GameMain.removeChild(pauseScreen);
};
}
public function doContrBtns(){
if (GameMain.musicSwitch == true){
GameMain.Sounds.setVolume(titleMusicChannel, 0.1);
};
titleScreen.backBtn.addEventListener(MouseEvent.MOUSE_UP, doLastContScreen);
}
public function doHighscores(event:MouseEvent):void{
titleScreen.gotoAndStop("highscores");
}
public function runGame(e:Event):void{
var i:*;
switch (gameState){
case STATE_SYSTEM_INTRO:
break;
case STATE_SYSTEM_MOCHI:
doMochi();
break;
case STATE_SYSTEM_LOADER:
doLoadScreen();
break;
case STATE_SYSTEM_TITLE:
doTitleScreen();
break;
case STATE_SYSTEM_PLAY:
doPlay();
break;
case STATE_SYSTEM_GAME_OVER:
GameMain.gameOverLoop();
break;
case STATE_SYSTEM_GAME_COMPLETE:
GameMain.Sounds.mainLoop();
i = 0;
while (i < fadeOutArray.length) {
FadeOut(fadeOutArray[i]);
i++;
};
break;
case STATE_SYSTEM_NEW_LEVEL:
GameMain.gameOver("level_complete");
break;
case STATE_SYSTEM_CHAT:
GameMain.runStartChat();
break;
case STATE_SYSTEM_START_MSG:
GameMain.Box2d.runBox2d();
break;
case STATE_SYSTEM_END_MSG:
GameMain.runEndMsgs();
break;
case STATE_SYSTEM_PAUSE:
break;
};
}
public function doInstScreen(event:MouseEvent):void{
titleScreen.gotoAndStop("instructions");
}
function doLastScoreScreen(event:MouseEvent):void{
titleScreen.gotoAndStop("mainScreen");
}
public function showShopItem(shopItemID){
GameMain.pauseSwitch = true;
gameState = STATE_SYSTEM_PAUSE;
pauseScreen = new GamePause(this);
GameMain.addChild(pauseScreen);
mouseNumberDown = 1;
MochiCoins.showItem({x:330, y:360, item:shopItemID});
}
public function playGame(event:MouseEvent):void{
if (GameMain.upgrade9 == true){
if (userProperties == null){
titleScreenMc.removeChild(titleScreen);
setupMapScreen();
} else {
titleScreen.gotoAndStop("autoSave");
};
} else {
titleScreenMc.removeChild(titleScreen);
setupMapScreen();
};
}
public function doMapScreenStuff(){
mapScreen2.playBtn.addEventListener(MouseEvent.MOUSE_UP, doSetup);
}
public function submitScore(){
this.setChildIndex(hiScores, (this.numChildren - 1));
hiScores.setDetails(386, 0, "last-command", "7SVbXJB3eUIT1qg", false, GameMain.score, String(GameMain.score), "points", false);
}
public function updateHUD():void{
var fps:Number;
fps = (1 / ((getTimer() - currentTime) / 1000));
currentTime = getTimer();
FPS.text = ("FPS: " + Math.round(fps).toString());
Memory.text = (("Mem :" + (Math.round(((System.totalMemory / 0x100000) * 10)) / 10).toString()) + " MB");
}
public function doTitleScreen():void{
var i:*;
if (((!(titleStarted)) && ((currentFrame == 3)))){
setupTitleScreen();
titleStarted = true;
};
if (GameMain.musicSwitch == true){
i = 0;
while (i < fadeOutArray.length) {
FadeOut(fadeOutArray[i]);
i++;
};
};
}
public function keyListenerDown(event:KeyboardEvent):void{
if (keyPressDown == false){
if (gameState == STATE_SYSTEM_PLAY){
if (event.keyCode == Keyboard.SPACE){
keyPressDown = true;
GameMain.keyBuyUpgrades(8);
} else {
if (event.keyCode == 49){
keyPressDown = true;
GameMain.keyBuyUpgrades(0);
} else {
if (event.keyCode == 50){
keyPressDown = true;
GameMain.keyBuyUpgrades(1);
} else {
if (event.keyCode == 51){
keyPressDown = true;
GameMain.keyBuyUpgrades(2);
} else {
if (event.keyCode == 52){
keyPressDown = true;
GameMain.keyBuyUpgrades(3);
} else {
if (event.keyCode == 53){
keyPressDown = true;
GameMain.keyBuyUpgrades(4);
} else {
if (event.keyCode == 54){
keyPressDown = true;
GameMain.keyBuyUpgrades(5);
} else {
if (event.keyCode == 55){
keyPressDown = true;
GameMain.keyBuyUpgrades(6);
} else {
if (event.keyCode == 56){
keyPressDown = true;
GameMain.keyBuyUpgrades(7);
} else {
if (event.keyCode == 81){
keyPressDown = true;
GameMain.keyBuyUpgrades(8);
} else {
if (event.keyCode == 87){
keyPressDown = true;
GameMain.keyBuyUpgrades(9);
} else {
if (event.keyCode == 69){
keyPressDown = true;
GameMain.keyBuyUpgrades(10);
} else {
if (event.keyCode == 82){
keyPressDown = true;
GameMain.keyBuyUpgrades(11);
} else {
if (event.keyCode == 84){
keyPressDown = true;
GameMain.keyBuyUpgrades(12);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function closeScore(){
this.setChildIndex(hiScores, 0);
}
public function loadingProgress(e:Event):void{
percentLoaded = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
gperc2 = int(percentLoaded);
}
public function newItemBought(event:Object):void{
if (event.id == mochi_Radar_ID){
GameMain.upgrade3 = true;
GameMain.upgradesArray[2].gotoAndStop(3);
GameMain.upgradesArray[2].lockMc.gotoAndStop("unlocked");
} else {
if (event.id == mochi_Medi_ID){
GameMain.upgrade4 = true;
GameMain.upgradesArray[3].gotoAndStop(3);
GameMain.upgradesArray[3].lockMc.gotoAndStop("unlocked");
} else {
if (event.id == mochi_Air_ID){
GameMain.upgrade5 = true;
GameMain.upgradesArray[4].gotoAndStop(3);
GameMain.upgradesArray[4].lockMc.gotoAndStop("unlocked");
GameMain.setupJetIcon();
} else {
if (event.id == mochi_Auto_ID){
GameMain.upgrade6 = true;
GameMain.upgradesArray[5].gotoAndStop(3);
GameMain.upgradesArray[5].lockMc.gotoAndStop("unlocked");
} else {
if (event.id == mochi_All_ID){
GameMain.upgrade7 = true;
GameMain.upgrade3 = true;
GameMain.upgrade4 = true;
GameMain.upgrade5 = true;
GameMain.upgrade6 = true;
if (GameMain.upgradesArray != null){
GameMain.upgradesArray[6].gotoAndStop(3);
GameMain.upgradesArray[6].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[2].gotoAndStop(3);
GameMain.upgradesArray[2].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[3].gotoAndStop(3);
GameMain.upgradesArray[3].lockMc.gotoAndStop("unlocked");
GameMain.upgradesArray[4].gotoAndStop(3);
GameMain.upgradesArray[4].lockMc.gotoAndStop("unlocked");
GameMain.setupJetIcon();
GameMain.upgradesArray[5].gotoAndStop(3);
GameMain.upgradesArray[5].lockMc.gotoAndStop("unlocked");
};
if (titleScreen.currentFrame == 3){
titleScreen.vid.bMc2.gotoAndStop(2);
titleScreen.vid.asMc2.gotoAndStop(2);
titleScreen.vid.aMc2.gotoAndStop(2);
titleScreen.vid.rMc.gotoAndStop(2);
titleScreen.vid.mMc2.gotoAndStop(2);
};
};
};
};
};
};
itemsBought++;
if (itemsBought >= 4){
if (GameMain.upgrade7 == false){
GameMain.upgrade7 = true;
GameMain.upgradesArray[6].gotoAndStop(3);
GameMain.upgradesArray[6].lockMc.gotoAndStop("unlocked");
};
};
}
public function finishSetup(){
gameState = STATE_SYSTEM_PLAY;
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseLeftClick);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseLeftUpClick);
}
public function showShopItem2(shopItemID){
MochiCoins.showItem({x:330, y:360, item:shopItemID});
}
public function adFinished(){
mochiOn = false;
gameState = STATE_SYSTEM_LOADER;
}
public function mouseLeftUpClick(ev:Event):void{
mouseDownClicked = false;
if (gameState == STATE_SYSTEM_PLAY){
GameMain.on_mouse_up();
};
}
public function doMainScreen2(event:MouseEvent):void{
removeChild(mapScreen2);
addChild(titleScreen);
titleScreen.gotoAndStop("mainScreen");
titleScreen.playBtn.addEventListener(MouseEvent.MOUSE_UP, doMapScreen);
}
public function doLoadScreen():void{
if (!(loaderStarted)){
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
finishPreload();
} else {
loadingBox = new LoadingBox();
loadingBox.addEventListener(Event.ENTER_FRAME, loadingUpdater);
loaderStarted = true;
loadingBox.x = 0;
loadingBox.y = 0;
addChild(loadingBox);
};
};
}
public function checkDomain(){
domain = this.root.loaderInfo.url.split("/")[2];
if (domain.indexOf(allowed_site) == (domain.length - allowed_site.length)){
ArcadeBomb_Site = true;
} else {
ArcadeBomb_Site = false;
};
}
public function loadingUpdater(e:Event):void{
percentLoaded = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100);
gperc2 = int(percentLoaded);
if (gskip < 2){
gskip++;
return;
};
gskip = 0;
gperc = (gperc + 1);
if (gperc < gperc2){
gperc++;
loadingBox.loaderbar.gotoAndStop(gperc);
};
if (gperc >= 100){
loadingComplete();
};
}
public function doMochi():void{
if (!(mochiOn)){
MochiAd.showPreGameAd({clip:root, id:mochiId, res:"700x560", ad_finished:this.adFinished});
mochiOn = true;
};
}
public function finishPreload():void{
this.play();
gameState = STATE_SYSTEM_INTRO;
introAnim = new GameIntroAnim(this);
addChild(introAnim);
introAnim.x = 350;
introAnim.y = 280;
}
}
}//package classesAS3
Section 42
//GameMapScreen (classesAS3.GameMapScreen)
package classesAS3 {
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.display.*;
public class GameMapScreen extends MovieClip {
public var backBtn:SimpleButton;
public var youarehereMc3:MovieClip;
public var cityMc4:MovieClip;
public var cityMc5:MovieClip;
public var levelNumberTxt:TextField;
public var map:MovieClip;
public var rt:Object;
public var link_btn4:SimpleButton;
public var placeNames:MovieClip;
public var playBtn:SimpleButton;
var levelsDefenses:Array;
var levelsRuler:Array;
public var youarehereMc1:MovieClip;
public var youarehereMc2:MovieClip;
public var youarehereMc4:MovieClip;
public var youarehereMc5:MovieClip;
public var cityMc2:MovieClip;
public var cityMc3:MovieClip;
public var cityMc1:MovieClip;
public function GameMapScreen(rt2){
super();
addFrameScript(0, frame1, 9, frame10);
cityMc1.gotoAndStop(1);
cityMc2.gotoAndStop(1);
cityMc3.gotoAndStop(1);
cityMc4.gotoAndStop(1);
cityMc5.gotoAndStop(1);
youarehereMc1 = new youarehereAnim();
youarehereMc1.gotoAndStop(1);
youarehereMc1.x = -280;
youarehereMc1.y = -13;
youarehereMc1.myIndex = 0;
this.addChild(youarehereMc1);
youarehereMc2 = new youarehereAnim();
youarehereMc2.gotoAndStop(1);
youarehereMc2.x = -275;
youarehereMc2.y = 139;
youarehereMc2.myIndex = 1;
this.addChild(youarehereMc2);
youarehereMc3 = new youarehereAnim();
youarehereMc3.gotoAndStop(1);
youarehereMc3.x = -35;
youarehereMc3.y = 182;
youarehereMc3.myIndex = 2;
this.addChild(youarehereMc3);
youarehereMc4 = new youarehereAnim();
youarehereMc4.gotoAndStop(1);
youarehereMc4.x = 145;
youarehereMc4.y = 280;
youarehereMc4.myIndex = 3;
this.addChild(youarehereMc4);
youarehereMc5 = new youarehereAnim();
youarehereMc5.gotoAndStop(1);
youarehereMc5.x = 193;
youarehereMc5.y = 85;
youarehereMc5.myIndex = 4;
this.addChild(youarehereMc5);
rt = rt2;
}
function frame10(){
rt.doMapScreenStuff();
stop();
}
function frame1(){
link_btn4.addEventListener(MouseEvent.MOUSE_DOWN, gotoBadHed4, false);
this.levelNumberTxt.text = (String("Level ") + rt.GameMain.levelNumber);
}
public function gotoBadHed4(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_INTERVAL"), "_blank");
}
}
}//package classesAS3
Section 43
//GameMine (classesAS3.GameMine)
package classesAS3 {
import flash.display.*;
public class GameMine extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameMine(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 44
//GameMining (classesAS3.GameMining)
package classesAS3 {
import flash.display.*;
public class GameMining extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
var soldierState:Number;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public static const SOLDIER_STATE_DEFEND:int = 1;
public static const SOLDIER_STATE_ATTACK:int = 0;
public static const SOLDIER_STATE_FIGHTING:int = 2;
public function GameMining(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myParent.removeChild(this);
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function mainLoop(){
}
}
}//package classesAS3
Section 45
//GameMissile (classesAS3.GameMissile)
package classesAS3 {
import classesAS3.*;
class GameMissile {
var xVel:Number;// = 0
var yPos:Number;// = 0
var trailDelay:Number;
var myParent:Object;
var myRow:Number;
var currentSteps:Number;
var mC:Object;
var myCol:Number;
var Useful:GameUseful;
var myDamage:Number;
var xPos:Number;// = 0
var xOrigin:Number;// = 0
var rt:Object;
var mType:String;
var speed:Number;
var velocities:Object;
var yVel:Number;// = 0
var dead:Boolean;
var arrayIndex:Number;
var yOrigin:Number;// = 0
function GameMissile(clip, rt2, xStart, yStart, type, useF, velocityObj, sp, myP, myD, myX, myY){
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
super();
rt = rt2;
Useful = useF;
myParent = myP;
myDamage = myD;
myCol = myX;
myRow = myY;
xOrigin = xStart;
yOrigin = yStart;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
speed = sp;
dead = false;
mC = clip;
mType = type;
trailDelay = 2;
updatePosition();
velocities = new Object();
velocities.gravity = velocityObj.gravity;
if (type == "bullet"){
xVel = (velocityObj.vx * speed);
yVel = (velocityObj.vy * speed);
} else {
if (type == "bomb"){
xVel = (velocityObj.vx * speed);
yVel = (velocityObj.vy * speed);
} else {
if (type == "grenade"){
velocities.gravity = velocityObj.gravity;
velocities.steps = velocityObj.steps;
velocities.xStep = velocityObj.xStep;
velocities.yStep = velocityObj.yStep;
xVel = velocities.xStep;
yVel = velocities.yStep;
};
};
};
currentSteps = 0;
}
function applyGravity(){
yVel = (yVel + velocities.gravity);
currentSteps++;
if (currentSteps >= velocities.steps){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 30, true, false, false, 8, 5, myParent.mC.goodBad, myRow, 0));
remove();
};
}
function checkForGround(){
var sprY:Number;
var explosionMc:*;
sprY = int((mC.y / rt.blockSizeY));
if (myRow == sprY){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 40, true, false, false, 8, 10, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 40, true, false, false, 8, 10, myParent.mC.goodBad, myRow, 0));
explosionMc = new bigExplosion();
explosionMc.x = mC.x;
explosionMc.y = mC.y;
rt.inGameMissilesMc.addChild(explosionMc);
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.Sounds.playSoundFx("hitEnemyFx", 1, 0, 1);
remove();
dead = true;
};
}
function remove(){
var arrayIndex:Number;
var i1:*;
if (dead == false){
arrayIndex = -1;
i1 = 0;
while (i1 < rt.missilesArray.length) {
if (this == rt.missilesArray[i1]){
arrayIndex = i1;
};
i1++;
};
if (arrayIndex >= 0){
if (mC != null){
if (mC.parent != null){
rt.inGameMissilesMc.removeChild(mC);
};
};
};
dead = true;
};
}
function checkForOffStage(){
if (mC.x < 0){
remove();
};
if (mC.y < -800){
remove();
};
if (mC.x > 700){
remove();
};
if (mC.y > 600){
remove();
};
if (myParent.mC.goodBad == false){
if (mType != "grenade"){
if (rt.crosshairMc != null){
if (mC.hitTestObject(rt.crosshairMc.chh.chCenter)){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 5, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
remove();
};
};
};
};
}
function updatePosition(){
var oldX:*;
var oldY:*;
var dx:Number;
var dy:Number;
var angle2:Number;
xPos = (xPos + xVel);
yPos = (yPos + yVel);
oldX = mC.x;
oldY = mC.y;
mC.x = (xOrigin + xPos);
mC.y = (yOrigin + yPos);
dx = (mC.x - oldX);
dy = (mC.y - oldY);
angle2 = Math.atan2(dy, dx);
mC.rotation = ((angle2 * 180) / Math.PI);
}
function mCDeath(){
}
function doTrail(){
var projectileMc:*;
trailDelay--;
if (trailDelay == 0){
trailDelay = 2;
projectileMc = new GameRocketSmoke(rt, rt.inGameExplosionsMc);
rt.inGameExplosionsMc.addChild(projectileMc);
projectileMc.x = mC.x;
projectileMc.y = mC.y;
};
}
function collisionDetection(){
var i2:int;
var sss:*;
var hit:Boolean;
var ammoChance:Number;
var doCheck:Boolean;
if (myParent.mC.goodBad == false){
i2 = 0;
while (i2 < rt.badGuysArray.length) {
sss = rt.badGuysArray[i2].mC;
hit = false;
if (rt.bossOn == true){
if (sss.myType == "subBoss"){
if (rt.badGuysArray[i2].shieldOn == true){
if (mC.hitTestObject(sss)){
hit = true;
};
} else {
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
};
} else {
if (rt.levelNumber == rt.bossLevel1){
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
if (rt.badGuysArray[i2].plantBossHead2 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead2)){
rt.bossHit2 = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
if (rt.badGuysArray[i2].plantBossHead3 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead3)){
rt.bossHit3 = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
} else {
if (rt.levelNumber == rt.bossLevel2){
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
} else {
if (rt.levelNumber == rt.bossLevel3){
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
} else {
if (rt.levelNumber == rt.bossLevel4){
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
} else {
if (rt.levelNumber == rt.bossLevel5){
if (rt.badGuysArray[i2].plantBossHead1 != null){
if (mC.hitTestObject(rt.badGuysArray[i2].plantBossHead1)){
rt.bossHit = true;
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
} else {
if (mC.hitTestObject(sss)){
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
};
};
};
};
};
} else {
if (mC.hitTestObject(sss.coll)){
hit = true;
if (sss.myObject.energy == 100){
rt.headShots++;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(1000);
} else {
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
} else {
if (mC.hitTestObject(sss)){
hit = true;
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage);
};
};
};
if (hit == true){
if (mType == "grenade"){
if (rt.badGuysArray[i2].energy <= 0){
if (sss.currentFrame != 7){
rt.badGuysArray[i2].mC.gotoAndStop("deadExplode");
};
};
rt.Sounds.playSoundFx("explosionFx", 1, 0, 1);
if (myParent.mC.myType == "knight3"){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 4, myParent.mC.goodBad, myRow, 0));
} else {
if (myParent.mC.myType == "knight4"){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 4, myParent.mC.goodBad, myRow, 0));
} else {
if (myParent.mC.myType == "rocketTower"){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 30, true, false, false, 8, 5, myParent.mC.goodBad, myRow, 0));
} else {
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
};
};
};
} else {
if (myParent.mC.myType == "archer"){
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
};
};
rt.Sounds.playSoundFx("hitEnemyFx", 1, 0, 1);
remove();
dead = true;
};
i2++;
};
i2 = 0;
while (i2 < rt.missilesArray.length) {
sss = rt.missilesArray[i2];
if (rt.missilesArray[i2].myParent.mC.goodBad == true){
if (rt.missilesArray[i2].dead == false){
if (mC.hitTestObject(sss.mC)){
ammoChance = Useful.RandomNumber(1, 100);
if (ammoChance < 20){
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 5, rt.Useful, 1, 0, 20, true, false, false, 8, 4, myParent.mC.goodBad, myRow, 1));
} else {
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 4, rt.Useful, 1, 0, 20, true, false, false, 8, 4, myParent.mC.goodBad, myRow, 1));
};
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 2, 1, 10, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
rt.missilesArray[i2].remove();
rt.missilesArray[i2].dead = true;
remove();
dead = true;
};
};
};
i2++;
};
if (mType == "bullet"){
i2 = 0;
while (i2 < rt.inGameGoodGuysMc.numChildren) {
if (rt.inGameGoodGuysMc.getChildAt(i2) != rt.Box2d.bodyGrabbed){
sss = rt.inGameGoodGuysMc.getChildAt(i2);
if (sss.goodBad == false){
doCheck = false;
doCheck = true;
if (doCheck == true){
if (sss.myObject.dead == false){
if (sss.myObject.myProjectile == "no_fire"){
if (mC.hitTestObject(sss)){
rt.Sounds.playSoundFx("die_v2_Fx", 1, 0, 1);
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage, this);
remove();
dead = true;
};
};
};
};
};
};
i2++;
};
};
} else {
i2 = 0;
while (i2 < rt.inGameGoodGuysMc.numChildren) {
if (rt.inGameGoodGuysMc.getChildAt(i2) != rt.Box2d.bodyGrabbed){
sss = rt.inGameGoodGuysMc.getChildAt(i2);
if (sss.goodBad == false){
doCheck = false;
if (rt.civMc == sss){
doCheck = true;
} else {
if (rt.bossOn == true){
doCheck = true;
} else {
if (sss.myObject != null){
doCheck = true;
};
};
};
if (doCheck == true){
if (sss.myObject.dead == false){
if (sss.myObject != rt.mainSoldier){
if (mC.hitTestObject(sss)){
if (rt.civMc == sss){
if (mC.hitTestObject(sss.soldier.coll)){
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage, this);
rt.Sounds.playSoundFx("hitEnemyFx", 1, 0, 1);
remove();
dead = true;
};
} else {
if (sss.myObject != null){
if (sss.myType == "kingGood"){
sss.myObject.decreaseEnergy(myDamage, this);
} else {
if (sss.goodBad == false){
sss.myObject.myDamageDelay = 1;
sss.myObject.decreaseEnergy(myDamage, this);
};
};
} else {
if (sss.myType == "kingGood"){
rt.decreaseEnergy(int((myDamage / 4)));
} else {
sss.decreaseEnergy(myDamage, this);
};
};
if (mType == "grenade"){
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
} else {
if (myParent.mC.myType == "badKnight1"){
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
} else {
if (myParent.mC.myType == "viking1"){
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 2, 20, true, false, false, 8, 0, myParent.mC.goodBad, myRow, 0));
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 2, rt.Useful, 7, 1, 20, true, false, false, 8, 3, myParent.mC.goodBad, myRow, 0));
} else {
if (myParent.mC.myType == "ram"){
rt.Sounds.playSoundFx("mainGunMissileHitFx", 1, 0, 1);
rt.explosionsArray.push(new GameExplosion(rt, mC.x, mC.y, 3, rt.Useful, 1, 2, 20, true, false, false, 8, 2, myParent.mC.goodBad, myRow, 0));
};
};
};
};
rt.Sounds.playSoundFx("hitEnemyFx", 1, 0, 1);
remove();
dead = true;
};
};
};
};
};
};
};
i2++;
};
};
}
function mainLoop(){
if (dead == true){
remove();
} else {
if (mType == "bomb"){
checkForGround();
checkForOffStage();
} else {
if (mType == "laserMothership"){
} else {
if (myParent.mC.myType == "archer"){
doTrail();
checkForOffStage();
collisionDetection();
} else {
if (myParent.mC.myType == "rocketTower"){
doTrail();
checkForOffStage();
applyGravity();
collisionDetection();
} else {
if (mType == "bullet"){
checkForOffStage();
collisionDetection();
} else {
checkForOffStage();
applyGravity();
collisionDetection();
};
};
};
};
};
updatePosition();
};
}
}
}//package classesAS3
Section 46
//GameMothership (classesAS3.GameMothership)
package classesAS3 {
import flash.display.*;
public class GameMothership extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameMothership(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 47
//GameMultipleExplosion (classesAS3.GameMultipleExplosion)
package classesAS3 {
import flash.display.*;
public class GameMultipleExplosion extends MovieClip {
public var yPos:Number;
public var numberOfExplosions:Number;
public var areaWidth:Number;
var delayToExplosion:Number;
var mType:Number;
public var rt:Object;
var Useful:GameUseful;
public var xPos:Number;
public function GameMultipleExplosion(rt2, useF, numberOfE, xx, yy, areaW, delay, mT){
super();
rt = rt2;
mType = mT;
numberOfExplosions = numberOfE;
xPos = xx;
yPos = yy;
areaWidth = areaW;
Useful = useF;
delayToExplosion = delay;
}
function mainLoop(){
var xx:Number;
var yy:Number;
delayToExplosion--;
if (delayToExplosion == 0){
numberOfExplosions--;
if (numberOfExplosions > 0){
delayToExplosion = Useful.RandomNumber(1, 8);
xx = (xPos + Useful.RandomNumber(1, areaWidth));
yy = (yPos + Useful.RandomNumber(1, areaWidth));
rt.rt.explosionsArray.push(new GameExplosion(rt.rt, xx, yy, 2, Useful, 17, 2, 40, true, false, false, 8, 0, true, 0, 0));
} else {
rt.rt.gameExplosions = null;
};
};
}
}
}//package classesAS3
Section 48
//GameOverMsgAnim (classesAS3.GameOverMsgAnim)
package classesAS3 {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import com.adobe.crypto.*;
public class GameOverMsgAnim extends MovieClip {
public var m:MovieClip;
public var rt:Object;
public function GameOverMsgAnim(rt2){
super();
addFrameScript(9, frame10, 11, frame12);
rt = rt2;
this.play();
}
function frame10(){
stop();
}
function frame12(){
MovieClip(this).rt.quitGame();
stop();
}
public function buttonPressed(Name, Score){
}
function goodjob(e:Event):void{
}
}
}//package classesAS3
Section 49
//GamePanelBuyMc (classesAS3.GamePanelBuyMc)
package classesAS3 {
import flash.text.*;
import flash.display.*;
public class GamePanelBuyMc extends MovieClip {
var buildFinished:Boolean;
public var costTxt:TextField;
public var itemsMc:panelItems;
public var rt:Object;
public var myIndex:Number;
public var back:panelManBack;
public function GamePanelBuyMc(rt2, ind){
super();
addFrameScript(0, frame1);
rt = rt2;
buildFinished = false;
myIndex = ind;
}
function frame1(){
stop();
}
}
}//package classesAS3
Section 50
//GamePanelUpgrades (classesAS3.GamePanelUpgrades)
package classesAS3 {
import flash.display.*;
public class GamePanelUpgrades extends MovieClip {
var buildFinished:Boolean;
public var icons:MovieClip;
public var lockMc:MovieClip;
public var myIndex:Number;
public var rt:Object;
public var back:MovieClip;
public function GamePanelUpgrades(rt2, ind){
super();
addFrameScript(0, frame1);
rt = rt2;
buildFinished = false;
myIndex = ind;
}
function frame1(){
back.gotoAndStop(1);
stop();
}
}
}//package classesAS3
Section 51
//GameParticle (classesAS3.GameParticle)
package classesAS3 {
import flash.display.*;
public class GameParticle extends MovieClip {
public var goodBad:Boolean;// = true
var bounces:Number;
var yPos:Number;// = 0
public var c3:MovieClip;
var xVel:Number;// = 0
var myDamage:Number;
public var myName:String;
var gravity:Boolean;
var mType:Number;
var speed:Number;
var yVel:Number;// = 0
var mC:Object;
var rt:Object;
var dead:Boolean;
public var gotAmmo:Boolean;// = false
var myRow:Number;
var artillary:Boolean;
var Useful:GameUseful;
var xOrigin:Number;// = 0
var xPos:Number;// = 0
var gravityValue:Number;
public var crate2:MovieClip;
public var myNum:Number;// = 1
var myParentGB:Boolean;
var endX:Number;
var endY:Number;
var arrayIndex:Number;
var explodeDistance:Number;
var yOrigin:Number;// = 0
public function GameParticle(rt2, useF, xStart, yStart, type, vx, vy, edX, edY, art, grav, dist, speed, myD, myGB, myR, myC){
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
myNum = 1;
goodBad = true;
gotAmmo = false;
super();
rt = rt2;
myNum = ((myC + 1) * 10);
Useful = useF;
myRow = myR;
artillary = art;
gravity = grav;
myDamage = myD;
myParentGB = myGB;
explodeDistance = dist;
xOrigin = xStart;
yOrigin = yStart;
gravityValue = 0;
endX = edX;
endY = edY;
xPos = 0;
yPos = 0;
bounces = 0;
dead = false;
xVel = (vx * speed);
yVel = (vy * speed);
mC = this;
mType = type;
mC.gotoAndStop(mType);
updatePosition();
}
function doCollect2(){
var risingScoreMc:*;
var myCurrentSound:*;
rt.ammo = (rt.ammo + 100);
rt.setAmmo();
risingScoreMc = new GameExtraAmmo(rt, rt.inGameScoreMc, 100);
rt.inGameScoreMc.addChild(risingScoreMc);
risingScoreMc.x = x;
risingScoreMc.y = (y - 10);
myCurrentSound = rt.Sounds.playSoundFx("reloadFx", 0.6, 0, 1);
}
function updatePosition(){
var oldX:Number;
var oldY:Number;
var dx:Number;
var dy:Number;
var angle2:Number;
xPos = (xPos + xVel);
yPos = (yPos + yVel);
oldX = x;
oldY = y;
x = (xOrigin + xPos);
y = (yOrigin + yPos);
if (this.currentFrame < 4){
dx = (x - oldX);
dy = (y - oldY);
angle2 = Math.atan2(dy, dx);
rotation = ((angle2 * 180) / Math.PI);
};
}
function doCollect(){
var risingScoreMc:*;
var myCurrentSound:*;
rt.increaseMoney(myNum);
risingScoreMc = new GameRisingScore(rt, rt.inGameScoreMc, myNum);
rt.inGameScoreMc.addChild(risingScoreMc);
risingScoreMc.x = x;
risingScoreMc.y = (y - 10);
myCurrentSound = rt.Sounds.playSoundFx("levelCompleteFx", 0.4, 0, 1);
}
function mainLoop(){
var explodeLength:Number;
if (mC.currentFrame == 4){
if (this.c3 != null){
if (this.c3.c2 != null){
if (this.c3.c2.coin != null){
if (this.c3.c2.coin.numTxt != null){
if (myNum < 50){
this.c3.c2.coin.gotoAndStop("small");
} else {
if (myNum < 100){
this.c3.c2.coin.gotoAndStop("medium");
} else {
if (myNum < 150){
this.c3.c2.coin.gotoAndStop("large");
} else {
if (myNum < 200){
this.c3.c2.coin.gotoAndStop("extraLarge");
};
};
};
};
if (this.c3.c2.coin.numTxt != null){
this.c3.c2.coin.numTxt.text = String(myNum);
};
};
};
};
};
};
if (dead == false){
explodeLength = Useful.getDistance(x, y, endX, endY);
if (artillary == true){
if (explodeLength > (explodeDistance / 2)){
scaleX = (scaleX + 40);
scaleY = scaleX;
} else {
scaleX = (scaleX - 35);
scaleY = scaleX;
};
};
if (gravity == true){
gravityValue = (gravityValue + 0.2);
yVel = (yVel + gravityValue);
};
if (explodeLength > (explodeDistance + 10)){
if (this.parent != null){
if (this.currentFrame < 4){
remove();
} else {
dead = true;
};
};
};
if (myDamage != 0){
collisionDetection();
};
updatePosition();
} else {
if (this.currentFrame == 4){
if (this.c3 != null){
if (this.c3.c2 != null){
if (this.c3.c2.coin != null){
if (rt.crosshairMc != null){
if (this.c3.c2.coin.hitTestObject(rt.crosshairMc)){
doCollect();
remove();
};
};
};
};
};
} else {
if (this.currentFrame == 5){
if (gotAmmo == false){
if (rt.crosshairMc != null){
if (this.hitTestObject(rt.crosshairMc)){
doCollect2();
if (this.crate2.crate != null){
this.crate2.crate.gotoAndPlay(2);
};
dead = true;
gotAmmo = true;
};
};
};
};
};
};
}
function mCDeath(){
}
function checkForOffStage(){
if (mC.x < 0){
remove();
};
if (mC.y < 0){
remove();
};
if (mC.x > 1700){
remove();
};
}
function collisionDetection(){
var dead2:Boolean;
var sss:Number;
var i2:int;
var badGuy:*;
var freezeObject:Object;
var found:Boolean;
var i3:int;
if (this.currentFrame == 4){
if (this.c3 != null){
if (this.c3.c2 != null){
if (this.c3.c2.coin != null){
if (rt.crosshairMc != null){
if (this.c3.c2.coin.hitTestObject(rt.crosshairMc)){
remove();
doCollect();
};
};
};
};
};
} else {
dead2 = false;
sss = rt.Useful.RandomNumber(1, 10);
if (sss > 2){
if (myParentGB == true){
i2 = 0;
while (i2 < rt.goodGuysArray.length) {
badGuy = rt.goodGuysArray[i2];
if (myRow == badGuy.currentMapIndexY){
if (badGuy.mC.myType != "jet"){
if (mC.hitTestObject(badGuy.mC)){
if (this.currentFrame == 3){
freezeObject = new Object();
freezeObject.mC = badGuy.mC;
freezeObject.colourValue = 14540287;
freezeObject.colourMult = 0;
freezeObject.toDefrost = 0;
freezeObject.defrost = false;
found = false;
i3 = 0;
while (i3 < rt.frozenArray.length) {
if (rt.frozenArray[i3].mC == badGuy.mC){
found = true;
break;
};
i3++;
};
if (found == false){
rt.frozenArray.push(freezeObject);
};
badGuy.frozen = true;
badGuy.mC.soldier.gotoAndStop("stand");
} else {
badGuy.myDamageDelay = 1;
badGuy.decreaseEnergy(myDamage, mC);
};
dead2 = true;
};
};
};
i2++;
};
} else {
i2 = 0;
while (i2 < rt.badGuysArray.length) {
badGuy = rt.badGuysArray[i2];
if (mC.hitTestObject(badGuy.mC)){
if (this.currentFrame == 3){
freezeObject = new Object();
freezeObject.mC = badGuy.mC;
freezeObject.colourValue = 14540287;
freezeObject.colourMult = 0;
freezeObject.toDefrost = 0;
freezeObject.defrost = false;
found = false;
i3 = 0;
while (i3 < rt.frozenArray.length) {
if (rt.frozenArray[i3].mC == badGuy.mC){
found = true;
break;
};
i3++;
};
if (found == false){
rt.frozenArray.push(freezeObject);
};
badGuy.frozen = true;
} else {
badGuy.myDamageDelay = 1;
badGuy.decreaseEnergy(myDamage);
if (badGuy.energy <= 0){
badGuy.mC.gotoAndStop("deadExplode");
};
};
dead2 = true;
};
i2++;
};
};
};
};
if (dead2 == true){
remove();
};
}
public function remove(){
var arrayIndex:Number;
var i1:*;
arrayIndex = -1;
i1 = 0;
while (i1 < rt.particlesArray.length) {
if (this == rt.particlesArray[i1]){
arrayIndex = i1;
};
i1++;
};
if (this.parent != null){
this.parent.removeChild(this);
};
if (arrayIndex != -1){
rt.particlesArray.splice(arrayIndex, 1);
};
this.stop();
}
}
}//package classesAS3
Section 52
//GamePause (classesAS3.GamePause)
package classesAS3 {
import flash.display.*;
import flash.events.*;
public class GamePause extends MovieClip {
public var mySmoke;
public var rt:Object;
public var pauseMcBtn:SimpleButton;
public function GamePause(rt2){
super();
addFrameScript(0, frame1);
rt = rt2;
}
public function gotoPause(e:MouseEvent):void{
MovieClip(this).rt.pauseGame();
}
function frame1(){
pauseMcBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoPause, false);
}
}
}//package classesAS3
Section 53
//GamePlane (classesAS3.GamePlane)
package classesAS3 {
import flash.display.*;
public class GamePlane extends MovieClip {
public var soldierStart:Number;
public var xVel:Number;
public var soldierType:Array;
public var myObject:Object;
public var soldierDone:Number;
public var myParent:Object;
public var rt:Object;
public function GamePlane(myP, rt2){
super();
myParent = myP;
rt = rt2;
xVel = 0;
soldierDone = 0;
soldierType = new Array();
}
function updatePosition(){
this.x = (this.x + xVel);
}
function dropNow(){
rt.setupSoldier(soldierType[0], this.x, this.y);
soldierType.shift();
if (this.x < 200){
soldierStart = rt.Useful.RandomNumber(((this.x / 2) + 100), this.x);
} else {
soldierStart = rt.Useful.RandomNumber(((this.x / 2) + 100), 200);
};
}
public function mainLoop(){
updatePosition();
if (this.x < -100){
myParent.removeChild(this);
rt.planeMc = null;
this.stop();
};
if (soldierType.length > 0){
if (this.x < soldierStart){
rt.setupSoldier(soldierType[0], this.x, this.y);
soldierType.shift();
if (this.x < 200){
soldierStart = rt.Useful.RandomNumber(((this.x / 2) + 130), this.x);
} else {
soldierStart = rt.Useful.RandomNumber(((this.x / 2) + 130), 200);
};
};
};
}
}
}//package classesAS3
Section 54
//GamePlank (classesAS3.GamePlank)
package classesAS3 {
import flash.display.*;
public class GamePlank extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
var myDelay:Number;// = 5
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = true
public function GamePlank(rt2, bD, sD, mT, myP, gB){
buildingBit = true;
myDelay = 5;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = false;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
public function removeMe(){
myParent.removeChild(this);
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -250){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec):Boolean{
var whatFrame:Number;
myDelay--;
if (myDelay == 0){
myDelay = 5;
if (energy > 0){
energy = (energy - dec);
if (energy <= 0){
rt.m_world.DestroyBody(myBodyDef);
this.gotoAndPlay("blockBreak");
return (true);
};
whatFrame = int(((100 - energy) / 25));
this.gotoAndStop((whatFrame + 1));
return (false);
};
};
return (false);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 55
//GamePlantBoss (classesAS3.GamePlantBoss)
package classesAS3 {
import flash.display.*;
public class GamePlantBoss extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mReleaseMc2:MovieClip;
public var mReleaseMc3:MovieClip;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var mySmoke;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public var plantC1:MovieClip;
public function GamePlantBoss(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 56
//GamePlayer (classesAS3.GamePlayer)
package classesAS3 {
import flash.display.*;
public class GamePlayer {
var playerdown:Number;// = 0
var xVel:Number;// = 0
var shotsLimit:Number;
var moveplayerup:Number;// = 0
var yOrigin:Number;// = 0
var multidirectional:Number;// = 0
var yPos:Number;// = 0
var dy:Number;// = 0
var gunFired:Boolean;
var santaspeed:Number;// = 2
var yVelOld:Number;// = 0
var vectorData:Object;
var rotateGunDown:Boolean;
var jumpTime:Number;
var dx:Number;// = 0
var numberOfMissiles:Number;
var jump:Number;// = 0
var Oldplayerleft:Number;// = 0
var shotsFired:Number;
var missileDistFromGun:Number;
var xPos:Number;// = 0
var xOrigin:Number;// = 0
var myinstance:Object;
var rt:Object;
var Oldplayerup:Number;// = 0
var Oldplayerdown:Number;// = 0
var playerup:Number;// = 0
var mouseButton:Number;
var keypress:Number;
var mygraphic:Object;
var Useful:GameUseful;
var angle:Number;// = 0
var playerright:Number;// = 0
var rotateGunUp:Boolean;
var xVelOld:Number;// = 0
var yVel:Number;// = 0
var gunRotation:Number;
var playerleft:Number;// = 0
var levelDir:Number;
var shotStrength:Number;
var energyLevel:Boolean;
var fireDelay:Number;
var n:Number;
var s:Number;// = 0
var Oldplayerright:Number;// = 0
var mC:MovieClip;
var scrollSpeed:Number;
public function GamePlayer(clip, rt2, uu){
xOrigin = 0;
yOrigin = 0;
xPos = 0;
yPos = 0;
s = 0;
playerleft = 0;
playerright = 0;
jump = 0;
moveplayerup = 0;
playerdown = 0;
playerup = 0;
Oldplayerup = 0;
Oldplayerdown = 0;
Oldplayerright = 0;
Oldplayerleft = 0;
xVel = 0;
yVel = 0;
xVelOld = 0;
yVelOld = 0;
santaspeed = 2;
multidirectional = 0;
dx = 0;
dy = 0;
angle = 0;
super();
mC = clip;
rt = rt2;
Useful = uu;
missileDistFromGun = 40;
xOrigin = mC.x;
yOrigin = mC.y;
dx = 0;
dy = 0;
angle = 0;
shotsFired = 0;
shotsLimit = 2;
gunFired = false;
xPos = 0;
yPos = 0;
xVel = 0;
yVel = 0;
xVelOld = 0;
numberOfMissiles = 0;
yVelOld = 0;
scrollSpeed = 10;
keypress = 0;
jump = 0;
jumpTime = 10;
mouseButton = 0;
shotStrength = 6;
gunRotation = 180;
rotateGunUp = false;
rotateGunDown = false;
vectorData = new Object();
energyLevel = false;
levelDir = 1;
fireDelay = 0;
updatePosition();
}
function updatePosition(){
}
function decreaseEnergy(damage){
}
function mainLoop(){
}
}
}//package classesAS3
Section 57
//GameRam1 (classesAS3.GameRam1)
package classesAS3 {
import flash.display.*;
public class GameRam1 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameRam1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 58
//GameRisingMoney (classesAS3.GameRisingMoney)
package classesAS3 {
import flash.display.*;
public class GameRisingMoney extends MovieClip {
public var inGameScoreMc:Sprite;
public var txt:risingMoneyTxt;
public var scoreNumber:Number;
public var rt:Object;
public function GameRisingMoney(rt2, inGame, scoreN){
super();
addFrameScript(22, frame23);
rt = rt2;
inGameScoreMc = inGame;
scoreNumber = scoreN;
txt.moneyTxt.text = (("+" + String(scoreN)) + " Score");
}
function frame23(){
this.inGameScoreMc.removeChild(this);
stop();
}
}
}//package classesAS3
Section 59
//GameRisingScore (classesAS3.GameRisingScore)
package classesAS3 {
import flash.display.*;
public class GameRisingScore extends MovieClip {
public var inGameScoreMc:Sprite;
public var txt:MovieClip;
public var scoreNumber:Number;
public var rt:Object;
public function GameRisingScore(rt2, inGame, scoreN){
super();
addFrameScript(15, frame16);
rt = rt2;
inGameScoreMc = inGame;
scoreNumber = scoreN;
txt.scoreTxt.text = (("+" + String(scoreNumber)) + " Gold");
}
function frame16(){
this.inGameScoreMc.removeChild(this);
stop();
}
}
}//package classesAS3
Section 60
//GameRocketSmoke (classesAS3.GameRocketSmoke)
package classesAS3 {
import flash.display.*;
public class GameRocketSmoke extends MovieClip {
public var myParent:Object;
public var rt:Sprite;
public function GameRocketSmoke(rt2, myP){
super();
addFrameScript(7, frame8);
rt = rt2;
myParent = myP;
}
function removeMe(){
myParent.removeChild(this);
this.stop();
}
function frame8(){
MovieClip(this).removeMe();
stop();
}
}
}//package classesAS3
Section 61
//GameRocketTower (classesAS3.GameRocketTower)
package classesAS3 {
import flash.display.*;
public class GameRocketTower extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameRocketTower(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 62
//GameShipBoss (classesAS3.GameShipBoss)
package classesAS3 {
import flash.display.*;
public class GameShipBoss extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mReleaseMc2:MovieClip;
public var mReleaseMc3:MovieClip;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var mySmoke;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameShipBoss(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 63
//GameSlab1 (classesAS3.GameSlab1)
package classesAS3 {
import flash.display.*;
public class GameSlab1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameSlab1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 64
//GameSlab2 (classesAS3.GameSlab2)
package classesAS3 {
import flash.display.*;
public class GameSlab2 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameSlab2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 65
//GameSounds (classesAS3.GameSounds)
package classesAS3 {
import flash.utils.*;
import flash.media.*;
public class GameSounds {
var rt:Object;
var currentChannel:SoundChannel;
var soundsArray:Array;
var fadeOutArray:Array;
public function GameSounds(rt2){
super();
rt = rt2;
fadeOutArray = new Array();
soundsArray = new Array();
}
public function playSoundFx(sound:String, vol:Number, startI:Number, numLoops:Number):SoundChannel{
var soundFxClass:Class;
var soundFx:*;
if (rt.soundsSwitch == true){
soundFxClass = Class(getDefinitionByName(sound));
soundFx = new (soundFxClass);
currentChannel = soundFx.play(startI, numLoops);
setVolume(currentChannel, vol);
return (currentChannel);
};
return (null);
}
public function FadeOut(channel){
var transform1:SoundTransform;
var vol:Number;
var i2:*;
transform1 = channel.soundTransform;
vol = transform1.volume;
vol = (vol - 0.1);
setVolume(channel, vol);
if (vol <= 0){
i2 = 0;
while (i2 < fadeOutArray.length) {
if (fadeOutArray[i2] == channel){
fadeOutArray.splice(i2, 1);
};
i2++;
};
};
}
public function setupFadeOut(){
fadeOutArray.push(currentChannel);
}
public function setVolume(ch:SoundChannel, vol:Number):void{
var transform1:SoundTransform;
if (ch != null){
transform1 = ch.soundTransform;
transform1.volume = vol;
ch.soundTransform = transform1;
};
}
public function mainLoop(){
var i:*;
i = 0;
while (i < fadeOutArray.length) {
FadeOut(fadeOutArray[i]);
i++;
};
}
public function stopAllMySounds(){
SoundMixer.stopAll();
}
}
}//package classesAS3
Section 66
//GameStartMsg (classesAS3.GameStartMsg)
package classesAS3 {
import flash.events.*;
import flash.display.*;
public class GameStartMsg extends MovieClip {
public var textBox:startGameMsg;
public var rt:Object;
public function GameStartMsg(rt2){
super();
addFrameScript(99, frame100);
rt = rt2;
}
function finishStuff(event:MouseEvent):void{
this.gotoAndStop("startGame");
}
public function removeMe(){
rt.rt.startChat();
rt.inGameMsgsMc.removeChild(this);
stop();
}
function frame100(){
this.removeMe();
stop();
}
}
}//package classesAS3
Section 67
//GameSubBoss (classesAS3.GameSubBoss)
package classesAS3 {
import flash.display.*;
public class GameSubBoss extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mReleaseMc2:MovieClip;
public var mReleaseMc3:MovieClip;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var mySmoke;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var damage:MovieClip;
public var rt:Object;
public var energy:Number;
public var myParent:Object;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameSubBoss(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 68
//GameTiles (classesAS3.GameTiles)
package classesAS3 {
import flash.display.*;
public class GameTiles extends MovieClip {
public var myType:String;
public var rt:Object;
public var tilesArray:Array;
public function GameTiles(rt2){
super();
rt = rt2;
}
public function clearTilesArray(){
var iy:*;
var ix:*;
tilesArray = new Array();
iy = 0;
while (iy < int(rt.levelHeightBlocks)) {
tilesArray[iy] = new Array();
ix = 0;
while (ix < int(rt.levelWidthBlocks)) {
if (iy == 0){
tilesArray[iy][ix] = new MapTile(this, "noPlot");
} else {
if (iy == (rt.levelHeightBlocks - 1)){
tilesArray[iy][ix] = new MapTile(this, "noPlot");
} else {
if (ix == 0){
tilesArray[iy][ix] = new MapTile(this, "noPlot");
} else {
if (ix == (rt.levelWidthBlocks - 1)){
tilesArray[iy][ix] = new MapTile(this, "noPlot");
} else {
tilesArray[iy][ix] = new MapTile(this, "noTile");
};
};
};
};
ix++;
};
iy++;
};
}
public function getMapTile(xx:Number, yy:Number):Object{
var tileObject:Object;
tileObject = new Object();
if (tilesArray[yy][xx].myType == "noPlot"){
tileObject.usage = "noPlot";
} else {
if (tilesArray[yy][xx].myType == "noTile"){
tileObject.usage = "noTile";
} else {
tileObject.usage = "object";
};
};
tileObject.tile = tilesArray[yy][xx];
return (tileObject);
}
public function setMapTile(xx:Number, yy:Number, spriteObject:Object){
var sprX:Number;
var sprY:Number;
sprX = int((xx / rt.blockSize));
sprY = int((yy / rt.blockSizeY));
tilesArray[sprY][sprX] = spriteObject;
}
public function setMap(xx:Number, yy:Number, spriteObject:Object){
tilesArray[yy][xx] = spriteObject;
}
public function getMap_XY(xx:Number, yy:Number):Object{
var sprX:Number;
var sprY:Number;
sprX = int((xx / rt.blockSize));
sprY = int((yy / rt.blockSize));
return (tilesArray[sprY][sprX]);
}
public function setMapClear(xx, yy){
var newTile:*;
if (xx > 0){
newTile = new MapTile(this, "noTile");
} else {
newTile = new MapTile(this, "noPlot");
};
setMap(xx, yy, newTile);
}
}
}//package classesAS3
Section 69
//GameTitleScreen (classesAS3.GameTitleScreen)
package classesAS3 {
import flash.net.*;
import flash.events.*;
import flash.text.*;
import flash.system.*;
import flash.display.*;
public class GameTitleScreen extends MovieClip {
public var backBtn:SimpleButton;
public var musicBtn:SimpleButton;
public var vid:MovieClip;
public var loadGameBtn:SimpleButton;
public var vidBtns:MovieClip;
public var moreGamesBtn:SimpleButton;
public var txt:MovieClip;
public var instructionsBtn:SimpleButton;
public var rt:Object;
public var musicMc:MovieClip;
public var playBtn:SimpleButton;
public var controlsBtn:SimpleButton;
public var logo_btn:SimpleButton;
public var highScoresBtn:SimpleButton;
public var addThisBtn:SimpleButton;
public var fgmBtn:MovieClip;
public function GameTitleScreen(rt2){
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 6, frame7, 9, frame10);
rt = rt2;
}
public function getScores(){
var handleComplete:Function;
var onIOError:Function;
handleComplete = function (event:Event):void{
};
onIOError = function (event:IOErrorEvent):void{
};
}
public function gotoArcD(e:MouseEvent):void{
}
function frame10(){
}
public function doHighScores(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/hi-scores/last-command?ref=last-command_HISCORE"), "_blank");
}
function frame3(){
rt.doInstrBtns();
}
public function gotoFGM(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.flashgamemaker.com"), "_blank");
}
function frame7(){
rt.doContrBtns();
}
function frame1(){
logo_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBadHed3, false);
moreGamesBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBadHed2, false);
highScoresBtn.addEventListener(MouseEvent.MOUSE_DOWN, doHighScores, false);
fgmBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoFGM, false);
rt.doTitleScreenStuff();
stop();
}
public function gotoBadHed3(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_TITLE"), "_blank");
}
public function gotoBadHed2(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_MOREGAMES"), "_blank");
}
function frame2(){
playBtn.addEventListener(MouseEvent.MOUSE_DOWN, rt.doMapScreen, false);
loadGameBtn.addEventListener(MouseEvent.MOUSE_UP, rt.doMapScreenOld, false);
}
}
}//package classesAS3
Section 70
//GameTree1 (classesAS3.GameTree1)
package classesAS3 {
import flash.display.*;
public class GameTree1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:tree1;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameTree1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 71
//GameTree2 (classesAS3.GameTree2)
package classesAS3 {
import flash.display.*;
public class GameTree2 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:tree2;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameTree2(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
}
}//package classesAS3
Section 72
//GameUseful (classesAS3.GameUseful)
package classesAS3 {
import flash.display.*;
public class GameUseful {
public var rt:Object;
public function GameUseful(rt2){
super();
rt = rt2;
}
function addThrust(rot, speed){
var thrustVectors:Object;
thrustVectors = new Object();
thrustVectors.xVel = (Math.cos(radian(rot)) * speed);
thrustVectors.yVel = (Math.sin(radian(rot)) * speed);
return (thrustVectors);
}
function rotateXY(centerX, centerY, radius, ringAngle){
var scA:Number;
var vectorData:Object;
scA = ((Math.PI * ringAngle) / 180);
vectorData = new Object();
vectorData.xPos = (centerX + (Math.cos(scA) * radius));
vectorData.yPos = (centerY + (Math.sin(scA) * radius));
return (vectorData);
}
public function getDistanceQ(xx1, yy1, xx2, yy2){
var nn:Number;
nn = (xx2 - xx1);
nn = Math.abs(nn);
return (nn);
}
function localToGlobalXY2(mc1:MovieClip):Object{
var temp:Object;
var clip:*;
var xs:*;
var ys:*;
var r:*;
temp = new Object();
temp.newX = 0;
temp.newY = 0;
clip = mc1;
while (clip != rt.parent) {
xs = (temp.newX * (clip.scaleX / 1));
ys = (temp.newY * (clip.scaleY / 1));
r = (clip.rotation * (Math.PI / 180));
temp.newX = ((xs * Math.cos(r)) - (ys * Math.sin(r)));
temp.newY = ((xs * Math.sin(r)) + (ys * Math.cos(r)));
temp.newX = (temp.newX + clip.x);
temp.newY = (temp.newY + clip.y);
clip = clip.parent;
};
return (temp);
}
function localToGlobalXY(mc1:MovieClip):Object{
var temp:Object;
var clip:*;
var xs:*;
var ys:*;
var r:*;
temp = new Object();
temp.newX = 0;
temp.newY = 0;
clip = mc1;
while (clip != rt.parent) {
xs = temp.newX;
ys = temp.newY;
r = (clip.rotation * (Math.PI / 180));
temp.newX = ((xs * Math.cos(r)) - (ys * Math.sin(r)));
temp.newY = ((xs * Math.sin(r)) + (ys * Math.cos(r)));
temp.newX = (temp.newX + clip.x);
temp.newY = (temp.newY + clip.y);
clip = clip.parent;
};
return (temp);
}
public function getDistance(xx1, yy1, xx2, yy2){
var dx2:Number;
var dy2:Number;
var dx:Number;
var dy:Number;
dx2 = xx1;
dy2 = yy1;
dx = xx2;
dy = yy2;
dx = (dx2 - dx);
dy = (dy2 - dy);
return (Math.sqrt(((dx * dx) + (dy * dy))));
}
public function RandomNumber(xn, yn):Number{
return ((Math.floor((Math.random() * ((1 + yn) - xn))) + xn));
}
function countMcs(mC):Array{
var movieClipsFound:Array;
var n:*;
movieClipsFound = new Array();
n = 0;
for (n in mC) {
if (typeof(mC[n]) == "movieclip"){
movieClipsFound.push(mC[n]);
};
};
return (movieClipsFound);
}
public function orientateToGround(rt, mC){
var leftC:Number;
var rightC:Number;
var xm:*;
var ym:*;
var yy1:Number;
var yy2:Number;
var rotData:Object;
leftC = (mC.x - (mC.width / 2));
rightC = (mC.x + (mC.width / 2));
xm = int(leftC);
ym = (mC.y + rt.spritesMc.y);
yy1 = rt.groundArray[xm];
xm = int(rightC);
yy2 = rt.groundArray[xm];
rotData = pointTowards(leftC, yy1, rightC, yy2);
return ((rotData.spriteRotation - 180));
}
function radian(degree){
return (((degree * Math.PI) / 180));
}
function capVectorSpeed(vx, vy, max):Object{
var vectorSpeedsCapped:Object;
var len:*;
vectorSpeedsCapped = new Object();
len = Math.sqrt(((vx * vx) + (vy * vy)));
if (len > max){
vx = (vx * (max / len));
vy = (vy * (max / len));
};
vectorSpeedsCapped.vx = vx;
vectorSpeedsCapped.vy = vy;
return (vectorSpeedsCapped);
}
function argbtohex(a:Number, r:Number, g:Number, b:Number){
return (((((a << 24) | (r << 16)) | (g << 8)) | b));
}
function getVectorFromAngle(rotationVar):Object{
var vectorObject:Object;
var angle:Number;
vectorObject = new Object();
angle = ((rotationVar * Math.PI) / 180);
vectorObject.vx = Math.cos(angle);
vectorObject.vy = Math.sin(angle);
return (vectorObject);
}
public function getArcVelocity(gravity:Number, speed:Number, xStart:Number, yStart:Number, xEnd:Number, yEnd:Number):Object{
var velocities:Object;
var xd:*;
var yd:*;
var dist:*;
var steps:*;
velocities = new Object();
xd = (xEnd - xStart);
yd = (yEnd - yStart);
dist = Math.sqrt(((xd * xd) + (yd * yd)));
steps = Math.ceil((dist / speed));
velocities.gravity = gravity;
velocities.steps = steps;
velocities.xStep = (xd / steps);
velocities.yStep = (yd / steps);
if (gravity > 0){
velocities.yStep = (velocities.yStep - ((steps * gravity) / 2));
};
return (velocities);
}
function pointTowards(xx, yy, xx2, yy2):Object{
var spriteData:Object;
var dx:*;
var dy:*;
spriteData = new Object();
dx = (xx - xx2);
dy = (yy - yy2);
spriteData.spriteAngle = Math.atan2(dy, dx);
spriteData.spriteRotation = ((spriteData.spriteAngle * 180) / Math.PI);
spriteData.vx = Math.cos(spriteData.spriteAngle);
spriteData.vy = Math.sin(spriteData.spriteAngle);
return (spriteData);
}
function bxConvertToMetres(pixelToConvert:Number, scalingFactor:Number){
return ((pixelToConvert / scalingFactor));
}
function checkForLOS(xx1, yy1, xx2, yy2, backgroundObject){
var dist:Number;
var distObj:Object;
var yy:Number;
var i2:*;
dist = int(getDistance(xx1, yy1, xx2, yy2));
distObj = pointTowards(xx1, yy1, xx2, yy2);
i2 = 0;
while (i2 < dist) {
yy = rt.GameMain.groundArray[int(xx1)];
if (int(yy1) > yy){
return (true);
};
xx1 = (xx1 - distObj.vx);
yy1 = (yy1 - distObj.vy);
i2++;
};
return (false);
}
}
}//package classesAS3
Section 73
//GameWall (classesAS3.GameWall)
package classesAS3 {
import flash.display.*;
public class GameWall extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameWall(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 74
//GameWeaponsPanel (classesAS3.GameWeaponsPanel)
package classesAS3 {
import flash.events.*;
import flash.net.*;
import flash.text.*;
import flash.system.*;
import flash.display.*;
public class GameWeaponsPanel extends MovieClip {
public var musicBtn:SimpleButton;
public var loginBtn:SimpleButton;
public var levelTxt:TextField;
public var soundFxBtn:SimpleButton;
public var logo_btn5:MovieClip;
public var rt:Object;
public var msg:TextField;
public var score:TextField;
public var quitBtn:SimpleButton;
public var musicMc:MovieClip;
public var soundFxMc:MovieClip;
public var p1:MovieClip;
public var ammoTxt:TextField;
public var aliensLeftTxt:TextField;
public var pausePanelBtn:SimpleButton;
public var q1:MovieClip;
public var money:TextField;
public function GameWeaponsPanel(rt2){
super();
addFrameScript(0, frame1);
rt = rt2;
}
public function soundSwitch(e:MouseEvent):void{
this.rt.soundFxBtn();
}
function frame1(){
quitBtn.addEventListener(MouseEvent.MOUSE_DOWN, quitGame, false);
soundFxBtn.addEventListener(MouseEvent.MOUSE_DOWN, soundSwitch, false);
musicBtn.addEventListener(MouseEvent.MOUSE_DOWN, musicSwitch, false);
pausePanelBtn.addEventListener(MouseEvent.MOUSE_DOWN, pauseSwitch, false);
loginBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoPauseL, false);
}
public function gotoPauseL(e:MouseEvent):void{
this.rt.rt.pauseGame();
}
public function musicSwitch(e:MouseEvent):void{
this.rt.musicBtn();
}
public function pauseSwitch(e:MouseEvent):void{
this.rt.rt.pauseGame();
}
public function quitGame(e:MouseEvent):void{
this.rt.gameOver("game_over");
}
}
}//package classesAS3
Section 75
//GameViking1 (classesAS3.GameViking1)
package classesAS3 {
import flash.display.*;
public class GameViking1 extends MovieClip {
public var coll:MovieClip;
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mReleaseMc:MovieClip;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameViking1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
addFrameScript(0, frame1);
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
public function removeMe(){
myObject.remove();
this.stop();
}
function destroyMe(){
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
function frame1(){
stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function decreaseEnergy(dec){
myObject.decreaseEnergy(dec);
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 76
//GameWire (classesAS3.GameWire)
package classesAS3 {
import flash.display.*;
public class GameWire extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameWire(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 70;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
removeMe();
}
public function removeMe(){
myObject.remove();
this.stop();
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -50){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 77
//GameWizard1 (classesAS3.GameWizard1)
package classesAS3 {
import flash.display.*;
public class GameWizard1 extends MovieClip {
public var myType:String;
public var goodBad:Boolean;
public var myObject:Object;
public var mySmoke;
public var collisionWith:MovieClip;
public var collisionWithS:MovieClip;
public var collisionWithW:MovieClip;
public var noRotation:Boolean;
public var myShapeDef:Object;
public var myParent:Object;
public var rt:Object;
public var soldier:MovieClip;
public var energy:Number;
public var filterData:Object;
public var myBodyDef:Object;
public var buildingBit:Boolean;// = false
public function GameWizard1(rt2, bD, sD, mT, myP, gB){
buildingBit = false;
super();
rt = rt2;
myBodyDef = bD;
myShapeDef = sD;
myType = mT;
myParent = myP;
mySmoke = null;
goodBad = gB;
energy = 100;
noRotation = true;
}
function destroyMe(){
if (rt.bodyGrabbed == myBodyDef){
rt.bodyGrabbed = null;
};
rt.m_world.DestroyBody(myBodyDef);
removeMe();
}
public function removeMe(){
myParent.removeChild(this);
}
public function checkOffScreen(){
if (this.x > 1700){
destroyMe();
} else {
if (this.x < -250){
destroyMe();
};
};
if (this.y > 800){
destroyMe();
};
}
public function setupPuffSmoke(){
if (mySmoke == null){
mySmoke = new GameHitFloorSmoke(rt, myParent, this);
mySmoke.x = this.x;
mySmoke.y = this.y;
myParent.addChild(mySmoke);
};
}
}
}//package classesAS3
Section 78
//MapTile (classesAS3.MapTile)
package classesAS3 {
import flash.display.*;
public class MapTile extends MovieClip {
public var myType:String;
public var rt:Object;
public function MapTile(rt2, mT){
super();
rt = rt2;
myType = mT;
}
}
}//package classesAS3
Section 79
//Debug (com.hexagonstar.util.debug.Debug)
package com.hexagonstar.util.debug {
import flash.net.*;
import flash.display.*;
import flash.system.*;
import flash.events.*;
import flash.utils.*;
public final class Debug {
public static const LEVEL_WARN:int = 2;
public static const LEVEL_DEBUG:int = 0;
public static const LEVEL_INFO:int = 1;
public static const LEVEL_FATAL:int = 4;
public static const LEVEL_ERROR:int = 3;
private static var _stage:Stage;
private static var _filterLevel:int = 0;
private static var _isEnabled:Boolean = true;
private static var _isConnected:Boolean = false;
private static var _isPollingFPS:Boolean = false;
private static var _stopWatch:StopWatch;
private static var _connection:LocalConnection;
private static var _fpsMeter:FPSMeter;
public static function forceGC():void{
try {
} catch(e1:Error) {
try {
new LocalConnection().connect("forceGC");
new LocalConnection().connect("forceGC");
} catch(e2:Error) {
};
};
}
private static function send(_arg1:String, _arg2, _arg3:int=1, _arg4:int=0):void{
var _local5:Number;
var _local6:ByteArray;
if (_isEnabled){
if (!(_isConnected)){
_isConnected = true;
_connection = new LocalConnection();
_connection.addEventListener(StatusEvent.STATUS, onStatus);
};
_local5 = 0;
if (typeof(_arg2) == "string"){
_local5 = String(_arg2).length;
} else {
if (typeof(_arg2) == "object"){
_local6 = new ByteArray();
_local6.writeObject(_arg2);
_local5 = _local6.length;
_local6 = null;
};
};
if (_local5 > 39000){
storeDataLSO(_arg1, _arg2);
_arg1 = "onLargeData";
_arg2 = null;
};
_connection.send("_alcon_lc", _arg1, _arg2, _arg3, _arg4, "");
};
}
public static function stop():void{
if (_fpsMeter){
_isPollingFPS = false;
_fpsMeter.stop();
_fpsMeter.removeEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter = null;
_stage = null;
};
}
public static function timerReset():void{
if (_stopWatch){
_stopWatch.reset();
};
}
private static function onFPSUpdate(_arg1:Event):void{
send("onFPS", ((((((_fpsMeter.fps + ",") + _stage.frameRate) + ",") + _fpsMeter.frt) + ",") + System.totalMemory));
}
public static function delimiter():void{
Debug.trace("[%DLT%]", 5);
}
public static function set enabled(_arg1:Boolean):void{
_isEnabled = _arg1;
}
public static function inspect(_arg1:Object):void{
send("onInspect", _arg1, 1, -1);
}
public static function timerStart(_arg1:String=""):void{
if (_isEnabled){
if (!(_stopWatch)){
_stopWatch = new StopWatch();
};
_stopWatch.start(_arg1);
};
}
public static function createCategory(_arg1:int, _arg2:String="", _arg3:uint=0, _arg4:uint=0xFFFF00):void{
send("onCategory", [_arg1, _arg2, _arg3, _arg4], 0, 0);
}
private static function storeDataLSO(_arg1:String, _arg2):void{
var flushResult:String;
var m = _arg1;
var d = _arg2;
var sharedObject:SharedObject = SharedObject.getLocal("alcon", "/");
sharedObject.data["alconMethod"] = m;
sharedObject.data["alconData"] = d;
try {
flushResult = sharedObject.flush();
if (flushResult == SharedObjectFlushStatus.FLUSHED){
return;
};
} catch(e:Error) {
Security.showSettings(SecurityPanel.LOCAL_STORAGE);
};
}
public static function hexDump(_arg1:Object):void{
send("onHexDump", _arg1, 0, 0);
}
private static function onStatus(_arg1:StatusEvent):void{
}
public static function get enabled():Boolean{
return (_isEnabled);
}
public static function trace(... _args):void{
var _local2:int = ((_args[1] is int)) ? _args[1] : 1;
if ((((_local2 >= _filterLevel)) && ((_local2 < 7)))){
send("onData", _args[0], _local2, 0);
};
}
public static function timerToString():void{
if (_stopWatch){
Debug.trace(_stopWatch.toString());
};
}
public static function mark(_arg1:uint=0xFF00FF):void{
send("onMarker", _arg1, 1, -1);
}
public static function timerInSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInSeconds + "s"));
};
}
public static function set filterLevel(_arg1:int):void{
if ((((_arg1 >= 0)) && ((_arg1 < 5)))){
_filterLevel = _arg1;
};
}
public static function monitor(_arg1:Stage, _arg2:int=500):void{
if (_isPollingFPS){
Debug.stop();
};
if (((_isEnabled) && (!(_fpsMeter)))){
_isPollingFPS = true;
_stage = _arg1;
sendCapabilities();
_fpsMeter = new FPSMeter(_stage, _arg2);
_fpsMeter.addEventListener(FPSMeter.FPS_UPDATE, onFPSUpdate);
_fpsMeter.start();
};
}
public static function time():void{
Debug.trace("[%TME%]", 5);
}
private static function sendCapabilities():void{
var _local3:XML;
var _local4:String;
var _local1:XML = describeType(Capabilities);
var _local2:Array = [];
for each (_local3 in _local1.*) {
_local4 = _local3.@name.toString();
if ((((((_local4.length > 0)) && (!((_local4 == "_internal"))))) && (!((_local4 == "prototype"))))){
_local2.push({p:_local4, v:Capabilities[_local4].toString()});
};
};
_local2.sortOn(["p"], Array.CASEINSENSITIVE);
send("onCap", _local2);
}
public static function clear():void{
Debug.trace("[%CLR%]", 5);
}
public static function timerStop():void{
if (_stopWatch){
_stopWatch.stop();
};
}
public static function timerInMilliSeconds():void{
if (_stopWatch){
Debug.trace((_stopWatch.timeInMilliSeconds + "ms"));
};
}
public static function get filterLevel():int{
return (_filterLevel);
}
public static function traceObj(_arg1:Object, _arg2:int=64, _arg3:int=1):void{
if ((((_arg3 >= _filterLevel)) && ((_arg3 < 7)))){
send("onData", _arg1, _arg3, _arg2);
};
}
public static function timerStopToString(_arg1:Boolean=false):void{
if (_stopWatch){
_stopWatch.stop();
Debug.trace(_stopWatch.toString());
if (_arg1){
_stopWatch.reset();
};
};
}
public static function pause():void{
Debug.trace("[%PSE%]", 5);
}
}
}//package com.hexagonstar.util.debug
Section 80
//FPSMeter (com.hexagonstar.util.debug.FPSMeter)
package com.hexagonstar.util.debug {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class FPSMeter extends EventDispatcher {
private var _delayMax:int;// = 10
private var _pollInterval:int;
private var _delay:int;
private var _ms:int;
private var _timer:Timer;
private var _prev:int;
private var _frt:int;
private var _fps:int;
private var _isRunning:Boolean;
private var _stage:Stage;
public static const FPS_UPDATE:String = "fpsUpdate";
public function FPSMeter(_arg1:Stage, _arg2:int=500){
_stage = _arg1;
_pollInterval = _arg2;
reset();
}
public function stop():void{
if (_isRunning){
_timer.stop();
_timer.removeEventListener(TimerEvent.TIMER, onTimer);
_stage.removeEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer = null;
reset();
};
}
public function reset():void{
_fps = 0;
_frt = 0;
_ms = 0;
_delay = 0;
_prev = 0;
_isRunning = false;
}
public function start():void{
if (!(_isRunning)){
_isRunning = true;
_timer = new Timer(_pollInterval, 0);
_timer.addEventListener(TimerEvent.TIMER, onTimer);
_stage.addEventListener(Event.ENTER_FRAME, onEnterFrame);
_timer.start();
};
}
private function onTimer(_arg1:TimerEvent):void{
dispatchEvent(new Event(FPSMeter.FPS_UPDATE));
}
public function get frt():int{
return (_frt);
}
public function get fps():int{
return (_fps);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:Number = getTimer();
_delay++;
if (_delay >= _delayMax){
_delay = 0;
_fps = int(((1000 * _delayMax) / (_local2 - _prev)));
_prev = _local2;
};
_frt = (_local2 - _ms);
_ms = _local2;
}
}
}//package com.hexagonstar.util.debug
Section 81
//StopWatch (com.hexagonstar.util.debug.StopWatch)
package com.hexagonstar.util.debug {
import flash.utils.*;
public class StopWatch {
private var _stopTimeKeys:Array;
private var _startTimeKeys:Array;
private var _started:Boolean;// = false
private var _title:String;
public function StopWatch(){
reset();
}
public function get started():Boolean{
return (_started);
}
public function get timeInMilliSeconds():int{
if (_started){
_stopTimeKeys[(_startTimeKeys.length - 1)] = getTimer();
};
var _local1:int;
var _local2:int;
while (_local2 < _startTimeKeys.length) {
_local1 = (_local1 + (_stopTimeKeys[_local2] - _startTimeKeys[_local2]));
_local2++;
};
return (_local1);
}
public function stop():void{
var _local1:int;
if (_started){
_local1 = getTimer();
_stopTimeKeys[(_startTimeKeys.length - 1)] = _local1;
_started = false;
};
}
public function toString():String{
var _local3:int;
var _local4:int;
var _local1:String = "\n ********************* [STOPWATCH] *********************";
if (_title != ""){
_local1 = (_local1 + ("\n * " + _title));
};
var _local2:int;
while (_local2 < _startTimeKeys.length) {
_local3 = _startTimeKeys[_local2];
_local4 = _stopTimeKeys[_local2];
_local1 = (_local1 + (((((("\n * started [" + format(_local3)) + "ms] stopped [") + format(_local4)) + "ms] time [") + format((_local4 - _local3))) + "ms]"));
_local2++;
};
if (_local2 == 0){
_local1 = (_local1 + "\n * never started.");
} else {
_local1 = (_local1 + (("\n * total runnning time: " + timeInSeconds) + "s"));
};
_local1 = (_local1 + "\n *******************************************************");
return (_local1);
}
public function get timeInSeconds():Number{
return ((timeInMilliSeconds / 1000));
}
public function reset():void{
_startTimeKeys = [];
_stopTimeKeys = [];
_started = false;
}
private function format(_arg1:int):String{
var _local2:String = "";
var _local3:int = _arg1.toString().length;
var _local4:int;
while (_local4 < (5 - _local3)) {
_local2 = (_local2 + "0");
_local4++;
};
return ((_local2 + _arg1));
}
public function start(_arg1:String=""):void{
if (!(_started)){
_title = _arg1;
_started = true;
_startTimeKeys.push(getTimer());
};
}
}
}//package com.hexagonstar.util.debug
Section 82
//Color (fl.motion.Color)
package fl.motion {
import flash.geom.*;
import flash.display.*;
public class Color extends ColorTransform {
private var _tintMultiplier:Number;// = 0
private var _tintColor:Number;// = 0
public function Color(redMultiplier:Number=1, greenMultiplier:Number=1, blueMultiplier:Number=1, alphaMultiplier:Number=1, redOffset:Number=0, greenOffset:Number=0, blueOffset:Number=0, alphaOffset:Number=0){
_tintColor = 0;
_tintMultiplier = 0;
super(redMultiplier, greenMultiplier, blueMultiplier, alphaMultiplier, redOffset, greenOffset, blueOffset, alphaOffset);
}
public function setTint(tintColor:uint, tintMultiplier:Number):void{
var r:uint;
var g:uint;
var b:uint;
this._tintColor = tintColor;
this._tintMultiplier = tintMultiplier;
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = (1 - tintMultiplier)));
r = ((tintColor >> 16) & 0xFF);
g = ((tintColor >> 8) & 0xFF);
b = (tintColor & 0xFF);
this.redOffset = Math.round((r * tintMultiplier));
this.greenOffset = Math.round((g * tintMultiplier));
this.blueOffset = Math.round((b * tintMultiplier));
}
public function set tintColor(value:uint):void{
this.setTint(value, this.tintMultiplier);
}
public function get brightness():Number{
return ((this.redOffset) ? (1 - this.redMultiplier) : (this.redMultiplier - 1));
}
private function deriveTintColor():uint{
var ratio:Number;
var r:uint;
var g:uint;
var b:uint;
var colorNum:uint;
ratio = (1 / this.tintMultiplier);
r = Math.round((this.redOffset * ratio));
g = Math.round((this.greenOffset * ratio));
b = Math.round((this.blueOffset * ratio));
colorNum = (((r << 16) | (g << 8)) | b);
return (colorNum);
}
public function get tintMultiplier():Number{
return (this._tintMultiplier);
}
public function get tintColor():uint{
return (this._tintColor);
}
public function set brightness(value:Number):void{
var percent:Number;
var offset:Number;
if (value > 1){
value = 1;
} else {
if (value < -1){
value = -1;
};
};
percent = (1 - Math.abs(value));
offset = 0;
if (value > 0){
offset = (value * 0xFF);
};
this.redMultiplier = (this.greenMultiplier = (this.blueMultiplier = percent));
this.redOffset = (this.greenOffset = (this.blueOffset = offset));
}
public function set tintMultiplier(value:Number):void{
this.setTint(this.tintColor, value);
}
private function parseXML(xml:XML=null):Color{
var firstChild:XML;
var att:XML;
var name:String;
var tintColorNumber:uint;
if (!(xml)){
return (this);
};
firstChild = xml.elements()[0];
if (!(firstChild)){
return (this);
};
for each (att in firstChild.attributes()) {
name = att.localName();
if (name == "tintColor"){
tintColorNumber = (Number(att.toString()) as uint);
this.tintColor = tintColorNumber;
} else {
this[name] = Number(att.toString());
};
};
return (this);
}
public static function interpolateColor(fromColor:uint, toColor:uint, progress:Number):uint{
var q:Number;
var fromA:uint;
var fromR:uint;
var fromG:uint;
var fromB:uint;
var toA:uint;
var toR:uint;
var toG:uint;
var toB:uint;
var resultA:uint;
var resultR:uint;
var resultG:uint;
var resultB:uint;
var resultColor:uint;
q = (1 - progress);
fromA = ((fromColor >> 24) & 0xFF);
fromR = ((fromColor >> 16) & 0xFF);
fromG = ((fromColor >> 8) & 0xFF);
fromB = (fromColor & 0xFF);
toA = ((toColor >> 24) & 0xFF);
toR = ((toColor >> 16) & 0xFF);
toG = ((toColor >> 8) & 0xFF);
toB = (toColor & 0xFF);
resultA = ((fromA * q) + (toA * progress));
resultR = ((fromR * q) + (toR * progress));
resultG = ((fromG * q) + (toG * progress));
resultB = ((fromB * q) + (toB * progress));
resultColor = ((((resultA << 24) | (resultR << 16)) | (resultG << 8)) | resultB);
return (resultColor);
}
public static function interpolateTransform(fromColor:ColorTransform, toColor:ColorTransform, progress:Number):ColorTransform{
var q:Number;
var resultColor:ColorTransform;
q = (1 - progress);
resultColor = new ColorTransform(((fromColor.redMultiplier * q) + (toColor.redMultiplier * progress)), ((fromColor.greenMultiplier * q) + (toColor.greenMultiplier * progress)), ((fromColor.blueMultiplier * q) + (toColor.blueMultiplier * progress)), ((fromColor.alphaMultiplier * q) + (toColor.alphaMultiplier * progress)), ((fromColor.redOffset * q) + (toColor.redOffset * progress)), ((fromColor.greenOffset * q) + (toColor.greenOffset * progress)), ((fromColor.blueOffset * q) + (toColor.blueOffset * progress)), ((fromColor.alphaOffset * q) + (toColor.alphaOffset * progress)));
return (resultColor);
}
public static function fromXML(xml:XML):Color{
return (Color(new (Color).parseXML(xml)));
}
}
}//package fl.motion
Section 83
//alien_freezegun_dies_51 (LC_G5Games_v7_fla.alien_freezegun_dies_51)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_freezegun_dies_51 extends MovieClip {
public function alien_freezegun_dies_51(){
super();
addFrameScript(15, frame16);
}
function frame16(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 84
//alien_freezegun_explodes_53 (LC_G5Games_v7_fla.alien_freezegun_explodes_53)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_freezegun_explodes_53 extends MovieClip {
public function alien_freezegun_explodes_53(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 85
//alien_freezegun_headshoot_52 (LC_G5Games_v7_fla.alien_freezegun_headshoot_52)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_freezegun_headshoot_52 extends MovieClip {
public function alien_freezegun_headshoot_52(){
super();
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 86
//alien_freezegun_hit_50 (LC_G5Games_v7_fla.alien_freezegun_hit_50)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class alien_freezegun_hit_50 extends MovieClip {
public function alien_freezegun_hit_50(){
super();
addFrameScript(8, frame9);
}
function frame9(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 87
//alien_freezegun_shooting_49 (LC_G5Games_v7_fla.alien_freezegun_shooting_49)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_freezegun_shooting_49 extends MovieClip {
public function alien_freezegun_shooting_49(){
super();
addFrameScript(10, frame11, 19, frame20);
}
function frame20(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame11(){
MovieClip(this.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 88
//alien_grenade_dies_151 (LC_G5Games_v7_fla.alien_grenade_dies_151)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_grenade_dies_151 extends MovieClip {
public function alien_grenade_dies_151(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 89
//alien_grenade_explodes_153 (LC_G5Games_v7_fla.alien_grenade_explodes_153)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_grenade_explodes_153 extends MovieClip {
public function alien_grenade_explodes_153(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 90
//alien_grenade_headshoot_152 (LC_G5Games_v7_fla.alien_grenade_headshoot_152)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_grenade_headshoot_152 extends MovieClip {
public function alien_grenade_headshoot_152(){
super();
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 91
//alien_grenade_hit_150 (LC_G5Games_v7_fla.alien_grenade_hit_150)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class alien_grenade_hit_150 extends MovieClip {
public function alien_grenade_hit_150(){
super();
addFrameScript(8, frame9);
}
function frame9(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 92
//alien_grenade_shooting_149 (LC_G5Games_v7_fla.alien_grenade_shooting_149)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_grenade_shooting_149 extends MovieClip {
public function alien_grenade_shooting_149(){
super();
addFrameScript(21, frame22, 29, frame30);
}
function frame22(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame30(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 93
//alien_lasergun_dies_123 (LC_G5Games_v7_fla.alien_lasergun_dies_123)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_lasergun_dies_123 extends MovieClip {
public function alien_lasergun_dies_123(){
super();
addFrameScript(13, frame14);
}
function frame14(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 94
//alien_lasergun_explodes_125 (LC_G5Games_v7_fla.alien_lasergun_explodes_125)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_lasergun_explodes_125 extends MovieClip {
public function alien_lasergun_explodes_125(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 95
//alien_lasergun_headshoot_124 (LC_G5Games_v7_fla.alien_lasergun_headshoot_124)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_lasergun_headshoot_124 extends MovieClip {
public function alien_lasergun_headshoot_124(){
super();
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 96
//alien_lasergun_hit_122 (LC_G5Games_v7_fla.alien_lasergun_hit_122)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class alien_lasergun_hit_122 extends MovieClip {
public function alien_lasergun_hit_122(){
super();
addFrameScript(8, frame9);
}
function frame9(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 97
//alien_lasergun_shooting_121 (LC_G5Games_v7_fla.alien_lasergun_shooting_121)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_lasergun_shooting_121 extends MovieClip {
public function alien_lasergun_shooting_121(){
super();
addFrameScript(8, frame9, 19, frame20);
}
function frame20(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame9(){
MovieClip(this.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 98
//alien_withlasercannon_dies_137 (LC_G5Games_v7_fla.alien_withlasercannon_dies_137)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_withlasercannon_dies_137 extends MovieClip {
public function alien_withlasercannon_dies_137(){
super();
addFrameScript(15, frame16);
}
function frame16(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 99
//alien_withlasercannon_explodes_139 (LC_G5Games_v7_fla.alien_withlasercannon_explodes_139)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_withlasercannon_explodes_139 extends MovieClip {
public function alien_withlasercannon_explodes_139(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 100
//alien_withlasercannon_headshoot_138 (LC_G5Games_v7_fla.alien_withlasercannon_headshoot_138)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_withlasercannon_headshoot_138 extends MovieClip {
public function alien_withlasercannon_headshoot_138(){
super();
addFrameScript(39, frame40);
}
function frame40(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 101
//alien_withlasercannon_hit_136 (LC_G5Games_v7_fla.alien_withlasercannon_hit_136)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class alien_withlasercannon_hit_136 extends MovieClip {
public function alien_withlasercannon_hit_136(){
super();
addFrameScript(9, frame10);
}
function frame10(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 102
//alien_withlasercannon_shooting_135 (LC_G5Games_v7_fla.alien_withlasercannon_shooting_135)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alien_withlasercannon_shooting_135 extends MovieClip {
public function alien_withlasercannon_shooting_135(){
super();
addFrameScript(9, frame10, 19, frame20);
}
function frame10(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame20(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 103
//alienBossB_1313 (LC_G5Games_v7_fla.alienBossB_1313)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossB_1313 extends MovieClip {
public function alienBossB_1313(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 104
//alienBossC_1340 (LC_G5Games_v7_fla.alienBossC_1340)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossC_1340 extends MovieClip {
public function alienBossC_1340(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 105
//alienBossFire_1256 (LC_G5Games_v7_fla.alienBossFire_1256)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossFire_1256 extends MovieClip {
public function alienBossFire_1256(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 106
//alienBossFireA_1257 (LC_G5Games_v7_fla.alienBossFireA_1257)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossFireA_1257 extends MovieClip {
public function alienBossFireA_1257(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 107
//alienBossRun_1224 (LC_G5Games_v7_fla.alienBossRun_1224)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossRun_1224 extends MovieClip {
public function alienBossRun_1224(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 108
//alienBossStand_1154 (LC_G5Games_v7_fla.alienBossStand_1154)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class alienBossStand_1154 extends MovieClip {
public function alienBossStand_1154(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 109
//aMc_1492 (LC_G5Games_v7_fla.aMc_1492)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class aMc_1492 extends MovieClip {
public var aBtn:SimpleButton;
public function aMc_1492(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 110
//ammoBoxa_1403 (LC_G5Games_v7_fla.ammoBoxa_1403)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ammoBoxa_1403 extends MovieClip {
public var crate:MovieClip;
public function ammoBoxa_1403(){
super();
addFrameScript(77, frame78);
}
function frame78(){
MovieClip(parent).remove();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 111
//ammoBoxMcx_1404 (LC_G5Games_v7_fla.ammoBoxMcx_1404)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ammoBoxMcx_1404 extends MovieClip {
public function ammoBoxMcx_1404(){
super();
addFrameScript(0, frame1, 5, frame6);
}
function frame6(){
MovieClip(parent.parent).remove();
stop();
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 112
//ammoExtra_1412 (LC_G5Games_v7_fla.ammoExtra_1412)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ammoExtra_1412 extends MovieClip {
public var ammoExtraTxt:TextField;
public function ammoExtra_1412(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).scoreNumber != null){
ammoExtraTxt.text = (("+" + String(MovieClip(parent).scoreNumber)) + " ammo");
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 113
//aracnid_saucer_dies_70 (LC_G5Games_v7_fla.aracnid_saucer_dies_70)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class aracnid_saucer_dies_70 extends MovieClip {
public function aracnid_saucer_dies_70(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 114
//aracnid_saucer_explodes_71 (LC_G5Games_v7_fla.aracnid_saucer_explodes_71)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class aracnid_saucer_explodes_71 extends MovieClip {
public function aracnid_saucer_explodes_71(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 115
//aracnid_saucer_hit_68 (LC_G5Games_v7_fla.aracnid_saucer_hit_68)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class aracnid_saucer_hit_68 extends MovieClip {
public function aracnid_saucer_hit_68(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 116
//aracnid_saucer_shooting_67 (LC_G5Games_v7_fla.aracnid_saucer_shooting_67)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class aracnid_saucer_shooting_67 extends MovieClip {
public function aracnid_saucer_shooting_67(){
super();
addFrameScript(10, frame11, 27, frame28);
}
function frame28(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame11(){
MovieClip(this.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 117
//artillery_dies_209 (LC_G5Games_v7_fla.artillery_dies_209)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class artillery_dies_209 extends MovieClip {
public function artillery_dies_209(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 118
//artillery_hit_208 (LC_G5Games_v7_fla.artillery_hit_208)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class artillery_hit_208 extends MovieClip {
public function artillery_hit_208(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 119
//artillery_rocket_20 (LC_G5Games_v7_fla.artillery_rocket_20)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class artillery_rocket_20 extends MovieClip {
public function artillery_rocket_20(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 120
//artillery_shooting_207 (LC_G5Games_v7_fla.artillery_shooting_207)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class artillery_shooting_207 extends MovieClip {
public function artillery_shooting_207(){
super();
addFrameScript(10, frame11, 19, frame20);
}
function frame20(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame11(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 121
//assetHolder_1 (LC_G5Games_v7_fla.assetHolder_1)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class assetHolder_1 extends MovieClip {
public function assetHolder_1(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 122
//baseMc_248 (LC_G5Games_v7_fla.baseMc_248)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class baseMc_248 extends MovieClip {
public function baseMc_248(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 123
//basicFlag_1554 (LC_G5Games_v7_fla.basicFlag_1554)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class basicFlag_1554 extends MovieClip {
public function basicFlag_1554(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 124
//basicFlag2_1553 (LC_G5Games_v7_fla.basicFlag2_1553)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class basicFlag2_1553 extends MovieClip {
public var flag4b:MovieClip;
public var flag4c:MovieClip;
public var flag4d:MovieClip;
public var flag4a:MovieClip;
public function basicFlag2_1553(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 125
//basicFlag3_1552 (LC_G5Games_v7_fla.basicFlag3_1552)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class basicFlag3_1552 extends MovieClip {
public var flag3a:MovieClip;
public var flag3b:MovieClip;
public function basicFlag3_1552(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 126
//bonusTxt_1410 (LC_G5Games_v7_fla.bonusTxt_1410)
package LC_G5Games_v7_fla {
import flash.text.*;
import flash.display.*;
public dynamic class bonusTxt_1410 extends MovieClip {
public var bonusTxt:TextField;
public function bonusTxt_1410(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 127
//boss01_beinghit_a_800 (LC_G5Games_v7_fla.boss01_beinghit_a_800)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_beinghit_a_800 extends MovieClip {
public function boss01_beinghit_a_800(){
super();
addFrameScript(21, frame22);
}
function frame22(){
MovieClip(this.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 128
//boss01_beinghit_b_818 (LC_G5Games_v7_fla.boss01_beinghit_b_818)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_beinghit_b_818 extends MovieClip {
public function boss01_beinghit_b_818(){
super();
addFrameScript(21, frame22);
}
function frame22(){
MovieClip(this.parent.parent).gotoAndStop("run");
}
}
}//package LC_G5Games_v7_fla
Section 129
//boss01_beinghit_c_824 (LC_G5Games_v7_fla.boss01_beinghit_c_824)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_beinghit_c_824 extends MovieClip {
public function boss01_beinghit_c_824(){
super();
addFrameScript(21, frame22);
}
function frame22(){
MovieClip(this.parent.parent).gotoAndStop("run");
}
}
}//package LC_G5Games_v7_fla
Section 130
//boss01_beinghit_mov_head_c_828 (LC_G5Games_v7_fla.boss01_beinghit_mov_head_c_828)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_beinghit_mov_head_c_828 extends MovieClip {
public function boss01_beinghit_mov_head_c_828(){
super();
addFrameScript(21, frame22);
}
function frame22(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 131
//boss01_dying_mov_head_c_840 (LC_G5Games_v7_fla.boss01_dying_mov_head_c_840)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_dying_mov_head_c_840 extends MovieClip {
public function boss01_dying_mov_head_c_840(){
super();
addFrameScript(28, frame29);
}
function frame29(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 132
//boss01_firing01_mov_arm01_732 (LC_G5Games_v7_fla.boss01_firing01_mov_arm01_732)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing01_mov_arm01_732 extends MovieClip {
public function boss01_firing01_mov_arm01_732(){
super();
addFrameScript(9, frame10, 17, frame18, 27, frame28, 40, frame41);
}
function frame10(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame18(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame41(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 133
//boss01_firing01_mov_arm02_717 (LC_G5Games_v7_fla.boss01_firing01_mov_arm02_717)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing01_mov_arm02_717 extends MovieClip {
public function boss01_firing01_mov_arm02_717(){
super();
addFrameScript(9, frame10, 17, frame18, 27, frame28, 40, frame41);
}
function frame10(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame18(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile();
}
function frame41(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 134
//boss01_firing01_mov_head_a_729 (LC_G5Games_v7_fla.boss01_firing01_mov_head_a_729)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing01_mov_head_a_729 extends MovieClip {
public var head1:MovieClip;
public function boss01_firing01_mov_head_a_729(){
super();
addFrameScript(0, frame1, 9, frame10, 27, frame28, 39, frame40);
}
function frame10(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame28(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 135
//boss01_firing01_mov_nasalcanon_718 (LC_G5Games_v7_fla.boss01_firing01_mov_nasalcanon_718)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing01_mov_nasalcanon_718 extends MovieClip {
public var firePointMc:MovieClip;
public function boss01_firing01_mov_nasalcanon_718(){
super();
addFrameScript(9, frame10, 12, frame13, 15, frame16, 40, frame41);
}
function frame10(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame16(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame41(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 136
//boss01_firing02_mov_arm01_751 (LC_G5Games_v7_fla.boss01_firing02_mov_arm01_751)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing02_mov_arm01_751 extends MovieClip {
public var firePointMc:MovieClip;
public function boss01_firing02_mov_arm01_751(){
super();
addFrameScript(10, frame11, 14, frame15, 17, frame18, 20, frame21, 40, frame41);
}
function frame18(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame21(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
function frame11(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame41(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 137
//boss01_firing02_mov_arm02_735 (LC_G5Games_v7_fla.boss01_firing02_mov_arm02_735)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing02_mov_arm02_735 extends MovieClip {
public var firePointMc:MovieClip;
public function boss01_firing02_mov_arm02_735(){
super();
addFrameScript(10, frame11, 14, frame15, 17, frame18, 20, frame21);
}
function frame18(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame21(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
function frame11(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 138
//boss01_firing02_mov_head_b_778 (LC_G5Games_v7_fla.boss01_firing02_mov_head_b_778)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing02_mov_head_b_778 extends MovieClip {
public var head1:MovieClip;
public function boss01_firing02_mov_head_b_778(){
super();
addFrameScript(0, frame1, 9, frame10, 29, frame30, 39, frame40);
}
function frame10(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 139
//boss01_firing02_mov_head_c_797 (LC_G5Games_v7_fla.boss01_firing02_mov_head_c_797)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing02_mov_head_c_797 extends MovieClip {
public var head1:MovieClip;
public function boss01_firing02_mov_head_c_797(){
super();
addFrameScript(0, frame1, 9, frame10, 29, frame30, 39, frame40);
}
function frame10(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 140
//boss01_firing03_mov_mouthcanon_757 (LC_G5Games_v7_fla.boss01_firing03_mov_mouthcanon_757)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss01_firing03_mov_mouthcanon_757 extends MovieClip {
public var firePointMc:MovieClip;
public function boss01_firing03_mov_mouthcanon_757(){
super();
addFrameScript(31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 73, frame74);
}
function frame74(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame37(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame34(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame39(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame38(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame35(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame40(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame44(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame33(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame41(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame32(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame42(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 141
//boss01_head_a_649 (LC_G5Games_v7_fla.boss01_head_a_649)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_head_a_649 extends MovieClip {
public var dome1:MovieClip;
public function boss01_head_a_649(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 142
//boss01_head_b_664 (LC_G5Games_v7_fla.boss01_head_b_664)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_head_b_664 extends MovieClip {
public var dome1:MovieClip;
public function boss01_head_b_664(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 143
//boss01_head_c_675 (LC_G5Games_v7_fla.boss01_head_c_675)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_head_c_675 extends MovieClip {
public var dome1:MovieClip;
public function boss01_head_c_675(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 144
//boss01_weapon02_charge_759 (LC_G5Games_v7_fla.boss01_weapon02_charge_759)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_weapon02_charge_759 extends MovieClip {
public function boss01_weapon02_charge_759(){
super();
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 145
//boss01_weapon02_firing_758 (LC_G5Games_v7_fla.boss01_weapon02_firing_758)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss01_weapon02_firing_758 extends MovieClip {
public function boss01_weapon02_firing_758(){
super();
addFrameScript(34, frame35);
}
function frame35(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 146
//boss02_beinghit_mov_head_down03_a_1103 (LC_G5Games_v7_fla.boss02_beinghit_mov_head_down03_a_1103)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_beinghit_mov_head_down03_a_1103 extends MovieClip {
public function boss02_beinghit_mov_head_down03_a_1103(){
super();
addFrameScript(28, frame29);
}
function frame29(){
MovieClip(this.parent.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 147
//boss02_beinghit_mov_head_up01_c_1128 (LC_G5Games_v7_fla.boss02_beinghit_mov_head_up01_c_1128)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_beinghit_mov_head_up01_c_1128 extends MovieClip {
public function boss02_beinghit_mov_head_up01_c_1128(){
super();
addFrameScript(28, frame29);
}
function frame29(){
MovieClip(this.parent.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 148
//boss02_beinghit_mov_head_up02_b_1119 (LC_G5Games_v7_fla.boss02_beinghit_mov_head_up02_b_1119)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_beinghit_mov_head_up02_b_1119 extends MovieClip {
public function boss02_beinghit_mov_head_up02_b_1119(){
super();
addFrameScript(28, frame29);
}
function frame29(){
MovieClip(this.parent.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 149
//boss02_dome_a_328 (LC_G5Games_v7_fla.boss02_dome_a_328)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_dome_a_328 extends MovieClip {
public var dome1:MovieClip;
public function boss02_dome_a_328(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 150
//boss02_dome_c_363 (LC_G5Games_v7_fla.boss02_dome_c_363)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_dome_c_363 extends MovieClip {
public var dome1:MovieClip;
public function boss02_dome_c_363(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 151
//boss02_dying_mov_head_up01_1138 (LC_G5Games_v7_fla.boss02_dying_mov_head_up01_1138)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_dying_mov_head_up01_1138 extends MovieClip {
public function boss02_dying_mov_head_up01_1138(){
super();
addFrameScript(28, frame29);
}
function frame29(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 152
//boss02_firing01_a_1013 (LC_G5Games_v7_fla.boss02_firing01_a_1013)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_firing01_a_1013 extends MovieClip {
public var plantC5a:MovieClip;
public var plantC5b:MovieClip;
public var plantC5c:MovieClip;
public var plantC5e:MovieClip;
public var plantC5f:MovieClip;
public var plantC5d:MovieClip;
public function boss02_firing01_a_1013(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 153
//boss02_firing01_mov_head_down01_a_1016 (LC_G5Games_v7_fla.boss02_firing01_mov_head_down01_a_1016)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_down01_a_1016 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing01_mov_head_down01_a_1016(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 57, frame58, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 154
//boss02_firing01_mov_head_down01_b_1057 (LC_G5Games_v7_fla.boss02_firing01_mov_head_down01_b_1057)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_down01_b_1057 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing01_mov_head_down01_b_1057(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 57, frame58, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 155
//boss02_firing01_mov_head_down02_a_1020 (LC_G5Games_v7_fla.boss02_firing01_mov_head_down02_a_1020)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_down02_a_1020 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing01_mov_head_down02_a_1020(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 156
//boss02_firing01_mov_head_down03_b_1065 (LC_G5Games_v7_fla.boss02_firing01_mov_head_down03_b_1065)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_down03_b_1065 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing01_mov_head_down03_b_1065(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 57, frame58, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 157
//boss02_firing01_mov_head_up01_a_1017 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up01_a_1017)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up01_a_1017 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing01_mov_head_up01_a_1017(){
super();
addFrameScript(0, frame1, 3, frame4, 8, frame9, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame4(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame9(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 158
//boss02_firing01_mov_head_up01_b_1058 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up01_b_1058)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up01_b_1058 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing01_mov_head_up01_b_1058(){
super();
addFrameScript(0, frame1, 3, frame4, 8, frame9, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame4(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame9(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 159
//boss02_firing01_mov_head_up01_c_1085 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up01_c_1085)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up01_c_1085 extends MovieClip {
public var firePointMc:MovieClip;
public var head1:MovieClip;
public function boss02_firing01_mov_head_up01_c_1085(){
super();
addFrameScript(0, frame1, 3, frame4, 8, frame9, 14, frame15, 29, frame30, 44, frame45, 57, frame58, 58, frame59);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame4(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame9(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 160
//boss02_firing01_mov_head_up02_a_1021 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up02_a_1021)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up02_a_1021 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing01_mov_head_up02_a_1021(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 161
//boss02_firing01_mov_head_up03_a_1026 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up03_a_1026)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up03_a_1026 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing01_mov_head_up03_a_1026(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 162
//boss02_firing01_mov_head_up03_b_1066 (LC_G5Games_v7_fla.boss02_firing01_mov_head_up03_b_1066)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing01_mov_head_up03_b_1066 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing01_mov_head_up03_b_1066(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 163
//boss02_firing02_mov_basecannon_a_1012 (LC_G5Games_v7_fla.boss02_firing02_mov_basecannon_a_1012)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_basecannon_a_1012 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing02_mov_basecannon_a_1012(){
super();
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame1(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 164
//boss02_firing02_mov_basecannon_b_1054 (LC_G5Games_v7_fla.boss02_firing02_mov_basecannon_b_1054)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_basecannon_b_1054 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing02_mov_basecannon_b_1054(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 165
//boss02_firing02_mov_basecannon_c_1082 (LC_G5Games_v7_fla.boss02_firing02_mov_basecannon_c_1082)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_basecannon_c_1082 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing02_mov_basecannon_c_1082(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 166
//boss02_firing02_mov_head_down03_a_1010 (LC_G5Games_v7_fla.boss02_firing02_mov_head_down03_a_1010)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_head_down03_a_1010 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing02_mov_head_down03_a_1010(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 167
//boss02_firing02_mov_head_down03_b_1052 (LC_G5Games_v7_fla.boss02_firing02_mov_head_down03_b_1052)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_head_down03_b_1052 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing02_mov_head_down03_b_1052(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 57, frame58, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 168
//boss02_firing02_mov_head_up03_a_1011 (LC_G5Games_v7_fla.boss02_firing02_mov_head_up03_a_1011)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_head_up03_a_1011 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing02_mov_head_up03_a_1011(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 169
//boss02_firing02_mov_head_up03_b_1053 (LC_G5Games_v7_fla.boss02_firing02_mov_head_up03_b_1053)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing02_mov_head_up03_b_1053 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing02_mov_head_up03_b_1053(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 170
//boss02_firing03_mov_basecannon_a_996 (LC_G5Games_v7_fla.boss02_firing03_mov_basecannon_a_996)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_basecannon_a_996 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_basecannon_a_996(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 171
//boss02_firing03_mov_basecannon_b_1040 (LC_G5Games_v7_fla.boss02_firing03_mov_basecannon_b_1040)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_basecannon_b_1040 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_basecannon_b_1040(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 172
//boss02_firing03_mov_basecannon_c_1074 (LC_G5Games_v7_fla.boss02_firing03_mov_basecannon_c_1074)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_basecannon_c_1074 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_basecannon_c_1074(){
super();
addFrameScript(14, frame15);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 173
//boss02_firing03_mov_head_down01_a_985 (LC_G5Games_v7_fla.boss02_firing03_mov_head_down01_a_985)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_down01_a_985 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_head_down01_a_985(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 174
//boss02_firing03_mov_head_down01_b_1030 (LC_G5Games_v7_fla.boss02_firing03_mov_head_down01_b_1030)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_down01_b_1030 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_head_down01_b_1030(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 175
//boss02_firing03_mov_head_down02_a_989 (LC_G5Games_v7_fla.boss02_firing03_mov_head_down02_a_989)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_down02_a_989 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_head_down02_a_989(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 176
//boss02_firing03_mov_head_down03_a_994 (LC_G5Games_v7_fla.boss02_firing03_mov_head_down03_a_994)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_down03_a_994 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_head_down03_a_994(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 177
//boss02_firing03_mov_head_down03_b_1038 (LC_G5Games_v7_fla.boss02_firing03_mov_head_down03_b_1038)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_down03_b_1038 extends MovieClip {
public var firePointMc:MovieClip;
public function boss02_firing03_mov_head_down03_b_1038(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 58, frame59);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 178
//boss02_firing03_mov_head_up01_a_986 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up01_a_986)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up01_a_986 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing03_mov_head_up01_a_986(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 57, frame58);
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 179
//boss02_firing03_mov_head_up01_b_1031 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up01_b_1031)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up01_b_1031 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing03_mov_head_up01_b_1031(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43, 57, frame58);
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 180
//boss02_firing03_mov_head_up01_c_1070 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up01_c_1070)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up01_c_1070 extends MovieClip {
public var firePointMc:MovieClip;
public var head1:MovieClip;
public function boss02_firing03_mov_head_up01_c_1070(){
super();
addFrameScript(0, frame1, 3, frame4, 8, frame9, 14, frame15, 28, frame29, 42, frame43, 57, frame58, 58, frame59);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame4(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame9(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame59(){
MovieClip(parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 181
//boss02_firing03_mov_head_up02_a_990 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up02_a_990)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up02_a_990 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing03_mov_head_up02_a_990(){
super();
addFrameScript(14, frame15, 28, frame29, 42, frame43);
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 182
//boss02_firing03_mov_head_up03_a_995 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up03_a_995)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up03_a_995 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing03_mov_head_up03_a_995(){
super();
addFrameScript(0, frame1, 14, frame15, 28, frame29, 42, frame43, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 183
//boss02_firing03_mov_head_up03_b_1039 (LC_G5Games_v7_fla.boss02_firing03_mov_head_up03_b_1039)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_firing03_mov_head_up03_b_1039 extends MovieClip {
public var head1:MovieClip;
public function boss02_firing03_mov_head_up03_b_1039(){
super();
addFrameScript(0, frame1, 14, frame15, 28, frame29, 42, frame43, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 184
//boss02_standard_a_846 (LC_G5Games_v7_fla.boss02_standard_a_846)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_standard_a_846 extends MovieClip {
public var plantC4:MovieClip;
public function boss02_standard_a_846(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 185
//boss02_standard_mov_head_up01_a_854 (LC_G5Games_v7_fla.boss02_standard_mov_head_up01_a_854)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up01_a_854 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up01_a_854(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 186
//boss02_standard_mov_head_up01_b_889 (LC_G5Games_v7_fla.boss02_standard_mov_head_up01_b_889)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up01_b_889 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up01_b_889(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 187
//boss02_standard_mov_head_up01_c_918 (LC_G5Games_v7_fla.boss02_standard_mov_head_up01_c_918)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up01_c_918 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up01_c_918(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 188
//boss02_standard_mov_head_up02_a_862 (LC_G5Games_v7_fla.boss02_standard_mov_head_up02_a_862)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up02_a_862 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up02_a_862(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 189
//boss02_standard_mov_head_up03_a_872 (LC_G5Games_v7_fla.boss02_standard_mov_head_up03_a_872)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up03_a_872 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up03_a_872(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 190
//boss02_standard_mov_head_up03_b_908 (LC_G5Games_v7_fla.boss02_standard_mov_head_up03_b_908)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_standard_mov_head_up03_b_908 extends MovieClip {
public var head1:MovieClip;
public function boss02_standard_mov_head_up03_b_908(){
super();
addFrameScript(0, frame1, 22, frame23, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame23(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 191
//boss02_superior_jaw_alien01_a_855 (LC_G5Games_v7_fla.boss02_superior_jaw_alien01_a_855)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien01_a_855 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien01_a_855(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 192
//boss02_superior_jaw_alien01_b_890 (LC_G5Games_v7_fla.boss02_superior_jaw_alien01_b_890)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien01_b_890 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien01_b_890(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 193
//boss02_superior_jaw_alien01_c_919 (LC_G5Games_v7_fla.boss02_superior_jaw_alien01_c_919)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien01_c_919 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien01_c_919(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 194
//boss02_superior_jaw_alien02_a_863 (LC_G5Games_v7_fla.boss02_superior_jaw_alien02_a_863)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien02_a_863 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien02_a_863(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 195
//boss02_superior_jaw_alien03_a_873 (LC_G5Games_v7_fla.boss02_superior_jaw_alien03_a_873)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien03_a_873 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien03_a_873(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 196
//boss02_superior_jaw_alien03_b_909 (LC_G5Games_v7_fla.boss02_superior_jaw_alien03_b_909)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss02_superior_jaw_alien03_b_909 extends MovieClip {
public var dome1:MovieClip;
public function boss02_superior_jaw_alien03_b_909(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 197
//boss02_walking_mov_head_up01_a_936 (LC_G5Games_v7_fla.boss02_walking_mov_head_up01_a_936)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_walking_mov_head_up01_a_936 extends MovieClip {
public var head1:MovieClip;
public function boss02_walking_mov_head_up01_a_936(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame58(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 198
//boss02_walking_mov_head_up02_a_940 (LC_G5Games_v7_fla.boss02_walking_mov_head_up02_a_940)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_walking_mov_head_up02_a_940 extends MovieClip {
public var head1:MovieClip;
public function boss02_walking_mov_head_up02_a_940(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent).myObject.plantBossHead3 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit3 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit3 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 199
//boss02_walking_mov_head_up03_a_945 (LC_G5Games_v7_fla.boss02_walking_mov_head_up03_a_945)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss02_walking_mov_head_up03_a_945 extends MovieClip {
public var head1:MovieClip;
public function boss02_walking_mov_head_up03_a_945(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 57, frame58);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame30(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame45(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
function frame58(){
MovieClip(parent.parent.parent).myObject.plantBossHead2 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit2 == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit2 = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 200
//boss03_appear_mov_bigcannon_332 (LC_G5Games_v7_fla.boss03_appear_mov_bigcannon_332)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_bigcannon_332 extends MovieClip {
public function boss03_appear_mov_bigcannon_332(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 201
//boss03_appear_mov_body_323 (LC_G5Games_v7_fla.boss03_appear_mov_body_323)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_body_323 extends MovieClip {
public function boss03_appear_mov_body_323(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 202
//boss03_appear_mov_dome01_326 (LC_G5Games_v7_fla.boss03_appear_mov_dome01_326)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_dome01_326 extends MovieClip {
public function boss03_appear_mov_dome01_326(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 203
//boss03_appear_mov_dome02_325 (LC_G5Games_v7_fla.boss03_appear_mov_dome02_325)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_dome02_325 extends MovieClip {
public function boss03_appear_mov_dome02_325(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 204
//boss03_appear_mov_dome03_320 (LC_G5Games_v7_fla.boss03_appear_mov_dome03_320)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_dome03_320 extends MovieClip {
public function boss03_appear_mov_dome03_320(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 205
//boss03_appear_mov_flyingice01_340 (LC_G5Games_v7_fla.boss03_appear_mov_flyingice01_340)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_flyingice01_340 extends MovieClip {
public function boss03_appear_mov_flyingice01_340(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 206
//boss03_appear_mov_flyingice02_338 (LC_G5Games_v7_fla.boss03_appear_mov_flyingice02_338)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_flyingice02_338 extends MovieClip {
public function boss03_appear_mov_flyingice02_338(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 207
//boss03_appear_mov_gatemissile01_337 (LC_G5Games_v7_fla.boss03_appear_mov_gatemissile01_337)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_gatemissile01_337 extends MovieClip {
public function boss03_appear_mov_gatemissile01_337(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 208
//boss03_appear_mov_gatemissile02_334 (LC_G5Games_v7_fla.boss03_appear_mov_gatemissile02_334)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_gatemissile02_334 extends MovieClip {
public function boss03_appear_mov_gatemissile02_334(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 209
//boss03_appear_mov_icecracks_318 (LC_G5Games_v7_fla.boss03_appear_mov_icecracks_318)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_icecracks_318 extends MovieClip {
public function boss03_appear_mov_icecracks_318(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 210
//boss03_appear_mov_littlecannon_330 (LC_G5Games_v7_fla.boss03_appear_mov_littlecannon_330)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_appear_mov_littlecannon_330 extends MovieClip {
public function boss03_appear_mov_littlecannon_330(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 211
//boss03_being_hit_a_408 (LC_G5Games_v7_fla.boss03_being_hit_a_408)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_being_hit_a_408 extends MovieClip {
public function boss03_being_hit_a_408(){
super();
addFrameScript(22, frame23);
}
function frame23(){
MovieClip(this.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 212
//boss03_being_hit_b_419 (LC_G5Games_v7_fla.boss03_being_hit_b_419)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_being_hit_b_419 extends MovieClip {
public function boss03_being_hit_b_419(){
super();
addFrameScript(22, frame23);
}
function frame23(){
MovieClip(this.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 213
//boss03_being_hit_c_425 (LC_G5Games_v7_fla.boss03_being_hit_c_425)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_being_hit_c_425 extends MovieClip {
public function boss03_being_hit_c_425(){
super();
addFrameScript(22, frame23);
}
function frame23(){
MovieClip(this.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 214
//boss03_bigcannon_shoot_a_380 (LC_G5Games_v7_fla.boss03_bigcannon_shoot_a_380)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_bigcannon_shoot_a_380 extends MovieClip {
public var firePointMc:MovieClip;
public function boss03_bigcannon_shoot_a_380(){
super();
addFrameScript(5, frame6, 12, frame13, 16, frame17);
}
function frame6(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame17(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 215
//boss03_bigcannon_shoot_b_399 (LC_G5Games_v7_fla.boss03_bigcannon_shoot_b_399)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_bigcannon_shoot_b_399 extends MovieClip {
public var firePointMc:MovieClip;
public function boss03_bigcannon_shoot_b_399(){
super();
addFrameScript(5, frame6, 12, frame13, 16, frame17, 19, frame20);
}
function frame6(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame17(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(parent.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame20(){
}
}
}//package LC_G5Games_v7_fla
Section 216
//boss03_diying_429 (LC_G5Games_v7_fla.boss03_diying_429)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_diying_429 extends MovieClip {
public function boss03_diying_429(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 217
//boss03_dome_and_alien01_a_327 (LC_G5Games_v7_fla.boss03_dome_and_alien01_a_327)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_dome_and_alien01_a_327 extends MovieClip {
public var head1:MovieClip;
public function boss03_dome_and_alien01_a_327(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 218
//boss03_dome_and_alien01_b_362 (LC_G5Games_v7_fla.boss03_dome_and_alien01_b_362)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_dome_and_alien01_b_362 extends MovieClip {
public var head1:MovieClip;
public function boss03_dome_and_alien01_b_362(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame2(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 219
//boss03_firing01_mov_littlecannon01_a_376 (LC_G5Games_v7_fla.boss03_firing01_mov_littlecannon01_a_376)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_firing01_mov_littlecannon01_a_376 extends MovieClip {
public var firePointMc:MovieClip;
public function boss03_firing01_mov_littlecannon01_a_376(){
super();
addFrameScript(5, frame6, 12, frame13, 18, frame19, 49, frame50);
}
function frame6(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame19(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame50(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("run");
}
}
}//package LC_G5Games_v7_fla
Section 220
//boss03_firing02_mov_missilgate01_a_389 (LC_G5Games_v7_fla.boss03_firing02_mov_missilgate01_a_389)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_firing02_mov_missilgate01_a_389 extends MovieClip {
public var firePointMc:MovieClip;
public function boss03_firing02_mov_missilgate01_a_389(){
super();
addFrameScript(6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 35, frame36);
}
function frame10(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame14(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame12(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame7(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame8(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame9(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("run");
}
function frame11(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 221
//boss03_firing02_mov_missilgate02_a_387 (LC_G5Games_v7_fla.boss03_firing02_mov_missilgate02_a_387)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_firing02_mov_missilgate02_a_387 extends MovieClip {
public var firePointMc:MovieClip;
public function boss03_firing02_mov_missilgate02_a_387(){
super();
addFrameScript(6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 35, frame36);
}
function frame10(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame14(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame12(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame7(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame8(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame13(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame9(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("run");
}
function frame11(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile3(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 222
//boss03_ice_mov01_345 (LC_G5Games_v7_fla.boss03_ice_mov01_345)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_ice_mov01_345 extends MovieClip {
public function boss03_ice_mov01_345(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 223
//boss03_ice_mov02_347 (LC_G5Games_v7_fla.boss03_ice_mov02_347)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_ice_mov02_347 extends MovieClip {
public function boss03_ice_mov02_347(){
super();
addFrameScript(84, frame85);
}
function frame85(){
MovieClip(this.parent.parent.parent).gotoAndStop("run");
stop();
}
}
}//package LC_G5Games_v7_fla
Section 224
//boss03_ice_mov03_342 (LC_G5Games_v7_fla.boss03_ice_mov03_342)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss03_ice_mov03_342 extends MovieClip {
public function boss03_ice_mov03_342(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 225
//boss03_shield_mov_432 (LC_G5Games_v7_fla.boss03_shield_mov_432)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss03_shield_mov_432 extends MovieClip {
public function boss03_shield_mov_432(){
super();
addFrameScript(11, frame12, 13, frame14, 15, frame16, 17, frame18, 19, frame20, 21, frame22, 23, frame24, 25, frame26, 27, frame28, 29, frame30, 31, frame32, 33, frame34, 35, frame36, 37, frame38, 39, frame40, 41, frame42, 43, frame44, 45, frame46, 47, frame48, 49, frame50, 51, frame52, 53, frame54, 55, frame56, 57, frame58, 59, frame60, 61, frame62, 63, frame64, 65, frame66, 67, frame68, 99, frame100);
}
function frame64(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame14(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame18(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame12(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame16(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame20(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame22(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame26(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame24(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame100(){
MovieClip(parent.parent.parent).myObject.shieldOn = false;
MovieClip(parent.parent.parent).gotoAndStop("run");
}
function frame30(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame36(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame28(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame38(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame34(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame40(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame44(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame46(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame48(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame32(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame42(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame52(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame54(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame56(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame50(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame58(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame62(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame66(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame60(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
function frame68(){
MovieClip(parent.parent.parent).myObject.increaseEnergy(1);
}
}
}//package LC_G5Games_v7_fla
Section 226
//boss04_dying_mov_machineguna_a_1368 (LC_G5Games_v7_fla.boss04_dying_mov_machineguna_a_1368)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_dying_mov_machineguna_a_1368 extends MovieClip {
public function boss04_dying_mov_machineguna_a_1368(){
super();
addFrameScript(26, frame27);
}
function frame27(){
MovieClip(parent.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 227
//boss04_firing01_mov_head_a_1264 (LC_G5Games_v7_fla.boss04_firing01_mov_head_a_1264)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing01_mov_head_a_1264 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing01_mov_head_a_1264(){
super();
addFrameScript(0, frame1, 11, frame12, 20, frame21, 32, frame33, 46, frame47, 59, frame60, 75, frame76, 82, frame83);
}
function frame76(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame12(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame21(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame83(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame33(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame47(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame60(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 228
//boss04_firing01_mov_head_b_1318 (LC_G5Games_v7_fla.boss04_firing01_mov_head_b_1318)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing01_mov_head_b_1318 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing01_mov_head_b_1318(){
super();
addFrameScript(0, frame1, 11, frame12, 23, frame24, 37, frame38, 50, frame51, 63, frame64, 75, frame76, 82, frame83);
}
function frame64(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame76(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame12(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame24(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame83(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame38(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame51(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 229
//boss04_firing01_mov_head_c_1342 (LC_G5Games_v7_fla.boss04_firing01_mov_head_c_1342)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing01_mov_head_c_1342 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing01_mov_head_c_1342(){
super();
addFrameScript(0, frame1, 11, frame12, 23, frame24, 35, frame36, 47, frame48, 61, frame62, 75, frame76, 82, frame83);
}
function frame76(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame12(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame24(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame83(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame36(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame48(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame62(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 230
//boss04_firing01_mov_shouldercannon01_a_1269 (LC_G5Games_v7_fla.boss04_firing01_mov_shouldercannon01_a_1269)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing01_mov_shouldercannon01_a_1269 extends MovieClip {
public var firePointMc:MovieClip;
public function boss04_firing01_mov_shouldercannon01_a_1269(){
super();
addFrameScript(11, frame12, 24, frame25, 37, frame38, 82, frame83);
}
function frame12(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame25(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame83(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
function frame38(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 231
//boss04_firing01_mov_shouldercannon02_a_1260 (LC_G5Games_v7_fla.boss04_firing01_mov_shouldercannon02_a_1260)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing01_mov_shouldercannon02_a_1260 extends MovieClip {
public var firePointMc:MovieClip;
public function boss04_firing01_mov_shouldercannon02_a_1260(){
super();
addFrameScript(11, frame12, 24, frame25, 37, frame38, 82, frame83);
}
function frame12(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame25(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame83(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
function frame38(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 232
//boss04_firing02_mov_head_a_1282 (LC_G5Games_v7_fla.boss04_firing02_mov_head_a_1282)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing02_mov_head_a_1282 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing02_mov_head_a_1282(){
super();
addFrameScript(0, frame1, 7, frame8, 29, frame30, 35, frame36, 37, frame38, 42, frame43);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame8(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame36(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame38(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 233
//boss04_firing02_mov_head_b_1327 (LC_G5Games_v7_fla.boss04_firing02_mov_head_b_1327)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing02_mov_head_b_1327 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing02_mov_head_b_1327(){
super();
addFrameScript(0, frame1, 7, frame8, 29, frame30, 35, frame36, 37, frame38, 42, frame43);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame8(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame36(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame38(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 234
//boss04_firing02_mov_head_c_1348 (LC_G5Games_v7_fla.boss04_firing02_mov_head_c_1348)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing02_mov_head_c_1348 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing02_mov_head_c_1348(){
super();
addFrameScript(0, frame1, 7, frame8, 29, frame30, 35, frame36, 37, frame38, 42, frame43);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame8(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame36(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame38(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame43(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 235
//boss04_firing02_mov_machinegun_a_1284 (LC_G5Games_v7_fla.boss04_firing02_mov_machinegun_a_1284)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing02_mov_machinegun_a_1284 extends MovieClip {
public var firePointMc:MovieClip;
public function boss04_firing02_mov_machinegun_a_1284(){
super();
addFrameScript(29, frame30, 35, frame36, 37, frame38, 42, frame43);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame38(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame43(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 236
//boss04_firing02_mov_machinegun_b_1328 (LC_G5Games_v7_fla.boss04_firing02_mov_machinegun_b_1328)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing02_mov_machinegun_b_1328 extends MovieClip {
public var firePointMc:MovieClip;
public function boss04_firing02_mov_machinegun_b_1328(){
super();
addFrameScript(29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 43, frame44);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame34(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame31(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame44(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
function frame33(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame32(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
}
}//package LC_G5Games_v7_fla
Section 237
//boss04_firing03_mov_head_a_1303 (LC_G5Games_v7_fla.boss04_firing03_mov_head_a_1303)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing03_mov_head_a_1303 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing03_mov_head_a_1303(){
super();
addFrameScript(0, frame1, 30, frame31, 36, frame37, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame37(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame31(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 238
//boss04_firing03_mov_head_b_1336 (LC_G5Games_v7_fla.boss04_firing03_mov_head_b_1336)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing03_mov_head_b_1336 extends MovieClip {
public function boss04_firing03_mov_head_b_1336(){
super();
addFrameScript(0, frame1, 30, frame31, 36, frame37, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame37(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame31(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 239
//boss04_firing03_mov_head_c_1354 (LC_G5Games_v7_fla.boss04_firing03_mov_head_c_1354)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing03_mov_head_c_1354 extends MovieClip {
public var head1:MovieClip;
public function boss04_firing03_mov_head_c_1354(){
super();
addFrameScript(0, frame1, 30, frame31, 36, frame37, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame37(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame31(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 240
//boss04_firing03_mov_hiddencannon_1297 (LC_G5Games_v7_fla.boss04_firing03_mov_hiddencannon_1297)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_firing03_mov_hiddencannon_1297 extends MovieClip {
public var firePointMc:MovieClip;
public function boss04_firing03_mov_hiddencannon_1297(){
super();
addFrameScript(30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 49, frame50);
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame37(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame34(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame31(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame38(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame35(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame33(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame32(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame50(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 241
//boss04_head_a_1168 (LC_G5Games_v7_fla.boss04_head_a_1168)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss04_head_a_1168 extends MovieClip {
public var dome1:MovieClip;
public function boss04_head_a_1168(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 242
//boss04_head_b_1203 (LC_G5Games_v7_fla.boss04_head_b_1203)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss04_head_b_1203 extends MovieClip {
public var dome1:MovieClip;
public function boss04_head_b_1203(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 243
//boss04_head_c_1217 (LC_G5Games_v7_fla.boss04_head_c_1217)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss04_head_c_1217 extends MovieClip {
public var dome1:MovieClip;
public function boss04_head_c_1217(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 244
//boss04_standard_mov_head_a_1167 (LC_G5Games_v7_fla.boss04_standard_mov_head_a_1167)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_standard_mov_head_a_1167 extends MovieClip {
public var head1:MovieClip;
public function boss04_standard_mov_head_a_1167(){
super();
addFrameScript(0, frame1, 14, frame15, 26, frame27, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame27(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 245
//boss04_standard_mov_head_b_1202 (LC_G5Games_v7_fla.boss04_standard_mov_head_b_1202)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_standard_mov_head_b_1202 extends MovieClip {
public var head1:MovieClip;
public function boss04_standard_mov_head_b_1202(){
super();
addFrameScript(0, frame1, 14, frame15, 26, frame27, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame27(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 246
//boss04_standard_mov_head_c_1216 (LC_G5Games_v7_fla.boss04_standard_mov_head_c_1216)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_standard_mov_head_c_1216 extends MovieClip {
public var head1:MovieClip;
public function boss04_standard_mov_head_c_1216(){
super();
addFrameScript(0, frame1, 14, frame15, 26, frame27, 39, frame40, 49, frame50);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame27(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame50(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 247
//boss04_walking_mov_head_a_1232 (LC_G5Games_v7_fla.boss04_walking_mov_head_a_1232)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_walking_mov_head_a_1232 extends MovieClip {
public var head1:MovieClip;
public function boss04_walking_mov_head_a_1232(){
super();
addFrameScript(0, frame1, 9, frame10, 29, frame30, 36, frame37);
}
function frame10(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame37(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 248
//boss04_walking_mov_head_b_1246 (LC_G5Games_v7_fla.boss04_walking_mov_head_b_1246)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss04_walking_mov_head_b_1246 extends MovieClip {
public var head1:MovieClip;
public function boss04_walking_mov_head_b_1246(){
super();
addFrameScript(0, frame1, 9, frame10, 29, frame30, 36, frame37);
}
function frame10(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame37(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 249
//boss05_dome_witheads_a_457 (LC_G5Games_v7_fla.boss05_dome_witheads_a_457)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss05_dome_witheads_a_457 extends MovieClip {
public var dome1:MovieClip;
public function boss05_dome_witheads_a_457(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 250
//boss05_dome_witheads_b_476 (LC_G5Games_v7_fla.boss05_dome_witheads_b_476)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss05_dome_witheads_b_476 extends MovieClip {
public var dome1:MovieClip;
public function boss05_dome_witheads_b_476(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 251
//boss05_dome_witheads_c_488 (LC_G5Games_v7_fla.boss05_dome_witheads_c_488)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class boss05_dome_witheads_c_488 extends MovieClip {
public var dome1:MovieClip;
public function boss05_dome_witheads_c_488(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 252
//boss05_dying_mov_littlecannon01_602 (LC_G5Games_v7_fla.boss05_dying_mov_littlecannon01_602)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_dying_mov_littlecannon01_602 extends MovieClip {
public function boss05_dying_mov_littlecannon01_602(){
super();
addFrameScript(27, frame28);
}
function frame28(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 253
//boss05_firing01_mov_big_lasergun_b_558 (LC_G5Games_v7_fla.boss05_firing01_mov_big_lasergun_b_558)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_big_lasergun_b_558 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing01_mov_big_lasergun_b_558(){
super();
addFrameScript(14, frame15, 19, frame20, 23, frame24, 29, frame30, 35, frame36, 44, frame45);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame20(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame24(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame36(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 254
//boss05_firing01_mov_dome_a_530 (LC_G5Games_v7_fla.boss05_firing01_mov_dome_a_530)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_dome_a_530 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing01_mov_dome_a_530(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 255
//boss05_firing01_mov_dome_b_562 (LC_G5Games_v7_fla.boss05_firing01_mov_dome_b_562)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_dome_b_562 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing01_mov_dome_b_562(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 256
//boss05_firing01_mov_dome_c_582 (LC_G5Games_v7_fla.boss05_firing01_mov_dome_c_582)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_dome_c_582 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing01_mov_dome_c_582(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 257
//boss05_firing01_mov_littlecannon01_a_529 (LC_G5Games_v7_fla.boss05_firing01_mov_littlecannon01_a_529)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_littlecannon01_a_529 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing01_mov_littlecannon01_a_529(){
super();
addFrameScript(14, frame15, 22, frame23, 29, frame30, 44, frame45);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame23(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 258
//boss05_firing01_mov_littlecannon02_a_524 (LC_G5Games_v7_fla.boss05_firing01_mov_littlecannon02_a_524)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing01_mov_littlecannon02_a_524 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing01_mov_littlecannon02_a_524(){
super();
addFrameScript(14, frame15, 23, frame24, 29, frame30, 44, frame45);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame24(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 259
//boss05_firing02_mov_big_lasergun_b_564 (LC_G5Games_v7_fla.boss05_firing02_mov_big_lasergun_b_564)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing02_mov_big_lasergun_b_564 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing02_mov_big_lasergun_b_564(){
super();
addFrameScript(14, frame15, 19, frame20, 23, frame24, 29, frame30, 44, frame45, 59, frame60);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame20(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame24(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame60(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 260
//boss05_firing02_mov_dome_a_542 (LC_G5Games_v7_fla.boss05_firing02_mov_dome_a_542)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing02_mov_dome_a_542 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing02_mov_dome_a_542(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 59, frame60);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame60(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 261
//boss05_firing02_mov_dome_b_570 (LC_G5Games_v7_fla.boss05_firing02_mov_dome_b_570)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing02_mov_dome_b_570 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing02_mov_dome_b_570(){
super();
addFrameScript(0, frame1, 14, frame15, 29, frame30, 44, frame45, 59, frame60);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame30(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame45(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame60(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 262
//boss05_firing02_mov_little_lasergun_a_536 (LC_G5Games_v7_fla.boss05_firing02_mov_little_lasergun_a_536)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing02_mov_little_lasergun_a_536 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing02_mov_little_lasergun_a_536(){
super();
addFrameScript(14, frame15, 29, frame30, 44, frame45, 59, frame60);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame45(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame60(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 263
//boss05_firing03_mov_bigcannon_b_592 (LC_G5Games_v7_fla.boss05_firing03_mov_bigcannon_b_592)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing03_mov_bigcannon_b_592 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing03_mov_bigcannon_b_592(){
super();
addFrameScript(14, frame15, 16, frame17, 18, frame19, 20, frame21, 22, frame23, 24, frame25, 26, frame27, 28, frame29, 54, frame55);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame17(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame19(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame25(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame23(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame21(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame29(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame27(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame55(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 264
//boss05_firing03_mov_dome_a_555 (LC_G5Games_v7_fla.boss05_firing03_mov_dome_a_555)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing03_mov_dome_a_555 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing03_mov_dome_a_555(){
super();
addFrameScript(0, frame1, 14, frame15, 19, frame20, 28, frame29, 43, frame44, 54, frame55);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame44(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame55(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 265
//boss05_firing03_mov_dome_b_576 (LC_G5Games_v7_fla.boss05_firing03_mov_dome_b_576)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing03_mov_dome_b_576 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing03_mov_dome_b_576(){
super();
addFrameScript(0, frame1, 14, frame15, 19, frame20, 28, frame29, 43, frame44, 54, frame55);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame44(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame55(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 266
//boss05_firing03_mov_dome_c_596 (LC_G5Games_v7_fla.boss05_firing03_mov_dome_c_596)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing03_mov_dome_c_596 extends MovieClip {
public var head1:MovieClip;
public function boss05_firing03_mov_dome_c_596(){
super();
addFrameScript(0, frame1, 14, frame15, 19, frame20, 28, frame29, 43, frame44, 54, frame55);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame29(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame15(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame44(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame55(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 267
//boss05_firing03_mov_littlecannon01_a_554 (LC_G5Games_v7_fla.boss05_firing03_mov_littlecannon01_a_554)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_firing03_mov_littlecannon01_a_554 extends MovieClip {
public var firePointMc:MovieClip;
public function boss05_firing03_mov_littlecannon01_a_554(){
super();
addFrameScript(14, frame15, 19, frame20, 23, frame24, 29, frame30, 43, frame44, 54, frame55);
}
function frame15(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame20(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame24(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame30(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame44(){
MovieClip(this.parent.parent.parent.parent).myObject.fireProjectile2(MovieClip(this).firePointMc);
}
function frame55(){
MovieClip(this.parent.parent.parent.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 268
//boss05_standard_mov_dome_a_456 (LC_G5Games_v7_fla.boss05_standard_mov_dome_a_456)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_standard_mov_dome_a_456 extends MovieClip {
public var head1:MovieClip;
public function boss05_standard_mov_dome_a_456(){
super();
addFrameScript(0, frame1, 39, frame40, 79, frame80);
}
function frame80(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 269
//boss05_standard_mov_dome_b_475 (LC_G5Games_v7_fla.boss05_standard_mov_dome_b_475)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_standard_mov_dome_b_475 extends MovieClip {
public var head1:MovieClip;
public function boss05_standard_mov_dome_b_475(){
super();
addFrameScript(0, frame1, 39, frame40, 79, frame80);
}
function frame80(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 270
//boss05_standard_mov_dome_c_487 (LC_G5Games_v7_fla.boss05_standard_mov_dome_c_487)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_standard_mov_dome_c_487 extends MovieClip {
public var head1:MovieClip;
public function boss05_standard_mov_dome_c_487(){
super();
addFrameScript(0, frame1, 39, frame40, 79, frame80);
}
function frame80(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame40(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 271
//boss05_walking_mov_dome_a_502 (LC_G5Games_v7_fla.boss05_walking_mov_dome_a_502)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_walking_mov_dome_a_502 extends MovieClip {
public var head1:MovieClip;
public function boss05_walking_mov_dome_a_502(){
super();
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 272
//boss05_walking_mov_dome_b_510 (LC_G5Games_v7_fla.boss05_walking_mov_dome_b_510)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_walking_mov_dome_b_510 extends MovieClip {
public var head1:MovieClip;
public function boss05_walking_mov_dome_b_510(){
super();
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 273
//boss05_walking_mov_dome_c_517 (LC_G5Games_v7_fla.boss05_walking_mov_dome_c_517)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class boss05_walking_mov_dome_c_517 extends MovieClip {
public var head1:MovieClip;
public function boss05_walking_mov_dome_c_517(){
super();
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame20(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 274
//carBossFiring_713 (LC_G5Games_v7_fla.carBossFiring_713)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class carBossFiring_713 extends MovieClip {
public function carBossFiring_713(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 275
//carBossFiringB_714 (LC_G5Games_v7_fla.carBossFiringB_714)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class carBossFiringB_714 extends MovieClip {
public function carBossFiringB_714(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 276
//carBossFiringC_773 (LC_G5Games_v7_fla.carBossFiringC_773)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class carBossFiringC_773 extends MovieClip {
public function carBossFiringC_773(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 277
//carBossFiringD_786 (LC_G5Games_v7_fla.carBossFiringD_786)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class carBossFiringD_786 extends MovieClip {
public function carBossFiringD_786(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 278
//carBossHurt_799 (LC_G5Games_v7_fla.carBossHurt_799)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class carBossHurt_799 extends MovieClip {
public function carBossHurt_799(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 279
//carBossRun_678 (LC_G5Games_v7_fla.carBossRun_678)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class carBossRun_678 extends MovieClip {
public function carBossRun_678(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 280
//carBossStand_624 (LC_G5Games_v7_fla.carBossStand_624)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class carBossStand_624 extends MovieClip {
public function carBossStand_624(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 281
//carsB2_1506 (LC_G5Games_v7_fla.carsB2_1506)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class carsB2_1506 extends MovieClip {
public function carsB2_1506(){
super();
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 282
//city1_1383 (LC_G5Games_v7_fla.city1_1383)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class city1_1383 extends MovieClip {
public function city1_1383(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 283
//city2_1385 (LC_G5Games_v7_fla.city2_1385)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class city2_1385 extends MovieClip {
public function city2_1385(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 284
//city3_1387 (LC_G5Games_v7_fla.city3_1387)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class city3_1387 extends MovieClip {
public function city3_1387(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 285
//city4_1389 (LC_G5Games_v7_fla.city4_1389)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class city4_1389 extends MovieClip {
public function city4_1389(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 286
//city5_1391 (LC_G5Games_v7_fla.city5_1391)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class city5_1391 extends MovieClip {
public function city5_1391(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 287
//civil_man_dying_295 (LC_G5Games_v7_fla.civil_man_dying_295)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class civil_man_dying_295 extends MovieClip {
public function civil_man_dying_295(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 288
//civil_woman_dying_299 (LC_G5Games_v7_fla.civil_woman_dying_299)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class civil_woman_dying_299 extends MovieClip {
public function civil_woman_dying_299(){
super();
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 289
//civMan_291 (LC_G5Games_v7_fla.civMan_291)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class civMan_291 extends MovieClip {
public var coll:MovieClip;
public function civMan_291(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 290
//civWoman_297 (LC_G5Games_v7_fla.civWoman_297)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class civWoman_297 extends MovieClip {
public var coll:MovieClip;
public function civWoman_297(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 291
//clockAnim_305 (LC_G5Games_v7_fla.clockAnim_305)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class clockAnim_305 extends MovieClip {
public function clockAnim_305(){
super();
addFrameScript(44, frame45);
}
function frame45(){
MovieClip(this.parent.parent).rt.soldiersIconsArray[MovieClip(this.parent.parent).myIndex] = false;
MovieClip(this.parent.parent).rt.checkForAfford();
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package LC_G5Games_v7_fla
Section 292
//clockAnim2_306 (LC_G5Games_v7_fla.clockAnim2_306)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class clockAnim2_306 extends MovieClip {
public function clockAnim2_306(){
super();
addFrameScript(17, frame18);
}
function frame18(){
MovieClip(this.parent.parent).rt.setupGoodGuy(this);
if (MovieClip(this.parent).numberOrdered.text != 0){
gotoAndPlay(1);
} else {
MovieClip(this.parent).gotoAndStop(1);
};
}
}
}//package LC_G5Games_v7_fla
Section 293
//coin_spinning_1401 (LC_G5Games_v7_fla.coin_spinning_1401)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class coin_spinning_1401 extends MovieClip {
public var coin:MovieClip;
public function coin_spinning_1401(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 294
//coinSpin_1402 (LC_G5Games_v7_fla.coinSpin_1402)
package LC_G5Games_v7_fla {
import flash.text.*;
import flash.display.*;
public dynamic class coinSpin_1402 extends MovieClip {
public var numTxt:TextField;
public function coinSpin_1402(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 295
//crossHair2_3 (LC_G5Games_v7_fla.crossHair2_3)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class crossHair2_3 extends MovieClip {
public var chCenter:MovieClip;
public function crossHair2_3(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 296
//Endtitle_1448 (LC_G5Games_v7_fla.Endtitle_1448)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class Endtitle_1448 extends MovieClip {
public function Endtitle_1448(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 297
//flying_saucer_explodes_106 (LC_G5Games_v7_fla.flying_saucer_explodes_106)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class flying_saucer_explodes_106 extends MovieClip {
public function flying_saucer_explodes_106(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 298
//flyingsaucerdies_105 (LC_G5Games_v7_fla.flyingsaucerdies_105)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class flyingsaucerdies_105 extends MovieClip {
public function flyingsaucerdies_105(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 299
//flyingsaucerhit_104 (LC_G5Games_v7_fla.flyingsaucerhit_104)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class flyingsaucerhit_104 extends MovieClip {
public function flyingsaucerhit_104(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 300
//flyingsaucershooting_102 (LC_G5Games_v7_fla.flyingsaucershooting_102)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class flyingsaucershooting_102 extends MovieClip {
public function flyingsaucershooting_102(){
super();
addFrameScript(15, frame16, 27, frame28);
}
function frame16(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 301
//gameCompleteAnim_1442 (LC_G5Games_v7_fla.gameCompleteAnim_1442)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gameCompleteAnim_1442 extends MovieClip {
public function gameCompleteAnim_1442(){
super();
addFrameScript(186, frame187, 200, frame201);
}
function frame201(){
MovieClip(parent.parent).rt.gameComplete();
stop();
}
function frame187(){
MovieClip(this.parent.parent).rt.rt.showLeaderBoard(MovieClip(this));
stop();
}
}
}//package LC_G5Games_v7_fla
Section 302
//gameoverFilter_1451 (LC_G5Games_v7_fla.gameoverFilter_1451)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class gameoverFilter_1451 extends MovieClip {
public function gameoverFilter_1451(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 303
//gameOverMsg_1446 (LC_G5Games_v7_fla.gameOverMsg_1446)
package LC_G5Games_v7_fla {
import flash.net.*;
import flash.events.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class gameOverMsg_1446 extends MovieClip {
public var endTitle:MovieClip;
public var logo_btn6:SimpleButton;
public var msg:MovieClip;
public var contBtn:SimpleButton;
public function gameOverMsg_1446(){
super();
addFrameScript(0, frame1, 9, frame10, 108, frame109, 109, frame110);
}
public function doNext(event:MouseEvent):void{
gotoAndStop("finish");
}
function frame10(){
if (MovieClip(this.parent).rt.levelNumber >= MovieClip(this.parent).rt.maxLevels){
endTitle.gotoAndStop(2);
};
if (MovieClip(this.parent).rt.rt.mindJolt == true){
msg.gotoAndStop(3);
};
}
function frame1(){
logo_btn6.addEventListener(MouseEvent.MOUSE_DOWN, gotoBadHed6, false);
}
function frame109(){
MovieClip(this.parent).rt.rt.submitScore();
contBtn.addEventListener(MouseEvent.MOUSE_UP, doNext);
stop();
}
function frame110(){
MovieClip(this.parent).rt.rt.closeScore();
MovieClip(parent).play();
stop();
}
public function gotoBadHed6(e:MouseEvent):void{
navigateToURL(new URLRequest("http://www.badhed.com/?ref=last-command_HISCORE"), "_blank");
}
}
}//package LC_G5Games_v7_fla
Section 304
//gameSolderWizard_199 (LC_G5Games_v7_fla.gameSolderWizard_199)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class gameSolderWizard_199 extends MovieClip {
public var mReleaseMc:MovieClip;
public function gameSolderWizard_199(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 305
//gameSoldier1_170 (LC_G5Games_v7_fla.gameSoldier1_170)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class gameSoldier1_170 extends MovieClip {
public var mReleaseMc:MovieClip;
public function gameSoldier1_170(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 306
//gameSoldier2_179 (LC_G5Games_v7_fla.gameSoldier2_179)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class gameSoldier2_179 extends MovieClip {
public var mReleaseMc:MovieClip;
public function gameSoldier2_179(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 307
//gameSoldier3_186 (LC_G5Games_v7_fla.gameSoldier3_186)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class gameSoldier3_186 extends MovieClip {
public var mReleaseMc:MovieClip;
public function gameSoldier3_186(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 308
//GameSoldier5_192 (LC_G5Games_v7_fla.GameSoldier5_192)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class GameSoldier5_192 extends MovieClip {
public var mReleaseMc:MovieClip;
public function GameSoldier5_192(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 309
//giant_explosion_276 (LC_G5Games_v7_fla.giant_explosion_276)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class giant_explosion_276 extends MovieClip {
public function giant_explosion_276(){
super();
addFrameScript(73, frame74);
}
function frame74(){
MovieClip(this.parent).removeChild(MovieClip(this));
stop();
}
}
}//package LC_G5Games_v7_fla
Section 310
//goldCoinAnim_1400 (LC_G5Games_v7_fla.goldCoinAnim_1400)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class goldCoinAnim_1400 extends MovieClip {
public var c2:MovieClip;
public function goldCoinAnim_1400(){
super();
addFrameScript(108, frame109);
}
function frame109(){
MovieClip(parent).remove();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 311
//GunTower_211 (LC_G5Games_v7_fla.GunTower_211)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class GunTower_211 extends MovieClip {
public var mReleaseMc:MovieClip;
public function GunTower_211(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 312
//guntower_gun_dies_215 (LC_G5Games_v7_fla.guntower_gun_dies_215)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class guntower_gun_dies_215 extends MovieClip {
public function guntower_gun_dies_215(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 313
//guntower_gun_hit_214 (LC_G5Games_v7_fla.guntower_gun_hit_214)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class guntower_gun_hit_214 extends MovieClip {
public function guntower_gun_hit_214(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 314
//guntower_gun_shooting_213 (LC_G5Games_v7_fla.guntower_gun_shooting_213)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class guntower_gun_shooting_213 extends MovieClip {
public function guntower_gun_shooting_213(){
super();
addFrameScript(5, frame6, 7, frame8, 9, frame10, 11, frame12, 13, frame14, 15, frame16, 17, frame18, 22, frame23);
}
function frame10(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame14(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame18(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame12(){
}
function frame6(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame16(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame8(){
}
function frame23(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 315
//guntower_rocket_dies_221 (LC_G5Games_v7_fla.guntower_rocket_dies_221)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class guntower_rocket_dies_221 extends MovieClip {
public function guntower_rocket_dies_221(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 316
//guntower_rocket_hit_220 (LC_G5Games_v7_fla.guntower_rocket_hit_220)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class guntower_rocket_hit_220 extends MovieClip {
public function guntower_rocket_hit_220(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 317
//guntower_rocket_shooting_219 (LC_G5Games_v7_fla.guntower_rocket_shooting_219)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class guntower_rocket_shooting_219 extends MovieClip {
public function guntower_rocket_shooting_219(){
super();
addFrameScript(13, frame14, 39, frame40);
}
function frame14(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame40(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 318
//guntower_rocketshot_22 (LC_G5Games_v7_fla.guntower_rocketshot_22)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class guntower_rocketshot_22 extends MovieClip {
public function guntower_rocketshot_22(){
super();
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 319
//halfWayFlagcopy_1550 (LC_G5Games_v7_fla.halfWayFlagcopy_1550)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class halfWayFlagcopy_1550 extends MovieClip {
public var flag2:MovieClip;
public function halfWayFlagcopy_1550(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 320
//head1_608 (LC_G5Games_v7_fla.head1_608)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class head1_608 extends MovieClip {
public function head1_608(){
super();
addFrameScript(89, frame90);
}
function frame90(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 321
//headShotTxt_1414 (LC_G5Games_v7_fla.headShotTxt_1414)
package LC_G5Games_v7_fla {
import flash.text.*;
import flash.display.*;
public dynamic class headShotTxt_1414 extends MovieClip {
public var headTxt:TextField;
public function headShotTxt_1414(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 322
//hover_heavy_tank_explodes_166 (LC_G5Games_v7_fla.hover_heavy_tank_explodes_166)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hover_heavy_tank_explodes_166 extends MovieClip {
public function hover_heavy_tank_explodes_166(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 323
//hover_light_tank_explodes_115 (LC_G5Games_v7_fla.hover_light_tank_explodes_115)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hover_light_tank_explodes_115 extends MovieClip {
public function hover_light_tank_explodes_115(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 324
//hoverheavytankdies_165 (LC_G5Games_v7_fla.hoverheavytankdies_165)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hoverheavytankdies_165 extends MovieClip {
public function hoverheavytankdies_165(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 325
//hoverheavytankhit_164 (LC_G5Games_v7_fla.hoverheavytankhit_164)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class hoverheavytankhit_164 extends MovieClip {
public function hoverheavytankhit_164(){
super();
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 326
//hoverheavytankshooting_163 (LC_G5Games_v7_fla.hoverheavytankshooting_163)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hoverheavytankshooting_163 extends MovieClip {
public function hoverheavytankshooting_163(){
super();
addFrameScript(16, frame17, 27, frame28);
}
function frame17(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 327
//hoverlighttankdies_114 (LC_G5Games_v7_fla.hoverlighttankdies_114)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hoverlighttankdies_114 extends MovieClip {
public function hoverlighttankdies_114(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 328
//hoverlighttankhit_113 (LC_G5Games_v7_fla.hoverlighttankhit_113)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class hoverlighttankhit_113 extends MovieClip {
public function hoverlighttankhit_113(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 329
//hoverlighttankshooting_111 (LC_G5Games_v7_fla.hoverlighttankshooting_111)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class hoverlighttankshooting_111 extends MovieClip {
public function hoverlighttankshooting_111(){
super();
addFrameScript(16, frame17, 27, frame28);
}
function frame17(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 330
//icons2B_243 (LC_G5Games_v7_fla.icons2B_243)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class icons2B_243 extends MovieClip {
public function icons2B_243(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 331
//instructionsBtns_1480 (LC_G5Games_v7_fla.instructionsBtns_1480)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class instructionsBtns_1480 extends MovieClip {
public var backBtn:SimpleButton;
public var nextBtn:SimpleButton;
public function instructionsBtns_1480(){
super();
addFrameScript(0, frame1);
}
function frame1(){
backBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBack, false);
nextBtn.addEventListener(MouseEvent.MOUSE_DOWN, gotoNext, false);
}
public function gotoEnd(e:MouseEvent):void{
MovieClip(parent).vid.gotoAndStop(MovieClip(parent).vid.totalFrames);
MovieClip(parent).txt.gotoAndStop(MovieClip(parent).txt.totalFrames);
}
public function gotoStart(e:MouseEvent):void{
MovieClip(parent).vid.gotoAndStop(1);
MovieClip(parent).txt.gotoAndStop(1);
}
public function gotoBack(e:MouseEvent):void{
if (MovieClip(parent).vid.currentFrame == 1){
MovieClip(parent).vid.gotoAndStop(MovieClip(parent).vid.totalFrames);
} else {
MovieClip(parent).vid.gotoAndStop((MovieClip(parent).vid.currentFrame - 1));
};
if (MovieClip(parent).txt.currentFrame == 1){
MovieClip(parent).txt.gotoAndStop(MovieClip(parent).txt.totalFrames);
} else {
MovieClip(parent).txt.gotoAndStop((MovieClip(parent).txt.currentFrame - 1));
};
}
public function gotoNext(e:MouseEvent):void{
if (MovieClip(parent).vid.currentFrame == MovieClip(parent).vid.totalFrames){
MovieClip(parent).vid.gotoAndStop(1);
} else {
MovieClip(parent).vid.gotoAndStop((MovieClip(parent).vid.currentFrame + 1));
};
if (MovieClip(parent).txt.currentFrame == MovieClip(parent).txt.totalFrames){
MovieClip(parent).txt.gotoAndStop(1);
} else {
MovieClip(parent).txt.gotoAndStop((MovieClip(parent).txt.currentFrame + 1));
};
}
}
}//package LC_G5Games_v7_fla
Section 332
//instructionsTxt_1499 (LC_G5Games_v7_fla.instructionsTxt_1499)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class instructionsTxt_1499 extends MovieClip {
public function instructionsTxt_1499(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 333
//instructionsTxtScreens_1479 (LC_G5Games_v7_fla.instructionsTxtScreens_1479)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class instructionsTxtScreens_1479 extends MovieClip {
public function instructionsTxtScreens_1479(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 334
//instructionsVidPanel_1484 (LC_G5Games_v7_fla.instructionsVidPanel_1484)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class instructionsVidPanel_1484 extends MovieClip {
public var aMc2:MovieClip;
public var rMc:MovieClip;
public var mMc2:MovieClip;
public function instructionsVidPanel_1484(){
super();
addFrameScript(0, frame1);
}
function frame1(){
gotoAndStop(1);
}
}
}//package LC_G5Games_v7_fla
Section 335
//knight4_205 (LC_G5Games_v7_fla.knight4_205)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class knight4_205 extends MovieClip {
public var mReleaseMc:MovieClip;
public function knight4_205(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 336
//large_explosion_253 (LC_G5Games_v7_fla.large_explosion_253)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class large_explosion_253 extends MovieClip {
public function large_explosion_253(){
super();
addFrameScript(38, frame39);
}
function frame39(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 337
//levelCompleteMsg_1440 (LC_G5Games_v7_fla.levelCompleteMsg_1440)
package LC_G5Games_v7_fla {
import flash.text.*;
import flash.display.*;
public dynamic class levelCompleteMsg_1440 extends MovieClip {
public var titleMc:levelCompleteMsgs;
public var timeBonus:TextField;
public var scoreBonus:TextField;
public var totalScore:TextField;
public function levelCompleteMsg_1440(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 338
//main_menu_1455 (LC_G5Games_v7_fla.main_menu_1455)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class main_menu_1455 extends MovieClip {
public function main_menu_1455(){
super();
addFrameScript(133, frame134);
}
function frame134(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 339
//main_menu_b_1456 (LC_G5Games_v7_fla.main_menu_b_1456)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class main_menu_b_1456 extends MovieClip {
public function main_menu_b_1456(){
super();
addFrameScript(133, frame134);
}
function frame134(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 340
//mapLevelDot_1548 (LC_G5Games_v7_fla.mapLevelDot_1548)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mapLevelDot_1548 extends MovieClip {
public function mapLevelDot_1548(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 341
//mineBomb_223 (LC_G5Games_v7_fla.mineBomb_223)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mineBomb_223 extends MovieClip {
public var mReleaseMc:MovieClip;
public function mineBomb_223(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 342
//mineDeath_226 (LC_G5Games_v7_fla.mineDeath_226)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mineDeath_226 extends MovieClip {
public function mineDeath_226(){
super();
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 343
//mineMc_256 (LC_G5Games_v7_fla.mineMc_256)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mineMc_256 extends MovieClip {
public function mineMc_256(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 344
//mMc_1489 (LC_G5Games_v7_fla.mMc_1489)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mMc_1489 extends MovieClip {
public var mBtn:SimpleButton;
public function mMc_1489(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 345
//mother_ship_explodes_93 (LC_G5Games_v7_fla.mother_ship_explodes_93)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mother_ship_explodes_93 extends MovieClip {
public function mother_ship_explodes_93(){
super();
addFrameScript(1, frame2);
}
function frame2(){
MovieClip(parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 346
//mothership_base_shooting_88 (LC_G5Games_v7_fla.mothership_base_shooting_88)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mothership_base_shooting_88 extends MovieClip {
public function mothership_base_shooting_88(){
super();
addFrameScript(44, frame45);
}
function frame45(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 347
//mothershipdies_91 (LC_G5Games_v7_fla.mothershipdies_91)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mothershipdies_91 extends MovieClip {
public function mothershipdies_91(){
super();
addFrameScript(21, frame22);
}
function frame22(){
MovieClip(this.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 348
//mothershiphit_90 (LC_G5Games_v7_fla.mothershiphit_90)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class mothershiphit_90 extends MovieClip {
public function mothershiphit_90(){
super();
addFrameScript(12, frame13);
}
function frame13(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 349
//mothershipshooting_87 (LC_G5Games_v7_fla.mothershipshooting_87)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class mothershipshooting_87 extends MovieClip {
public function mothershipshooting_87(){
super();
addFrameScript(4, frame5, 50, frame51);
}
function frame5(){
MovieClip(this.parent).myObject.fireProjectile();
}
function frame51(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 350
//musicBtn2_1426 (LC_G5Games_v7_fla.musicBtn2_1426)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class musicBtn2_1426 extends MovieClip {
public function musicBtn2_1426(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 351
//musicBtnMc_1469 (LC_G5Games_v7_fla.musicBtnMc_1469)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class musicBtnMc_1469 extends MovieClip {
public function musicBtnMc_1469(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 352
//objectExplosion_285 (LC_G5Games_v7_fla.objectExplosion_285)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class objectExplosion_285 extends MovieClip {
public function objectExplosion_285(){
super();
addFrameScript(52, frame53);
}
function frame53(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 353
//plantBossFire_978 (LC_G5Games_v7_fla.plantBossFire_978)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossFire_978 extends MovieClip {
public var plantC2:MovieClip;
public function plantBossFire_978(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 354
//plantBossFireA_979 (LC_G5Games_v7_fla.plantBossFireA_979)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossFireA_979 extends MovieClip {
public var plantC4:MovieClip;
public function plantBossFireA_979(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 355
//plantBossFireB_1027 (LC_G5Games_v7_fla.plantBossFireB_1027)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossFireB_1027 extends MovieClip {
public function plantBossFireB_1027(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 356
//plantBossFireC_1067 (LC_G5Games_v7_fla.plantBossFireC_1067)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossFireC_1067 extends MovieClip {
public function plantBossFireC_1067(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 357
//plantBossHurt_1089 (LC_G5Games_v7_fla.plantBossHurt_1089)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossHurt_1089 extends MovieClip {
public function plantBossHurt_1089(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 358
//plantBossRun_931 (LC_G5Games_v7_fla.plantBossRun_931)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossRun_931 extends MovieClip {
public function plantBossRun_931(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 359
//plantBossStand_845 (LC_G5Games_v7_fla.plantBossStand_845)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class plantBossStand_845 extends MovieClip {
public var plantC2:MovieClip;
public function plantBossStand_845(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 360
//risingScoreTxt_1406 (LC_G5Games_v7_fla.risingScoreTxt_1406)
package LC_G5Games_v7_fla {
import flash.text.*;
import flash.display.*;
public dynamic class risingScoreTxt_1406 extends MovieClip {
public var scoreTxt:TextField;
public function risingScoreTxt_1406(){
super();
}
}
}//package LC_G5Games_v7_fla
Section 361
//rocketTower_217 (LC_G5Games_v7_fla.rocketTower_217)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class rocketTower_217 extends MovieClip {
public var mReleaseMc:MovieClip;
public function rocketTower_217(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 362
//shipBossC_577 (LC_G5Games_v7_fla.shipBossC_577)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossC_577 extends MovieClip {
public function shipBossC_577(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 363
//shipBossFire_518 (LC_G5Games_v7_fla.shipBossFire_518)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossFire_518 extends MovieClip {
public function shipBossFire_518(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 364
//shipBossFireA_519 (LC_G5Games_v7_fla.shipBossFireA_519)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossFireA_519 extends MovieClip {
public function shipBossFireA_519(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 365
//shipBossFireB_556 (LC_G5Games_v7_fla.shipBossFireB_556)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossFireB_556 extends MovieClip {
public function shipBossFireB_556(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 366
//shipBossRun_490 (LC_G5Games_v7_fla.shipBossRun_490)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossRun_490 extends MovieClip {
public function shipBossRun_490(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 367
//shipBossStand_438 (LC_G5Games_v7_fla.shipBossStand_438)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class shipBossStand_438 extends MovieClip {
public function shipBossStand_438(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 368
//small_explosion_1399 (LC_G5Games_v7_fla.small_explosion_1399)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class small_explosion_1399 extends MovieClip {
public function small_explosion_1399(){
super();
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 369
//soldier01_dies_177 (LC_G5Games_v7_fla.soldier01_dies_177)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier01_dies_177 extends MovieClip {
public function soldier01_dies_177(){
super();
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 370
//soldier01_hit_176 (LC_G5Games_v7_fla.soldier01_hit_176)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soldier01_hit_176 extends MovieClip {
public function soldier01_hit_176(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 371
//soldier01_shooting_173 (LC_G5Games_v7_fla.soldier01_shooting_173)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier01_shooting_173 extends MovieClip {
public function soldier01_shooting_173(){
super();
addFrameScript(7, frame8, 12, frame13, 17, frame18, 22, frame23);
}
function frame18(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame8(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame13(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame23(){
if (MovieClip(parent.parent).myObject.rt.fireMissile == true){
this.gotoAndPlay("firing");
} else {
MovieClip(this.parent).gotoAndStop("stand");
};
}
}
}//package LC_G5Games_v7_fla
Section 372
//soldier02_dies_184 (LC_G5Games_v7_fla.soldier02_dies_184)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier02_dies_184 extends MovieClip {
public function soldier02_dies_184(){
super();
addFrameScript(11, frame12);
}
function frame12(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 373
//soldier02_hit_183 (LC_G5Games_v7_fla.soldier02_hit_183)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soldier02_hit_183 extends MovieClip {
public function soldier02_hit_183(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 374
//soldier02_shooting_182 (LC_G5Games_v7_fla.soldier02_shooting_182)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier02_shooting_182 extends MovieClip {
public function soldier02_shooting_182(){
super();
addFrameScript(23, frame24, 27, frame28);
}
function frame24(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame28(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 375
//soldier03_dies_190 (LC_G5Games_v7_fla.soldier03_dies_190)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier03_dies_190 extends MovieClip {
public function soldier03_dies_190(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 376
//soldier03_hit_189 (LC_G5Games_v7_fla.soldier03_hit_189)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soldier03_hit_189 extends MovieClip {
public function soldier03_hit_189(){
super();
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 377
//soldier03_shooting_188 (LC_G5Games_v7_fla.soldier03_shooting_188)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier03_shooting_188 extends MovieClip {
public function soldier03_shooting_188(){
super();
addFrameScript(4, frame5, 13, frame14);
}
function frame14(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame5(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 378
//soldier04_dies_197 (LC_G5Games_v7_fla.soldier04_dies_197)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier04_dies_197 extends MovieClip {
public function soldier04_dies_197(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 379
//soldier04_hit_196 (LC_G5Games_v7_fla.soldier04_hit_196)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soldier04_hit_196 extends MovieClip {
public function soldier04_hit_196(){
super();
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 380
//soldier04_shooting_194 (LC_G5Games_v7_fla.soldier04_shooting_194)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier04_shooting_194 extends MovieClip {
public function soldier04_shooting_194(){
super();
addFrameScript(39, frame40, 51, frame52);
}
function frame40(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame52(){
MovieClip(this.parent).gotoAndStop("stand");
}
}
}//package LC_G5Games_v7_fla
Section 381
//soldier05_dies_203 (LC_G5Games_v7_fla.soldier05_dies_203)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier05_dies_203 extends MovieClip {
public function soldier05_dies_203(){
super();
addFrameScript(10, frame11);
}
function frame11(){
MovieClip(this.parent.parent).removeMe();
stop();
}
}
}//package LC_G5Games_v7_fla
Section 382
//soldier05_hit_202 (LC_G5Games_v7_fla.soldier05_hit_202)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soldier05_hit_202 extends MovieClip {
public function soldier05_hit_202(){
super();
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 383
//soldier05_shooting_201 (LC_G5Games_v7_fla.soldier05_shooting_201)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class soldier05_shooting_201 extends MovieClip {
public function soldier05_shooting_201(){
super();
addFrameScript(5, frame6, 8, frame9, 11, frame12, 14, frame15, 17, frame18, 24, frame25);
}
function frame18(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame12(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame6(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame25(){
MovieClip(this.parent).gotoAndStop("stand");
}
function frame9(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
function frame15(){
MovieClip(this.parent.parent).myObject.fireProjectile();
}
}
}//package LC_G5Games_v7_fla
Section 384
//soundFxBtn2_1423 (LC_G5Games_v7_fla.soundFxBtn2_1423)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class soundFxBtn2_1423 extends MovieClip {
public function soundFxBtn2_1423(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 385
//subBossFire_372 (LC_G5Games_v7_fla.subBossFire_372)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossFire_372 extends MovieClip {
public function subBossFire_372(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 386
//subBossFireA_373 (LC_G5Games_v7_fla.subBossFireA_373)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossFireA_373 extends MovieClip {
public function subBossFireA_373(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 387
//subBossFireB_393 (LC_G5Games_v7_fla.subBossFireB_393)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossFireB_393 extends MovieClip {
public function subBossFireB_393(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 388
//subBossFireC_402 (LC_G5Games_v7_fla.subBossFireC_402)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossFireC_402 extends MovieClip {
public function subBossFireC_402(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent.parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent.parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 389
//subBossHurt_407 (LC_G5Games_v7_fla.subBossHurt_407)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossHurt_407 extends MovieClip {
public function subBossHurt_407(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 390
//subBossShieldA_430 (LC_G5Games_v7_fla.subBossShieldA_430)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossShieldA_430 extends MovieClip {
public function subBossShieldA_430(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 391
//subBossStandard_349 (LC_G5Games_v7_fla.subBossStandard_349)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subBossStandard_349 extends MovieClip {
public function subBossStandard_349(){
super();
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(parent).myObject.energy < 30){
gotoAndStop("highDamage");
} else {
if (MovieClip(parent).myObject.energy < 60){
gotoAndStop("mediumDamage");
} else {
gotoAndStop("noDamage");
};
};
stop();
}
}
}//package LC_G5Games_v7_fla
Section 392
//subFireTop2_395 (LC_G5Games_v7_fla.subFireTop2_395)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subFireTop2_395 extends MovieClip {
public var head1:MovieClip;
public function subFireTop2_395(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame2(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 393
//subt1_353 (LC_G5Games_v7_fla.subt1_353)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subt1_353 extends MovieClip {
public var head1:MovieClip;
public function subt1_353(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame2(){
MovieClip(parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 394
//subTopFire1_375 (LC_G5Games_v7_fla.subTopFire1_375)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class subTopFire1_375 extends MovieClip {
public var head1:MovieClip;
public function subTopFire1_375(){
super();
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
function frame2(){
MovieClip(parent.parent.parent.parent).myObject.plantBossHead1 = MovieClip(this).head1.dome1;
if (MovieClip(parent.parent.parent.parent).myObject.rt.bossHit == true){
MovieClip(this).head1.gotoAndPlay(2);
MovieClip(parent.parent.parent.parent).myObject.rt.bossHit = false;
};
}
}
}//package LC_G5Games_v7_fla
Section 395
//titleScreenRMc_1485 (LC_G5Games_v7_fla.titleScreenRMc_1485)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class titleScreenRMc_1485 extends MovieClip {
public var rBtn:SimpleButton;
public function titleScreenRMc_1485(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 396
//upgradeBack_237 (LC_G5Games_v7_fla.upgradeBack_237)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class upgradeBack_237 extends MovieClip {
public function upgradeBack_237(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 397
//upgradeClock_239 (LC_G5Games_v7_fla.upgradeClock_239)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class upgradeClock_239 extends MovieClip {
public function upgradeClock_239(){
super();
addFrameScript(35, frame36);
}
function frame36(){
MovieClip(this.parent).gotoAndStop(1);
}
}
}//package LC_G5Games_v7_fla
Section 398
//upgradesLock_241 (LC_G5Games_v7_fla.upgradesLock_241)
package LC_G5Games_v7_fla {
import flash.display.*;
public dynamic class upgradesLock_241 extends MovieClip {
public function upgradesLock_241(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 399
//wallMc_267 (LC_G5Games_v7_fla.wallMc_267)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class wallMc_267 extends MovieClip {
public function wallMc_267(){
super();
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
MovieClip(this.parent).removeMe();
stop();
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 400
//wireMc_265 (LC_G5Games_v7_fla.wireMc_265)
package LC_G5Games_v7_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class wireMc_265 extends MovieClip {
public function wireMc_265(){
super();
addFrameScript(0, frame1, 2, frame3);
}
function frame3(){
MovieClip(this.parent).removeMe();
stop();
}
function frame1(){
stop();
}
}
}//package LC_G5Games_v7_fla
Section 401
//MochiCoins (mochi.as3.MochiCoins)
package mochi.as3 {
public class MochiCoins {
public static const STORE_HIDE:String = "StoreHide";
public static const LOGGED_IN:String = "LoggedIn";
public static const NO_USER:String = "NoUser";
public static const PROPERTIES_SIZE:String = "PropertiesSize";
public static const IO_ERROR:String = "IOError";
public static const STORE_ITEMS:String = "StoreItems";
public static const USER_INFO:String = "UserInfo";
public static const LOGIN_SHOW:String = "LoginShow";
public static const PROFILE_HIDE:String = "ProfileHide";
public static const STORE_SHOW:String = "StoreShow";
public static const ITEM_NEW:String = "ItemNew";
public static const ITEM_OWNED:String = "ItemOwned";
public static const PROPERTIES_SAVED:String = "PropertySaved";
public static const WIDGET_LOADED:String = "WidgetLoaded";
public static const ERROR:String = "Error";
public static const LOGGED_OUT:String = "LoggedOut";
public static const PROFILE_SHOW:String = "ProfileShow";
public static const LOGIN_HIDE:String = "LoginHide";
public static const LOGIN_SHOWN:String = "LoginShown";
public static var _user_info:Object = null;
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public static var _inventory:MochiInventory;
public function MochiCoins(){
super();
}
public static function getUserInfo():void{
MochiServices.send("coins_getUserInfo");
}
public static function requestLogin():void{
MochiServices.send("coins_requestLogin");
}
public static function showItem(options:Object=null):void{
if (((!(options)) || (!((typeof(options.item) == "string"))))){
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showItem", {options:options}, null, null);
}
public static function saveUserProperties(properties:Object):void{
MochiServices.send("coins_saveUserProperties", properties);
}
public static function get loggedIn():Boolean{
return (!((_user_info == null)));
}
public static function triggerEvent(eventType:String, args:Object):void{
if (eventType == LOGGED_IN){
_inventory = new MochiInventory();
_user_info = args;
} else {
if (eventType == LOGGED_OUT){
if (inventory){
_inventory.release();
_inventory = null;
};
_user_info = null;
};
};
_dispatcher.triggerEvent(eventType, args);
}
public static function removeEventListener(eventType:String, delegate:Function):void{
_dispatcher.removeEventListener(eventType, delegate);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function getStoreItems():void{
MochiServices.send("coins_getStoreItems");
}
public static function showLoginWidget(options:Object=null):void{
MochiServices.setContainer();
MochiServices.bringToTop();
MochiServices.send("coins_showLoginWidget", {options:options});
}
public static function get inventory():MochiInventory{
return (_inventory);
}
public static function showStore(options:Object=null):void{
MochiServices.bringToTop();
MochiServices.send("coins_showStore", {options:options}, null, null);
}
public static function addEventListener(eventType:String, delegate:Function):void{
_dispatcher.addEventListener(eventType, delegate);
}
public static function getAPIURL():String{
if (!(_user_info)){
return (null);
};
return (_user_info.api_url);
}
public static function hideLoginWidget():void{
MochiServices.send("coins_hideLoginWidget");
}
public static function getAPIToken():String{
if (!(_user_info)){
return (null);
};
return (_user_info.api_token);
}
public static function showVideo(options:Object=null):void{
if (((!(options)) || (!((typeof(options.item) == "string"))))){
return;
};
MochiServices.bringToTop();
MochiServices.send("coins_showVideo", {options:options}, null, null);
}
}
}//package mochi.as3
Section 402
//MochiDigits (mochi.as3.MochiDigits)
package mochi.as3 {
public final class MochiDigits {
private var Sibling:MochiDigits;
private var Fragment:Number;
private var Encoder:Number;
public function MochiDigits(digit:Number=0, index:uint=0):void{
super();
Encoder = 0;
setValue(digit, index);
}
public function set value(v:Number):void{
setValue(v);
}
public function reencode():void{
var newEncode:uint;
newEncode = int((2147483647 * Math.random()));
Fragment = (Fragment ^ (newEncode ^ Encoder));
Encoder = newEncode;
}
public function toString():String{
var s:String;
s = String.fromCharCode((Fragment ^ Encoder));
if (Sibling != null){
s = (s + Sibling.toString());
};
return (s);
}
public function get value():Number{
return (Number(this.toString()));
}
public function setValue(digit:Number=0, index:uint=0):void{
var s:String;
s = digit.toString();
var _temp1 = index;
index = (index + 1);
Fragment = (s.charCodeAt(_temp1) ^ Encoder);
if (index < s.length){
Sibling = new MochiDigits(digit, index);
} else {
Sibling = null;
};
reencode();
}
public function addValue(inc:Number):void{
value = (value + inc);
}
}
}//package mochi.as3
Section 403
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher)
package mochi.as3 {
public class MochiEventDispatcher {
private var eventTable:Object;
public function MochiEventDispatcher():void{
super();
eventTable = {};
}
public function triggerEvent(event:String, args:Object):void{
var i:Object;
if (eventTable[event] == undefined){
return;
};
for (i in eventTable[event]) {
var _local6 = eventTable[event];
_local6[i](args);
};
}
public function removeEventListener(event:String, delegate:Function):void{
var s:Object;
if (eventTable[event] == undefined){
eventTable[event] = [];
return;
};
for (s in eventTable[event]) {
if (eventTable[event][s] != delegate){
} else {
eventTable[event].splice(Number(s), 1);
};
};
}
public function addEventListener(event:String, delegate:Function):void{
removeEventListener(event, delegate);
eventTable[event].push(delegate);
}
}
}//package mochi.as3
Section 404
//MochiEvents (mochi.as3.MochiEvents)
package mochi.as3 {
import flash.display.*;
public class MochiEvents {
public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL";
public static const FORMAT_LONG:String = "LongForm";
public static const ALIGN_BOTTOM:String = "ALIGN_B";
public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived";
public static const FORMAT_SHORT:String = "ShortForm";
public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR";
public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR";
public static const ALIGN_TOP:String = "ALIGN_T";
public static const ALIGN_LEFT:String = "ALIGN_L";
public static const ALIGN_RIGHT:String = "ALIGN_R";
public static const ALIGN_TOP_LEFT:String = "ALIGN_TL";
public static const ALIGN_CENTER:String = "ALIGN_C";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
private static var gameStart:Number;
private static var levelStart:Number;
public function MochiEvents(){
super();
}
public static function addEventListener(eventType:String, delegate:Function):void{
_dispatcher.addEventListener(eventType, delegate);
}
public static function removeEventListener(eventType:String, delegate:Function):void{
_dispatcher.removeEventListener(eventType, delegate);
}
public static function startSession(achievementID:String):void{
MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
public static function triggerEvent(eventType:String, args:Object):void{
_dispatcher.triggerEvent(eventType, args);
}
public static function setNotifications(clip:MovieClip, style:Object):void{
var args:Object;
var s:Object;
args = {};
for (s in style) {
args[s] = style[s];
};
args.clip = clip;
MochiServices.send("events_setNotifications", args, null, null);
}
public static function endGame():void{
var delta:Number;
delta = (new Date().time - gameStart);
trigger("end_game", {time:delta});
}
public static function startGame():void{
gameStart = new Date().time;
trigger("start_game");
}
public static function trigger(kind:String, obj:Object=null):void{
if (obj == null){
obj = {};
} else {
if (obj["kind"] != undefined){
obj["kind"] = kind;
};
};
MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
public static function getVersion():String{
return (MochiServices.getVersion());
}
public static function startLevel():void{
levelStart = new Date().time;
trigger("start_level");
}
public static function endLevel():void{
var delta:Number;
delta = (new Date().time - levelStart);
trigger("end_level", {time:delta});
}
}
}//package mochi.as3
Section 405
//MochiInventory (mochi.as3.MochiInventory)
package mochi.as3 {
import flash.utils.*;
import flash.events.*;
public dynamic class MochiInventory extends Proxy {
private var _timer:Timer;
private var _names:Array;
private var _consumableProperties:Object;
private var _syncID:Number;
private var _outstandingID:Number;
private var _syncPending:Boolean;
public static const READY:String = "InvReady";
public static const ERROR:String = "Error";
public static const IO_ERROR:String = "IoError";
private static const CONSUMER_KEY:String = "MochiConsumables";
public static const WRITTEN:String = "InvWritten";
public static const NOT_READY:String = "InvNotReady";
public static const VALUE_ERROR:String = "InvValueError";
private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
public function MochiInventory():void{
super();
MochiCoins.addEventListener(MochiCoins.ITEM_NEW, newItems);
MochiCoins.addEventListener(MochiCoins.LOGGED_IN, loggedIn);
MochiCoins.addEventListener(MochiCoins.LOGGED_OUT, loggedOut);
_syncPending = false;
_outstandingID = 0;
_syncID = 0;
_timer = new Timer(1000);
_timer.addEventListener(TimerEvent.TIMER, sync);
_timer.start();
if (MochiCoins.loggedIn){
loggedIn();
} else {
loggedOut();
};
}
private function newItems(event:Object):void{
this[event.id] = (this[event.id] + event.count);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(name){
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (-1);
};
if (_consumableProperties[name]){
return (MochiDigits(_consumableProperties[name]).value);
};
return (undefined);
}
public function release():void{
MochiCoins.removeEventListener(MochiCoins.ITEM_NEW, newItems);
MochiCoins.removeEventListener(MochiCoins.LOGGED_IN, loggedIn);
MochiCoins.removeEventListener(MochiCoins.LOGGED_OUT, loggedOut);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function hasProperty(name):Boolean{
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return (false);
};
if (_consumableProperties[name] == undefined){
return (false);
};
return (true);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextNameIndex(index:int):int{
return (((index)>=_names.length) ? 0 : (index + 1));
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(name, value):void{
var d:MochiDigits;
if (_consumableProperties == null){
triggerEvent(ERROR, {type:NOT_READY});
return;
};
if (!((value is Number))){
triggerEvent(ERROR, {type:VALUE_ERROR, error:"Invalid type", arg:value});
return;
};
if (_consumableProperties[name]){
d = MochiDigits(_consumableProperties[name]);
if (d.value == value){
return;
};
d.value = value;
} else {
_names.push(name);
_consumableProperties[name] = new MochiDigits(value);
};
_syncID++;
}
private function sync(e:Event=null):void{
var output:Object;
var key:String;
if (((_syncPending) || ((_syncID == _outstandingID)))){
return;
};
_outstandingID = _syncID;
output = {};
for (key in _consumableProperties) {
output[key] = MochiDigits(_consumableProperties[key]).value;
};
MochiUserData.put(CONSUMER_KEY, output, putConsumableBag);
_syncPending = true;
}
private function putConsumableBag(userData:MochiUserData):void{
_syncPending = false;
if (userData.error){
triggerEvent(ERROR, {type:IO_ERROR, error:userData.error});
_outstandingID = -1;
};
triggerEvent(WRITTEN, {});
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function nextName(index:int):String{
return (_names[(index - 1)]);
}
private function loggedIn(args:Object=null):void{
MochiUserData.get(CONSUMER_KEY, getConsumableBag);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function deleteProperty(name):Boolean{
if (!(_consumableProperties[name])){
return (false);
};
_names.splice(_names.indexOf(name), 1);
delete _consumableProperties[name];
return (true);
}
private function getConsumableBag(userData:MochiUserData):void{
var key:String;
if (userData.error){
triggerEvent(ERROR, {type:IO_ERROR, error:userData.error});
return;
};
_consumableProperties = {};
_names = new Array();
if (userData.data){
for (key in userData.data) {
_names.push(key);
_consumableProperties[key] = new MochiDigits(userData.data[key]);
};
};
triggerEvent(READY, {});
}
private function loggedOut(args:Object=null):void{
_consumableProperties = null;
}
public static function triggerEvent(eventType:String, args:Object):void{
_dispatcher.triggerEvent(eventType, args);
}
public static function removeEventListener(eventType:String, delegate:Function):void{
_dispatcher.removeEventListener(eventType, delegate);
}
public static function addEventListener(eventType:String, delegate:Function):void{
_dispatcher.addEventListener(eventType, delegate);
}
}
}//package mochi.as3
Section 406
//MochiScores (mochi.as3.MochiScores)
package mochi.as3 {
import flash.display.*;
import flash.text.*;
public class MochiScores {
private static var boardID:String;
public static var onErrorHandler:Object;
public static var onCloseHandler:Object;
public function MochiScores(){
super();
}
public static function showLeaderboard(options:Object=null):void{
var n:Number;
var options = options;
if (options != null){
delete options.clip;
MochiServices.setContainer();
MochiServices.bringToTop();
if (options.name != null){
if ((options.name is TextField)){
if (options.name.text.length > 0){
options.name = options.name.text;
};
};
};
if (options.score != null){
if ((options.score is TextField)){
if (options.score.text.length > 0){
options.score = options.score.text;
};
} else {
if ((options.score is MochiDigits)){
options.score = options.score.value;
};
};
n = Number(options.score);
if (isNaN(n)){
} else {
if ((((n == Number.NEGATIVE_INFINITY)) || ((n == Number.POSITIVE_INFINITY)))){
} else {
if (Math.floor(n) != n){
};
options.score = n;
};
};
};
if (options.onDisplay != null){
options.onDisplay();
} else {
if (MochiServices.clip != null){
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
};
} else {
options = {};
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.stop();
//unresolved jump
};
};
if (options.onClose != null){
onCloseHandler = options.onClose;
} else {
onCloseHandler = function ():void{
if ((MochiServices.clip is MovieClip)){
MochiServices.clip.play();
//unresolved jump
};
};
};
if (options.onError != null){
onErrorHandler = options.onError;
} else {
onErrorHandler = null;
};
if (options.boardID == null){
if (MochiScores.boardID != null){
options.boardID = MochiScores.boardID;
};
};
MochiServices.warnID(options.boardID, true);
MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose);
}
public static function closeLeaderboard():void{
MochiServices.send("scores_closeLeaderboard");
}
public static function getPlayerInfo(callbackObj:Object, callbackMethod:Object=null):void{
MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
public static function requestList(callbackObj:Object, callbackMethod:Object=null):void{
MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
public static function scoresArrayToObjects(scores:Object):Object{
var so:Object;
var i:Number;
var j:Number;
var o:Object;
var row_obj:Object;
var item:String;
var param:String;
so = {};
for (item in scores) {
if (typeof(scores[item]) == "object"){
if (((!((scores[item].cols == null))) && (!((scores[item].rows == null))))){
so[item] = [];
o = scores[item];
j = 0;
while (j < o.rows.length) {
row_obj = {};
i = 0;
while (i < o.cols.length) {
row_obj[o.cols[i]] = o.rows[j][i];
i++;
};
so[item].push(row_obj);
j++;
};
} else {
so[item] = {};
for (param in scores[item]) {
so[item][param] = scores[item][param];
};
};
} else {
so[item] = scores[item];
};
};
return (so);
}
public static function submit(score:Number, name:String, callbackObj:Object=null, callbackMethod:Object=null):void{
score = Number(score);
if (isNaN(score)){
} else {
if ((((score == Number.NEGATIVE_INFINITY)) || ((score == Number.POSITIVE_INFINITY)))){
} else {
if (Math.floor(score) != score){
};
score = Number(score);
};
};
MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
public static function onClose(args:Object=null):void{
if (((((args) && ((args.error == true)))) && (onErrorHandler))){
if (args.errorCode == null){
args.errorCode = "IOError";
};
onErrorHandler(args.errorCode);
MochiServices.doClose();
return;
};
onCloseHandler();
MochiServices.doClose();
}
public static function setBoardID(boardID:String):void{
MochiServices.warnID(boardID, true);
MochiScores.boardID = boardID;
MochiServices.send("scores_setBoardID", {boardID:boardID});
}
}
}//package mochi.as3
Section 407
//MochiServices (mochi.as3.MochiServices)
package mochi.as3 {
import flash.system.*;
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.geom.*;
public class MochiServices {
private static var _container:Object;
private static var _connected:Boolean = false;
private static var _swfVersion:String;
private static var _preserved:Object;
public static var netupAttempted:Boolean = false;
private static var _sendChannel:LocalConnection;
public static var servicesSync:MochiSync = new MochiSync();
private static var _clip:MovieClip;
private static var _id:String;
private static var _services:String = "services.swf";
private static var _servURL:String = "http://www.mochiads.com/static/lib/services/";
public static var widget:Boolean = false;
private static var _timer:Timer;
private static var _sendChannelName:String;
private static var _loader:Loader;
private static var _connecting:Boolean = false;
private static var _mochiLocalConnection:MovieClip;
private static var _listenChannelName:String = "__ms_";
public static var onError:Object;
public static var netup:Boolean = true;
private static var _mochiLC:String = "MochiLC.swf";
public function MochiServices(){
super();
}
public static function isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function get connected():Boolean{
return (_connected);
}
private static function onReceive(pkg:Object):void{
var cb:String;
var cblst:Object;
var method:*;
var methodName:String;
var obj:Object;
var pkg = pkg;
cb = pkg.callbackID;
cblst = _clip._callbacks[cb];
if (!(cblst)){
return;
};
method = cblst.callbackMethod;
methodName = "";
obj = cblst.callbackObject;
if (((obj) && ((typeof(method) == "string")))){
methodName = method;
if (obj[method] != null){
method = obj[method];
//unresolved jump
};
};
if (method != undefined){
method.apply(obj, pkg.args);
//unresolved jump
var _slot1 = error;
} else {
if (obj != null){
obj(pkg.args);
//unresolved jump
var _slot1 = error;
};
};
delete _clip._callbacks[cb];
}
public static function get childClip():Object{
return (_clip);
}
public static function send(methodName:String, args:Object=null, callbackObject:Object=null, callbackMethod:Object=null):void{
if (_connected){
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_clip._nextcallbackID});
} else {
if ((((_clip == null)) || (!(_connecting)))){
handleError(args, callbackObject, callbackMethod);
flush(true);
return;
};
_clip._queue.push({methodName:methodName, args:args, callbackID:_clip._nextcallbackID});
};
if (_clip != null){
if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){
_clip._callbacks[_clip._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_clip._nextcallbackID++;
};
};
}
private static function init(id:String, clip:Object):void{
_id = id;
if (clip != null){
_container = clip;
loadCommunicator(id, _container);
};
}
private static function clickMovie(url:String, cb:Function):MovieClip{
var avm1_bytecode:Array;
var b:int;
var header:Array;
var footer:Array;
var mc:MovieClip;
var lc:LocalConnection;
var lc_name:String;
var ba:ByteArray;
var cpool:ByteArray;
var actionLength:uint;
var fileLength:uint;
var loader:Loader;
avm1_bytecode = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23];
header = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3];
footer = [0, 64, 0, 0, 0];
mc = new MovieClip();
lc = new LocalConnection();
lc_name = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time));
lc = new LocalConnection();
mc.lc = lc;
mc.click = cb;
lc.client = mc;
lc.connect(lc_name);
ba = new ByteArray();
cpool = new ByteArray();
cpool.endian = Endian.LITTLE_ENDIAN;
cpool.writeShort(1);
cpool.writeUTFBytes(((url + " ") + lc_name));
cpool.writeByte(0);
actionLength = ((avm1_bytecode.length + cpool.length) + 4);
fileLength = (actionLength + 35);
ba.endian = Endian.LITTLE_ENDIAN;
ba.writeUTFBytes("FWS");
ba.writeByte(8);
ba.writeUnsignedInt(fileLength);
for each (b in header) {
ba.writeByte(b);
};
ba.writeUnsignedInt(actionLength);
ba.writeByte(136);
ba.writeShort(cpool.length);
ba.writeBytes(cpool);
for each (b in avm1_bytecode) {
ba.writeByte(b);
};
for each (b in footer) {
ba.writeByte(b);
};
loader = new Loader();
loader.loadBytes(ba);
mc.addChild(loader);
return (mc);
}
public static function stayOnTop():void{
_container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true);
if (_clip != null){
_clip.visible = true;
};
}
public static function addLinkEvent(url:String, burl:String, btn:DisplayObjectContainer, onClick:Function=null):void{
var vars:Object;
var avm1Click:DisplayObject;
var s:String;
var i:Number;
var x:String;
var req:URLRequest;
var loader:Loader;
var setURL:Function;
var err:Function;
var complete:Function;
var url = url;
var burl = burl;
var btn = btn;
var onClick = onClick;
vars = new Object();
vars["mav"] = getVersion();
vars["swfv"] = "9";
vars["swfurl"] = btn.loaderInfo.loaderURL;
vars["fv"] = Capabilities.version;
vars["os"] = Capabilities.os;
vars["lang"] = Capabilities.language;
vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY);
s = "?";
i = 0;
for (x in vars) {
if (i != 0){
s = (s + "&");
};
i = (i + 1);
s = (((s + x) + "=") + escape(vars[x]));
};
req = new URLRequest("http://x.mochiads.com/linkping.swf");
loader = new Loader();
setURL = function (url:String):void{
var rect:Rectangle;
if (avm1Click){
btn.removeChild(avm1Click);
};
avm1Click = clickMovie(url, onClick);
rect = btn.getBounds(btn);
btn.addChild(avm1Click);
avm1Click.x = rect.x;
avm1Click.y = rect.y;
avm1Click.scaleX = (0.01 * rect.width);
avm1Click.scaleY = (0.01 * rect.height);
};
err = function (ev:Object):void{
netup = false;
ev.target.removeEventListener(ev.type, arguments.callee);
setURL(burl);
};
complete = function (ev:Object):void{
ev.target.removeEventListener(ev.type, arguments.callee);
};
if (netup){
setURL((url + s));
} else {
setURL(burl);
};
if (!(((netupAttempted) || (_connected)))){
netupAttempted = true;
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.load(req);
};
}
public static function warnID(bid:String, leaderboard:Boolean):void{
var i:Number;
bid = bid.toLowerCase();
if (bid.length != 16){
return;
};
if (bid == "1e113c7239048b3f"){
if (leaderboard){
//unresolved jump
};
return;
} else {
if (bid == "84993a1de4031cd8"){
if (leaderboard){
//unresolved jump
};
return;
};
};
i = 0;
while (i < bid.length) {
switch (bid.charAt(i)){
case "0":
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "a":
case "b":
case "c":
case "d":
case "e":
case "f":
break;
default:
return;
};
i++;
};
}
public static function disconnect():void{
if (((_connected) || (_connecting))){
if (_clip != null){
if (_clip.parent != null){
if ((_clip.parent is Sprite)){
Sprite(_clip.parent).removeChild(_clip);
_clip = null;
};
};
};
_connecting = (_connected = false);
flush(true);
_mochiLocalConnection.close();
//unresolved jump
var _slot1 = error;
};
if (_timer != null){
_timer.stop();
//unresolved jump
var _slot1 = error;
};
}
public static function allowDomains(server:String):String{
var hostname:String;
if (Security.sandboxType != "application"){
Security.allowDomain("*");
Security.allowInsecureDomain("*");
};
if (server.indexOf("http://") != -1){
hostname = server.split("/")[2].split(":")[0];
if (Security.sandboxType != "application"){
Security.allowDomain(hostname);
Security.allowInsecureDomain(hostname);
};
};
return (hostname);
}
public static function getVersion():String{
return ("3.4 as3");
}
public static function doClose():void{
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
}
private static function flush(error:Boolean):void{
var request:Object;
var callback:Object;
if (((_clip) && (_clip._queue))){
while (_clip._queue.length > 0) {
request = _clip._queue.shift();
callback = null;
if (request != null){
if (request.callbackID != null){
callback = _clip._callbacks[request.callbackID];
};
delete _clip._callbacks[request.callbackID];
if (((error) && (!((callback == null))))){
handleError(request.args, callback.callbackObject, callback.callbackMethod);
};
};
};
};
}
public static function get id():String{
return (_id);
}
private static function onEvent(pkg:Object):void{
var target:String;
var event:String;
target = pkg.target;
event = pkg.event;
switch (target){
case "events":
MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins":
MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync":
servicesSync.triggerEvent(pkg.event, pkg.args);
break;
};
}
private static function urlOptions(clip:Object):Object{
var opts:Object;
var options:String;
var pairs:Array;
var i:Number;
var kv:Array;
opts = {};
if (clip.stage){
options = clip.stage.loaderInfo.parameters.mochiad_options;
} else {
options = clip.loaderInfo.parameters.mochiad_options;
};
if (options){
pairs = options.split("&");
i = 0;
while (i < pairs.length) {
kv = pairs[i].split("=");
opts[unescape(kv[0])] = unescape(kv[1]);
i++;
};
};
return (opts);
}
public static function setContainer(container:Object=null, doAdd:Boolean=true):void{
if (container != null){
if ((container is Sprite)){
_container = container;
};
};
if (doAdd){
if ((_container is Sprite)){
Sprite(_container).addChild(_clip);
};
};
}
private static function handleError(args:Object, callbackObject:Object, callbackMethod:Object):void{
var args = args;
var callbackObject = callbackObject;
var callbackMethod = callbackMethod;
if (args != null){
if (args.onError != null){
args.onError.apply(null, ["NotConnected"]);
};
if (((!((args.options == null))) && (!((args.options.onError == null))))){
args.options.onError.apply(null, ["NotConnected"]);
};
};
if (callbackMethod != null){
args = {};
args.error = true;
args.errorCode = "NotConnected";
if (((!((callbackObject == null))) && ((callbackMethod is String)))){
var _local5 = callbackObject;
_local5[callbackMethod](args);
//unresolved jump
var _slot1 = error;
} else {
if (callbackMethod != null){
callbackMethod.apply(args);
//unresolved jump
var _slot1 = error;
};
};
};
}
private static function loadError(ev:Object):void{
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
}
private static function initComChannels():void{
if (!(_connected)){
_connecting = false;
_connected = true;
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL});
_clip.onReceive = onReceive;
_clip.onEvent = onEvent;
_clip.onError = function ():void{
MochiServices.onError("IOError");
};
while (_clip._queue.length > 0) {
_mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift());
};
};
}
private static function loadLCBridge(clip:Object):void{
var loader:Loader;
var mochiLCURL:String;
var req:URLRequest;
var complete:Function;
var clip = clip;
loader = new Loader();
mochiLCURL = (_servURL + _mochiLC);
req = new URLRequest(mochiLCURL);
complete = function (ev:Object):void{
_mochiLocalConnection = MovieClip(loader.content);
listen();
};
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
loader.load(req);
clip.addChild(loader);
}
private static function listen():void{
_mochiLocalConnection.connect(_listenChannelName);
_clip.handshake = function (args:Object):void{
MochiServices.comChannelName = args.newChannel;
};
}
public static function get clip():Object{
return (_container);
}
public static function set comChannelName(val:String):void{
if (val != null){
if (val.length > 3){
_sendChannelName = (val + "_fromgame");
initComChannels();
};
};
}
private static function loadCommunicator(id:String, clip:Object):MovieClip{
var clipname:String;
var servicesURL:String;
var req:URLRequest;
var vars:URLVariables;
clipname = ("_mochiservices_com_" + id);
if (_clip != null){
return (_clip);
};
if (!(MochiServices.isNetworkAvailable())){
return (null);
};
if (urlOptions(clip).servURL){
_servURL = urlOptions(clip).servURL;
};
servicesURL = (_servURL + _services);
if (urlOptions(clip).servicesURL){
servicesURL = urlOptions(clip).servicesURL;
};
_listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999))));
MochiServices.allowDomains(servicesURL);
_clip = createEmptyMovieClip(clip, clipname, 10336, false);
loadLCBridge(_clip);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError);
req = new URLRequest(servicesURL);
vars = new URLVariables();
vars.listenLC = _listenChannelName;
vars.mochiad_options = clip.loaderInfo.parameters.mochiad_options;
vars.api_version = getVersion();
if (widget){
vars.widget = true;
};
req.data = vars;
_loader.load(req);
_clip.addChild(_loader);
_clip._mochiservices_com = _loader;
_sendChannel = new LocalConnection();
_clip._queue = [];
_clip._nextcallbackID = 0;
_clip._callbacks = {};
_timer = new Timer(10000, 1);
_timer.addEventListener(TimerEvent.TIMER, connectWait);
_timer.start();
return (_clip);
}
public static function connect(id:String, clip:Object, onError:Object=null):void{
var id = id;
var clip = clip;
var onError = onError;
warnID(id, false);
if ((clip is DisplayObject)){
if (clip.stage == null){
};
if (((!(_connected)) && ((_clip == null)))){
_connecting = true;
init(id, clip);
};
//unresolved jump
};
if (onError != null){
MochiServices.onError = onError;
} else {
if (MochiServices.onError == null){
MochiServices.onError = function (errorCode:String):void{
};
};
};
}
public static function createEmptyMovieClip(parent:Object, name:String, depth:Number, doAdd:Boolean=true):MovieClip{
var mc:MovieClip;
var parent = parent;
var name = name;
var depth = depth;
var doAdd = doAdd;
mc = new MovieClip();
if (doAdd){
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
};
parent[name] = mc;
//unresolved jump
var _slot1 = e;
throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
mc["_name"] = name;
return (mc);
}
public static function bringToTop(e:Event=null):void{
var e = e;
if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){
if (MochiServices.clip.numChildren > 1){
MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1));
};
//unresolved jump
var _slot1 = errorObject;
_container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop);
};
}
public static function connectWait(e:TimerEvent):void{
if (!(_connected)){
_clip._mochiad_ctr_failed = true;
MochiServices.disconnect();
MochiServices.onError("IOError");
};
}
}
}//package mochi.as3
Section 408
//MochiSync (mochi.as3.MochiSync)
package mochi.as3 {
import flash.utils.*;
public dynamic class MochiSync extends Proxy {
private var _syncContainer:Object;
public static var SYNC_PROPERTY:String = "UpdateProperty";
public static var SYNC_REQUEST:String = "SyncRequest";
public function MochiSync():void{
super();
_syncContainer = {};
}
public function triggerEvent(eventType:String, args:Object):void{
switch (eventType){
case SYNC_REQUEST:
MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY:
_syncContainer[args.name] = args.value;
break;
};
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(name){
return (_syncContainer[name]);
}
override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(name, value):void{
var n:String;
if (_syncContainer[name] == value){
return;
};
n = name.toString();
_syncContainer[n] = value;
MochiServices.send("sync_propUpdate", {name:n, value:value});
}
}
}//package mochi.as3
Section 409
//MochiUserData (mochi.as3.MochiUserData)
package mochi.as3 {
import flash.utils.*;
import flash.net.*;
import flash.events.*;
public class MochiUserData extends EventDispatcher {
public var callback:Function;// = null
public var error:Event;// = null
public var key:String;// = null
public var operation:String;// = null
public var data;// = null
public var _loader:URLLoader;
public function MochiUserData(key:String="", callback:Function=null){
key = null;
data = null;
error = null;
operation = null;
callback = null;
super();
this.key = key;
this.callback = callback;
}
public function securityErrorHandler(event:SecurityErrorEvent):void{
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + event.toString())));
}
public function putEvent(obj):void{
request("put", serialize(obj));
}
public function request(_operation:String, _data:ByteArray):void{
var api_url:String;
var api_token:String;
var args:URLVariables;
var req:URLRequest;
var _operation = _operation;
var _data = _data;
operation = _operation;
api_url = MochiCoins.getAPIURL();
api_token = MochiCoins.getAPIToken();
if ((((api_url == null)) || ((api_token == null)))){
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, "not logged in"));
return;
};
_loader = new URLLoader();
args = new URLVariables();
args.op = _operation;
args.key = key;
req = new URLRequest((((MochiCoins.getAPIURL() + "/") + "MochiUserData?") + args.toString()));
req.method = URLRequestMethod.POST;
req.contentType = "application/x-mochi-userdata";
req.requestHeaders = [new URLRequestHeader("x-mochi-services-version", MochiServices.getVersion()), new URLRequestHeader("x-mochi-api-token", api_token)];
req.data = _data;
_loader.dataFormat = URLLoaderDataFormat.BINARY;
_loader.addEventListener(Event.COMPLETE, completeHandler);
_loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.load(req);
//unresolved jump
var _slot1 = e;
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("security error: " + _slot1.toString())));
}
public function completeHandler(event:Event):void{
var event = event;
if (_loader.data.length){
data = deserialize(_loader.data);
} else {
data = null;
};
//unresolved jump
var _slot1 = e;
errorHandler(new IOErrorEvent(IOErrorEvent.IO_ERROR, false, false, ("deserialize error: " + _slot1.toString())));
return;
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function performCallback():void{
callback(this);
//unresolved jump
var _slot1 = e;
}
public function serialize(obj):ByteArray{
var arr:ByteArray;
arr = new ByteArray();
arr.objectEncoding = ObjectEncoding.AMF3;
arr.writeObject(obj);
arr.compress();
return (arr);
}
public function errorHandler(event:IOErrorEvent):void{
data = null;
error = event;
if (callback != null){
performCallback();
} else {
dispatchEvent(event);
};
close();
}
public function getEvent():void{
request("get", serialize(null));
}
override public function toString():String{
return ((((((((("[MochiUserData operation=" + operation) + " key=\"") + key) + "\" data=") + data) + " error=\"") + error) + "\"]"));
}
public function close():void{
if (_loader){
_loader.removeEventListener(Event.COMPLETE, completeHandler);
_loader.removeEventListener(IOErrorEvent.IO_ERROR, errorHandler);
_loader.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_loader.close();
_loader = null;
};
error = null;
callback = null;
}
public function deserialize(arr:ByteArray){
arr.objectEncoding = ObjectEncoding.AMF3;
arr.uncompress();
return (arr.readObject());
}
public static function get(key:String, callback:Function):void{
var userData:MochiUserData;
userData = new MochiUserData(key, callback);
userData.getEvent();
}
public static function put(key:String, obj, callback:Function):void{
var userData:MochiUserData;
userData = new MochiUserData(key, callback);
userData.putEvent(obj);
}
}
}//package mochi.as3
Section 410
//artilleryFx (artilleryFx)
package {
import flash.media.*;
public dynamic class artilleryFx extends Sound {
public function artilleryFx(){
super();
}
}
}//package
Section 411
//backgroundSkyMc (backgroundSkyMc)
package {
import flash.display.*;
public dynamic class backgroundSkyMc extends MovieClip {
public function backgroundSkyMc(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 412
//bigExplosion (bigExplosion)
package {
import flash.display.*;
public dynamic class bigExplosion extends MovieClip {
public function bigExplosion(){
super();
}
}
}//package
Section 413
//clickBtnFx (clickBtnFx)
package {
import flash.media.*;
public dynamic class clickBtnFx extends Sound {
public function clickBtnFx(){
super();
}
}
}//package
Section 414
//crosshair (crosshair)
package {
import flash.display.*;
public dynamic class crosshair extends MovieClip {
public var chh:MovieClip;
public function crosshair(){
super();
}
}
}//package
Section 415
//die_v1_Fx (die_v1_Fx)
package {
import flash.media.*;
public dynamic class die_v1_Fx extends Sound {
public function die_v1_Fx(){
super();
}
}
}//package
Section 416
//die_v2_Fx (die_v2_Fx)
package {
import flash.media.*;
public dynamic class die_v2_Fx extends Sound {
public function die_v2_Fx(){
super();
}
}
}//package
Section 417
//dropFx (dropFx)
package {
import flash.media.*;
public dynamic class dropFx extends Sound {
public function dropFx(){
super();
}
}
}//package
Section 418
//dropMiningFx (dropMiningFx)
package {
import flash.media.*;
public dynamic class dropMiningFx extends Sound {
public function dropMiningFx(){
super();
}
}
}//package
Section 419
//energyBar (energyBar)
package {
import flash.display.*;
public dynamic class energyBar extends MovieClip {
public var bar:MovieClip;
public function energyBar(){
super();
}
}
}//package
Section 420
//explosion (explosion)
package {
import flash.display.*;
public dynamic class explosion extends MovieClip {
public function explosion(){
super();
}
}
}//package
Section 421
//explosionFx (explosionFx)
package {
import flash.media.*;
public dynamic class explosionFx extends Sound {
public function explosionFx(){
super();
}
}
}//package
Section 422
//fireMissileFx (fireMissileFx)
package {
import flash.media.*;
public dynamic class fireMissileFx extends Sound {
public function fireMissileFx(){
super();
}
}
}//package
Section 423
//GameAlienGrenade (GameAlienGrenade)
package {
import flash.display.*;
public dynamic class GameAlienGrenade extends MovieClip {
public function GameAlienGrenade(){
super();
}
}
}//package
Section 424
//GameAmmoLow (GameAmmoLow)
package {
import flash.display.*;
public dynamic class GameAmmoLow extends MovieClip {
public function GameAmmoLow(){
super();
}
}
}//package
Section 425
//GameArrow (GameArrow)
package {
import flash.display.*;
public dynamic class GameArrow extends MovieClip {
public function GameArrow(){
super();
}
}
}//package
Section 426
//GameBullet (GameBullet)
package {
import flash.display.*;
public dynamic class GameBullet extends MovieClip {
public function GameBullet(){
super();
}
}
}//package
Section 427
//GameFireBall (GameFireBall)
package {
import flash.display.*;
public dynamic class GameFireBall extends MovieClip {
public function GameFireBall(){
super();
}
}
}//package
Section 428
//GameFreezeBullet (GameFreezeBullet)
package {
import flash.display.*;
public dynamic class GameFreezeBullet extends MovieClip {
public function GameFreezeBullet(){
super();
}
}
}//package
Section 429
//GameGrenade (GameGrenade)
package {
import flash.display.*;
public dynamic class GameGrenade extends MovieClip {
public function GameGrenade(){
super();
}
}
}//package
Section 430
//GameHeavyTankMissile (GameHeavyTankMissile)
package {
import flash.display.*;
public dynamic class GameHeavyTankMissile extends MovieClip {
public function GameHeavyTankMissile(){
super();
}
}
}//package
Section 431
//GameIceBolt (GameIceBolt)
package {
import flash.display.*;
public dynamic class GameIceBolt extends MovieClip {
public function GameIceBolt(){
super();
}
}
}//package
Section 432
//GameLaserBig (GameLaserBig)
package {
import flash.display.*;
public dynamic class GameLaserBig extends MovieClip {
public function GameLaserBig(){
super();
}
}
}//package
Section 433
//GameLaserMotherShip (GameLaserMotherShip)
package {
import flash.display.*;
public dynamic class GameLaserMotherShip extends MovieClip {
public function GameLaserMotherShip(){
super();
}
}
}//package
Section 434
//GameLaserSaucer (GameLaserSaucer)
package {
import flash.display.*;
public dynamic class GameLaserSaucer extends MovieClip {
public function GameLaserSaucer(){
super();
}
}
}//package
Section 435
//GameLightTankMissile (GameLightTankMissile)
package {
import flash.display.*;
public dynamic class GameLightTankMissile extends MovieClip {
public function GameLightTankMissile(){
super();
}
}
}//package
Section 436
//GameMissileMc (GameMissileMc)
package {
import flash.display.*;
public dynamic class GameMissileMc extends MovieClip {
public function GameMissileMc(){
super();
}
}
}//package
Section 437
//GameMortarShell (GameMortarShell)
package {
import flash.display.*;
public dynamic class GameMortarShell extends MovieClip {
public function GameMortarShell(){
super();
}
}
}//package
Section 438
//gameOverFx (gameOverFx)
package {
import flash.media.*;
public dynamic class gameOverFx extends Sound {
public function gameOverFx(){
super();
}
}
}//package
Section 439
//GameRock (GameRock)
package {
import flash.display.*;
public dynamic class GameRock extends MovieClip {
public function GameRock(){
super();
}
}
}//package
Section 440
//GameRocket (GameRocket)
package {
import flash.display.*;
public dynamic class GameRocket extends MovieClip {
public function GameRocket(){
super();
}
}
}//package
Section 441
//GameShell (GameShell)
package {
import flash.display.*;
public dynamic class GameShell extends MovieClip {
public function GameShell(){
super();
}
}
}//package
Section 442
//getReadyMsg (getReadyMsg)
package {
import flash.text.*;
import flash.display.*;
public dynamic class getReadyMsg extends MovieClip {
public var levelText:TextField;
public function getReadyMsg(){
super();
}
}
}//package
Section 443
//getReadyMsgAnim (getReadyMsgAnim)
package {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class getReadyMsgAnim extends MovieClip {
public var msg:getReadyMsg;
public function getReadyMsgAnim(){
super();
addFrameScript(10, frame11, 73, frame74);
}
function frame74(){
MovieClip(parent).rt.gameState = "play";
MovieClip(parent).removeChild(this);
stop();
}
function frame11(){
msg.levelText.text = ("Level " + MovieClip(parent).rt.levelNumber);
}
}
}//package
Section 444
//halfWayFlag (halfWayFlag)
package {
import flash.display.*;
public dynamic class halfWayFlag extends MovieClip {
public var flag1:MovieClip;
public function halfWayFlag(){
super();
}
}
}//package
Section 445
//hitEnemyFx (hitEnemyFx)
package {
import flash.media.*;
public dynamic class hitEnemyFx extends Sound {
public function hitEnemyFx(){
super();
}
}
}//package
Section 446
//jetFighterBomb (jetFighterBomb)
package {
import flash.display.*;
public dynamic class jetFighterBomb extends MovieClip {
public function jetFighterBomb(){
super();
}
}
}//package
Section 447
//jetIconMc (jetIconMc)
package {
import flash.events.*;
import flash.display.*;
public dynamic class jetIconMc extends MovieClip {
public var jetBtn:SimpleButton;
public function jetIconMc(){
super();
addFrameScript(0, frame1);
}
function frame1(){
jetBtn.addEventListener(MouseEvent.MOUSE_DOWN, setupJ, false);
}
public function setupJ(e:MouseEvent):void{
}
}
}//package
Section 448
//knight2 (knight2)
package {
import flash.display.*;
public dynamic class knight2 extends MovieClip {
public function knight2(){
super();
}
}
}//package
Section 449
//laserCannonFx (laserCannonFx)
package {
import flash.media.*;
public dynamic class laserCannonFx extends Sound {
public function laserCannonFx(){
super();
}
}
}//package
Section 450
//levelCompleteFx (levelCompleteFx)
package {
import flash.media.*;
public dynamic class levelCompleteFx extends Sound {
public function levelCompleteFx(){
super();
}
}
}//package
Section 451
//levelCompleteMsgs (levelCompleteMsgs)
package {
import flash.display.*;
public dynamic class levelCompleteMsgs extends MovieClip {
public function levelCompleteMsgs(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 452
//LoadingBox (LoadingBox)
package {
import flash.display.*;
public class LoadingBox extends MovieClip {
public var loaderbar:MovieClip;
public function LoadingBox(){
super();
addFrameScript(0, frame1);
}
function frame1(){
}
public function update(percent:int):void{
}
}
}//package
Section 453
//mainGunMissileHitFx (mainGunMissileHitFx)
package {
import flash.media.*;
public dynamic class mainGunMissileHitFx extends Sound {
public function mainGunMissileHitFx(){
super();
}
}
}//package
Section 454
//mainGunSound (mainGunSound)
package {
import flash.media.*;
public dynamic class mainGunSound extends Sound {
public function mainGunSound(){
super();
}
}
}//package
Section 455
//mcTest (mcTest)
package {
import flash.display.*;
public dynamic class mcTest extends MovieClip {
public function mcTest(){
super();
}
}
}//package
Section 456
//mineActiveFx (mineActiveFx)
package {
import flash.media.*;
public dynamic class mineActiveFx extends Sound {
public function mineActiveFx(){
super();
}
}
}//package
Section 457
//MochiAd (MochiAd)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MochiAd {
public function MochiAd(){
super();
}
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = options;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!(MochiAd.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
sendHostProgress = false;
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
chk["onEnterFrame"] = function ():void{
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var total:Number;
if (!(this.parent)){
delete this.onEnterFrame;
return;
};
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
if (!(chk.showing)){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
finished = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (this.root == null){
finished = true;
};
if (finished){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(server:String):String{
var hostname:String;
hostname = server.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(hostname);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(hostname);
return (hostname);
}
public static function unload(clip:Object):Boolean{
if (((clip.clip) && (clip.clip._mochiad))){
clip = clip.clip;
};
if (clip.origFrameRate != undefined){
clip.stage.frameRate = clip.origFrameRate;
};
if (!(clip._mochiad)){
return (false);
};
if (clip._mochiad._containerLCName != undefined){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
};
if (clip._mochiad.onUnload){
clip._mochiad.onUnload();
};
delete clip._mochiad_loaded;
delete clip._mochiad;
return (true);
}
public static function showInterLevelAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = options;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!(MochiAd.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var p:Number;
if (!(this.parent)){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object;
_chk = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = (msec - 250);
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
chk["onEnterFrame"] = function ():void{
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var total:Number;
if (!(this.parent)){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
if (!(chk.showing)){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (finished){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(options:Object, defaults:Object):Object{
var optcopy:Object;
var k:String;
var pairs:Array;
var i:Number;
var kv:Array;
optcopy = {};
for (k in defaults) {
optcopy[k] = defaults[k];
};
if (options){
for (k in options) {
optcopy[k] = options[k];
};
};
if (optcopy.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
options = optcopy.clip.loaderInfo.parameters.mochiad_options;
if (options){
pairs = options.split("&");
i = 0;
while (i < pairs.length) {
kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
};
};
if (optcopy.id == "test"){
};
return (optcopy);
}
public static function _cleanup(mc:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = mc;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
lc.client = null;
lc.close();
//unresolved jump
var _slot1 = e;
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(options:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = options;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!(MochiAd._isNetworkAvailable())){
return (null);
};
if (clip._mochiad_loaded){
return (null);
};
//unresolved jump
var _slot1 = e;
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!((v is Function))){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (ev:Object):void{
ev.target.removeEventListener(ev.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(base:Object, methodName:String, argsArray:Array):Object{
var nameArray:Array;
var i:Number;
nameArray = methodName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
if (typeof(base[nameArray[i]]) == "function"){
return (base[nameArray[i]].apply(base, argsArray));
};
return (undefined);
}
public static function createEmptyMovieClip(parent:Object, name:String, depth:Number):MovieClip{
var mc:MovieClip;
mc = new MovieClip();
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
parent[name] = mc;
mc["_name"] = name;
return (mc);
}
public static function _getRes(options:Object, clip:Object):Array{
var b:Object;
var w:Number;
var h:Number;
var xy:Array;
b = clip.getBounds(clip.root);
w = 0;
h = 0;
if (typeof(options.res) != "undefined"){
xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = (b.xMax - b.xMin);
h = (b.yMax - b.yMin);
};
if ((((w == 0)) || ((h == 0)))){
w = clip.stage.stageWidth;
h = clip.stage.stageHeight;
};
return ([w, h]);
}
public static function adShowing(mc:Object):void{
mc.origFrameRate = mc.stage.frameRate;
mc.stage.frameRate = 30;
}
public static function getValue(base:Object, objectName:String):Object{
var nameArray:Array;
var i:Number;
nameArray = objectName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
return (base[nameArray[i]]);
}
public static function rpc(clip:Object, callbackID:Number, arg:Object):void{
var _local4:Object;
var _local5:Object;
switch (arg.id){
case "setValue":
MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case "getValue":
_local4 = MochiAd.getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local5);
break;
};
}
public static function setValue(base:Object, objectName:String, value:Object):void{
var nameArray:Array;
var i:Number;
nameArray = objectName.split(".");
i = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return;
};
base = base[nameArray[i]];
i++;
};
base[nameArray[i]] = value;
}
public static function showPreGameAd(options:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = options;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
}, ad_skipped:function ():void{
}, ad_progress:function (percent:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!(MochiAd.load(options))){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var p:Number;
p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (ev:Event):void{
ev.target.removeEventListener(ev.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object;
_chk = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s:String):Object{
return (s);
};
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (lc_name:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _clip:Object;
var ad_clip:Object;
var elapsed:Number;
var finished:Boolean;
var clip_total:Number;
var clip_loaded:Number;
var clip_pcnt:Number;
var ad_pcnt:Number;
var _inside:Object;
var pcnt:Number;
var total:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_clip = this.parent.parent.root;
ad_clip = this.parent._mochiad_ctr;
elapsed = (getTimer() - this.started);
finished = false;
clip_total = _clip.loaderInfo.bytesTotal;
clip_loaded = _clip.loaderInfo.bytesLoaded;
if (complete){
clip_loaded = Math.max(1, clip_loaded);
clip_total = clip_loaded;
};
clip_pcnt = ((100 * clip_loaded) / clip_total);
ad_pcnt = ((100 * elapsed) / chk.ad_msec);
_inside = this._mochiad_bar._inside;
pcnt = Math.min(100, Math.min(((clip_pcnt) || (0)), ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside.scaleX = (pcnt * 0.01);
options.ad_progress(pcnt);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt});
if (clip_pcnt == 100){
sendHostProgress = false;
};
};
if (!(chk.showing)){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((elapsed > chk.ad_timeout)) && ((clip_pcnt == 100)))){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (((complete) && (finished))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(options:Object):void{
MochiAd.showPreGameAd(options);
}
public static function showTimedAd(options:Object):void{
MochiAd.showInterLevelAd(options);
}
public static function doOnEnterFrame(mc:MovieClip):void{
var f:Function;
var mc = mc;
f = function (ev:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
ev.target.removeEventListener(ev.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 458
//MochiBot (MochiBot)
package {
import flash.net.*;
import flash.display.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public function MochiBot(){
super();
}
public static function track(parent:Sprite, tag:String):MochiBot{
var self:MochiBot;
var server:String;
var lv:URLVariables;
var url:String;
var req:URLRequest;
var loader:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
self = new (MochiBot);
parent.addChild(self);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
server = "http://core.mochibot.com/my/core.swf";
lv = new URLVariables();
lv["sb"] = Security.sandboxType;
lv["v"] = Capabilities.version;
lv["swfid"] = tag;
lv["mv"] = "8";
lv["fv"] = "9";
url = self.root.loaderInfo.loaderURL;
if (url.indexOf("http") == 0){
lv["url"] = url;
} else {
lv["url"] = "local";
};
req = new URLRequest(server);
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader = new Loader();
self.addChild(loader);
loader.load(req);
return (self);
}
}
}//package
Section 459
//mothershipFx (mothershipFx)
package {
import flash.media.*;
public dynamic class mothershipFx extends Sound {
public function mothershipFx(){
super();
}
}
}//package
Section 460
//newSoldierFx (newSoldierFx)
package {
import flash.media.*;
public dynamic class newSoldierFx extends Sound {
public function newSoldierFx(){
super();
}
}
}//package
Section 461
//panelItems (panelItems)
package {
import flash.display.*;
public dynamic class panelItems extends MovieClip {
public function panelItems(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 462
//panelManBack (panelManBack)
package {
import flash.display.*;
public dynamic class panelManBack extends MovieClip {
public var clock:MovieClip;
public function panelManBack(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 463
//pistolFx (pistolFx)
package {
import flash.media.*;
public dynamic class pistolFx extends Sound {
public function pistolFx(){
super();
}
}
}//package
Section 464
//PlayGameBtn (PlayGameBtn)
package {
import flash.display.*;
public dynamic class PlayGameBtn extends SimpleButton {
public function PlayGameBtn(){
super();
}
}
}//package
Section 465
//protectCivAnim (protectCivAnim)
package {
import flash.display.*;
public dynamic class protectCivAnim extends MovieClip {
public function protectCivAnim(){
super();
addFrameScript(320, frame321);
}
function frame321(){
stop();
}
}
}//package
Section 466
//radarArrowAnim (radarArrowAnim)
package {
import flash.display.*;
public dynamic class radarArrowAnim extends MovieClip {
public function radarArrowAnim(){
super();
addFrameScript(84, frame85);
}
function frame85(){
stop();
}
}
}//package
Section 467
//rangeSquare (rangeSquare)
package {
import flash.display.*;
public dynamic class rangeSquare extends MovieClip {
public function rangeSquare(){
super();
}
}
}//package
Section 468
//rangeSquares (rangeSquares)
package {
import flash.display.*;
public dynamic class rangeSquares extends MovieClip {
public function rangeSquares(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 469
//reloadFx (reloadFx)
package {
import flash.media.*;
public dynamic class reloadFx extends Sound {
public function reloadFx(){
super();
}
}
}//package
Section 470
//risingMoneyTxt (risingMoneyTxt)
package {
import flash.text.*;
import flash.display.*;
public dynamic class risingMoneyTxt extends MovieClip {
public var moneyTxt:TextField;
public function risingMoneyTxt(){
super();
}
}
}//package
Section 471
//rocketFx (rocketFx)
package {
import flash.media.*;
public dynamic class rocketFx extends Sound {
public function rocketFx(){
super();
}
}
}//package
Section 472
//SoundMusic1 (SoundMusic1)
package {
import flash.media.*;
public dynamic class SoundMusic1 extends Sound {
public function SoundMusic1(){
super();
}
}
}//package
Section 473
//startGameMsg (startGameMsg)
package {
import flash.text.*;
import flash.display.*;
public dynamic class startGameMsg extends MovieClip {
public var mainTxt:TextField;
public var placeTxt:TextField;
public var titleTxt:TextField;
public function startGameMsg(){
super();
}
}
}//package
Section 474
//throwFx (throwFx)
package {
import flash.media.*;
public dynamic class throwFx extends Sound {
public function throwFx(){
super();
}
}
}//package
Section 475
//timerAnimMc (timerAnimMc)
package {
import flash.display.*;
public dynamic class timerAnimMc extends MovieClip {
public var timer:timerMc;
public var numberOfBubbles:Number;
public var delay:Number;
public var maskMc:timerMc;
public var bubbleCounter:Number;
public function timerAnimMc(){
super();
addFrameScript(0, frame1);
}
function frame1(){
numberOfBubbles = 10;
bubbleCounter = 0;
delay = 10;
}
}
}//package
Section 476
//timerMc (timerMc)
package {
import flash.display.*;
public dynamic class timerMc extends MovieClip {
public function timerMc(){
super();
}
}
}//package
Section 477
//tree1 (tree1)
package {
import flash.display.*;
public dynamic class tree1 extends MovieClip {
public function tree1(){
super();
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 478
//tree2 (tree2)
package {
import flash.display.*;
public dynamic class tree2 extends MovieClip {
public function tree2(){
super();
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package
Section 479
//youarehereAnim (youarehereAnim)
package {
import adobe.utils.*;
import flash.accessibility.*;
import flash.display.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class youarehereAnim extends MovieClip {
public var myNumber:Number;
public var l1:MovieClip;
public var youarehere:youarehereMc;
public var myNumber2:Number;
public function youarehereAnim(){
super();
addFrameScript(0, frame1);
}
function frame1(){
myNumber = ((this.myIndex + 1) * MovieClip(this.parent).rt.GameMain.wavesInStage);
myNumber2 = (this.myIndex * MovieClip(this.parent).rt.GameMain.wavesInStage);
if (MovieClip(this.parent).rt.GameMain.levelNumber < (myNumber + 1)){
if (MovieClip(this.parent).rt.GameMain.levelNumber >= (myNumber2 + 1)){
youarehere.gotoAndStop(2);
};
} else {
gotoAndStop(2);
};
if (MovieClip(this.parent).rt.GameMain.levelNumber == 1){
MovieClip(this.parent).cityMc1.play();
} else {
if (MovieClip(this.parent).rt.GameMain.levelNumber == (MovieClip(this.parent).rt.GameMain.wavesInStage + 1)){
MovieClip(this.parent).cityMc2.play();
} else {
if (MovieClip(this.parent).rt.GameMain.levelNumber == ((MovieClip(this.parent).rt.GameMain.wavesInStage * 2) + 1)){
MovieClip(this.parent).cityMc3.play();
} else {
if (MovieClip(this.parent).rt.GameMain.levelNumber == ((MovieClip(this.parent).rt.GameMain.wavesInStage * 3) + 1)){
MovieClip(this.parent).cityMc4.play();
} else {
if (MovieClip(this.parent).rt.GameMain.levelNumber == ((MovieClip(this.parent).rt.GameMain.wavesInStage * 4) + 1)){
MovieClip(this.parent).cityMc5.play();
};
};
};
};
};
stop();
}
}
}//package
Section 480
//youarehereMc (youarehereMc)
package {
import flash.display.*;
public dynamic class youarehereMc extends MovieClip {
public function youarehereMc(){
super();
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 481
//zapFx (zapFx)
package {
import flash.media.*;
public dynamic class zapFx extends Sound {
public function zapFx(){
super();
}
}
}//package
Section 482
//ZattikkaHiScores (ZattikkaHiScores)
package {
import flash.display.*;
import flash.events.*;
import flash.external.*;
import flash.net.*;
import com.hexagonstar.util.debug.*;
public class ZattikkaHiScores extends MovieClip {
private const EVENT_VIEW_HI_SCORE:String = "ViewHiScore=";
private const MSG_SERVER_ERROR:String = "Could not contact server, please try again in a few minutes.";
private const FB_ACTION:String = "/Facebook.action?";
private const HS_PLATFORM_WEB:int = 0;
private const TEST_SERVER_URL:String = "http://api.staging.zattikka.com";
private const DEV_TEST_MODE_FB:int = 2;
private const EVENT_SUBMIT_HI_SCORE:String = "SubmitHiScore=";
private const DEV_TEST_MODE_G5:int = 1;
private const VERSION_NUM:String = "1.0.14 (AS3)";
private const EVENT_VIEW_HI_SCORES:String = "ViewHiScores=";
private const TW_ACTION:String = "/Twitter.action?";
private const LIVE_SERVER_URL:String = "http://api.zattikka.com";
private const MSG_SUBMITTING_DETAILS:String = "Submitting hi-score details to the server, please wait.";
private const GFTP_URL:String = "http://www.gamesfortheplanet.com";
private const MSG_PLEASE_ENTER_NICKNAME:String = "Please enter your nickname.";
private const EVENT_GET_HI_SCORES_RANGE:String = "GetHiScoresRange=";
private const EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL:String = "PublishHiScoreFeedExternal=";
private const EVENT_POST_TWEET:String = "PostTweet=";
private const HS_PLATFORM_FACEBOOK:int = 1;
private const HS_ACTION:String = "/HiScore.action?";
private const EVENT_PUBLISH_HI_SCORE_FEED:String = "PublishHiScoreFeed=";
private const DEV_TEST_MODE_OFF:int = 0;
public var btnGFTP:SimpleButton;
private var gameKey:String;
private var SERVER_URL:String;// = "http://api.zattikka.com"
private var g5UserExists:Boolean;
private var entryScreen:MovieClip;// = null
private var devTestMode:int;// = 0
private var caller:Object;
private var score:Number;
private var g5User:Object;
private var cxn:LocalConnection;
private var lowIsBest:Boolean;
private var fbUser:Object;
private var gameId:Number;
private var infoScreen:MovieClip;// = null
private var levelId:Number;
private var fbSessionKey:String;
public var movEntryScreen:MovieClip;
private var msg1:String;
private var msg2:String;
private var fbUserExists:Boolean;
public var movInfoScreen:MovieClip;
private var gameCode:String;
public function ZattikkaHiScores(){
debug((("[ZattikkaHiScores VERSION " + VERSION_NUM) + "]"));
this.visible = false;
}
private function grabG5User():void{
this.g5User = ExternalInterface.call("getG5User");
this.g5UserExists = ((g5User == null)) ? false : !(isNaN(this.g5User[0]));
if (devTestMode == DEV_TEST_MODE_G5){
this.g5User = new Array("9", "RocketRonz");
this.g5UserExists = ((g5User == null)) ? false : !(isNaN(this.g5User[0]));
};
debug(("[ZattikkaHiScores::grabG5User] " + (g5UserExists) ? ((("userId = " + this.g5User[0]) + ", userName = ") + this.g5User[1]) : "g5User is empty"));
}
private function grabFacebookUser():void{
this.fbUser = ExternalInterface.call("getFBUser");
this.fbUserExists = ((fbUser == null)) ? false : !(isNaN(this.fbUser[0]));
this.fbSessionKey = ExternalInterface.call("getFBSessionKey");
if (devTestMode == DEV_TEST_MODE_FB){
this.fbUser = new Array("1383775213", "Dolphin Gimme-Five");
this.fbUserExists = ((fbUser == null)) ? false : !(isNaN(this.fbUser[0]));
this.fbSessionKey = "ad4dff81c4d2467efc456072-1383775213";
};
debug(("[ZattikkaHiScores::grabFacebookUser] " + (fbUserExists) ? ((((("userId = " + this.fbUser[0]) + ", userName = ") + this.fbUser[1]) + ", sessionKey = ") + this.fbSessionKey) : "fbUser is empty"));
}
public function getHiScoresRange(_arg1:Object, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:Boolean, _arg8:Boolean=false):void{
debug(((((((((((((("[ZattikkaHiScores::getHiScoresRange] gameId = " + _arg2) + ", startLevel = ") + _arg3) + ", endLevel = ") + _arg4) + ", startPos = ") + _arg5) + ", endPos = ") + _arg6) + ", lowIsBest = ") + _arg7) + ", testMode = ") + _arg8));
initServerURL(_arg8);
this.caller = _arg1;
var _local9:URLVariables = new URLVariables();
_local9.gameId = _arg2;
_local9.startLevel = _arg3;
_local9.endLevel = _arg4;
_local9.startPos = _arg5;
_local9.endPos = _arg6;
_local9.lowIsBest = _arg7;
hitServer(HS_ACTION, EVENT_GET_HI_SCORES_RANGE, _local9);
}
private function getRandomString(_arg1:int):String{
var _local2:String = "";
var _local3:int;
while (_local3 < _arg1) {
_local2 = (_local2 + String.fromCharCode(getRandom(48, 122)));
_local3++;
};
return (_local2);
}
public function showInfoMessage(_arg1:String, _arg2:Boolean):void{
infoScreen["txtInfo"].text = _arg1;
infoScreen["btnBack"].visible = _arg2;
infoScreen["btnView"].visible = ((!(_arg2)) && (!(fbUserExists)));
infoScreen.visible = true;
entryScreen.visible = false;
}
private function showEntryScreen():void{
entryScreen["txtMsg1"].text = msg1;
entryScreen["txtMsg2"].text = msg2;
entryScreen["movNameAuto"].visible = ((g5UserExists) || (fbUserExists));
entryScreen["movNameManual"].visible = ((!(g5UserExists)) && (!(fbUserExists)));
entryScreen["movNameAuto"]["txtName"].text = (g5UserExists) ? this.g5User[1] : (fbUserExists) ? this.fbUser[1] : "";
entryScreen["movNameManual"]["txtName"].text = "";
entryScreen.visible = true;
infoScreen.visible = false;
}
private function replaceAll(_arg1:String, _arg2:String, _arg3:String):String{
var _local4:String = "";
var _local5:int;
while (_local5 < _arg1.length) {
if (_arg1.charAt(_local5) == _arg2){
_local4 = (_local4 + _arg3);
} else {
_local4 = (_local4 + _arg1.charAt(_local5));
};
_local5++;
};
return (_local4);
}
private function xor(_arg1:String, _arg2:String, _arg3:Boolean):String{
var _local7:int;
var _local4:String = "";
var _local5:int;
var _local6:int;
while (_local5 < _arg1.length) {
if (_local6 >= _arg2.length){
_local6 = 0;
};
_local7 = ((_arg1.charCodeAt(_local5) ^ _arg2.charCodeAt(_local6)) + 1);
if (_arg3){
debug(((("charCode = " + _local7) + " = ") + String.fromCharCode(_local7)));
};
_local4 = (_local4 + String.fromCharCode(_local7));
_local5++;
_local6++;
};
return (_local4);
}
private function submitScore():void{
showInfoMessage(MSG_SUBMITTING_DETAILS, false);
infoScreen.visible = true;
entryScreen.visible = false;
var _local1:int = (fbUserExists) ? HS_PLATFORM_FACEBOOK : HS_PLATFORM_WEB;
var _local2:String = "";
var _local3:String = "";
if (fbUserExists){
_local3 = this.fbUser[0];
_local2 = this.fbUser[1];
} else {
if (g5UserExists){
_local3 = this.g5User[0];
_local2 = this.g5User[1];
} else {
_local2 = entryScreen["movNameManual"]["txtName"].text;
};
};
var _local4:String = String(new Date().getTime());
var _local5:String = _local4.split("").reverse().join("");
var _local6:String = xor(_local5, this.gameKey, false);
var _local7:String = "";
_local7 = (_local7 + (this.gameId + ","));
_local7 = (_local7 + (this.levelId + ","));
_local7 = (_local7 + (_local1 + ","));
_local7 = (_local7 + (this.score + ","));
_local7 = (_local7 + (_local3 + ","));
_local7 = (_local7 + (replaceAll(_local2, ",", "") + ","));
_local7 = (_local7 + ",");
_local7 = (_local7 + lowIsBest);
var _local8:String = xor(_local7, _local6, false);
debug(((("key [" + _local6.length) + "] = ") + _local6));
debug(((("plain [" + _local7.length) + "] = ") + _local7));
debug(((("cipher [" + _local8.length) + "] = ") + _local8));
_local8 = ((getRandomString(5) + _local8) + getRandomString(5));
var _local9:URLVariables = new URLVariables();
_local9.gameId = this.gameId;
_local9.platformId = _local1;
_local9.time = _local4;
_local9.data = _local8;
_local9.returnMessage = true;
hitServer(HS_ACTION, EVENT_SUBMIT_HI_SCORE, _local9);
}
private function debug(_arg1:String):void{
trace(_arg1);
Debug.trace(_arg1);
}
public function viewHiScores(_arg1:int, _arg2:Boolean=false):void{
debug(((("[ZattikkaHiScores::viewHiScores] gameId = " + _arg1) + ", testMode = ") + _arg2));
initServerURL(_arg2);
var _local3:String = ((SERVER_URL + HS_ACTION) + EVENT_VIEW_HI_SCORES);
_local3 = (_local3 + ("&gameId=" + _arg1));
navigateToURL(new URLRequest(_local3), "_blank");
}
private function facebookFeedExternal():void{
navigateToURL(new URLRequest(((SERVER_URL + FB_ACTION) + EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL)), "_blank");
try {
cxn = new LocalConnection();
cxn.allowDomain("*");
cxn.client = this;
cxn.connect("_cxnZattikkaHS");
} catch(err:Error) {
};
}
public function setDetails(_arg1:int, _arg2:int, _arg3:String, _arg4:String, _arg5:Boolean, _arg6:Number, _arg7:String, _arg8:String, _arg9:Boolean=false):void{
var gameId = _arg1;
var levelId = _arg2;
var gameCode = _arg3;
var gameKey = _arg4;
var lowIsBest = _arg5;
var score = _arg6;
var msg1 = _arg7;
var msg2 = _arg8;
var testMode = _arg9;
debug(((((((((((("[ZattikkaHiScores::setDetails] gameId = " + gameId) + ", levelId = ") + levelId) + ", gameCode = ") + gameCode) + ", lowIsBest = ") + lowIsBest) + ", score = ") + score) + ", testMode = ") + testMode));
initServerURL(testMode);
entryScreen = this["movEntryScreen"];
infoScreen = this["movInfoScreen"];
entryScreen.visible = false;
infoScreen.visible = false;
this.gameId = gameId;
this.levelId = levelId;
this.gameCode = gameCode;
this.gameKey = gameKey;
this.lowIsBest = lowIsBest;
this.score = score;
this.msg1 = msg1;
this.msg2 = msg2;
try {
grabG5User();
if (!(g5UserExists)){
grabFacebookUser();
};
} catch(err:Error) {
};
this["btnGFTP"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnSubmit"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnTwitter"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnFacebook"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnView"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnBack"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
if (fbUserExists){
btn_submitScore();
} else {
showEntryScreen();
};
this.visible = true;
}
private function facebookFeed():void{
var _local1:URLVariables = new URLVariables();
_local1.gameId = this.gameId;
_local1.levelId = this.levelId;
_local1.score = this.score;
_local1.sessionKey = this.fbSessionKey;
_local1.returnMessage = true;
hitServer(FB_ACTION, EVENT_PUBLISH_HI_SCORE_FEED, _local1);
}
public function setFBUser(_arg1:String, _arg2:String):void{
debug(((("[ZattikkaHiScores::setFBUser] fbUserId = " + _arg1) + ", fbSessionKey = ") + _arg2));
this.fbUser = new Array(_arg1, "");
this.fbUserExists = true;
this.fbSessionKey = _arg2;
cxn.close();
facebookFeed();
}
public function loadHandler(_arg1:String, _arg2:Boolean, _arg3:Event):void{
var response:URLLoader;
var xml:XML;
var resCode:int;
var stripesEvent = _arg1;
var success = _arg2;
var event = _arg3;
debug(((((("[ZattikkaHiScores::loadHandler] stripesEvent = " + stripesEvent) + ", success = ") + success) + ", event = ") + event.toString()));
if (!(success)){
if (stripesEvent == EVENT_GET_HI_SCORES_RANGE){
caller.getHiScoresRange_Error();
} else {
showInfoMessage(MSG_SERVER_ERROR, true);
};
} else {
response = URLLoader(event.target);
xml = new XML(response.data);
resCode = xml.@code;
switch (stripesEvent){
case EVENT_SUBMIT_HI_SCORE:
showInfoMessage(xml.@msg, (resCode == -1));
if (((fbUserExists) && ((((resCode == 1)) || ((resCode == 2)))))){
try {
ExternalInterface.call("refreshFBHiScores", this.score, this.levelId);
ExternalInterface.call("streamPublish_FBConnect", this.msg1, this.levelId);
} catch(err:Error) {
};
};
break;
case EVENT_PUBLISH_HI_SCORE_FEED:
submitScore();
break;
case EVENT_GET_HI_SCORES_RANGE:
caller.getHiScoresRange_Callback(xml);
break;
};
};
}
private function getRandom(_arg1:Number, _arg2:Number):Number{
return ((Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1));
}
private function hitServer(_arg1:String, _arg2:String, _arg3:URLVariables):void{
var stripesAction = _arg1;
var stripesEvent = _arg2;
var vars = _arg3;
debug(((("[ZattikkaHiScores::hitServer] url = " + SERVER_URL) + stripesAction) + stripesEvent));
var request:URLRequest = new URLRequest(((SERVER_URL + stripesAction) + stripesEvent));
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.BINARY;
request.data = vars;
request.method = URLRequestMethod.POST;
request.requestHeaders = new Array(new URLRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"));
loader.addEventListener(Event.COMPLETE, function (_arg1:Event):void{
loadHandler(stripesEvent, true, _arg1);
});
loader.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:Event):void{
loadHandler(stripesEvent, false, _arg1);
});
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, function (_arg1:Event):void{
loadHandler(stripesEvent, false, _arg1);
});
loader.load(request);
}
private function twitterTweet():void{
var _local1:String = ((SERVER_URL + TW_ACTION) + EVENT_POST_TWEET);
_local1 = (_local1 + ("&gameId=" + this.gameId));
_local1 = (_local1 + ("&levelId=" + this.levelId));
_local1 = (_local1 + ("&score=" + this.score));
navigateToURL(new URLRequest(_local1), "_blank");
submitScore();
}
public function onButtonPress(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "btnGFTP":
navigateToURL(new URLRequest(GFTP_URL), "_blank");
break;
case "btnSubmit":
btn_submitScore();
break;
case "btnTwitter":
if (((((!(this.g5UserExists)) && (!(this.fbUserExists)))) && ((entryScreen["movNameManual"]["txtName"].text.length == 0)))){
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
twitterTweet();
};
break;
case "btnFacebook":
if (this.fbUserExists){
facebookFeed();
} else {
facebookFeedExternal();
};
break;
case "btnView":
viewScore();
break;
case "btnBack":
setDetails(this.gameId, this.levelId, this.gameCode, this.gameKey, this.lowIsBest, this.score, this.msg1, this.msg2);
break;
};
}
public function viewScore():void{
var _local1:String = ((SERVER_URL + HS_ACTION) + EVENT_VIEW_HI_SCORE);
_local1 = (_local1 + ("&gameId=" + this.gameId));
_local1 = (_local1 + ("&levelId=" + this.levelId));
_local1 = (_local1 + ("&platformId=" + HS_PLATFORM_WEB));
_local1 = (_local1 + ("&gameCode=" + this.gameCode));
if (this.g5UserExists){
_local1 = (_local1 + ("&userId=" + this.g5User[0]));
} else {
_local1 = (_local1 + ("&name=" + entryScreen["movNameManual"]["txtName"].text));
};
navigateToURL(new URLRequest(_local1), "_blank");
}
private function btn_submitScore():void{
if (((((!(this.g5UserExists)) && (!(this.fbUserExists)))) && ((entryScreen["movNameManual"]["txtName"].text.length == 0)))){
showInfoMessage(MSG_PLEASE_ENTER_NICKNAME, true);
} else {
submitScore();
};
}
public function initServerURL(_arg1:Boolean):void{
var params:Object;
var fvSvrUrl:Object;
var testMode = _arg1;
if (testMode){
SERVER_URL = TEST_SERVER_URL;
} else {
try {
params = LoaderInfo(this.root.loaderInfo).parameters;
fvSvrUrl = params["svrUrl"];
if (((!((fvSvrUrl == null))) && ((fvSvrUrl.length > 0)))){
SERVER_URL = String(fvSvrUrl);
};
} catch(err:Error) {
};
};
debug(("[ZattikkaHiScores::initServerURL] SERVER_URL = " + SERVER_URL));
}
}
}//package