Frame 3
_global.gGround = 272;
_global.gSC = 0;
_global.gLvl = 0;
play_mc.onRelease = function () {
gotoAndPlay ("game");
};
playft_mc.onRelease = function () {
getURL ("http://www.fingertime.com/chopperdrop.php");
};
stop();
Frame 9
function checkKeys() {
var _local1 = Key.getCode();
if (gPause) {
return(undefined);
}
if (!(_local1 === 32)) {
} else {
game_mc.plane_mc.bombsAway();
}
}
snd_mc.playloop(1);
if (keyListener != undefined) {
Key.removeListener(keyListener);
keyListener = undefined;
}
var keyListener = new Object();
keyListener.onKeyDown = checkKeys;
Key.addListener(keyListener);
this.onMouseDown = function () {
game_mc.plane_mc.bombsAway();
};
stop();
Frame 13
_global.gLvl++;
snd_mc.playloop(0);
txt.text = ("Level " + gLvl) + " complete!\r\rthe next one's a little faster...";
ok_mc.onRelease = function () {
gotoAndPlay ("game");
};
stop();
Frame 18
snd_mc.playloop(0);
switch (true) {
case _global.gSC > 700 :
var xtra = "You're a top chopper!";
break;
case _global.gSC > 600 :
var xtra = "that's great!";
break;
case _global.gSC > 500 :
var xtra = "great score, ace.";
break;
case _global.gSC > 400 :
var xtra = "very good score!";
break;
case _global.gSC > 350 :
var xtra = "good score!";
break;
case _global.gSC > 300 :
var xtra = "not bad at all!";
break;
case _global.gSC > 250 :
var xtra = "a reasonable flight.";
break;
case _global.gSC > 200 :
var xtra = "winners don't do drugs.";
break;
case _global.gSC > 180 :
var xtra = "don't give up the day job.";
break;
case _global.gSC > 150 :
var xtra = "could do better.";
break;
case _global.gSC > 130 :
var xtra = "more drop than chop...";
break;
case _global.gSC > 100 :
var xtra = "You need practice!";
break;
case _global.gSC > 80 :
var xtra = "could do better!";
break;
case _global.gSC > 70 :
var xtra = "not very good, eh?";
break;
case _global.gSC > 60 :
var xtra = "are you on medication?";
break;
case _global.gSC > 50 :
var xtra = "are you blind?";
break;
case _global.gSC > 20 :
var xtra = "that was rubbish!";
break;
default :
var xtra = "You suck!";
}
txt.text = "GAME OVER\r\r" + xtra;
playagain_mc.onRelease = function () {
gotoAndPlay ("menu");
};
playft_mc.onRelease = function () {
getURL ("http://www.fingertime.com/chopperdrop.php");
};
stop();
Frame 23
inSubmit.fHS("submit", _global.gSC);
stop();
Frame 28
ok_mc.onRelease = function () {
this._parent.inSubmit.fHS("hide");
gotoAndPlay ("menu");
};
stop();
Symbol 5 MovieClip Frame 1
this._rotation = Math.random() * 360;
Symbol 5 MovieClip Frame 11
stop();
Symbol 6 MovieClip [mc.plane] Frame 1
this.init = function () {
this.pX = -100;
this.pY = 50;
this.pXSpeed = 10 + gLvl;
this.pYSpeed = 0;
this.pState = "flying";
this._x = this.pX;
this._y = this.pY;
};
this.onEnterFrame = function () {
if (gPause) {
return(undefined);
}
this.pX = this.pX + this.pXSpeed;
if (this.pX > 600) {
this.pX = -100 - Math.floor(Math.random(200));
this.pY = this.pY + 10;
this._y = this.pY;
}
if (this.pState == "dead") {
this.pYSpeed = this.pYSpeed + (this.pYSpeed * 0.2);
this.pY = this.pY + this.pYSpeed;
if (this.pY > gGround) {
this._parent._parent.gotoAndPlay("gameover");
return(undefined);
}
}
this._x = this.pX;
this._y = this.pY;
this._parent._parent.snd_mc.setLR(pX);
this.tTest = Math.floor(((this.pX + 10) - 60) / 20);
this._parent[("building" + this.tTest) + "_mc"].testPlaneImpact();
};
this.bombsAway = function () {
if (this.pState == "dead") {
return(undefined);
}
if (gPause) {
return(undefined);
}
this._parent.bomb_mc.drop(this.pX, this.pY);
};
this.explode = function () {
if (this.pState == "flying") {
this.pState = "dead";
this._parent._parent.snd_mc.playsound("pBoom");
this.gotoAndPlay("explode");
this.pYSpeed = 1;
}
};
this.init();
stop();
Symbol 6 MovieClip [mc.plane] Frame 36
stop();
Symbol 8 MovieClip [mc.bomb] Frame 1
this.init = function () {
this.pX = -100;
this.pY = -100;
this.pYSpeed = 1;
this.pEnergy = 4;
this.pState = "idle";
this._x = this.pX;
this._y = this.pY;
};
this.onEnterFrame = function () {
if (!(this.pState === "falling")) {
} else {
this.pYSpeed = this.pYSpeed + (this.pYSpeed * 0.2);
if (this.pYSpeed > 16) {
this.pYSpeed = 16;
}
this.pY = this.pY + this.pYSpeed;
if (this.pY > gGround) {
this.init();
}
this._y = this.pY;
if (this.tTest1 != undefined) {
this._parent[("building" + this.tTest1) + "_mc"].testImpact();
}
if (this.tTest2 != undefined) {
this._parent[("building" + this.tTest2) + "_mc"].testImpact();
}
}
};
this.drop = function (tx, ty) {
if (this.pState == "idle") {
this._parent._parent.snd_mc.playsound("pDrop");
this.pX = tx;
this.pY = ty;
this.pState = "falling";
this.tTest1 = Math.floor(((this.pX - 4) - 60) / 20);
this.tTest2 = Math.floor(((this.pX + 4) - 60) / 20);
if ((this.tTest1 < 0) || (this.tTest1 > 19)) {
this.tTest1 = undefined;
}
if (((this.tTest1 < 0) || (this.tTest1 > 19)) || (this.tTest2 == this.tTest1)) {
this.tTest2 = undefined;
}
this._x = this.pX;
this._y = this.pY;
}
};
this.reduce = function () {
this.pEnergy--;
if (this.pEnergy == 0) {
this.init();
}
};
this.init();
stop();
Symbol 9 MovieClip [mc.building] Frame 1
this.pBlocks = 0;
this.build = function () {
this.pBlocks = (2 + Math.floor(Math.random() * 5)) + Math.floor(gLvl / 2);
var _local2 = 1;
while (_local2 <= this.pBlocks) {
var _local3 = new Object();
_local3._x = 0;
_local3._y = _local2 * -20;
if (_local2 == this.pBlocks) {
_local3.pTop = 1;
} else {
_local3.pTop = 0;
}
this.attachMovie("mc.buildingblock", "block" + _local2, _local2, _local3);
_local2++;
}
};
this.reduceBlock = function () {
this.pBlocks--;
this._parent._parent.snd_mc.playsound("pBoom");
if (this.pBlocks == 0) {
this._parent.reduceBuildings();
}
};
this.testImpact = function () {
this["block" + this.pBlocks].testImpact();
};
this.testPlaneImpact = function () {
this["block" + this.pBlocks].testPlaneImpact();
};
this.build();
stop();
Symbol 15 MovieClip Frame 1
stop();
Symbol 16 MovieClip [mc.buildingblock] Frame 1
this.pState = "idle";
this.testImpact = function () {
if (this.hitTest(this._parent._parent.bomb_mc)) {
this._parent._parent.bomb_mc.reduce();
_global.gSC++;
this._parent._parent._parent.scoretxt.text = String(gSC);
this._parent.reduceBlock();
this.pState = "exploding";
this.gotoAndPlay("explode");
}
};
this.testPlaneImpact = function () {
if (this.pState == "exploding") {
return(undefined);
}
if (this.hitTest(this._parent._parent.plane_mc)) {
this._parent._parent.plane_mc.explode();
}
};
if (this.pTop == 1) {
var ttop = Math.floor(Math.random() * 4);
this.gfx_mc.gotoAndStop(2 + ttop);
}
stop();
Symbol 16 MovieClip [mc.buildingblock] Frame 19
this.removeMovieClip();
stop();
Symbol 18 MovieClip Frame 1
this._parent.hitArea = this;
this._alpha = 0;
stop();
Symbol 21 MovieClip [mc.soundclip] Frame 1
function setVol(x) {
pDrop.setVolume(x * 70);
pBoom.setVolume(x * 100);
pLoop.setVolume(x * 70);
}
function playsound(snd) {
eval (snd).start();
}
function onRelease() {
if (pVol == 100) {
pVol = 0;
this.setVol(0);
gotoAndStop (3);
} else {
pVol = 100;
this.setVol(1);
gotoAndStop (2);
}
}
var pVol = 100;
this.createEmptyMovieClip("snd1", 1);
var pDrop = new Sound(this);
pDrop.attachSound("s-drop");
var pBoom = new Sound(this);
pBoom.attachSound("s-boom");
var pLoop = new Sound(snd1);
pLoop.attachSound("s-copter");
this.playloop = function (tx) {
trace("play loop");
if (tx == 1) {
pLoop.start(0, 999);
} else {
pLoop.stop();
}
};
this.setLR = function (tx) {
var _local1 = Math.round(tx / 2.4) - 100;
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 100) {
_local1 = 100;
}
var _local2 = 100 - (Math.abs(_local1) / 2);
pLoop.setPan(_local1);
pLoop.setVolume(_local2);
};
this.setVol(1);
this.playmenu(1);
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 44
stop();
Symbol 34 MovieClip Frame 1
var pName = String(this._name.slice(0, -3));
switch (pName) {
case "ok" :
txt.text = "ok";
break;
case "view" :
txt.text = "Top Droppers";
break;
case "submit" :
txt.text = "Submit";
break;
default :
txt.text = pName;
}
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 1
this.init = function () {
this.pPlaneHeight = 30;
this.pBuildingCount = 0;
_global.gPause == false;
};
this.build = function () {
var _local2 = 0;
while (_local2 < 20) {
var _local3 = new Object();
_local3.pX = _local2 * 20;
_local3._x = 60 + (_local2 * 20);
_local3._y = gGround;
this.attachMovie("mc.building", ("building" + _local2) + "_mc", _local2, _local3);
this[("building" + _local2) + "_mc"].build();
this.pBuildingCount++;
_local2++;
}
};
this.reduceBuildings = function () {
this.pBuildingCount--;
if (this.pBuildingCount == 0) {
this._parent.gotoAndPlay("levelup");
}
};
this.init();
this.build();
this.attachMovie("mc.plane", "plane_mc", 1000);
this.attachMovie("mc.bomb", "bomb_mc", 999);
stop();
Symbol 43 MovieClip Frame 1
stop();