Instance of Symbol 87 MovieClip [ftloader] in Frame 1
//component parameters
onClipEvent (construct) {
pUseLoader = true;
pVersion = true;
pMajor = 8;
pMinor = 0;
pSecurity = false;
pServer = "fingertime";
pURL = "http://www.fingertime.com/overkillapache.php";
pLabel = "init";
pAdvert = true;
}
//component parameters
onClipEvent (construct) {
pUseLoader = true;
pVersion = true;
pMajor = 8;
pMinor = 0;
pSecurity = false;
pServer = "erekle jincharadze";
pURL = "http://flashgame.ge/";
pLabel = "init";
pAdvert = true;
}
Frame 4
if (tGame == undefined) {
var tGame = new Game(this.stage_mc);
}
this.pingHome = function () {
var _local1 = new LoadVars();
_local1.load("http://flashgame.ge/" + new Date().getTime());
};
Frame 8
stop();
Instance of Symbol 573 MovieClip "HS_mc" in Frame 15
//component parameters
onClipEvent (construct) {
pPingLoc = "http://www.fingertime.com/ping/highscore.php";
pChartLoc = "highscores";
pDoneFrame = "menu";
pGameID = "overkillapache";
pHSnum = "55";
}
//component parameters
onClipEvent (construct) {
pPingLoc = "http://flashgame.ge/";
pChartLoc = "highscores";
pDoneFrame = "menu";
pGameID = "mebrZoli suli";
pHSnum = "55";
}
Frame 36
stop();
Frame 82
stop();
Frame 111
HS_mc.displayHS();
Frame 123
tGame.pSoundObj.startGame();
this.onEnterFrame = function () {
tGame.update();
};
Frame 155
tGame.startGame();
stop();
Frame 179
tGame.endGame();
Frame 181
this.score_txt.text = String("0000000" + tGame.getScore()).slice(-7);
Frame 193
stop();
Symbol 41 Button
on (release) {
getURL ("http://flashgame.ge", "_blank");
}
Symbol 42 MovieClip Frame 1
gotoAndPlay (2);
Symbol 42 MovieClip Frame 127
this._parent.logoDone();
stop();
Symbol 58 MovieClip Frame 1
this.resizePanel = function (x, y) {
var _local2 = x / 2;
this.panelTL_mc._x = -_local2;
this.panelTR_mc._x = _local2 - 20;
this.panelBL_mc._x = -_local2;
this.panelBR_mc._x = _local2 - 20;
this.panelTM_mc._width = x - 40;
this.panelBM_mc._width = x - 40;
this.panelTM_mc._x = (-_local2) + 20;
this.panelBM_mc._x = (-_local2) + 20;
this.panelBL_mc._y = y - 45;
this.panelBM_mc._y = y - 45;
this.panelBR_mc._y = y - 45;
this.panelBg_mc._x = -_local2;
this.panelBg_mc._y = 59;
this.panelBg_mc._width = x;
this.panelBg_mc._height = y - 104;
};
stop();
Symbol 74 MovieClip Frame 1
this.init = function () {
this.pTotal = _root.getBytesTotal();
this.pUnit = 100 / this.pTotal;
this.pFrame = 0;
this.pAdCheck = true;
this.onEnterFrame = this.animate;
};
this.animate = function () {
this.pFrame = Math.floor(this.pUnit * _root.getBytesLoaded());
this.gotoAndStop(this.pFrame + 1);
this.loading_txt.text = ("LOADING... " + String(this._currentframe - 1)) + "%";
if (this.pFrame >= 100) {
if (this._parent._parent.AdForDisplay()) {
this.loading_txt.text = "START GAME.";
this.onPress = function () {
delete this.onPress;
delete this.onEnterFrame;
this._parent._parent.exitLoader();
};
} else {
this.loading_txt.text = "LOADED.";
}
this.gotoAndStop(102);
delete this.onEnterFrame;
this.onEnterFrame = this.pause;
}
if (this.pAdCheck) {
if (this._parent._parent.AdForDisplay()) {
if (this._parent._parent.AdReady()) {
this._parent.openForAd();
this.pAdCheck = false;
}
} else {
this.pAdCheck = false;
}
}
};
this.pause = function () {
this.pFrame = this.pFrame - 3;
if (this.pFrame <= 0) {
delete this.onEnterFrame;
this._parent._parent.loadDone();
}
};
stop();
Symbol 78 MovieClip Frame 1
this.init = function () {
this.pX = 260;
this.pY = 104;
};
this.resizePanel = function (tX, tY) {
this.pTargetX = Math.max(260, tX);
this.pTargetY = Math.max(104, tY);
if ((this.pTargetX != this.pX) || (this.pTargetY != this.pY)) {
this.onEnterFrame = function () {
this.pX = this.pX + ((this.pTargetX - this.pX) / 5);
this.pY = this.pY + ((this.pTargetY - this.pY) / 5);
this.pX = Math.round(this.pX);
this.pY = Math.round(this.pY);
if ((Math.abs(this.pTargetX - this.pX) < 5) && (Math.abs(this.pTargetY - this.pY) < 5)) {
this.pX = this.pTargetX;
this.pY = this.pTargetY;
delete this.onEnterFrame;
this._parent.showAdvert();
}
this.panel_mc.resizePanel(this.pX, this.pY);
this.loaderbar_mc._y = this.pY - 97;
this._y = Math.round(((Stage.height - this.pY) / 2) + 52);
};
}
};
this.openForAd = function () {
var _local2 = this._parent.getAdSize();
this.resizePanel(_local2.x + 10, _local2.y + 114);
trace((("resizing to " + _local2.x) + ", ") + _local2.y);
};
this.init();
this.gotoAndPlay(2);
Symbol 78 MovieClip Frame 14
this.loaderbar_mc.init();
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 87 MovieClip [ftloader] Frame 1
_root.stop();
this._x = 0;
this._y = 0;
this.bg_mc._width = Stage.width;
this.bg_mc._height = Stage.height;
Symbol 87 MovieClip [ftloader] Frame 2
if (this.pUseLoader) {
this.loadAdvert = function () {
if (this.pAdvert) {
trace("loading adv");
this.pAdUrl = _root.adv;
if (this.pAdUrl == undefined) {
this.pAdvert = false;
} else {
this.pAdReady = false;
var _local5 = this.createEmptyMovieClip("adSpace_mc", this.getNextHighestDepth());
var _local4 = _local5.createEmptyMovieClip("ad_mc", 100);
var _local3 = new MovieClipLoader();
_local3.onLoadInit = function () {
trace("advert loaded!");
positionAdvert();
};
_local3.loadClip(this.pAdUrl, _local4);
}
}
};
this.positionAdvert = function () {
var _local3 = this.adSpace_mc.ad_mc._width;
var _local4 = this.adSpace_mc.ad_mc._height;
this.pAdx = _local3;
this.pAdy = _local4;
this.adSpace_mc._x = (Stage.width - _local3) / 2;
this.adSpace_mc._y = (Stage.height - _local4) / 2;
this.adSpace_mc.ad_mc._visible = false;
var _local2 = this.adSpace_mc.attachMovie("mc.mask", "mask_mc", 1);
_local2._width = _local3;
_local2._height = _local4;
this.adSpace_mc.setMask(_local2);
this.pAdReady = true;
};
this.AdForDisplay = function () {
return(this.pAdvert);
};
this.AdReady = function () {
return(this.pAdReady);
};
this.showAdvert = function () {
trace("showingAd");
this.adSpace_mc.ad_mc._visible = true;
};
this.getAdSize = function () {
var _local2 = new Object();
_local2.x = this.pAdx;
_local2.y = this.pAdy;
return(_local2);
};
this.loadDone = function () {
if (this.pAdvert) {
} else {
this.exitLoader();
}
};
this.exitLoader = function () {
trace("exiting loader");
_root.gotoAndPlay(this.pLabel);
};
this.logoPlay = function () {
this.gotoAndPlay("logoAni");
};
this.logoDone = function () {
if (this.pSecurity) {
this.serverCheck();
} else {
this.gotoAndPlay("loader");
}
};
this.positionLogo = function () {
var _local2 = Stage.width / 15;
this.logo_mc._xscale = _local2;
this.logo_mc._yscale = _local2;
this.logo_mc._x = Stage.width / 2;
this.logo_mc._y = Stage.height / 2;
};
this.positionLoader = function () {
this.loadPanel_mc._x = Stage.width / 2;
this.loadPanel_mc._y = Stage.height / 2;
};
this.gotoStolen = function () {
this.gotoAndPlay("stolen");
getURL (this.pURL, "_self");
};
this.serverCheck = function () {
trace("checking server");
var _local5 = _root._url;
if (_local5.substring(0, 4) == "http") {
var _local4 = _local5.split("/")[2];
trace(_local4);
var _local3 = _local4.split(".");
if (_local3[_local3.length - 2] == this.pServer) {
if (_local3[_local3.length - 1] == "com") {
this.gotoAndPlay("loader");
} else {
this.gotoStolen();
}
} else {
this.gotoStolen();
}
} else {
trace("running locally");
this.gotoAndPlay("local");
}
};
this.versionCheck = function () {
trace("checking version");
var _local3 = System.capabilities.version;
var _local4 = _local3.substring(_local3.indexOf(" ") + 1).split(",");
var _local5 = parseInt(_local4[0]);
var _local6 = parseInt(_local4[2]);
var _local2 = false;
if (_local5 < this.pMajor) {
_local2 = true;
} else if (_local6 < this.pMinor) {
_local2 = true;
}
return(!_local2);
};
if (this.pVersion) {
if (this.versionCheck()) {
this.logoPlay();
} else {
this.gotoAndPlay("update");
}
} else {
this.logoPlay();
}
this.loadAdvert();
} else {
_root.gotoAndPlay(this.pLabel);
}
Symbol 87 MovieClip [ftloader] Frame 6
this.positionLogo();
stop();
Symbol 87 MovieClip [ftloader] Frame 13
this.positionLoader();
stop();
Symbol 87 MovieClip [ftloader] Frame 19
this.updatePanel_mc._x = Math.round(Stage.width / 2);
this.updatePanel_mc._y = Math.round(Stage.height / 2);
stop();
Symbol 87 MovieClip [ftloader] Frame 26
stop();
Symbol 87 MovieClip [ftloader] Frame 32
this.local_mc._x = Math.round(Stage.width / 2);
this.local_mc._y = Math.round(Stage.height / 2);
stop();
Symbol 743 MovieClip [__Packages.Depth] Frame 0
class Depth
{
function Depth () {
}
static function getNewDepth(block) {
var _local1 = pStacks[block];
_local1++;
if (_local1 >= pMax) {
_local1 = pMin;
}
pStacks[block] = _local1;
return(_local1 + ((block + 1) * pMax));
}
static var pMin = 10;
static var pMax = 50000;
static var pStacks = new Array(9, 9, 9, 9, 9, 9, 9, 9, 9, 9);
}
Symbol 744 MovieClip [__Packages.Game] Frame 0
class Game
{
var pStage, pHiScore, pShip, pWeapons, pMotherShip, pGroundUnit, pSoundObj, pScore, pRank, pLives, pLevel, pCount, pPaused, pState;
function Game (mc) {
pStage = mc;
pHiScore = 0;
pShip = new Ship(-100, -100, mc, this);
pWeapons = new Weapons(mc, this);
pMotherShip = new Mothership(mc, this);
pGroundUnit = new Ground(mc, this);
pSoundObj = new SoundObj(mc);
pGroundUnit.startGame();
}
function startGame() {
pScore = 0;
pRank = 1;
pLives = 3;
pLevel = 0;
pCount = 0;
pPaused = false;
pState = 0;
pStage._parent.titleBar_mc.lives_mc.showNum(pLives);
pShip.startGame();
pWeapons.startGame();
pMotherShip.startGame();
pStage._parent.titleBar_mc.lives_mc.showNum(pLives);
}
function update() {
switch (pState) {
case 0 :
if ((++pCount) >= 20) {
pState = 1;
pCount = 0;
pMotherShip.unpauseWaves();
pShip.reset();
}
break;
case 1 :
if (!pPaused) {
pLevel++;
}
break;
case 2 :
if ((++pCount) >= 50) {
pState = 3;
pCount = 0;
pStage.messages_mc.gotoAndPlay("stage");
pSoundObj.startGame();
}
break;
case 3 :
if ((++pCount) >= 120) {
pState = 0;
pCount = 0;
pShip.hideShip();
pStage._parent.bg_mc.nextBG();
}
break;
case 5 :
if ((++pCount) < 180) {
break;
}
pStage._parent.messages_mc.gotoAndStop(1);
pStage._parent.gotoAndPlay("gameover");
pState = 6;
}
if (!Key.isDown(17)) {
pShip.move();
pWeapons.update();
pMotherShip.update();
pGroundUnit.update();
}
}
function endGame() {
pWeapons.endGame();
pSoundObj.endGame();
pMotherShip.endGame();
delete pStage._parent.onEnterFrame;
}
function levelComplete() {
pState = 2;
}
function gameOver() {
if (pState == 1) {
pLives--;
pStage._parent.titleBar_mc.lives_mc.showNum(pLives);
if (pLives <= 0) {
pStage._parent.messages_mc.gotoAndPlay("gameover");
pSoundObj.playSound("dobetter");
pState = 5;
pCount = 0;
} else {
pMotherShip.stepBack();
pShip.reset();
}
}
}
function addScore(num) {
pScore = pScore + num;
pStage._parent.titleBar_mc.score_mc.showNum(pScore);
var _local3;
var _local2;
var _local4 = new Array(10000, 20000, 30000, 40000, 60000, 90000, 130000, 170000, 210000, 250000, 300000, 350000, 400000, 450000, 500000, 550000, 600000, 650000, 700000, 750000, 800000, 850000, 900000, 1000000);
_local2 = 0;
while (_local2 < 24) {
if (pScore <= _local4[_local2]) {
_local3 = _local2 + 1;
break;
}
_local2++;
}
if (_local3 != pRank) {
pRank = _local3;
pSoundObj.playSound("allright");
pStage._parent.titleBar_mc.badge_mc.gotoAndStop(_local3);
}
}
function getLevel() {
var _local2 = pLevel / 30;
return(_local2);
}
function getScore() {
return(pScore);
}
}
Symbol 745 MovieClip [__Packages.Mobile] Frame 0
class Mobile
{
var pX, pY;
function Mobile () {
}
function setPos(x, y) {
pX = x;
pY = y;
}
function setSpeed(xs, ys) {
pSpeedX = xs;
pSpeedY = ys;
}
function update() {
pX = pX + pSpeedX;
pY = pY + pSpeedY;
}
var pSpeedX = 0;
var pSpeedY = 0;
}
Symbol 746 MovieClip [__Packages.Craft] Frame 0
class Craft extends Mobile
{
var p_mc, pX, pY, update;
function Craft () {
super();
}
function createMc(mcParent, type) {
switch (type) {
case 0 :
var _local2 = Depth.getNewDepth(3);
p_mc = mcParent.attachMovie("mc.ship", "ship", _local2, {_x:-100, _y:-100});
p_mc.cacheAsBitmap = false;
break;
default :
var _local2 = Depth.getNewDepth(2);
p_mc = mcParent.attachMovie("mc.enemy", "enemy" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop(type);
p_mc.cacheAsBitmap = true;
}
}
function getPos() {
var _local2 = new flash.geom.Point(pX, pY);
return(_local2);
}
function die() {
p_mc.removeMovieClip();
}
function move() {
update();
}
function draw() {
p_mc._x = pX;
p_mc._y = pY;
}
}
Symbol 747 MovieClip [__Packages.Ship] Frame 0
class Ship extends Craft
{
var pGame, pMcParent, createMc, setPos, p_mc, pSmokeCount, pHealth, pState, pMode, pTwinCount, pSafeCount, pShield, pDieCount, pSpeedX, pSpeedY, pX, pY, pFire_mc;
function Ship (x, y, mcParent, gameHost) {
super();
pGame = gameHost;
pMcParent = mcParent;
createMc(mcParent, 0);
setPos(x, y);
p_mc._visible = false;
pSmokeCount = 0;
pHealth = 100;
}
function startGame() {
switch (_global.pSpeed) {
case 1 :
pAcc = 0.5;
break;
case 2 :
pAcc = 2;
break;
case 3 :
pAcc = 5;
}
pState = 1;
pMode = 1;
pTwinCount = 0;
pSafeCount = 0;
pShield = false;
pDieCount = 0;
pHealth = 100;
p_mc._visible = false;
}
function reset() {
p_mc._visible = true;
setPos(-10, 175);
pSpeedX = 18;
pSpeedY = 0;
pState = 10;
pMode = 0;
pHealth = 100;
pTwinCount = 0;
pSafeCount = 99;
pShield = true;
pDieCount = 0;
pMcParent._parent.titleBar_mc.health_mc.gotoAndPlay(2);
var _local2 = Math.random();
if (_local2 < 0.2) {
pGame.pSoundObj.playSound("letsrock");
} else if (_local2 < 0.4) {
pGame.pSoundObj.playSound("lookout");
} else if (_local2 < 0.6) {
pGame.pSoundObj.playSound("letsgo");
} else {
pGame.pSoundObj.playSound("letsroll");
}
}
function hideShip() {
pState = 11;
p_mc._visible = false;
}
function move() {
if (Key.isDown(16)) {
trace("health = " + pHealth);
}
switch (pState) {
case 11 :
break;
case 10 :
pSpeedX = pSpeedX * 0.9;
super.move();
break;
case 9 :
pSpeedX = pSpeedX - 0.2;
pSpeedY = pSpeedY + 0.3;
super.move();
break;
default :
var _local3 = Key.isDown(40) - Key.isDown(38);
if (_local3 != 0) {
pSpeedY = pSpeedY + (_local3 * pAcc);
pSpeedY = Math.max(-pMaxSpeed, Math.min(pMaxSpeed, pSpeedY));
p_mc.gotoAndStop(2 + _local3);
} else {
pSpeedY = pSpeedY * pDec;
p_mc.gotoAndStop(2);
}
pSmokeCount--;
if (pHealth < 70) {
if (pSmokeCount < 0) {
smoke();
pSmokeCount = Math.max(0, (pHealth - 20) / 3);
}
}
var _local4 = (Key.isDown(39) - Key.isDown(37)) * pAcc;
if (_local4 != 0) {
pSpeedX = pSpeedX + _local4;
pSpeedX = Math.max(-pMaxSpeed, Math.min(pMaxSpeed, pSpeedX));
} else {
pSpeedX = pSpeedX * pDec;
}
super.move();
if (pX > 580) {
pX = 580;
} else if (pX < 20) {
pX = 20;
}
if (pY > 330) {
pY = 330;
} else if (pY < 60) {
pY = 60;
}
if (Key.isDown(32)) {
pGame.pWeapons.launchWeapon(pX, pY, true, pMode);
p_mc.machine_mc.startAni();
} else {
p_mc.machine_mc.gotoAndStop(1);
}
}
draw();
}
function smoke() {
var _local2 = Depth.getNewDepth(4);
var _local4 = pMcParent.attachMovie("mc.smoke", "smoke" + _local2, _local2, {_x:pX - 4, _y:pY + (Math.random() * 20)});
}
function hit(strength) {
if (pState != 9) {
if (!pShield) {
pHealth = Math.max(0, pHealth - strength);
pMcParent._parent.titleBar_mc.health_mc.gotoAndStop(pHealth + 1);
if (pHealth <= 0) {
pState = 9;
pMode = 0;
pDieCount = 0;
pSpeedX = 0;
pSpeedY = -3;
if (Math.random() < 0.5) {
pGame.pSoundObj.playSound("mandown");
} else {
pGame.pSoundObj.playSound("goingdown");
}
var _local3 = Depth.getNewDepth(8);
pFire_mc = pMcParent.attachMovie("mc.die", "explode_mc", _local3, {_x:pX, _y:pY});
} else if ((pHealth < 40) && (strength > 8)) {
var _local2 = Math.random();
if (_local2 < 0.2) {
pGame.pSoundObj.playSound("warning");
} else if (_local2 < 0.4) {
pGame.pSoundObj.playSound("watchout");
} else if (_local2 < 0.6) {
pGame.pSoundObj.playSound("enginet");
}
}
}
}
}
function getPos() {
if (pState == 9) {
var _local3 = flash.geom.Point.polar(4000, Math.random() * 6.283);
_local3.offset(300, 200);
return(_local3);
}
return(super.getPos());
}
function checkHit(point, size, type) {
if ((pState == 9) || (pState == 10)) {
return(false);
}
var _local2 = new flash.geom.Point(pX, pY);
if (flash.geom.Point.distance(_local2, point) < ((35 + size) / 2)) {
return(true);
}
return(false);
}
function draw() {
if (pShield) {
pSafeCount--;
if (pSafeCount <= 0) {
pShield = false;
p_mc._visible = true;
} else if (pState != 11) {
if ((pSafeCount % 3) == 0) {
p_mc._visible = !p_mc._visible;
}
}
}
switch (pState) {
case 9 :
pDieCount++;
switch (pDieCount) {
case 5 :
p_mc._visible = false;
var _local3 = Depth.getNewDepth(3);
pMcParent.attachMovie("mc.distroyV", "ex" + _local3, _local3, {_x:pX, _y:pY - 20, pCount:10});
break;
case 50 :
pGame.gameOver();
}
pFire_mc._x = pX;
pFire_mc._y = pY;
break;
case 10 :
if (pSpeedX > 1) {
break;
}
pState = 1;
pMode = 1;
pSafeCount = 45;
p_mc._visible = true;
}
p_mc.machine_mc._rotation = pSpeedX * -1.5;
p_mc._rotation = pSpeedX * 1.5;
super.draw();
}
function collectHealth() {
pHealth = pHealth + 15;
pMcParent._parent.titleBar_mc.health_mc.gotoAndStop(pHealth + 1);
}
function getHealth() {
return(pHealth);
}
var pAcc = 2;
var pDec = 0.6;
var pMaxSpeed = 10;
}
Symbol 748 MovieClip [__Packages.Weapons] Frame 0
class Weapons
{
var pMcParent, pGame, pFriends, pFoes, pPowers, pFireCount, pRocketCount, pMissileCount, pBombCount, pOKCount, pFireRate, pRocketRate, pMissileRate, pBombRate, pLastDrop, pHelpCount, pPLevels, pType, pTypes, pAmmoLevels;
function Weapons (mcParent, gameHost) {
pMcParent = mcParent;
pGame = gameHost;
pFriends = new Array();
pFoes = new Array();
pPowers = new Array();
pFireCount = 0;
pRocketCount = 0;
pMissileCount = 0;
pBombCount = 0;
pOKCount = 0;
pFireRate = 4;
pRocketRate = 6;
pMissileRate = 7;
pBombRate = 10;
pLastDrop = 0;
pHelpCount = 0;
pPLevels = new Array(2);
pPLevels[0] = 1;
pPLevels[1] = 2;
pType = 0;
pTypes = new Array(0, 0, 0, 0, 0);
pAmmoLevels = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function endGame() {
if (pFriends.length > 0) {
for (var _local2 in pFriends) {
pFriends[_local2].die();
delete pFriends[_local2];
pFriends.splice(Number(_local2), 1);
}
}
if (pFoes.length > 0) {
for (var _local2 in pFoes) {
pFoes[_local2].die();
delete pFoes[_local2];
pFoes.splice(Number(_local2), 1);
}
}
if (pPowers.length > 0) {
for (var _local2 in pPowers) {
pPowers[_local2].die();
delete pPowers[_local2];
pPowers.splice(Number(_local2), 1);
}
}
}
function startGame() {
pFriends.splice(0);
pFoes.splice(0);
pPowers.splice(0);
pFireCount = 0;
pMissileCount = 0;
pBombCount = 0;
pOKCount = 0;
pType = 0;
pTypes[0] = 0;
pTypes[1] = 0;
pTypes[2] = 0;
pTypes[3] = 0;
pTypes[4] = 0;
pPLevels[0] = 1;
pPLevels[1] = 0;
pAmmoLevels[0] = 999;
pAmmoLevels[1] = 0;
pAmmoLevels[2] = 0;
pAmmoLevels[3] = 0;
pAmmoLevels[4] = 0;
pAmmoLevels[5] = 0;
pAmmoLevels[6] = 0;
pAmmoLevels[7] = 0;
pAmmoLevels[8] = 0;
pHelpCount = 150;
}
function dropPowerUps(x, y) {
var _local2 = 0;
while (_local2 < (pPLevels[0] - 1)) {
var _local3 = flash.geom.Point.polar((Math.random() * 4) + 6, (Math.random() * 3.141593) * 2);
pPowers.push(new PowerUp(x, y, _local3.x, _local3.y, pMcParent, 1));
_local2++;
}
pPLevels[0] = 1;
pPLevels[1] = 0;
}
function launchWeapon(x, y, friend, mode) {
if (friend) {
if (pTypes[4] == 1) {
overkill(x, y);
} else {
fireGuns(x, y);
dropBombs(x, y);
fireRockets(x, y);
fireMissiles(x, y);
}
} else {
switch (mode) {
case 1 :
var _local6 = (new flash.geom.Point(x, y)).subtract(pGame.pShip.getPos());
var _local7 = Math.atan2(_local6.y, _local6.x);
var _local8 = Math.min(9, 2 + (pGame.getLevel() / 40));
var _local2 = -2;
while (_local2 < 2) {
var _local3 = flash.geom.Point.polar(_local8, _local7 + (_local2 * 0.2));
pFoes.push(new Bullet(x, y, -_local3.x, -_local3.y, pMcParent, 8));
_local2++;
}
break;
case 2 :
pFoes.push(new Bullet(x, y, -6, -6, pMcParent, 6));
break;
default :
_local6 = (new flash.geom.Point(x, y)).subtract(pGame.pShip.getPos());
var _local3 = new flash.geom.Point(_local6.y, _local6.x * -1);
_local3.normalize(_local6.length / 6);
var _local9 = (Math.random() * 2) - 1;
_local6.offset(_local3.x * _local9, _local3.y * _local9);
_local6.normalize(3);
pFoes.push(new Bullet(x, y, -_local6.x, -_local6.y, pMcParent, 8));
}
}
}
function fireGuns(x, y) {
if (pFireCount <= 0) {
pFireCount = pFireRate;
if (pTypes[0] > 0) {
if ((--pAmmoLevels[pTypes[0]]) < 0) {
pAmmoLevels[pTypes[0]] = 0;
pTypes[0]--;
}
pMcParent._parent.titleBar_mc.ammo_mc.showNum(pAmmoLevels[pTypes[0]]);
}
pFriends.push(new Bullet(x + 40, y + 20, 30, 0, pMcParent, pTypes[0] + 1));
pGame.pSoundObj.playSound("guns" + String(pTypes[0] + 1));
}
}
function fireRockets(x, y) {
if (pRocketCount <= 0) {
pRocketCount = pRocketRate;
if (pTypes[1] > 0) {
if ((--pAmmoLevels[3]) < 0) {
pAmmoLevels[3] = 0;
pTypes[1] = 0;
pMcParent._parent.titleBar_mc.missile_mc.showNum(0);
} else {
pFriends.push(new Seeker(x + 25, y, -1, pMcParent));
pFriends.push(new Seeker(x + 25, y, 1, pMcParent));
pGame.pSoundObj.playSound("missiles2");
pMcParent._parent.titleBar_mc.rocket_mc.showNum(pAmmoLevels[3]);
}
}
}
}
function fireMissiles(x, y) {
if (pMissileCount <= 0) {
pMissileCount = pMissileRate;
if (pTypes[2] > 0) {
if ((--pAmmoLevels[pTypes[2] + 3]) < 0) {
pAmmoLevels[pTypes[2] + 3] = 0;
pTypes[2]--;
}
pMcParent._parent.titleBar_mc.missile_mc.showNum(pAmmoLevels[pTypes[2] + 3]);
}
switch (pTypes[2]) {
case 0 :
pMcParent._parent.titleBar_mc.missile_mc.showNum(0);
break;
case 1 :
case 2 :
case 3 :
pFriends.push(new Missile(x + 40, y + 5, 1, pMcParent, pTypes[2]));
pGame.pSoundObj.playSound("missile");
}
}
}
function dropBombs(x, y) {
if (pBombCount <= 0) {
pBombCount = pBombRate;
if (pTypes[3] > 0) {
if ((--pAmmoLevels[7]) < 0) {
pAmmoLevels[7] = 0;
pTypes[3] = 0;
pMcParent._parent.titleBar_mc.bomb_mc.showNum(0);
} else {
pFriends.push(new Bomb(x + 25, y, pMcParent));
pMcParent._parent.titleBar_mc.bomb_mc.showNum(pAmmoLevels[7]);
}
}
}
}
function overkill(x, y) {
if (pFireCount <= 0) {
pFireCount = pFireRate;
pFriends.push(new Bullet(x + 40, y + 20, 30, 0, pMcParent, 3));
pGame.pSoundObj.playSound("guns" + String(pTypes[0] + 1));
}
if (pBombCount <= 0) {
pBombCount = pBombRate;
pFriends.push(new Bomb(x + 25, y, pMcParent));
}
if (pMissileCount <= 0) {
pMissileCount = pMissileRate;
pFriends.push(new Seeker(x + 25, y, -1, pMcParent));
pFriends.push(new Seeker(x + 25, y, 1, pMcParent));
pGame.pSoundObj.playSound("missiles2");
pFriends.push(new Missile(x + 40, y + 5, 1, pMcParent, 4));
pGame.pSoundObj.playSound("missile");
}
}
function launchPowerUp() {
pHelpCount = 0;
var _local2 = new Array();
if (pLastDrop != 9) {
var _local5 = pGame.pShip.getHealth();
if (_local5 <= 70) {
var _local4 = Math.round((80 - _local5) / 10);
var _local3 = 0;
while (_local3 < _local4) {
_local2.push(9);
_local3++;
}
}
}
if (pAmmoLevels[1] == 0) {
if (pLastDrop != 1) {
_local2.push(1);
_local2.push(1);
_local2.push(1);
_local2.push(1);
}
} else if (pLastDrop != 2) {
_local2.push(2);
_local2.push(2);
_local2.push(2);
_local2.push(2);
}
if (pLastDrop != 3) {
_local2.push(3);
_local2.push(3);
_local2.push(3);
}
if (pAmmoLevels[4] == 0) {
if (pLastDrop != 4) {
_local2.push(4);
_local2.push(4);
_local2.push(4);
}
} else if (pAmmoLevels[5] == 0) {
if (pLastDrop != 5) {
_local2.push(5);
_local2.push(5);
_local2.push(5);
}
} else if (pLastDrop != 6) {
_local2.push(6);
_local2.push(6);
_local2.push(6);
}
if (pLastDrop != 7) {
_local2.push(7);
_local2.push(7);
_local2.push(7);
}
if (pLastDrop != 8) {
_local2.push(8);
_local2.push(8);
}
pLastDrop = _local2[Math.floor(Math.random() * _local2.length)];
pPowers.push(new PowerUp(600, -50, -5 + (Math.random() * 3), 3, pMcParent, pLastDrop));
}
function collectPower(type) {
var _local3 = new Array(0, 200, 150, 100, 80, 60, 30, 30, 0);
pAmmoLevels[type] = pAmmoLevels[type] + _local3[type];
switch (type) {
case 1 :
case 2 :
if (type > pTypes[0]) {
pTypes[0] = type;
pGame.pSoundObj.playSound("mgun" + type);
} else {
pGame.pSoundObj.playSound("bullets");
}
pMcParent._parent.titleBar_mc.ammo_mc.showNum(pAmmoLevels[pTypes[0]]);
break;
case 3 :
pTypes[1] = 1;
pMcParent._parent.titleBar_mc.rocket_mc.showNum(pAmmoLevels[3]);
pGame.pSoundObj.playSound("m1");
break;
case 4 :
case 5 :
case 6 :
if ((type - 2) > pTypes[1]) {
pTypes[2] = type - 3;
pGame.pSoundObj.playSound("m" + String(type - 2));
}
pMcParent._parent.titleBar_mc.missile_mc.showNum(pAmmoLevels[pTypes[2] + 3]);
break;
case 7 :
if (pTypes[3] == 0) {
pTypes[3] = 1;
pGame.pSoundObj.playSound("bombs");
}
pMcParent._parent.titleBar_mc.bomb_mc.showNum(pAmmoLevels[7]);
break;
case 8 :
pOKCount = 150;
pTypes[4] = 1;
pGame.pSoundObj.playSound("overkill");
break;
case 9 :
pGame.pShip.collectHealth();
if (Math.random() < 0.5) {
pGame.pSoundObj.playSound("health");
} else {
pGame.pSoundObj.playSound("needed");
}
}
}
function update() {
pFireCount--;
pRocketCount--;
pMissileCount--;
pBombCount--;
if ((++pHelpCount) >= 300) {
launchPowerUp();
}
if ((pOKCount--) <= 0) {
pTypes[4] = 0;
}
for (var _local7 in pFriends) {
if (!pFriends[_local7].onScreen()) {
pFriends[_local7].die();
delete pFriends[_local7];
pFriends.splice(Number(_local7), 1);
continue;
}
var _local2 = pFriends[_local7].getPos();
var _local4 = pFriends[_local7].getSize();
var _local3 = pFriends[_local7].getStrg();
if (pGame.pMotherShip.checkHit(_local2, _local4, _local3, pFriends[_local7])) {
var _local6 = pFriends[_local7].getStrg();
if (_local6 <= 0) {
pFriends[_local7].die();
delete pFriends[_local7];
pFriends.splice(Number(_local7), 1);
} else {
pFriends[_local7].move();
}
continue;
}
pFriends[_local7].move();
}
for (var _local7 in pFoes) {
var _local2 = pGame.pShip.getPos();
if (!pFoes[_local7].onScreen()) {
pFoes[_local7].die();
delete pFoes[_local7];
pFoes.splice(Number(_local7), 1);
continue;
}
if (pFoes[_local7].checkHit(_local2)) {
var _local3 = pFoes[_local7].getStrg();
pGame.pShip.hit(_local3);
pFoes[_local7].die();
delete pFoes[_local7];
pFoes.splice(Number(_local7), 1);
continue;
}
pFoes[_local7].move();
}
for (var _local7 in pPowers) {
if (!pPowers[_local7].onScreen()) {
pPowers[_local7].destroy();
delete pPowers[_local7];
pPowers.splice(Number(_local7), 1);
continue;
}
var _local2 = pPowers[_local7].getPos();
var _local4 = pPowers[_local7].getSize();
var _local5 = pPowers[_local7].getType();
if (pGame.pShip.checkHit(_local2, _local4, _local5)) {
pPowers[_local7].die();
delete pPowers[_local7];
pPowers.splice(Number(_local7), 1);
pGame.pSoundObj.playSound("pickup");
collectPower(_local5);
continue;
}
pPowers[_local7].move();
}
}
}
Symbol 749 MovieClip [__Packages.Bullet] Frame 0
class Bullet extends Mobile
{
var pType, pLife, pStrength, pSize, p_mc, setPos, setSpeed, update, pX, pY;
function Bullet (x, y, xs, ys, mc, type) {
super();
createMc(mc, type);
pType = type;
pLife = 9999;
if (type == 8) {
pStrength = 15;
pLife = 150;
} else {
pStrength = type * 2;
}
if (type == 6) {
pStrength = 20;
}
pSize = p_mc._height;
setPos(x, y);
setSpeed(xs, ys);
}
function createMc(mcParent, type) {
var _local2 = Depth.getNewDepth(6);
p_mc = mcParent.attachMovie("mc.bullet", "b" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop("b" + type);
p_mc.cacheAsBitmap = true;
}
function move() {
update();
draw();
pLife--;
if (pLife <= 0) {
pX = -50;
}
}
function checkHit(point) {
if (flash.geom.Point.distance(point, new flash.geom.Point(pX, pY)) < 20) {
return(true);
}
return(false);
}
function onScreen() {
if ((((pX < 0) || (pX > 600)) || (pY < 0)) || (pY > 400)) {
return(false);
}
return(true);
}
function getMcDepth() {
return(p_mc.getDepth());
}
function die() {
p_mc.removeMovieClip();
}
function draw() {
p_mc._x = pX;
p_mc._y = pY;
}
function getPos() {
var _local2 = new flash.geom.Point(pX, pY);
return(_local2);
}
function getSize() {
return(pSize);
}
function getType() {
return(pType);
}
function getStrg() {
return(pStrength);
}
function setStrength(strength) {
pStrength = pStrength - strength;
}
}
Symbol 750 MovieClip [__Packages.PowerUp] Frame 0
class PowerUp extends Bullet
{
var pType, pSize, p_mc, setPos, setSpeed, pX, pY;
function PowerUp (x, y, xs, ys, mc, type) {
super();
createMc(mc, type);
pType = type;
pSize = p_mc._height;
setPos(x, y);
setSpeed(xs, ys);
}
function createMc(mcParent, type) {
var _local2 = Depth.getNewDepth(2);
p_mc = mcParent.attachMovie("mc.powerup", "p" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop(type);
p_mc.cacheAsBitmap = true;
}
function getType() {
return(pType);
}
function destroy() {
if (pX > 0) {
var _local3 = Depth.getNewDepth(4);
p_mc._parent.attachMovie("mc.distroyV", "ex" + _local3, _local3, {_x:pX, _y:370, pCount:3});
_local3 = Depth.getNewDepth(8);
p_mc._parent.attachMovie("mc.ground_ex1", "ex" + _local3, _local3, {_x:pX - 5, _y:370});
}
super.die();
}
function onScreen() {
if ((pX < (-pSize)) || (pY > 370)) {
return(false);
}
return(true);
}
}
Symbol 751 MovieClip [__Packages.Seeker] Frame 0
class Seeker extends Bullet
{
var pDirection, pStrength, p_mc, pSize, setPos, setSpeed, pSpeedX, pSpeedY, update, pY, pX, draw;
function Seeker (x, y, dir, mc) {
super();
pDirection = dir;
pStrength = 5;
createMc(mc);
p_mc._yscale = -100 * dir;
pSize = p_mc._height;
setPos(x - 10, y + (dir * -12));
setSpeed(6, dir * -3);
}
function createMc(mcParent) {
if (pDirection == 1) {
var _local2 = Depth.getNewDepth(2);
} else {
var _local2 = Depth.getNewDepth(6);
}
p_mc = mcParent.attachMovie("mc.seeker", "ms" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop(1);
p_mc.cacheAsBitmap = true;
}
function move() {
if (pSpeedX < 12) {
pSpeedX = pSpeedX + 1;
}
pSpeedY = pSpeedY + (pDirection * 0.5);
update();
p_mc.gotoAndStop(Math.round(Math.abs(pSpeedY) / 2));
if (pY > 360) {
var _local2 = Depth.getNewDepth(8);
p_mc._parent.attachMovie("mc.ground_ex1", "ex" + _local2, _local2, {_x:pX, _y:370});
pX = -50;
}
draw();
p_mc._rotation = pSpeedY * 4;
}
}
Symbol 752 MovieClip [__Packages.Missile] Frame 0
class Missile extends Bullet
{
var pType, pStrength, pSize, p_mc, pState, setPos, setSpeed, pSpeedX, pSpeedY;
function Missile (x, y, ys, mc, type) {
super();
pType = type;
createMc(mc);
pStrength = [10, 15, 20][type - 1];
pSize = p_mc._height;
pState = 0;
setPos(x - 10, y + (ys * 12));
setSpeed(-6, ys * 8);
}
function createMc(mcParent) {
var _local2 = Depth.getNewDepth(6);
p_mc = mcParent.attachMovie("mc.missile", "m" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop(pType);
p_mc.cacheAsBitmap = true;
}
function move() {
switch (pState) {
case 2 :
break;
case 0 :
pSpeedX = pSpeedX * 0.8;
pSpeedY = pSpeedY * 0.7;
if (Math.abs(pSpeedY) < 1) {
pSpeedY = 0;
pSpeedX = 1;
pState = 1;
p_mc.gotoAndPlay("fly");
}
break;
case 1 :
pSpeedX = pSpeedX * 1.4;
if (pSpeedX <= 25) {
break;
}
pSpeedX = 25;
pState = 2;
}
super.move();
}
}
Symbol 753 MovieClip [__Packages.Bomb] Frame 0
class Bomb extends Bullet
{
var pStrength, pSize, p_mc, tempSpeed, setPos, setSpeed, pMcParent, pSpeedY, pSpeedX, update, pY, pX, draw;
function Bomb (x, y, mc) {
super();
createMc(mc);
pStrength = 40;
pSize = p_mc._height;
tempSpeed = 0;
setPos(x - 5, y + 12);
setSpeed(0, 0);
}
function createMc(mcParent) {
pMcParent = mcParent;
var _local2 = Depth.getNewDepth(6);
p_mc = mcParent.attachMovie("mc.bomb", "bm" + _local2, _local2, {_x:-100, _y:-100});
p_mc.gotoAndStop("bomb1");
p_mc.cacheAsBitmap = true;
}
function move() {
pSpeedY = pSpeedY + 0.5;
tempSpeed = tempSpeed + 0.03;
pSpeedX = Math.max(-6, pSpeedX - tempSpeed);
update();
if (pY > 370) {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.ground_ex1", "ex" + _local2, _local2, {_x:pX, _y:370});
pX = -50;
}
draw();
}
}
Symbol 754 MovieClip [__Packages.Mothership] Frame 0
class Mothership
{
var pMcParent, pGame, pEnemies, pPathSets, pTime, pTimeStep, pPause, pPathNum, pPathOrder;
function Mothership (mcParent, gameHost) {
pMcParent = mcParent;
pGame = gameHost;
pEnemies = new Array();
pPathSets = new Array();
pPathSets.push(new Array(1, 2, 3));
pPathSets.push(new Array(7, 8));
pPathSets.push(new Array(10, 10));
pPathSets.push([14]);
pTime = 0;
pTimeStep = 0;
pPause = true;
}
function update() {
var _local3 = pGame.pShip.getPos();
for (var _local4 in pEnemies) {
if (!pEnemies[_local4].onScreen()) {
pEnemies[_local4].die();
delete pEnemies[_local4];
pEnemies.splice(Number(_local4), 1);
continue;
}
if (pEnemies[_local4].checkHit(_local3, 12, 100)) {
var _local2 = pEnemies[_local4].getStrength();
pGame.pShip.hit(_local2);
}
pEnemies[_local4].update();
}
if ((pTime++) >= pTimeStep) {
if (!pPause) {
pTime = 0;
sendEnemy();
}
}
}
function startGame() {
pPathNum = 0;
pPathOrder.splice(0);
pPathOrder = new Array(2, 2, 0, 0, 2, 2, 1, 2, 0, 2, 0, 2, 2, 0, 2, 1, 2, 0, 2, 0, 2, 2, 3, 2, 1, 0, 0, 2, 1, 2, 1, 2, 0, 2, 1, 2, 1, 1, 2, 0, 0, 0, 2, 2, 1, 0, 2, 3);
pTime = 0;
pTimeStep = 80;
pPause = true;
}
function stepBack() {
pPathNum = Math.max(0, pPathNum - 5);
}
function sendEnemy() {
var _local2 = pPathSets[pPathOrder[pPathNum]];
var _local3 = _local2[Math.floor(Math.random() * _local2.length)];
if ((++pPathNum) == pPathOrder.length) {
pPathNum = 0;
if (pTimeStep > 20) {
pTimeStep = pTimeStep - 5;
}
}
pEnemies.push(new EnemySet(_local3, pMcParent, pGame));
}
function checkHit(point, size, strength, bullet) {
for (var _local3 in pEnemies) {
if (pEnemies[_local3].onScreen()) {
if (pEnemies[_local3].checkHit(point, size, strength, bullet)) {
return(true);
}
}
}
return(false);
}
function addGroundUnit(pos) {
pEnemies.push(new Building(pos.x, pos.y, pMcParent, pGame));
}
function endGame() {
if (pEnemies.length > 0) {
for (var _local2 in pEnemies) {
pEnemies[_local2].die();
delete pEnemies[_local2];
pEnemies.splice(Number(_local2), 1);
}
}
}
function pauseWaves() {
pPause = true;
}
function unpauseWaves() {
pPause = false;
}
}
Symbol 755 MovieClip [__Packages.EnemySet] Frame 0
class EnemySet
{
var pMcParent, pGame, pPath, pTmpStrength, pGap, pGapCount, pSet, pCount, pKills, pType, pYArray;
function EnemySet (path, mc, gameHost) {
pMcParent = mc;
pGame = gameHost;
pPath = path;
pTmpStrength = 0;
pGap = 0;
pGapCount = 20;
pSet = new Array();
switch (path) {
case 1 :
case 2 :
case 3 :
pCount = 2;
pKills = 2;
pGapCount = 20;
break;
case 7 :
case 8 :
pCount = 3;
pKills = 3;
pGapCount = 40;
break;
case 10 :
pCount = 4;
pKills = 4;
pGapCount = 40;
break;
case 14 :
pType = 30;
pCount = 12;
pKills = 12;
pGapCount = 16;
pYArray = new Array(90, 130, 170, 210, 250, 290, 330);
pGame.pMotherShip.pauseWaves();
break;
default :
trace(("error: Path " + path) + " called..?");
}
}
function update() {
if (pCount > 0) {
if ((pGap++) > pGapCount) {
pGap = 0;
pCount--;
switch (pPath) {
case 1 :
case 2 :
case 3 :
var _local2 = new Plane(pMcParent, pGame, pPath);
break;
case 7 :
case 8 :
_local2 = new Chopper(pMcParent, pGame, pPath);
break;
case 10 :
_local2 = new Vehicle(pMcParent, pGame, Math.ceil(Math.random() * 6));
break;
case 14 :
_local2 = new Hover(pMcParent, pGame, pYArray[Math.floor(Math.random() * pYArray.length)]);
}
pSet.push(_local2);
}
}
for (var _local3 in pSet) {
if (!pSet[_local3].onScreen()) {
removeEnemy(Number(_local3));
continue;
}
pSet[_local3].update();
}
}
function die() {
if (pSet.length > 0) {
var _local2;
for (_local2 in pSet) {
pSet[_local2].die();
delete pSet[_local2];
pSet.splice(_local2, 1);
}
}
}
function removeEnemy(index) {
if ((pCount == 0) && (pSet.length == 1)) {
if (pKills == 0) {
var _local4 = pSet[index].getPos();
pGame.pWeapons.launchPowerUp();
} else if (Math.random() > 0.8) {
pGame.pWeapons.launchPowerUp();
}
if (Math.random() < 0.2) {
var _local2 = Math.random();
if (_local2 < 0.25) {
pGame.pSoundObj.playSound("lookgood");
} else if (_local2 < 0.5) {
pGame.pSoundObj.playSound("haha");
} else if (_local2 < 0.75) {
pGame.pSoundObj.playSound("eatlead");
} else {
pGame.pSoundObj.playSound("takethat");
}
}
if (pType == 30) {
pGame.pMotherShip.unpauseWaves();
}
}
pSet[index].die();
delete pSet[index];
pSet.splice(index, 1);
}
function getStrength() {
return(pTmpStrength);
}
function checkHit(point, size, strength, bullet) {
pTmpStrength = 0;
for (var _local3 in pSet) {
if (pSet[_local3].onScreen()) {
if (pSet[_local3].checkHit(point, size, strength, bullet)) {
pTmpStrength = pSet[_local3].getStrength();
if (!pSet[_local3].onScreen()) {
pKills--;
removeEnemy(Number(_local3));
}
return(true);
}
}
}
return(false);
}
function onScreen() {
if ((pCount == 0) && (pSet.length == 0)) {
return(false);
}
return(true);
}
}
Symbol 756 MovieClip [__Packages.Plane] Frame 0
class Plane extends Craft
{
var pMcParent, pGame, createMc, pStrength, pState, pFired, pSize, p_mc, setPos, setSpeed, pTime, pPath, pX, pY, draw, pTmpStrength;
function Plane (mcParent, gameHost, path) {
super();
pMcParent = mcParent;
pGame = gameHost;
createMc(mcParent, 2);
pStrength = 30;
pState = 0;
pFired = 2;
pSize = p_mc._width / 2;
setPos(600 + pSize, 280);
setSpeed(-10, 0);
pTime = 0;
pPath = path;
switch (pPath) {
case 1 :
p_mc._alpha = 30;
p_mc._xscale = 30;
p_mc._yscale = 30;
break;
case 2 :
p_mc._xscale = -100;
case 3 :
setPos(600 + pSize, 100 + Math.round(Math.random() * 100));
pState = 1;
}
}
function update() {
switch (pPath) {
case 1 :
super.update();
if (pState == 0) {
if (pX < -100) {
pX = -100;
pState = 1;
pY = 100 + Math.round(Math.random() * 100);
setSpeed(5, 0);
p_mc._alpha = 100;
p_mc._xscale = -100;
p_mc._yscale = 100;
}
} else if (pFired > 0) {
if (pX > 100) {
if ((pX % 8) == 0) {
shoot();
pFired--;
}
}
}
break;
case 2 :
case 3 :
getPath();
}
draw();
}
function onScreen() {
switch (pPath) {
case 1 :
if (pState != 0) {
if (pX > (600 + pSize)) {
return(false);
}
}
return(true);
case 2 :
case 3 :
if (pTime < 0) {
return(false);
}
return(true);
}
}
function checkHit(point, size, strength, bullet) {
if (pState == 0) {
return(false);
}
var _local3 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local3.x) < 33) && (Math.abs(_local3.y) < 16)) {
bullet.setStrength(pStrength);
pTmpStrength = pStrength;
pStrength = pStrength - strength;
if (pStrength <= 0) {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.distroyV", "ex" + _local2, _local2, {_x:pX, _y:pY - 20, pCount:4 + Math.ceil(Math.random() * 5)});
_local2 = Depth.getNewDepth(8);
if (Math.random() < 0.5) {
pMcParent.attachMovie("mc.air_ex1", "ex" + _local2, _local2, {_x:pX, _y:pY});
} else {
pMcParent.attachMovie("mc.air_ex2", "ex" + _local2, _local2, {_x:pX, _y:pY});
}
pTime = -1;
pX = 700;
pGame.addScore(80);
} else {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.impact", "ex" + _local2, _local2, {_x:point.x, _y:point.y});
pGame.pSoundObj.playSound("ric" + String(Math.ceil(Math.random() * 6)));
pGame.addScore(10);
}
return(true);
}
return(false);
}
function getPath() {
pTime++;
switch (pPath) {
case 2 :
pX = Tween.easeInQuad(pTime, -60, 660, 60);
if (pTime == 20) {
shoot();
}
if (pTime >= 60) {
pTime = -1;
}
break;
case 3 :
if (pTime <= 25) {
pX = Tween.easeOutQuad(pTime, 615, -200, 25);
} else if (pTime <= 27) {
shoot();
} else {
pX = Tween.easeInQuad(pTime - 27, 415, -450, 25);
if (pTime < 50) {
break;
}
pTime = -1;
}
}
}
function getStrength() {
return(Math.max(0, pTmpStrength));
}
function shoot() {
pGame.pWeapons.launchWeapon(pX, pY, false);
}
}
Symbol 757 MovieClip [__Packages.Tween] Frame 0
class Tween
{
function Tween () {
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
}
Symbol 758 MovieClip [__Packages.Chopper] Frame 0
class Chopper extends Craft
{
var pMcParent, pGame, createMc, pStrength, pSize, p_mc, pState, pTime, pPath, setPos, setSpeed, draw, pX, pY, pTmpStrength;
function Chopper (mcParent, gameHost, path) {
super();
pMcParent = mcParent;
pGame = gameHost;
createMc(mcParent, 1);
pStrength = 12;
pSize = p_mc._width / 2;
pState = 0;
pTime = 0;
pPath = path;
setPos(600 + pSize, 140 + Math.round(Math.random() * 140));
setSpeed(-5, 0);
if (pPath == 7) {
p_mc._xscale = -100;
}
}
function update() {
getPath();
draw();
}
function onScreen() {
if (pTime < 0) {
return(false);
}
return(true);
}
function checkHit(point, size, strength, bullet) {
var _local3 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local3.x) < 24) && (Math.abs(_local3.y) < 24)) {
bullet.setStrength(pStrength);
pTmpStrength = pStrength;
pStrength = pStrength - strength;
if (pStrength <= 0) {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.distroyV", "ex" + _local2, _local2, {_x:pX, _y:pY - 20, pCount:4 + Math.ceil(Math.random() * 5)});
_local2 = Depth.getNewDepth(8);
if (Math.random() < 0.5) {
pMcParent.attachMovie("mc.air_ex1", "ex" + _local2, _local2, {_x:pX, _y:pY});
} else {
pMcParent.attachMovie("mc.air_ex2", "ex" + _local2, _local2, {_x:pX, _y:pY});
}
pX = -100;
pTime = -1;
pGame.addScore(100);
} else {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.impact", "ex" + _local2, _local2, {_x:pX - 50, _y:point.y});
pGame.pSoundObj.playSound("ric" + String(Math.ceil(Math.random() * 6)));
pGame.addScore(15);
}
return(true);
}
return(false);
}
function getStrength() {
return(Math.max(0, pTmpStrength));
}
function shoot() {
pGame.pWeapons.launchWeapon(pX, pY, false);
}
function getPath() {
pTime++;
switch (pPath) {
case 7 :
if (pTime <= 20) {
pX = -10 + (pTime * 10);
pY = 330;
} else if (pTime <= 83) {
var _local3 = (pTime - 20) / 10;
var _local2 = 115;
pX = 190 + (Math.sin(_local3) * _local2);
pY = (330 - _local2) + (Math.cos(_local3) * _local2);
} else {
pX = 190 + ((pTime - 83) * 10);
if (pTime == 95) {
shoot();
}
if (pX >= 605) {
pTime = -1;
}
}
break;
case 8 :
if (pTime <= 15) {
pX = 450 - (pTime * 8);
pY = -10 + (pTime * 8);
} else if (pTime <= 100) {
var _local3 = ((pTime - 15) / 10) + 3.926991;
var _local2 = 125 - ((pTime - 15) / 2);
pX = 420 + (Math.sin(_local3) * _local2);
pY = 200 + (Math.cos(_local3) * _local2);
if (pTime == 65) {
shoot();
}
} else {
pX = 408 + ((pTime - 100) * 9);
if (pTime >= 155) {
pTime = -1;
}
}
break;
default :
trace("no path for chopper " + pPath);
}
}
}
Symbol 759 MovieClip [__Packages.Vehicle] Frame 0
class Vehicle extends Craft
{
var pMcParent, pGame, pType, pStrength, pSize, p_mc, setPos, setSpeed, pX, pY, pTmpStrength, draw;
function Vehicle (mc, gameHost, type) {
super();
pMcParent = mc;
pGame = gameHost;
pType = type;
pStrength = 1;
createMc(mc);
pSize = p_mc._width;
switch (type) {
case 1 :
setPos(600 + (pSize / 2), 370);
setSpeed(-5, 0);
pStrength = 20;
break;
case 2 :
setPos(600 + (pSize / 2), 370);
if (Math.random() < 0.5) {
setSpeed(-4, 0);
} else {
setSpeed(-3, 0);
}
pStrength = 15;
break;
case 3 :
setPos(600 + (pSize / 2), 370);
setSpeed(-2, 0);
pStrength = 5;
break;
case 4 :
setPos(600 + (pSize / 2), 370);
setSpeed(-9, 0);
pStrength = 2;
break;
case 5 :
setPos(600 + (pSize / 2), 370);
setSpeed(-6, 0);
pStrength = 30;
break;
case 6 :
setPos(-50, 370);
setSpeed(5, 0);
pStrength = 40;
}
}
function createMc(mcParent) {
var _local2 = Depth.getNewDepth(6);
p_mc = mcParent.attachMovie("mc.vehicle", "r" + _local2, _local2, {_x:-50, _y:-50});
p_mc.gotoAndStop(pType);
p_mc.cacheAsBitmap = true;
}
function checkHit(point, size, strength, bullet) {
var _local4 = false;
var _local2 = point.add(new flash.geom.Point(-pX, -pY));
switch (pType) {
case 1 :
if ((Math.abs(_local2.x) < 44) && (_local2.y > -66)) {
_local4 = true;
}
break;
case 2 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 37) && (_local2.y > -45)) {
_local4 = true;
}
break;
case 3 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 25) && (_local2.y > -44)) {
_local4 = true;
}
break;
case 4 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 12) && (_local2.y > -40)) {
_local4 = true;
}
break;
case 5 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 38) && (_local2.y > -53)) {
_local4 = true;
}
break;
case 6 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if (!((Math.abs(_local2.x) < 35) && (_local2.y > -50))) {
break;
}
_local4 = true;
}
if (_local4) {
bullet.setStrength(pStrength);
pTmpStrength = pStrength;
pStrength = pStrength - strength;
if (pStrength <= 0) {
var _local3 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.distroyV", "ex" + _local3, _local3, {_x:pX, _y:pY - 20, pCount:4 + Math.ceil(Math.random() * 5)});
_local3 = Depth.getNewDepth(8);
if (Math.random() < 0.5) {
pMcParent.attachMovie("mc.ground_ex1", "ex" + _local3, _local3, {_x:pX - 5, _y:pY});
} else {
pMcParent.attachMovie("mc.ground_ex2", "ex" + _local3, _local3, {_x:pX - 5, _y:pY});
}
pGame.addScore(100);
pX = -100;
} else {
var _local3 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.impact", "ex" + _local3, _local3, {_x:pX - (pSize / 2), _y:pY + _local2.y});
pGame.pSoundObj.playSound("ric" + String(Math.ceil(Math.random() * 6)));
pGame.addScore(20);
}
return(true);
}
return(false);
}
function update() {
if (pType == 6) {
if (pX > 100) {
if ((pX % 120) == 0) {
p_mc.vehicle_mc.gotoAndStop(2);
shoot();
}
}
}
super.update();
draw();
}
function shoot() {
pGame.pWeapons.launchWeapon(pX - 35, pY - 54, false, 2);
}
function getStrength() {
return(Math.max(0, pTmpStrength));
}
function onScreen() {
if ((pX < (-pSize)) || (pX > 700)) {
return(false);
}
return(true);
}
}
Symbol 760 MovieClip [__Packages.Hover] Frame 0
class Hover extends Craft
{
var pMcParent, pGame, createMc, pStrength, pSize, p_mc, setPos, setSpeed, draw, pX, pY, pTmpStrength;
function Hover (mcParent, gameHost, y) {
super();
pMcParent = mcParent;
pGame = gameHost;
createMc(mcParent, 3);
pStrength = 40;
pSize = p_mc._width / 2;
setPos(600 + pSize, y);
setSpeed(-(2 + Math.round(Math.random() * 3)), 0);
}
function update() {
super.update();
draw();
}
function onScreen() {
if (pX < (-pSize)) {
return(false);
}
return(true);
}
function checkHit(point, size, strength, bullet) {
var _local3 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local3.x) < 33) && (Math.abs(_local3.y) < 16)) {
bullet.setStrength(pStrength);
pTmpStrength = pStrength;
pStrength = pStrength - strength;
if (pStrength <= 0) {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.distroyV", "ex" + _local2, _local2, {_x:pX, _y:pY - 20, pCount:4 + Math.ceil(Math.random() * 5)});
_local2 = Depth.getNewDepth(8);
if (Math.random() < 0.5) {
pMcParent.attachMovie("mc.air_ex1", "ex" + _local2, _local2, {_x:pX, _y:pY});
} else {
pMcParent.attachMovie("mc.air_ex2", "ex" + _local2, _local2, {_x:pX, _y:pY});
}
pX = -100;
pGame.addScore(120);
} else {
var _local2 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.impact", "ex" + _local2, _local2, {_x:point.x, _y:point.y});
pGame.pSoundObj.playSound("ric" + String(Math.ceil(Math.random() * 6)));
pGame.addScore(5);
}
return(true);
}
return(false);
}
function getStrength() {
return(Math.max(0, pTmpStrength));
}
}
Symbol 761 MovieClip [__Packages.Building] Frame 0
class Building extends Craft
{
var pMcParent, pGame, pType, pSize, p_mc, pStrength, pCollide, setPos, setSpeed, pX, pY, pTmpStrength, draw;
function Building (x, y, mc, gameHost) {
super();
pMcParent = mc;
pGame = gameHost;
pType = Math.ceil(Math.random() * 4);
createMc(mc);
pSize = p_mc._width;
pStrength = 4;
switch (pType) {
case 1 :
pStrength = 30;
break;
case 2 :
pStrength = 5;
break;
case 3 :
pStrength = 20;
break;
case 4 :
pStrength = 5;
}
pCollide = true;
setPos(x, y);
setSpeed(-15, 0);
}
function createMc(mcParent) {
var _local2 = Depth.getNewDepth(1);
p_mc = mcParent.attachMovie("mc.buildings", "b" + _local2, _local2, {_x:-50, _y:-50});
p_mc.gotoAndStop(pType);
p_mc.building_mc.gotoAndStop(1);
p_mc.cacheAsBitmap = true;
}
function checkHit(point, size, strength, bullet) {
if (!pCollide) {
return(false);
}
var _local4 = false;
switch (pType) {
case 1 :
var _local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 23) && (_local2.y > -156)) {
_local4 = true;
}
break;
case 2 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 35) && (_local2.y > -45)) {
_local4 = true;
}
break;
case 3 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if ((Math.abs(_local2.x) < 30) && (_local2.y > -48)) {
_local4 = true;
}
break;
case 4 :
_local2 = point.add(new flash.geom.Point(-pX, -pY));
if (!((Math.abs(_local2.x) < 20) && (_local2.y > -12))) {
break;
}
_local4 = true;
}
if (_local4) {
bullet.setStrength(pStrength);
pTmpStrength = pStrength;
pStrength = pStrength - strength;
if (pStrength <= 0) {
var _local3 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.explosionF", "ex" + _local3, _local3, {_x:pX - 5, _y:pY});
switch (pType) {
case 1 :
pGame.addScore(100);
pStrength = 30;
break;
case 2 :
pGame.addScore(50);
pStrength = 5;
break;
case 3 :
pGame.addScore(150);
pStrength = 20;
break;
case 4 :
pGame.addScore(220);
pStrength = 5;
}
if (pType == 2) {
var _local6 = Math.ceil(Math.random() * 5);
p_mc.building_mc.gotoAndStop(_local6);
} else {
p_mc.building_mc.gotoAndStop(2);
}
pCollide = false;
} else {
var _local3 = Depth.getNewDepth(8);
pMcParent.attachMovie("mc.impact", "ex" + _local3, _local3, {_x:pX, _y:pY});
pGame.pSoundObj.playSound("ric" + String(Math.ceil(Math.random() * 6)));
pGame.addScore(5);
}
return(true);
}
return(false);
}
function update() {
super.update();
draw();
}
function getStrength() {
return(Math.max(0, pTmpStrength));
}
function onScreen() {
if (pX < (-pSize)) {
return(false);
}
return(true);
}
}
Symbol 762 MovieClip [__Packages.Ground] Frame 0
class Ground
{
var pGame, pX, pSpeedX, pGap, pCount, pFloor, pMountains, pCloud1, pCloud2, pCloud3, pCloudS;
function Ground (mcParent, gameHost) {
pGame = gameHost;
pX = 0;
pSpeedX = 15;
pGap = 300;
pCount = 50;
pFloor = mcParent.attachMovie("mc.ground", "ground_mc", 5, {_x:0, _y:321});
pFloor.cacheAsBitmap = true;
pMountains = mcParent.attachMovie("mc.mountains", "mountains_mc", 4, {_x:0, _y:305});
pMountains.cacheAsBitmap = true;
pCloud1 = mcParent.attachMovie("mc.cloud1", "cloud1_mc", 1, {_x:100, _y:78});
pCloud1.blendMode = 5;
pCloud1.cacheAsBitmap = true;
pCloud2 = mcParent.attachMovie("mc.cloud2", "cloud2_mc", 2, {_x:250, _y:122});
pCloud2.blendMode = 5;
pCloud2.cacheAsBitmap = true;
pCloud3 = mcParent.attachMovie("mc.cloud3", "cloud3_mc", 3, {_x:400, _y:110});
pCloud3.blendMode = 5;
pCloud3.cacheAsBitmap = true;
}
function endGame() {
pFloor.removeMovieClip();
pMountains.removeMovieClip();
pCloud1.removeMovieClip();
pCloud2.removeMovieClip();
pCloud3.removeMovieClip();
}
function startGame() {
pX = 0;
pSpeedX = 15;
if (pCloudS == undefined) {
pCloudS = new Array();
pCloudS.push(Math.ceil(Math.random() * 2));
pCloudS.push(Math.ceil(Math.random() * 2));
pCloudS.push(Math.ceil(Math.random() * 2));
}
}
function update() {
pMountains._x = pMountains._x - 1;
if (pMountains._x < -600) {
pMountains._x = pMountains._x + 600;
}
pCloud1._x = pCloud1._x - pCloudS[0];
if (pCloud1._x < -170) {
pCloud1._x = 600 + Math.round(Math.random() * 100);
pCloud1._y = 70 + Math.round(Math.random() * 40);
pCloudS[0] = Math.ceil(Math.random() * 2);
}
pCloud2._x = pCloud2._x - pCloudS[1];
if (pCloud2._x < -170) {
pCloud2._x = 600 + Math.round(Math.random() * 100);
pCloud2._y = 125 + Math.round(Math.random() * 40);
pCloudS[1] = Math.ceil(Math.random() * 2);
}
pCloud3._x = pCloud3._x - pCloudS[2];
if (pCloud3._x < -170) {
pCloud3._x = 600 + Math.round(Math.random() * 100);
pCloud3._y = 115 + Math.round(Math.random() * 40);
pCloudS[2] = Math.ceil(Math.random() * 2);
}
pX = pX - pSpeedX;
if (pX < -590) {
pX = pX + 590;
}
pFloor._x = pX;
if ((pCount--) < 0) {
pCount = pGap;
if (pGap > 40) {
pGap = pGap - 20;
}
var _local2 = new flash.geom.Point(650, 365);
pGame.pMotherShip.addGroundUnit(_local2);
}
}
}
Symbol 763 MovieClip [__Packages.SoundObj] Frame 0
class SoundObj
{
var pSoundObjs, pGlobalSound, pMusic, pMenu;
function SoundObj (mc) {
pSoundObjs = new Array();
pGlobalSound = new Sound();
pMusic = new Sound(mc);
pMusic.attachSound("game_snd");
pMenu = new Sound(mc);
pMenu.attachSound("apachemenu.wav");
var _local2 = new Sound(mc);
_local2.attachSound("guns1_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("guns2_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("guns3_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("mgun1_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("mgun2_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("missile2_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("sbomb_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("missile_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("bullets_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("m1_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("m2_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("m3_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("m4_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("overkill_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("ric1_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("ric2_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("ric3_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("bombs_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("health_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("needed_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("warning_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("watchout_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("enginet_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("letsrock_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("lookout_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("letsgo_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("letsroll_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("goindown_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("mandown_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("dobetter_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("lookgood_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("hahhah_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("eatlead_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("takethat_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("allright_snd");
pSoundObjs.push(_local2);
_local2 = new Sound(mc);
_local2.attachSound("lockload_snd");
pSoundObjs.push(_local2);
menuMusic();
}
function startGame() {
pMenu.stop();
pMusic.start(0, 99999999);
}
function endGame() {
pMusic.stop();
menuMusic();
}
function menuMusic() {
pMenu.onSoundComplete = function () {
trace("loop");
this.start(13.618, 9999);
delete this.onSoundComplete;
};
pMenu.start();
}
function playSound(tName) {
switch (tName) {
case "guns1" :
pSoundObjs[0].start();
break;
case "guns2" :
pSoundObjs[1].start();
break;
case "guns3" :
pSoundObjs[2].start();
break;
case "mgun1" :
pSoundObjs[3].start();
break;
case "mgun2" :
pSoundObjs[4].start();
break;
case "missiles2" :
pSoundObjs[5].start();
break;
case "sbomb" :
pSoundObjs[6].start();
break;
case "missile" :
pSoundObjs[7].start();
break;
case "bullets" :
pSoundObjs[8].start();
break;
case "m1" :
pSoundObjs[9].start();
break;
case "m2" :
pSoundObjs[10].start();
break;
case "m3" :
pSoundObjs[11].start();
break;
case "m4" :
pSoundObjs[12].start();
break;
case "overkill" :
pSoundObjs[13].start();
break;
case "ric1" :
pSoundObjs[14].start();
break;
case "ric2" :
pSoundObjs[15].start();
break;
case "ric3" :
pSoundObjs[16].start();
break;
case "bombs" :
pSoundObjs[17].start();
break;
case "health" :
pSoundObjs[18].start();
break;
case "needed" :
pSoundObjs[19].start();
break;
case "warning" :
pSoundObjs[20].start();
break;
case "watchout" :
pSoundObjs[21].start();
break;
case "enginet" :
pSoundObjs[22].start();
break;
case "letsrock" :
pSoundObjs[23].start();
break;
case "lookout" :
pSoundObjs[24].start();
break;
case "letsgo" :
pSoundObjs[25].start();
break;
case "letsroll" :
pSoundObjs[26].start();
break;
case "goingdown" :
pSoundObjs[27].start();
break;
case "mandown" :
pSoundObjs[28].start();
break;
case "dobetter" :
pSoundObjs[29].start();
break;
case "lookgood" :
pSoundObjs[30].start();
break;
case "haha" :
pSoundObjs[31].start();
break;
case "eatlead" :
pSoundObjs[32].start();
break;
case "takethat" :
pSoundObjs[33].start();
break;
case "allright" :
pSoundObjs[34].start();
break;
case "lockload" :
pSoundObjs[35].start();
}
}
function switchVolume() {
if (pGlobalSound.getVolume() == 100) {
pGlobalSound.setVolume(0);
return(false);
}
pGlobalSound.setVolume(100);
return(true);
}
function getVolume() {
if (pGlobalSound.getVolume() == 100) {
return(true);
}
return(false);
}
}
Symbol 133 MovieClip [mc.air_ex1] Frame 13
this.removeMovieClip();
Symbol 135 MovieClip [mc.air_ex2] Frame 14
this.removeMovieClip();
Symbol 153 MovieClip [mc.ground_ex1] Frame 13
this.removeMovieClip();
Symbol 155 MovieClip [mc.ground_ex2] Frame 17
this.removeMovieClip();
Symbol 156 MovieClip [mc.air_ex0] Frame 13
this.removeMovieClip();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 5
this.gotoAndPlay("loop");
Symbol 179 MovieClip Frame 1
var pPlaying = false;
this.startAni = function () {
if (!this.pPlaying) {
this.pPlaying = true;
this.gotoAndPlay("loop");
}
};
stop();
Symbol 179 MovieClip Frame 4
this.gotoAndPlay("loop");
Symbol 253 MovieClip Frame 17
this._parent.gotoAndStop(1);
Symbol 254 MovieClip Frame 1
stop();
Symbol 288 MovieClip [mc.impact] Frame 6
this.removeMovieClip();
Symbol 305 MovieClip [mc.explosionF] Frame 9
this.removeMovieClip();
Symbol 306 MovieClip [mc.distroyV] Frame 1
this.init = function () {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < this.pCount) {
_local2 = this.attachMovie("mc.debris", "debris" + _local3, _local3);
_local2.gotoAndStop(Math.ceil(Math.random() * 10));
_local2.pX = 0;
_local2.pY = 0;
_local2.pSpeedX = -9 + (Math.random() * 14);
if (this._parent._y < 370) {
var _local4 = (Math.round(Math.random()) * 2) - 1;
_local2.pSpeedY = _local4 * (6 + (Math.random() * 6));
} else {
_local2.pSpeedY = -6 + (Math.random() * -6);
}
_local2.pSpin = 0;
_local2.onEnterFrame = function () {
this.pSpeedY = this.pSpeedY + 1;
this.pX = this.pX + this.pSpeedX;
this.pY = this.pY + this.pSpeedY;
this._x = this.pX;
this._y = this.pY;
this._rotation = this._rotation + this.pSpeedX;
if ((this._y + this._parent._y) > 370) {
if (this.pSpeedY > 7) {
this.pSpeedY = this.pSpeedY * -0.4;
this.pSpeedX = this.pSpeedX - 8;
} else {
this._parent.clearDebris();
this.removeMovieClip();
}
}
};
_local3++;
}
};
this.clearDebris = function () {
if ((--this.pCount) == 0) {
this.removeMovieClip();
}
};
this.init();
stop();
Symbol 364 MovieClip Frame 2
var tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.distroyV", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 140, pCount:7});
tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.ground_ex2", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 130});
tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.air_ex0", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 90});
tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.air_ex0", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 50});
stop();
Symbol 379 MovieClip Frame 2
var tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.distroyV", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 15, pCount:3});
stop();
Symbol 384 MovieClip Frame 2
var tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.distroyV", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 15, pCount:2});
tDepth = Depth.getNewDepth(8);
this._parent.attachMovie("mc.ground_ex1", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y - 15});
stop();
Symbol 387 Button
on (release) {
getURL ("http://flashgame.ge", "_self");
}
Symbol 405 MovieClip Frame 2
var tDepth = Depth.getNewDepth(8);
if (Math.random() < 0.5) {
this._parent.attachMovie("mc.ground_ex1", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y});
} else {
this._parent.attachMovie("mc.ground_ex2", "ex" + tDepth, tDepth, {_x:this._x, _y:this._y});
}
stop();
Symbol 423 MovieClip [mc.smoke] Frame 1
this.onEnterFrame = function () {
this._x = this._x - 15;
};
Symbol 423 MovieClip [mc.smoke] Frame 23
this.removeMovieClip();
Symbol 463 MovieClip Frame 1
stop();
Symbol 465 MovieClip [mc.die] Frame 64
this.removeMovieClip();
Symbol 466 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 114
this.quote_mc.gotoAndStop(Math.ceil(Math.random() * quote_mc._totalframes));
Symbol 477 MovieClip Frame 284
this._parent.play();
Symbol 482 Button
on (release) {
getURL ("http://flashgame.ge/", "_blank");
}
Symbol 484 MovieClip [TMPgeib021l1w] Frame 1
function bitOR(a, b) {
var _local2 = (a & 1) | (b & 1);
var _local1 = (a >>> 1) | (b >>> 1);
return((_local1 << 1) | _local2);
}
function bitXOR(a, b) {
var _local2 = (a & 1) ^ (b & 1);
var _local1 = (a >>> 1) ^ (b >>> 1);
return((_local1 << 1) | _local2);
}
function bitAND(a, b) {
var _local2 = (a & 1) & (b & 1);
var _local1 = (a >>> 1) & (b >>> 1);
return((_local1 << 1) | _local2);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var _local2 = str.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(b ^ 4294967000, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, d ^ 4294967000)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, d ^ 4294967000)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
this.getCode = function (name, email, score, HSnum) {
tStr = "";
tStr = ((name + email) + score) + HSnum;
return(calcMD5(tStr));
};
var hex_chr = "0123456789abcdef";
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 1
this._alpha = 0;
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 1
if (this._name == "HSweek") {
this.txt.text = "Best this week";
} else {
this.txt.text = "Best of all time";
}
stop();
Symbol 573 MovieClip Frame 1
var pScore = 0;
this.submitHS = function (tSC) {
this.pScore = tSC;
this.gotoAndPlay("enter");
this._parent.gotoAndPlay(pChartLoc);
};
this.displayHS = function () {
this.pingHighScore("get");
this._parent.gotoAndPlay(pChartLoc);
};
this.clearHS = function () {
this.gotoAndPlay("empty");
this._parent.gotoAndPlay(pDoneFrame);
};
this.pingHighScore = function (tFunc, tLimit) {
if (tLimit == undefined) {
tLimit = "week";
}
if (tVarHS_lv != undefined) {
delete tVarHS_lv;
}
tVarHS_lv = new LoadVars();
tVarHS_lv.f = tFunc;
tVarHS_lv.g = pHSnum;
tVarHS_lv.l = tLimit;
tVarHS_lv.o = mailing_mc.getVal();
switch (tFunc) {
case "add" :
tVarHS_lv.s = pScore;
tVarHS_lv.n = usrname_txt.text;
tVarHS_lv.e = usremail_txt.text;
if (tVarHS_lv.n.length < 1) {
emailalert_txt.text = "Please enter your name";
return(undefined);
}
if (tVarHS_lv.e.length < 5) {
emailalert_txt.text = "Please enter your email address";
return(undefined);
}
if (((tVarHS_lv.e.indexOf("@") == -1) || (tVarHS_lv.e.lastIndexOf(".") == -1)) || (tVarHS_lv.e.indexOf("@") > tVarHS_lv.e.lastIndexOf("."))) {
emailalert_txt.text = "Please enter your email address";
return(undefined);
}
p3_so.data.usrname = tVarHS_lv.n;
p3_so.data.usremail = tVarHS_lv.e;
p3_so.flush();
tVarHS_lv.m = this.code_mc.getCode(tVarHS_lv.n, tVarHS_lv.e, tVarHS_lv.s, tVarHS_lv.g);
case "get" :
tVarHS_lv.onData = function (src) {
trace("src = " + src);
this.decode(src);
if (src == "invalid") {
getURL ("http://flashgame.ge/", "_top");
}
gotoAndPlay ("display");
};
tVarHS_lv.sendAndLoad(pPingLoc, tVarHS_lv, "GET");
this.gotoAndPlay("pingwait");
}
};
stop();
Symbol 573 MovieClip Frame 3
stop();
Symbol 573 MovieClip Frame 8
usrname_txt.restrict = "a-z A-Z 0-9";
usremail_txt.restrict = "a-zA-Z0-9@.\\-_";
usrname_txt.tabIndex = 1;
usremail_txt.tabIndex = 2;
submit_mc.tabIndex = 3;
skip_mc.tabIndex = 4;
submit_mc.onRelease = function () {
pingHighScore("add");
};
skip_mc.onRelease = function () {
pingHighScore("get");
};
this.onEnterFrame;
stop();
Symbol 573 MovieClip Frame 13
stop();
Symbol 573 MovieClip Frame 20
this.tnames = (this.tscores = (this.tengland = (this.tflags = 0)));
ok_mc.onRelease = function () {
this._parent.clearHS();
};
HSweek.onRelease = function () {
this._parent.setChart(1);
};
HSall.onRelease = function () {
this._parent.setChart(2);
};
this.addCommas = function (tSC) {
var _local1 = "";
var _local5 = String(tSC);
var _local4 = _local5.split("");
var _local3 = 0;
var _local2 = _local4.length;
while (_local2 > 0) {
_local1 = String(_local4.pop()) + _local1;
_local3++;
if ((_local3 == 3) && (_local4.length > 1)) {
_local1 = "," + _local1;
_local3 = 0;
}
_local2--;
}
return(_local1);
};
this.setChart = function (tx) {
if (tx == 1) {
this.tnames = tVarHS_lv.HSnames1.split(",");
this.tscores = tVarHS_lv.HSscores1.split(",");
this.tengland = tVarHS_lv.EPscores1.split(",");
this.tflags = tVarHS_lv.HSflags1.split(",");
HSweek.tab_mc.gotoAndStop("select");
HSall.tab_mc.gotoAndStop("deselect");
} else {
this.tnames = tVarHS_lv.HSnames2.split(",");
this.tscores = tVarHS_lv.HSscores2.split(",");
this.tengland = tVarHS_lv.EPscores2.split(",");
this.tflags = tVarHS_lv.HSflags2.split(",");
HSweek.tab_mc.gotoAndStop("deselect");
HSall.tab_mc.gotoAndStop("select");
}
this.printOut();
};
this.printOut = function () {
i = 1;
while (i < 11) {
this["HSline" + i]._alpha = 0;
this["HSline" + i].HSpos.text = i;
this["HSline" + i].HSname.text = this.tnames[i - 1];
this["HSline" + i].HSscore.text = addCommas(this.tscores[i - 1]);
this["HSline" + i].HSflag_mc.gotoAndStop(this.tflags[i - 1]);
if (this["HSline" + i].HSname.text != "-") {
this["HSline" + i]._alpha = 100;
}
i++;
}
if (tengland[1] != undefined) {
this.HSlineX.HSpos.text = this.tengland[0];
this.HSlineX.HSname.text = this.tengland[1];
this.HSlineX.HSscore.text = addCommas(this.tengland[2]);
this.HSlineX.HSflag_mc.gotoAndStop(this.tengland[3]);
this.HSlineX._alpha = 100;
} else {
this.HSlineX._alpha = 0;
}
};
this.setChart(1);
stop();
Symbol 578 MovieClip Frame 39
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 18
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 602 Button
on (rollOver) {
this.menuApache_mc.setDestY(255);
tGame.pSoundObj.playSound("lockload");
}
on (release) {
getURL ("http://flashgame.ge/", "_blank");
}
Symbol 607 Button
on (release) {
tGame.pSoundObj.switchVolume();
}
Symbol 612 Button
on (rollOver) {
this.menuApache_mc.setDestY(290);
tGame.pSoundObj.playSound("lockload");
}
on (release) {
this.menuApache_mc.leave("toGame");
this.pingHome();
}
Symbol 617 Button
on (rollOver) {
this.menuApache_mc.setDestY(325);
tGame.pSoundObj.playSound("lockload");
}
on (release) {
this.menuApache_mc.leave("toInstruct");
}
Symbol 622 Button
on (rollOver) {
this.menuApache_mc.setDestY(360);
tGame.pSoundObj.playSound("lockload");
}
on (release) {
getURL ("http://flashgame.ge/", "_blank");
}
Symbol 623 MovieClip Frame 1
this.init = function () {
this.pX = -100;
this.pY = this._y;
this.pSpeedX = 0;
this.pSpeedY = 0;
this.pDestX = 125;
this.pDestY = this._y;
this.pBounce = false;
this._x = this.pX;
this.pDest = "";
this.pSound = new Sound(this);
this.pSound.attachSound("engine_snd");
this.pSound.setVolume(60);
this.pSound.start(0, 9999);
};
this.onEnterFrame = function () {
if (this.pBounce) {
this.pSpeedY = this.pSpeedY + ((this.pDestY - this.pY) / 5);
this.pSpeedY = this.pSpeedY * 0.7;
} else {
this.pSpeedY = (this.pDestY - this.pY) / 5;
}
this.pY = this.pY + this.pSpeedY;
this._y = this.pY;
this.pSpeedX = Math.min(20, (this.pDestX - this.pX) / 5);
this.pX = this.pX + this.pSpeedX;
this._x = this.pX;
this.chopter_mc._rotation = this.pSpeedX + this.pSpeedY;
if (this.pX > 650) {
trace("clearing");
this.pSound.stop();
delete this.onEnterFrame;
}
};
this.setDestX = function (x) {
this.pDestX = x;
this.pBounce = true;
};
this.setDestY = function (y) {
this.pDestY = y;
this.pBounce = true;
};
this.leave = function (tDest) {
this.pDest = tDest;
this._parent.gotoAndPlay(this.pDest);
this.setDestX(750);
};
this.init();
stop();
Symbol 628 Button
on (rollOver) {
tGame.pSoundObj.playSound("lockload");
}
on (release) {
this.gotoAndPlay("menu");
}
Symbol 648 MovieClip Frame 1
this.showNum = function (tNum) {
this.digit_mc._y = tNum * -10;
};
stop();
Symbol 649 MovieClip Frame 1
this.showNum = function (num) {
if (num < 0) {
num = 0;
} else if (num > 9999999) {
num = 9999999 /* 0x98967F */;
}
var _local5 = "00000000" + String(num);
var _local3 = _local5.substr(-7).split("");
var _local2 = 0;
while (_local2 < 7) {
this[("num" + _local2) + "_mc"].digit_mc._y = _local3[_local2] * -10;
_local2++;
}
};
stop();
Symbol 662 MovieClip Frame 1
this.showNum = function (tNum) {
this.digit_mc._y = tNum * -10;
};
stop();
Symbol 663 MovieClip Frame 1
this.showNum = function (num) {
if (num < 0) {
num = 0;
} else if (num > 99) {
num = 99;
}
var _local5 = "00000000" + String(num);
var _local3 = _local5.substr(-2).split("");
var _local2 = 0;
while (_local2 < 2) {
this[("num" + _local2) + "_mc"].digit_mc._y = _local3[_local2] * -10;
_local2++;
}
};
this.num1_mc.digit_mc._y = -30;
stop();
Symbol 664 MovieClip Frame 1
this.showNum = function (num) {
if (num < 0) {
num = 0;
} else if (num > 999) {
num = 999;
}
var _local5 = "00000000" + String(num);
var _local3 = _local5.substr(-3).split("");
var _local2 = 0;
while (_local2 < 3) {
this[("num" + _local2) + "_mc"].digit_mc._y = _local3[_local2] * -10;
_local2++;
}
};
stop();
Symbol 734 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 101
stop();