Frame 1
mochi.as2.MochiServices.connect("62f044a6a8eecde3");
NewgroundsAPI.connectMovie(6300);
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
loadingBar._xscale = _local4;
percentClip.percentDisplay.text = _local4 + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay.text = ((("loading " + _local3) + " of ") + _local2) + " bytes";
if (_local3 >= _local2) {
clearInterval(loadingCall);
gotoAndStop (2);
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
function itemHandler1(obj, item) {
getURL ("http://www.newgrounds.com/", "_blank");
}
function itemHandler2(obj, item) {
getURL ("jayden159@gmail.com");
}
function itemHandler5(obj, item) {
_quality = "high";
}
function itemHandler6(obj, item) {
_quality = "medium";
}
function itemHandler7(obj, item) {
_quality = "low";
}
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
aaa_cmi = new ContextMenuItem("Visit Newgrounds where the collab was made", itemHandler1);
bbb_cmi = new ContextMenuItem("Email me your opinion", itemHandler2);
eee_cmi = new ContextMenuItem("High Quality", itemHandler5);
fff_cmi = new ContextMenuItem("Mid Quality", itemHandler6);
ggg_cmi = new ContextMenuItem("Low Quality", itemHandler7);
ccc_cmi.separatorBefore = true;
eee_cmi.separatorBefore = true;
root_cm.customItems.push(aaa_cmi, bbb_cmi, ccc_cmi, ddd_cmi, eee_cmi, fff_cmi, ggg_cmi);
_root.menu = root_cm;
Instance of Symbol 225 MovieClip in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
percen1 = ("" + percent) + "%";
gotoAndStop(percent);
if (loaded == total) {
}
}
Frame 2
stop();
Frame 3
play();
Mouse.show();
_root.GameOver.removeMovieClip();
_root.enemy_dead.removeMovieClip();
_root.enemy_bish_body_mc.removeMovieClip();
_root.peee.unloadMovie();
_root.peee.removeMovieClip();
Enemy = true;
Enemyi = true;
_root.Enemy1.removeMovieClip();
_root.Enemy2.removeMovieClip();
_root.Enemy3.removeMovieClip();
var nd = false;
var ndd = false;
var deads = false;
var e_counter = false;
var base_life = false;
enemy_bish_body_mc.unloadMovie();
enemy_dead.unloadMovie();
clonesambush.unloadMovie();
Bullet.onEnterFrame = function () {
if (_root.Bullet == true) {
this.removeMovieClip();
_root.Bullet = false;
}
};
_root.Bullet + i.removeMovieClip();
_root.Bullet.removeMovieClip();
var savefile = SharedObject.getLocal("minigame");
if (savefile.data.totalplays == undefined) {
totalplays = 0;
} else {
totalplays = savefile.data.totalplays;
totalplays++;
if (totalplays >= 20) {
_root.medals[3] = 1;
}
if (totalplays >= 40) {
_root.medals[4] = 1;
}
}
Frame 5
stop();
Mouse.show();
messages = new Array("5 minutes of play time!", "20 minutes of play time!", "40 minutes of play time!", "Played 20 times!", "Played 40 times!", "Survived 120 seconds in shark bait!", "Survived 180 seconds in shark bait!", "Finished lost in the dark!", "1500 points in block swap!", "2500 points in block swap!", "Beat the boss in aciishooter!", "1500 score in aciishooter!", "10,000 in Arial Defense!", "20 hits in Arial Defense!", "Win at Click the Buttons!", "Win at Possible plane!", "Destroy 250 enemies in sky pirates!", "Live for 2 minutes in sky pirates!", "Score 200 points in Trilobutus!", "Live for 2 minutes in Trilobitus!", "Score 150 in anatomy!", "Score 300 in anatomy!", "Score 2200 in Rock Guitar!", "Get less than 6 misses in Rock Guitar", "Survive 150 seconds in Death Ball!", "Make 100 jumps in Death Ball!", "Complete the monkey maze", "Wave 5 saving the world! .. moon", "Wave 8 saving the world!.. moon", "Easy spotting!", "Hard spotting!", "got BRONZE", "got SILVER", "got GOLD", "300 PEE", "OVER 500 PEE", "50 bacteria POINTS", "100 bacteria POINTS", "LED time...", "Survive clones ambush!", "300 CLONES!!!");
medalAward.stop();
if (medals != undefined) {
i = 40;
while (i >= 0) {
if (oldmedals[i] != medals[i]) {
medalAward.move.info = messages[i];
trace("medal");
_root.medalAward.gotoAndPlay(2);
break;
}
i--;
}
}
var medals = new Array();
var oldmedals = new Array();
if (savefile.data.zuggztime == undefined) {
zuggztime = 0;
} else {
zuggztime = savefile.data.zuggztime;
}
if (savefile.data.medals == undefined) {
i = 0;
while (i <= 40) {
medals[i] = 0;
i++;
}
} else {
medals = savefile.data.medals;
}
savefile.data.medals = _root.medals;
savefile.data.totalplays = _root.totalplays;
savefile.flush();
if (medaltotaltime == undefined) {
var medaltotaltime = function () {
zuggztime++;
savefile.data.zuggztime = _root.zuggztime;
if (zuggztime >= 300) {
_root.medals[0] = 1;
}
if (zuggztime >= 1200) {
_root.medals[1] = 1;
}
if (zuggztime >= 2400) {
_root.medals[2] = 1;
}
};
setInterval(medaltotaltime, 1000);
}
totalMedals = 0;
i = 0;
while (i <= 40) {
if (medals[i] == 1) {
totalMedals++;
}
i++;
}
trace(totalplays);
trace(zuggztime);
i = 0;
while (i <= 40) {
oldmedals[i] = medals[i];
i++;
}
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
mm.a1.gotoAndStop(1);
mm.a2.gotoAndStop(2);
mm.a3.gotoAndStop(4);
mm.a4.gotoAndStop(5);
mm.a5.gotoAndStop(3);
mm.a6.gotoAndStop(1);
mm.a7.gotoAndStop(6);
mm.a8.gotoAndStop(7);
mm.a9.gotoAndStop(4);
mm.a10.gotoAndStop(2);
mm.a11.gotoAndStop(5);
mm.a12.gotoAndStop(7);
mm.a13.gotoAndStop(6);
mm.a14.gotoAndStop(3);
mm.a15.gotoAndStop(1);
mm.a16.gotoAndStop(3);
Frame 18
stop();
Frame 19
stop();
Frame 20
stop();
Frame 21
stop();
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
var o = {n:[14, 9, 4, 2, 3, 0, 7, 10, 1, 1, 14, 6, 8, 10, 15, 4], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:totalMedals});
Frame 27
gotoAndStop ("mainmenu");
Frame 28
stop();
Frame 29
stop();
Frame 30
stop();
var o = {n:[14, 9, 4, 2, 3, 0, 7, 10, 1, 1, 14, 6, 8, 10, 15, 4], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID});
Frame 31
gotoAndStop ("mainmenu");
Frame 32
stop();
Instance of Symbol 620 MovieClip in Frame 32
on (release) {
down = false;
}
on (press) {
down = true;
}
onClipEvent (enterFrame) {
if (down) {
if (_parent.medallist._y <= 130) {
_parent.medallist._y = _parent.medallist._y + 5;
}
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 622 MovieClip in Frame 32
on (release) {
down = false;
}
on (press) {
down = true;
}
onClipEvent (enterFrame) {
if (down) {
if (_parent.medallist._y >= -440) {
_parent.medallist._y = _parent.medallist._y - 5;
}
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 34
function playerDie() {
if (!die) {
fader.gotoAndPlay("dead");
die = true;
}
}
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
if (this.timer.timer > 0.5) {
_root.die();
}
}
function win() {
this.fader.nextFrame();
}
checkPoint = "tut";
stop();
this.timer.timer = 0;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 795 MovieClip "cannon" in Frame 34
onClipEvent (mouseDown) {
this.play();
}
onClipEvent (enterFrame) {
a = this._y - _root._ymouse;
b = this._x - _root._xmouse;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
Instance of Symbol 799 MovieClip "ball" in Frame 34
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.shoot) {
this._rotation = this._parent.cannon.degrees;
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._visible = true;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(1);
shooting = true;
}
}
onClipEvent (enterFrame) {
if (Math.abs(xMouse - this._x) < 1) {
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(2);
shooting = false;
} else if (shooting) {
this._x = this._x - ((this._x - xMouse) / 3);
this._y = this._y - ((this._y - yMouse) / 3);
}
}
Instance of Symbol 801 MovieClip "planet" in Frame 34
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.1;
_root.health = this._parent.death._currentframe / 10;
this._parent.health_txt.text = _root.health;
if (_root.health <= 2) {
_root.playerDie();
}
}
Instance of Symbol 806 MovieClip "timer" in Frame 34
onClipEvent (load) {
this._visible = false;
timer = 0;
scanned = false;
}
onClipEvent (enterFrame) {
if ((timer == 2) && (!scanned)) {
_root.scan();
scanned = true;
}
}
Instance of Symbol 808 MovieClip in Frame 34
on (release) {
_root.nextFrame();
}
Instance of Symbol 811 MovieClip "death" in Frame 34
onClipEvent (load) {
this.gotoAndStop(1000);
}
Instance of Symbol 817 MovieClip "vcam" in Frame 34
onClipEvent (enterFrame) {
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this._x = this._x - ((this._x - xMouse) / 2);
this._y = this._y - ((this._y - yMouse) / 2);
}
Instance of Symbol 825 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (((Key.isDown(90) && (Key.isDown(88))) && (Key.isDown(67))) && (Key.isDown(86))) {
this.play();
}
}
Frame 35
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
if (this.timer.timer > 0.5) {
trace("--The player has died.");
}
}
function win() {
this.fader.nextFrame();
}
stop();
this.timer.timer = 0;
var fade = false;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 808 MovieClip in Frame 35
on (release) {
_root.nextFrame();
}
Frame 36
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
if (this.timer.timer > 0.5) {
trace("--The player has died.");
}
}
function win() {
this.fader.nextFrame();
}
stop();
this.timer.timer = 0;
var fade = false;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip in Frame 36
onClipEvent (load) {
damage = 50;
speed = 3;
_root.totalVs++;
_root.vs++;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Instance of Symbol 808 MovieClip in Frame 36
on (release) {
_root.nextFrame();
}
Frame 37
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
if (this.timer.timer > 0.5) {
trace("--The player has died.");
}
}
function win() {
this.fader.nextFrame();
}
stop();
this.timer.timer = 0;
var fade = false;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip in Frame 37
onClipEvent (load) {
damage = 50;
speed = 0;
_root.totalVs++;
_root.vs++;
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Instance of Symbol 858 MovieClip in Frame 37
onClipEvent (load) {
damage = 50;
speed = 50;
_root.totalVs++;
_root.vs++;
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Frame 38
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
fader.gotoAndPlay("dead");
}
function win() {
this.fader.nextFrame();
}
stop();
playerDie();
checkPoint = "learnDeath";
this.timer.timer = 0;
var fade = false;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip in Frame 38
onClipEvent (load) {
damage = 50;
speed = 0;
_root.totalVs++;
_root.vs++;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Frame 39
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function asteroidDestroyed() {
vs--;
trace((("--An asteroid has been destroyed, now there is " + vs) + " instead of the original ") + totalVs);
}
function playerDie() {
fader.gotoAndPlay("dead");
}
function win() {
this.fader.nextFrame();
}
stop();
this.timer.timer = 0;
var fade = false;
var totalVs = 0;
var vs = totalVs;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 808 MovieClip in Frame 39
on (release) {
_root.nextFrame();
}
Frame 40
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function playerDie() {
fader.gotoAndPlay("dead");
}
function win() {
this.fader.play();
}
function spawn() {
duplicateMovieClip (mainEnemy, ["enemy" + i], i);
goto = Math.round(Math.random() * 4);
if (goto == 0) {
this["enemy" + i]._y = -800;
this["enemy" + i]._x = Math.random() * 1300;
}
if (goto == 1) {
this["enemy" + i]._y = Math.random() * 1300;
this["enemy" + i]._x = -650;
}
if (goto == 3) {
this["enemy" + i]._y = 1300;
this["enemy" + i]._x = Math.random() * 1300;
}
if (goto == 4) {
this["enemy" + i]._y = Math.random() * 1300;
this["enemy" + i]._x = 1200;
}
i++;
}
stop();
var i = 0;
this.timer.timer = 0;
var fade = false;
var level = 1;
var levelName = "";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip "mainEnemy" in Frame 40
onClipEvent (load) {
damage = 50;
speed = Math.random() * 10;
_root.totalVs++;
_root.vs++;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Instance of Symbol 862 MovieClip in Frame 40
onClipEvent (load) {
_root.kills = 0;
}
Frame 41
camSpeed = 2;
_root.gotoAndStop("menu");
Frame 42
function spawn() {
duplicateMovieClip (mainEnemy, ["enemy" + i], i);
goto = Math.round(Math.random() * 3);
if (goto == 0) {
this["enemy" + i]._y = -800;
this["enemy" + i]._x = Math.random() * 1300;
}
if (goto == 1) {
this["enemy" + i]._y = Math.random() * 1300;
this["enemy" + i]._x = -650;
}
if (goto == 2) {
this["enemy" + i]._y = 1300;
this["enemy" + i]._x = Math.random() * 1300;
}
if (goto == 3) {
this["enemy" + i]._y = Math.random() * 1300;
this["enemy" + i]._x = 1200;
}
i++;
}
var song = new Sound();
song.attachSound("pD");
song.start(0, 100);
_root.camSpeed = 2;
stop();
Instance of Symbol 795 MovieClip "cannon" in Frame 42
onClipEvent (mouseDown) {
this.play();
}
onClipEvent (enterFrame) {
a = this._y - _root._ymouse;
b = this._x - _root._xmouse;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
Instance of Symbol 799 MovieClip "ball" in Frame 42
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.shoot) {
this._rotation = this._parent.cannon.degrees;
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._visible = true;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(1);
shooting = true;
}
}
onClipEvent (enterFrame) {
if (Math.abs(xMouse - this._x) < 1) {
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(2);
shooting = false;
} else if (shooting) {
this._x = this._x - ((this._x - xMouse) / 3);
this._y = this._y - ((this._y - yMouse) / 3);
}
}
Instance of Symbol 801 MovieClip "planet" in Frame 42
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.1;
_root.health = this._parent.death._currentframe / 10;
this._parent.health_txt.text = _root.health;
if (_root.health <= 2) {
_root.playerDie();
}
}
Frame 43
play();
Frame 44
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave1";
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 1";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 795 MovieClip "cannon" in Frame 44
onClipEvent (mouseDown) {
this.play();
}
onClipEvent (enterFrame) {
a = this._y - _root._ymouse;
b = this._x - _root._xmouse;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
Instance of Symbol 799 MovieClip "ball" in Frame 44
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.shoot) {
this._rotation = this._parent.cannon.degrees;
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._visible = true;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(1);
shooting = true;
}
}
onClipEvent (enterFrame) {
if (Math.abs(xMouse - this._x) < 1) {
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(2);
shooting = false;
} else if (shooting) {
this._x = this._x - ((this._x - xMouse) / 3);
this._y = this._y - ((this._y - yMouse) / 3);
}
}
Instance of Symbol 801 MovieClip "planet" in Frame 44
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.1;
_root.health = this._parent.death._currentframe / 10;
this._parent.health_txt.text = _root.health;
if (_root.health <= 2) {
_root.playerDie();
}
}
Instance of Symbol 806 MovieClip "timer" in Frame 44
onClipEvent (load) {
this._visible = false;
timer = 0;
scanned = false;
}
onClipEvent (enterFrame) {
if ((timer == 2) && (!scanned)) {
_root.scan();
scanned = true;
}
}
Instance of Symbol 858 MovieClip "mainEnemy" in Frame 44
onClipEvent (load) {
damage = 50;
speed = (Math.random() * 10) + 5;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Instance of Symbol 862 MovieClip in Frame 44
onClipEvent (load) {
_root.kills = 0;
}
Instance of Symbol 811 MovieClip "death" in Frame 44
onClipEvent (load) {
this.gotoAndStop(1000);
}
Instance of Symbol 817 MovieClip "vcam" in Frame 44
onClipEvent (enterFrame) {
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this._x = this._x - ((this._x - xMouse) / _root.camSpeed);
this._y = this._y - ((this._y - yMouse) / _root.camSpeed);
}
Frame 45
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 2";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 883 MovieClip in Frame 45
onClipEvent (load) {
_root.kills = 0;
}
Frame 46
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 3";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 885 MovieClip in Frame 46
onClipEvent (load) {
_root.kills = 0;
}
Frame 47
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 4";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 887 MovieClip in Frame 47
onClipEvent (load) {
_root.kills = 0;
}
Frame 48
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave5";
_root.medals[27] = 1;
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 5";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip "mainEnemy" in Frame 48
onClipEvent (load) {
damage = 50;
speed = (Math.random() * 10) + 10;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Instance of Symbol 889 MovieClip in Frame 48
onClipEvent (load) {
_root.kills = 0;
}
Frame 49
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave6";
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 6";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 891 MovieClip in Frame 49
onClipEvent (load) {
_root.kills = 0;
}
Frame 50
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave7";
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 7";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 894 MovieClip in Frame 50
onClipEvent (load) {
_root.kills = 0;
}
Frame 51
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave8";
_root.medals[28] = 1;
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 8";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 895 MovieClip in Frame 51
onClipEvent (load) {
_root.kills = 0;
}
Frame 52
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave9";
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Wave 9";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 897 MovieClip in Frame 52
onClipEvent (load) {
_root.kills = 0;
}
Frame 53
function scan() {
trace("--Scaned, results as follows:");
trace("---");
trace("--Number of astroids on stage: " + totalVs);
health = this.death._currentframe / 10;
trace(("--Player's current health: " + health) + "%");
trace("---");
}
function win() {
this.fader.play();
}
stop();
var i = 0;
checkPoint = "wave10";
this.timer.timer = 0;
var kills = 0;
var fade = false;
var levelName = "Final Round";
var health = (this.death._currentframe / 10);
trace("--Level Started");
trace("--Preparing to scan game, please wait for objects to load");
Instance of Symbol 858 MovieClip "mainEnemy" in Frame 53
onClipEvent (load) {
damage = 50;
speed = (Math.random() * 10) + 15;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
a = this._y - this._parent.cannon._y;
b = this._x - this._parent.cannon._x;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
onClipEvent (enterFrame) {
var adj = (this._parent.planet._X - this._X);
var opp = (this._parent.planet._Y - this._Y);
var rot = Math.atan2(opp, adj);
this._rotation = convert(rot);
var xs = (speed * Math.cos((this._rotation * Math.PI) / 180));
var ys = (speed * Math.sin((this._rotation * Math.PI) / 180));
this._x = this._x - xs;
this._y = this._y - ys;
if (this.hitTest(this._parent.ball)) {
this.play();
}
if (this.hitTest(this._parent.planet)) {
this._parent.death.gotoAndPlay((this._parent.death._currentframe = this._parent.death._currentframe - damage));
this.play();
}
}
Frame 54
_root.gotoAndPlay("win");
Instance of Symbol 795 MovieClip "cannon" in Frame 57
onClipEvent (mouseDown) {
this.play();
}
onClipEvent (enterFrame) {
a = this._y - _root._ymouse;
b = this._x - _root._xmouse;
angleA = Math.atan2(a, b);
degrees = angleA / 0.0165346981767884;
this._rotation = degrees;
}
Instance of Symbol 799 MovieClip "ball" in Frame 57
onClipEvent (load) {
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.shoot) {
this._rotation = this._parent.cannon.degrees;
var xMouse = _root._xmouse;
var yMouse = _root._ymouse;
this._visible = true;
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(1);
shooting = true;
}
}
onClipEvent (enterFrame) {
if (Math.abs(xMouse - this._x) < 1) {
this._x = this._parent.cannon._x;
this._y = this._parent.cannon._y;
this.gotoAndStop(2);
shooting = false;
} else if (shooting) {
this._x = this._x - ((this._x - xMouse) / 3);
this._y = this._y - ((this._y - yMouse) / 3);
}
}
Instance of Symbol 801 MovieClip "planet" in Frame 57
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.1;
_root.health = this._parent.death._currentframe / 10;
this._parent.health_txt.text = _root.health;
if (_root.health <= 2) {
_root.playerDie();
}
}
Frame 191
stop();
Frame 192
play();
Frame 217
_root.gotoAndStop(_root.checkPoint);
Frame 218
stopAllSounds();
stop();
Frame 219
stop();
Frame 220
stop();
_root.attachMovie("peee", "peee", _root.getNextHighestDepth(), {_x:300, _y:300});
Frame 221
function over() {
removeMovieClip(line);
removeMovieClip(head);
_root.nextFrame();
}
function throwit() {
n++;
xa2r[n] = _xmouse;
ya2r[n] = _ymouse;
nn = xa2r[n - 1] - xa2r[n];
yy = ya2r[n - 1] - ya2r[n];
}
stop();
var sound = new Sound();
sound.attachSound("bounce");
g = 10;
s = 999;
ii = 3;
total = 0;
head._visible = true;
par = new Array(_root.p1);
_root.qq.removeMovieClip();
_root.ww.removeMovieClip();
_root.ee.removeMovieClip();
xa2r = new Array(0, 0, 0);
ya2r = new Array(0, 0, 0);
n = 0;
nn = 0;
yy = 0;
throws = false;
drag = false;
yy = 0;
nom = false;
_root.points = 0;
xar = new Array();
yar = new Array();
speed = 20;
bspeed = 20;
score = 0;
j = 0;
_root.points = 0;
i = 0;
while (i <= 9) {
xar[i] = head._x;
yar[i] = head._y;
i++;
}
head.onPress = function () {
if (nom == false) {
throws = true;
drag = true;
drop = true;
}
};
head.onRelease = function () {
_root.mph = 1;
nom = true;
throws = false;
drag = false;
};
head.onReleaseOutside = function () {
nom = true;
throws = false;
drag = false;
};
head.onEnterFrame = function () {
if (nn > 0) {
nn = 0;
}
if (drag == true) {
head._x = _xmouse;
head._y = _ymouse + 20;
_root.mph = 0;
}
if (throws == true) {
throwit();
}
if (nom == true) {
if (head._x > 330) {
head._x = head._x - 10;
}
}
if (drag == false) {
_root.points = _root.points - Math.round(nn / 20);
yy = yy - 8;
_root.ggr._x = _root.ggr._x + nn;
_root.trees._x = _root.trees._x + (nn / 3);
head._y = head._y - (yy / 2);
i = 0;
while (i < par.length) {
par[i]._x = par[i]._x + (nn / 2);
i++;
}
i = 0;
while (i < 99) {
_root["p1" + i]._x = _root["p1" + i]._x + (nn / 2);
i++;
}
_root.clou._x = _root.clou._x + (nn / 70);
_root.clou2._x = _root.clou2._x + (nn / 120);
_root.mph = Math.round((-nn) / 5);
}
};
i = 0;
while (i < 99) {
_root.p1.duplicateMovieClip("p1" + i, i * 3);
_root["p1" + i]._x = _root["p1" + i]._x * i;
_root["p1" + i].pos = i;
i++;
}
onEnterFrame = function () {
if ((mph <= 0) && (nom == true)) {
_root.nextFrame();
}
_root.yytb.text = yy;
if (head._y < 0) {
_root.diss._visible = true;
_root.diss.dist = hei;
hei = Math.round((-head._y) / 2);
} else {
_root.diss._visible = false;
}
nn = nn * 0.99;
l = 1;
while (l <= 15) {
xar[l] = xar[l] + (nn / 2);
l++;
}
u = 1;
while (u <= 10) {
while (yar[u] > 550) {
yar[u] = yar[u] - 1;
}
if (head._y > 550) {
if (yy < -10) {
sound.setVolume((-yy) * 2);
sound.start(0, 0);
}
if ((yy < -130) && (nom == true)) {
_root.attachMovie("ditch", "ditch" + ii, ii, {_x:head._x, _y:563});
_root["ditch" + ii].onEnterFrame = function () {
_root["ditch" + ii]._x = _root["ditch" + ii]._x + nn;
ii++;
};
}
if (yy < 0) {
yy = yy * -0.78;
nn = nn * 0.88;
} else {
head._y = 550;
}
}
u++;
}
if (Key.isDown(32)) {
j++;
}
xar[0] = head._x;
yar[0] = head._y;
with (createEmptyMovieClip("line", 499)) {
lineStyle(8, 0);
moveTo(head._x, head._y);
}
i = 1;
while (i <= 9) {
yar[i] = yar[i] + speed;
i = 1;
while (i <= 1) {
ii = i - 1;
x = xar[1] - xar[0];
y = yar[1] - yar[0];
ang = Math.atan2(y, x) / (Math.PI/180);
head._rotation = ang - 90;
xar[i] = ((Math.cos(ang * (Math.PI/180)) * 50) + xar[ii]) - 0.3;
yar[i] = (Math.sin(ang * (Math.PI/180)) * 50) + yar[ii];
line.lineTo(xar[i] + 1, yar[i]);
i++;
}
i = 2;
while (i <= 2) {
ii = i - 1;
xar[2] = xar[2] + 10;
yar[2] = yar[2] + 20;
x = xar[i] - xar[ii];
y = yar[i] - yar[ii];
ang = Math.atan2(y, x) / (Math.PI/180);
xar[i] = (Math.cos(ang * (Math.PI/180)) * 50) + xar[ii];
yar[i] = (Math.sin(ang * (Math.PI/180)) * 50) + yar[ii];
line.lineTo(xar[2], yar[2]);
i++;
}
i = 3;
while (i <= 3) {
xar[3] = xar[3] - 10;
yar[3] = yar[3] + 20;
x2 = xar[3] - xar[1];
y2 = yar[3] - yar[1];
ang2 = Math.atan2(y2, x2) / (Math.PI/180);
xar[3] = (Math.cos(ang2 * (Math.PI/180)) * 50) + xar[1];
yar[3] = (Math.sin(ang2 * (Math.PI/180)) * 50) + yar[1];
line.moveTo(xar[1], yar[1]);
line.lineTo(xar[3], yar[3]);
i++;
}
i = 4;
while (i <= 4) {
ii = i - 1;
xar[4] = xar[4] - 10;
yar[4] = yar[4] + 15;
x3 = xar[i] - xar[0];
y3 = yar[i] - yar[0];
ang3 = Math.atan2(y3, x3) / (Math.PI/180);
xar[i] = (Math.cos(ang3 * (Math.PI/180)) * 30) + xar[0];
yar[i] = (Math.sin(ang3 * (Math.PI/180)) * 30) + yar[0];
line.moveTo(xar[0], yar[0]);
line.lineTo(xar[4], yar[4]);
i++;
}
i = 5;
while (i <= 5) {
ii = i - 1;
xar[5] = xar[5] + 10;
yar[5] = yar[5] + 15;
x4 = xar[i] - xar[0];
y4 = yar[i] - yar[0];
ang4 = Math.atan2(y4, x4) / (Math.PI/180);
xar[i] = (Math.cos(ang4 * (Math.PI/180)) * 30) + xar[0];
yar[i] = (Math.sin(ang4 * (Math.PI/180)) * 30) + yar[0];
line.moveTo(xar[0], yar[0]);
line.lineTo(xar[5], yar[5]);
i++;
}
i = 6;
while (i <= 6) {
ii = i - 1;
yar[6] = yar[6] + 15;
xar[6] = xar[6] + 5;
x5 = xar[6] - xar[5];
y5 = yar[6] - yar[5];
ang5 = Math.atan2(y5, x5) / (Math.PI/180);
xar[i] = (Math.cos(ang5 * (Math.PI/180)) * 30) + xar[5];
yar[i] = (Math.sin(ang5 * (Math.PI/180)) * 30) + yar[5];
line.lineTo(xar[6], yar[6]);
i++;
}
i = 7;
while (i <= 7) {
ii = i - 1;
yar[7] = yar[7] + 15;
xar[7] = xar[7] - 5;
x6 = xar[7] - xar[4];
y6 = yar[7] - yar[4];
ang6 = Math.atan2(y6, x6) / (Math.PI/180);
xar[i] = (Math.cos(ang6 * (Math.PI/180)) * 30) + xar[4];
yar[i] = (Math.sin(ang6 * (Math.PI/180)) * 30) + yar[4];
line.moveTo(xar[4], yar[4]);
line.lineTo(xar[7], yar[7]);
i++;
}
i = 8;
while (i <= 8) {
ii = i - 1;
xar[8] = xar[8] - 2;
yar[8] = yar[8] + 15;
x7 = xar[8] - xar[3];
y7 = yar[8] - yar[3];
ang7 = Math.atan2(y7, x7) / (Math.PI/180);
xar[i] = (Math.cos(ang7 * (Math.PI/180)) * 30) + xar[3];
yar[i] = (Math.sin(ang7 * (Math.PI/180)) * 30) + yar[3];
line.moveTo(xar[3], yar[3]);
line.lineTo(xar[8], yar[8]);
i++;
}
i = 9;
while (i <= 9) {
xar[9] = xar[9] + 2;
yar[9] = yar[9] + 10;
x8 = xar[9] - xar[2];
y8 = yar[9] - yar[2];
ang8 = Math.atan2(y8, x8) / (Math.PI/180);
xar[i] = (Math.cos(ang8 * (Math.PI/180)) * 30) + xar[2];
yar[i] = (Math.sin(ang8 * (Math.PI/180)) * 30) + yar[2];
line.moveTo(xar[2], yar[2]);
line.lineTo(xar[9], yar[9]);
i++;
}
i++;
}
if (_root.mph <= 0) {
if (nom == true) {
over();
}
}
_root.sha._xscale = (xar[0] - xar[9]) + (xar[9] - xar[8]);
};
Instance of Symbol 975 MovieClip "head" in Frame 221
onClipEvent (load) {
this.swapDepths(500);
}
Instance of Symbol 978 MovieClip "trees" in Frame 221
onClipEvent (load) {
_x = 0;
}
onClipEvent (enterFrame) {
if (_x <= -641.6) {
_x = -10;
}
}
Instance of Symbol 985 MovieClip "ggr" in Frame 221
onClipEvent (enterFrame) {
if (_x <= -604.5) {
_x = 0;
}
}
Instance of Symbol 988 MovieClip "sha" in Frame 221
onClipEvent (enterFrame) {
_x = _root.head._x;
yy = _root.head._y - (_y * -0.01);
_alpha = (yy / 5);
}
Frame 223
stop();
i = 0;
while (i <= 100) {
_root["ditch" + i].removeMovieClip();
i++;
}
_root.ends = (_root.points + " ") + "Feet!";
_root.line.removeMovieClip();
var score = _root.points;
if (score > 9000) {
score = 9000;
}
if (score >= 1000) {
_root.medals[31] = 1;
}
if (score >= 3500) {
_root.medals[32] = 1;
}
if (score >= 6000) {
_root.medals[33] = 1;
}
rot = (score / 9000) * 180;
Instance of Symbol 1007 MovieClip in Frame 223
on (press) {
_root.gotoAndStop("skmframe1");
}
onClipEvent (enterFrame) {
if ((!_root._currentframe) == "skmframe2") {
this.swapDepths(100);
this.removeMovieClip();
}
x = _x - _root._xmouse;
y = _y - _root._ymouse;
dist = Math.sqrt((x * x) + (y * y));
scale = dist - 150;
_xscale = (scale * -1);
_yscale = (scale * -1);
if (_xscale <= 80) {
_xscale = 80;
_yscale = 80;
}
}
Instance of Symbol 1017 MovieClip in Frame 223
onClipEvent (enterFrame) {
if (_rotation < _root.rot) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 1032 MovieClip in Frame 223
on (press) {
_root.gotoAndStop("mainmenu");
}
onClipEvent (enterFrame) {
if ((!_root._currentframe) == "skmframe2") {
this.swapDepths(100);
this.removeMovieClip();
}
x = _x - _root._xmouse;
y = _y - _root._ymouse;
dist = Math.sqrt((x * x) + (y * y));
scale = dist - 150;
_xscale = (scale * -1);
_yscale = (scale * -1);
if (_xscale <= 80) {
_xscale = 80;
_yscale = 80;
}
}
Frame 225
stop();
stop();
stop();
_root.second.text;
onEnterFrame = function () {
i++;
if (i == 30) {
tmr = tmr + 0;
_root.second.text = tmr;
}
};
over = false;
i = 0;
while (i <= 100) {
_root["ditch" + i].removeMovieClip();
i++;
}
_root.ends = (_root.points + " ") + "Feet!";
_root.line.removeMovieClip();
var score = _root.points;
if (score > 9000) {
score = 9000;
}
if (score >= 1000) {
_root.medals[31] = 1;
}
if (score >= 3500) {
_root.medals[32] = 1;
}
if (score >= 6000) {
_root.medals[33] = 1;
}
rot = (score / 9000) * 180;
Instance of Symbol 1007 MovieClip in Frame 225
on (press) {
_root.gotoAndStop("skmframe1");
}
onClipEvent (enterFrame) {
if ((!_root._currentframe) == "skmframe2") {
this.swapDepths(100);
this.removeMovieClip();
}
x = _x - _root._xmouse;
y = _y - _root._ymouse;
dist = Math.sqrt((x * x) + (y * y));
scale = dist - 150;
_xscale = (scale * -1);
_yscale = (scale * -1);
if (_xscale <= 80) {
_xscale = 80;
_yscale = 80;
}
}
Instance of Symbol 1017 MovieClip in Frame 225
onClipEvent (enterFrame) {
if (_rotation < _root.rot) {
_rotation = (_rotation + 2);
}
}
Instance of Symbol 1032 MovieClip in Frame 225
on (press) {
_root.gotoAndStop("mainmenu");
}
onClipEvent (enterFrame) {
if ((!_root._currentframe) == "skmframe2") {
this.swapDepths(100);
this.removeMovieClip();
}
x = _x - _root._xmouse;
y = _y - _root._ymouse;
dist = Math.sqrt((x * x) + (y * y));
scale = dist - 150;
_xscale = (scale * -1);
_yscale = (scale * -1);
if (_xscale <= 80) {
_xscale = 80;
_yscale = 80;
}
}
Frame 226
stop();
Frame 227
_root.second.text;
onEnterFrame = function () {
i++;
if (i == 30) {
tmr = tmr + 0;
_root.second.text = tmr;
}
};
stop();
Frame 228
_root.second.text = 0;
i = 0;
tmr = 0;
onEnterFrame = function () {
i++;
if (i == 30) {
i = 0;
tmr = tmr + 1;
if (tmr >= 120) {
_root.medals[5] = 1;
}
if (tmr >= 180) {
_root.medals[6] = 1;
}
_root.second.text = tmr;
}
};
play();
stop();
_root.health.text = 500;
Instance of Symbol 1145 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._y = _root.fish._y + 5;
}
}
Instance of Symbol 1153 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._y = _root.fish._y + 5;
}
}
Instance of Symbol 1157 MovieClip "heart" in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.health.text = parseInt(_root.health.text) + 10;
}
}
Instance of Symbol 1159 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._x = _root.fish._x + 5;
}
}
Instance of Symbol 1159 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._x = _root.fish._x + -5;
}
}
Instance of Symbol 1159 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._y = _root.fish._y + 5;
}
}
Instance of Symbol 1159 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._y = _root.fish._y + -5;
}
}
Instance of Symbol 1160 MovieClip in Frame 228
onClipEvent (enterFrame) {
if (this.hitTest(_root.fish)) {
_root.fish._y = _root.fish._y + 5;
}
}
Instance of Symbol 1169 MovieClip "fish" in Frame 228
onClipEvent (enterFrame) {
if (Key.isDown(37) && (!Key.isDown(39))) {
_x = (_x + 5);
} else if (Key.isDown(39) && (!Key.isDown(37))) {
_x = (_x - 5);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(38) && (!Key.isDown(40))) {
_y = (_y + 5);
} else if (Key.isDown(40) && (!Key.isDown(38))) {
_y = (_y - 5);
}
}
onClipEvent (enterFrame) {
if (_root.health.text == 0) {
_root.gotoAndStop("kriss008died");
}
}
onClipEvent (enterFrame) {
if (_root.health.text == -5) {
_root.gotoAndStop("kriss008died");
}
}
onClipEvent (enterFrame) {
if (_root.health.text == -10) {
_root.gotoAndStop("kriss008died");
}
}
onClipEvent (enterFrame) {
if (_root.health.text == -15) {
_root.gotoAndStop("kriss008died");
}
}
onClipEvent (enterFrame) {
if (_root.health.text == -20) {
_root.gotoAndStop("kriss008died");
}
}
onClipEvent (enterFrame) {
if (_root.health.text == -25) {
_root.gotoAndStop("kriss008died");
}
}
Frame 229
onEnterFrame = function () {
t = getTimer();
framerate = Math.round(1000 / (t - o));
o = t;
};
stop();
_root.miss = 0;
_root.score = 0;
_root.time = 0;
Frame 230
stop();
function countdown() {
if (time_left <= 0) {
if (miss < 6) {
_root.medals[23] = 1;
}
if (score >= 2200) {
_root.medals[22] = 1;
}
gotoAndStop ("guitarwin");
}
}
stopAllSounds();
time_left = 99;
setInterval(countdown, 1000);
if (miss >= 10) {
gotoAndStop ("menu");
}
Instance of Symbol 1227 MovieClip "arrowleft" in Frame 230
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
if (this.hitTest(_root.lf)) {
this.gotoAndPlay("correct");
_root.bingo.gotoAndPlay("gone");
} else {
this.gotoAndPlay("fail");
_root.miss++;
}
}
}
Instance of Symbol 1232 MovieClip "arrowup" in Frame 230
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if (this.hitTest(_root.uf)) {
this.gotoAndPlay("correct");
_root.bingo.gotoAndPlay("gone");
} else {
this.gotoAndPlay("fail");
_root.miss++;
}
}
}
Instance of Symbol 1238 MovieClip "arrowright" in Frame 230
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
if (this.hitTest(_root.rf)) {
this.gotoAndPlay("correct");
_root.score++;
} else {
this.gotoAndPlay("fail");
_root.miss++;
}
}
}
Instance of Symbol 1242 MovieClip "arrowdown" in Frame 230
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
if (this.hitTest(_root.df)) {
this.gotoAndPlay("correct");
_root.score++;
} else {
this.gotoAndPlay("fail");
_root.miss++;
}
}
}
Instance of Symbol 1243 MovieClip in Frame 230
onClipEvent (enterFrame) {
if (this.hitTest(_root.uf)) {
_root.miss++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.lf)) {
_root.miss++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.df)) {
_root.miss++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.rf)) {
_root.miss++;
}
}
Frame 231
stop();
time_left = 1E68;
stopAllSounds();
Frame 232
stopAllSounds();
stop();
score = 5000;
i = "0";
healthbar = 100;
armorbar = 100;
enhealthbar = 150;
reload = 10;
mousey = 0;
mousex = 0;
humanreload = 0;
customtimer = 300;
customtimer2 = 100;
var arm = 100;
var en = 0;
var bce = 1200;
var bc = 1000;
_root.onMouseDown = function () {
if (humanreload <= 0) {
bc++;
if (bc > 1100) {
bc = 1000;
}
bulletl.duplicateMovieClip("bc" + bc, bc);
humanreload = 5;
}
};
_root.onEnterFrame = function () {
if (healthbar <= 0) {
score = 0;
gotoAndStop ("k9lose");
} else if (enhealthbar <= 0) {
gotoAndStop ("k9win");
}
if (Math.round(Math.random() * 480) == 1) {
arm++;
if (arm == 105) {
arm = 100;
}
armorupgrade.duplicateMovieClip("arm" + arm, (armorupgrade.getDepth() + 120) - arm);
}
customtimer = customtimer - 1;
if (customtimer <= 0) {
en++;
if (en > 6) {
en = 1;
}
enemy2.duplicateMovieClip("en" + en, -16373 - en);
customtimer = 300;
}
if ((((enemy1._x < 600) && (enemy1._y < 400)) && (enemy1._x > 0)) && (enemy1._y > 0)) {
reload = reload - 1;
}
if (reload <= 0) {
bce++;
if (bce > 1300) {
bce = 1200;
}
bullete.duplicateMovieClip("bce" + bce, bce);
reload = 20;
score = score - 20;
}
humanreload = humanreload - 1;
};
Instance of Symbol 1259 MovieClip "enemy2" in Frame 232
onClipEvent (load) {
health = 4;
randomstart = 0;
if (_name != "enemy2") {
randomstart = Math.ceil(Math.random() * 4);
if (randomstart == 1) {
this._y = -20;
this._x = Math.round((Math.random() * 560) + 20);
} else if (randomstart == 2) {
this._y = Math.round((Math.random() * 380) + 20);
this._x = -20;
} else if (randomstart == 3) {
this._y = 420;
this._x = Math.round((Math.random() * 560) + 20);
} else {
this._y = Math.round((Math.random() * 380) + 20);
this._x = 620;
}
}
spd = 4;
}
onClipEvent (enterFrame) {
if (health <= 0) {
this.swapDepths(1);
this.removeMovieClip();
}
if (_name != "enemy2") {
if (((((this.hitTest(_root.tank) == true) && ((this._x - _root.tank._x) < 35)) && ((this._x - _root.tank._x) > -35)) && ((this._y - _root.tank._y) < 35)) && ((this._y - _root.tank._y) > -35)) {
if (_root.armorbar >= 20) {
_root.armorbar = _root.armorbar + -40;
_root.healthbar = _root.healthbar + -10;
this.swapDepths(1);
this.removeMovieClip();
} else if (_root.armorbar > 0) {
_root.healthbar = _root.healthbar - (50 - _root.armorbar);
_root.armorbar = 0;
this.swapDepths(1);
this.removeMovieClip();
} else if (_root.armorbar == 0) {
_root.healthbar = _root.healthbar - 50;
this.swapDepths(1);
this.removeMovieClip();
}
this.swapDepths(1);
this.removeMovieClip();
}
Xd = _root.tank._x - this._x;
Yd = _root.tank._y - this._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
updateAfterEvent();
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
}
Instance of Symbol 1263 MovieClip "armorupgrade" in Frame 232
onClipEvent (load) {
if (this._name != "armorupgrade") {
this._x = Math.round((Math.random() * 580) + 10);
this._y = Math.round((Math.random() * 380) + 10);
}
}
onClipEvent (enterFrame) {
if ((((this.hitTest(_root.tank) && ((this._x - _root.tank._x) > -30)) && ((this._x - _root.tank._x) < 30)) && ((this._y - _root.tank._y) > -30)) && ((this._y - _root.tank._y) < 30)) {
if (_root.armorbar <= 75) {
_root.armorbar = _root.armorbar + 25;
this.swapDepths(1);
this.removeMovieClip();
} else if ((_root.armorbar <= 100) && (_root.armorbar > 75)) {
_root.armorbar = 99;
this.swapDepths(1);
this.removeMovieClip();
}
}
}
Instance of Symbol 1267 MovieClip "enemy1" in Frame 232
onClipEvent (load) {
newattack = true;
movedirection = 0;
yspeed = 0;
xspeed = 0;
}
onClipEvent (enterFrame) {
this._x = this._x + xspeed;
this._y = this._y + yspeed;
if (attack == 2) {
newdirection = Math.ceil(Math.random() * 4);
if ((((((xspeed > 0) && (_x > 300)) && (movedirection == 3)) || (((xspeed < 0) && (_x < 300)) && (movedirection == 4))) || (((yspeed > 0) && (_y > 200)) && (movedirection == 1))) || (((yspeed < 0) && (_y < 200)) && (movedirection == 2))) {
xspeed = 0;
yspeed = 0;
if (newdirection == 1) {
yspeed = -4;
}
if (newdirection == 2) {
xspeed = -4;
}
if (newdirection == 3) {
yspeed = 4;
}
if (newdirection == 4) {
xspeed = 4;
}
}
}
if ((((this._x > 725) || (this._y > 535)) || (this._x < -135)) || (this._y < -135)) {
newattack = true;
}
if (newattack == true) {
movedirection = 0;
attack = Math.ceil(Math.random() * 2);
if (attack == 1) {
movedirection = Math.ceil(Math.random() * 4);
if (movedirection == 1) {
this._y = -20;
this._x = Math.round((Math.random() * 560) + 20);
xspeed = 0;
yspeed = 4;
} else if (movedirection == 2) {
this._y = Math.round((Math.random() * 380) + 20);
this._x = -20;
xspeed = 4;
yspeed = 0;
} else if (movedirection == 3) {
this._y = 420;
this._x = Math.round((Math.random() * 560) + 20);
xspeed = 0;
yspeed = -4;
} else {
this._y = Math.round((Math.random() * 380) + 20);
this._x = 620;
xspeed = -4;
yspeed = 0;
}
} else if (attack == 2) {
movedirection = Math.ceil(Math.random() * 4);
if (movedirection == 1) {
this._y = -20;
this._x = Math.round((Math.random() * 560) + 20);
xspeed = 0;
yspeed = 4;
} else if (movedirection == 2) {
this._y = Math.round((Math.random() * 380) + 20);
this._x = -20;
xspeed = 4;
yspeed = 0;
} else if (movedirection == 3) {
this._y = 620;
this._x = Math.round((Math.random() * 560) + 20);
xspeed = 0;
yspeed = -4;
} else {
this._y = Math.round((Math.random() * 380) + 20);
this._x = 620;
xspeed = -4;
yspeed = 0;
}
}
}
newattack = false;
}
Instance of Symbol 1275 MovieClip in Frame 232
onClipEvent (enterFrame) {
if (this._currentframe != (28 - Math.floor(_root.healthbar / 3.57142857142857))) {
this.gotoAndPlay(28 - Math.floor(_root.healthbar / 3.57142857142857));
}
}
Instance of Symbol 1276 MovieClip in Frame 232
onClipEvent (enterFrame) {
if (this._currentframe != (28 - Math.floor(_root.armorbar / 3.57142857142857))) {
this.gotoAndPlay(28 - Math.floor(_root.armorbar / 3.57142857142857));
}
}
Instance of Symbol 1280 MovieClip "tank" in Frame 232
onClipEvent (load) {
var directionh;
directionh = 0;
speed = 6;
}
onClipEvent (enterFrame) {
if ((Key.isDown(38) == false) && (directionh == 1)) {
directionh = 0;
} else if ((Key.isDown(37) == false) && (directionh == 2)) {
directionh = 0;
} else if ((Key.isDown(40) == false) && (directionh == 3)) {
directionh = 0;
} else if ((Key.isDown(39) == false) && (directionh == 4)) {
directionh = 0;
}
if (directionh == 0) {
if (Key.isDown(87)) {
directionh = 1;
} else if (Key.isDown(65)) {
directionh = 2;
} else if (Key.isDown(83)) {
directionh = 3;
} else if (Key.isDown(68)) {
directionh = 4;
}
}
if ((directionh == 1) && (_y > 25)) {
this._y = this._y - speed;
}
if ((directionh == 2) && (_x > 25)) {
this._x = this._x - speed;
}
if ((directionh == 3) && (_y < 385)) {
this._y = this._y + speed;
}
if ((directionh == 4) && (_x < 575)) {
this._x = this._x + speed;
}
if (((((this._x - _root.enemy1._x) > -33) && ((this._x - _root.enemy1._x) < 33)) && ((this._y - _root.enemy1._y) > -33)) && ((this._y - _root.enemy1._y) < 33)) {
if (_root.armorbar > 0) {
_root.armorbar = _root.armorbar - 2;
_root.healthbar = _root.healthbar - 1;
} else {
_root.healthbar = _root.healthbar - 3;
}
}
}
Instance of Symbol 1282 MovieClip in Frame 232
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this._currentframe != (136 - Math.floor(_root.enhealthbar / 1.10294117647059))) {
this.gotoAndPlay(136 - Math.floor(_root.enhealthbar / 1.10294117647059));
}
}
Instance of Symbol 1284 MovieClip in Frame 232
onClipEvent (load) {
this.startDrag(true);
Mouse.hide();
}
Instance of Symbol 1288 MovieClip "bulletl" in Frame 232
onClipEvent (load) {
spd = 20;
_x = _root.tank._x;
_y = _root.tank._y;
_rotation = (_root.tank.gun._rotation + 90);
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
}
onClipEvent (enterFrame) {
if (_name == "bulletl") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > (Stage.height - 183))) {
this.removeMovieClip();
}
if (_root.enemy1.hitTest(this._x, this._y, true)) {
_root.enhealthbar = _root.enhealthbar + -1;
this.removeMovieClip();
}
if (_root.en1.hitTest(this._x, this._y, true)) {
_root.en1.health = _root.en1.health - 1;
this.removeMovieClip();
}
if (_root.en2.hitTest(this._x, this._y, true)) {
_root.en2.health = _root.en2.health - 1;
this.removeMovieClip();
}
if (_root.en3.hitTest(this._x, this._y, true)) {
_root.en3.health = _root.en3.health - 1;
this.removeMovieClip();
}
if (_root.en4.hitTest(this._x, this._y, true)) {
_root.en4.health = _root.en4.health - 1;
this.removeMovieClip();
}
if (_root.en5.hitTest(this._x, this._y, true)) {
_root.en5.health = _root.en5.health - 1;
this.removeMovieClip();
}
if (_root.en6.hitTest(this._x, this._y, true)) {
_root.en6.health = _root.en6.health - 1;
this.removeMovieClip();
}
if (_root.en7.hitTest(this._x, this._y, true)) {
_root.en7.health = _root.en7.health - 1;
this.removeMovieClip();
}
if (_root.en8.hitTest(this._x, this._y, true)) {
_root.en8.health = _root.en8.health - 1;
this.removeMovieClip();
}
if (_root.en9.hitTest(this._x, this._y, true)) {
_root.en9.health = _root.en9.health - 1;
this.removeMovieClip();
}
if (_root.en10.hitTest(this._x, this._y, true)) {
_root.en10.health = _root.en10.health - 1;
this.removeMovieClip();
}
if (_root.en11.hitTest(this._x, this._y, true)) {
_root.en11.health = _root.en11.health - 1;
this.removeMovieClip();
}
}
Instance of Symbol 1288 MovieClip "bullete" in Frame 232
onClipEvent (load) {
spd = 15;
this._x = _root.enemy1._x;
this._y = _root.enemy1._y;
_rotation = (_root.enemy1.gunner._rotation + 90);
if (_rotation > 180) {
_y = (_y + (2 * (spd * Math.cos((Math.PI/180) * _rotation))));
_x = (_x - (2 * (spd * Math.sin((Math.PI/180) * _rotation))));
} else {
_y = (_y - (2 * (spd * Math.cos((Math.PI/180) * _rotation))));
_x = (_x + (2 * (spd * Math.sin((Math.PI/180) * _rotation))));
}
}
onClipEvent (enterFrame) {
if (_name == "bullete") {
_x = -1000;
} else {
if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > (Stage.height - 183))) {
this.removeMovieClip();
}
if (_root.tank.hitTest(this._x, this._y, true)) {
if (_root.armorbar >= 10) {
_root.armorbar = _root.armorbar + -20;
_root.healthbar = _root.healthbar + -5;
this.removeMovieClip();
} else if (_root.armorbar > 0) {
_root.healthbar = _root.healthbar - (25 - _root.armorbar);
_root.armorbar = 0;
this.removeMovieClip();
} else if (_root.armorbar == 0) {
_root.healthbar = _root.healthbar - 25;
this.removeMovieClip();
}
}
}
}
Frame 233
stop();
stopAllSounds();
healthbar = 100;
removeMovieClip(arm100);
removeMovieClip(arm101);
removeMovieClip(arm102);
removeMovieClip(arm103);
removeMovieClip(arm104);
removeMovieClip(en1);
removeMovieClip(en2);
removeMovieClip(en3);
removeMovieClip(en4);
Mouse.show();
Instance of Symbol 1293 MovieClip in Frame 233
onClipEvent (load) {
gotoAndPlay (481);
}
Instance of Symbol 1293 MovieClip in Frame 233
onClipEvent (load) {
gotoAndPlay (232);
}
Instance of Symbol 1293 MovieClip in Frame 233
onClipEvent (load) {
gotoAndPlay (381);
}
Instance of Symbol 1293 MovieClip in Frame 233
/* no clip actions */
Instance of Symbol 1293 MovieClip in Frame 233
onClipEvent (load) {
gotoAndPlay (331);
}
Frame 234
_root.medals[10] = 1;
if (score >= 1500) {
_root.medals[11] = 1;
}
stop();
stopAllSounds();
healthbar = 100;
removeMovieClip(arm100);
removeMovieClip(arm101);
removeMovieClip(arm102);
removeMovieClip(arm103);
removeMovieClip(arm104);
removeMovieClip(en1);
removeMovieClip(en2);
removeMovieClip(en3);
removeMovieClip(en4);
Mouse.show();
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (232);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (481);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (232);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (381);
}
Instance of Symbol 1293 MovieClip in Frame 234
/* no clip actions */
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (331);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (481);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (232);
}
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (381);
}
Instance of Symbol 1293 MovieClip in Frame 234
/* no clip actions */
Instance of Symbol 1293 MovieClip in Frame 234
onClipEvent (load) {
gotoAndPlay (331);
}
Frame 235
_root.time = 0;
_root.jumps = 0;
stop();
Frame 236
stop();
Instance of Symbol 1369 MovieClip "char" in Frame 236
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.char.gotoAndPlay("duck");
}
}
onClipEvent (load) {
y_start = _y;
jumping = false;
jumpspeed = 5;
}
onClipEvent (enterFrame) {
if (jumping) {
_y = (_y + jumpspeed);
jumpspeed = jumpspeed + 1;
if (_y >= y_start) {
_y = y_start;
jumping = false;
}
} else if (Key.isDown(65)) {
jumping = true;
jumpspeed = -19;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
_root.char.gotoAndPlay("jump");
}
}
Instance of Symbol 1370 MovieClip in Frame 236
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
this.gotoAndPlay("onepoint");
}
}
Frame 237
stop();
if (_root.time >= 150) {
_root.medals[24] = 1;
}
if (jumps >= 100) {
_root.medals[25] = 1;
}
Frame 238
stop();
stopAllSounds();
Instance of Symbol 1394 MovieClip in Frame 238
onClipEvent (load) {
onRollOver = function () {
_root.gotoAndPlay("neongame");
};
}
Instance of Symbol 1399 MovieClip "player" in Frame 238
onClipEvent (mouseMove) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
updateAfterEvent();
}
onClipEvent (load) {
bluekey = 0;
redkey = 0;
}
Frame 239
stop();
stopAllSounds();
Instance of Symbol 1402 MovieClip in Frame 239
onClipEvent (mouseMove) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
updateAfterEvent();
}
Instance of Symbol 1409 MovieClip in Frame 239
onClipEvent (enterFrame) {
if (_root.player.NEON_redkey == 1) {
this.gotoAndStop("neongame");
}
if (_root.player.NEON_redkey == 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 1418 MovieClip in Frame 239
onClipEvent (load) {
onRollOver = function () {
_root.gotoAndPlay("neonfall");
};
}
Frame 240
stop();
stopAllSounds();
_root.player.NEON_bluekey = 0;
_root.player.NEON_redkey = 0;
Instance of Symbol 1394 MovieClip in Frame 240
onClipEvent (load) {
onRollOver = function () {
_root.gotoAndPlay("neongame");
};
}
Frame 241
stop();
stopAllSounds();
_root.player.NEON_bluekey = 0;
_root.player.NEON_redkey = 0;
Frame 242
stop();
stopAllSounds();
Frame 243
stop();
stopAllSounds();
Frame 244
stop();
stopAllSounds();
_root.player.NEON_bluekey = 0;
_root.player.NEON_redkey = 0;
Frame 245
stop();
Instance of Symbol 1455 MovieClip in Frame 245
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Frame 246
stop();
character = 0;
clearInterval(timeclock);
clearInterval(enemyclock);
removeMovieClip(zooomimshbomb);
Frame 247
stop();
clock = 0;
lives = 3;
score = 0;
enemies = 4;
enemiesonstage = 0;
enemytimer = function () {
enemies = enemies + 1;
};
onEnterFrame = function () {
if (enemiesonstage < enemies) {
var _local3 = attachMovie("enemy", "enemy" + enemiesonstage, _root.getNextHighestDepth());
enemiesonstage = enemiesonstage + 1;
_local3.dir = random(4);
_local3._xscale = (_local3._yscale = random(100) + 50);
if (_local3.dir == 1) {
_local3._x = random(600);
_local3._y = random(-50);
_local3.yspeed = random(7) + 1;
_local3.xspeed = 0;
} else if (_local3.dir == 2) {
_local3._x = random(600);
_local3._y = random(50) + 600;
_local3.yspeed = random(-7) - 1;
_local3.xspeed = 0;
} else if (_local3.dir == 3) {
_local3._x = random(-50);
_local3._y = random(600);
_local3.yspeed = 0;
_local3.xspeed = random(7) + 1;
} else if (_local3.dir == 0) {
_local3._x = random(50) + 600;
_local3._y = random(600);
_local3.yspeed = 0;
_local3.xspeed = random(-7) - 1;
}
_local3.onEnterFrame = function () {
this._y = this._y + this.yspeed;
this._x = this._x + this.xspeed;
if (this.hit.hitTest(_root.player)) {
if (_root.lives >= 1) {
this.dir = random(4);
this._xscale = (this._yscale = random(100) + 50);
if (this.dir == 1) {
this._x = random(600);
this._y = random(-50);
this.yspeed = random(7) + 1;
this.xspeed = 0;
} else if (this.dir == 2) {
this._x = random(600);
this._y = random(50) + 600;
this.yspeed = random(-7) - 1;
this.xspeed = 0;
} else if (this.dir == 3) {
this._x = random(-50);
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(7) + 1;
} else if (this.dir == 0) {
this._x = random(50) + 600;
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(-7) - 1;
}
_root.lives = _root.lives - 1;
}
}
if (_root.lives <= 0) {
_root.gotoAndStop("zoomgameover");
this.removeMovieClip();
}
if ((this._y >= 610) && (this.dir == 1)) {
this.dir = random(4);
this._xscale = (this._yscale = random(100) + 50);
if (this.dir == 1) {
this._x = random(600);
this._y = random(-50);
this.yspeed = random(7) + 1;
this.xspeed = 0;
} else if (this.dir == 2) {
this._x = random(600);
this._y = random(50) + 600;
this.yspeed = random(-7) - 1;
this.xspeed = 0;
} else if (this.dir == 3) {
this._x = random(-50);
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(7) + 1;
} else if (this.dir == 0) {
this._x = random(50) + 600;
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(-7) - 1;
}
} else if ((this._y <= -20) && (this.dir == 2)) {
this.dir = random(4);
this._xscale = (this._yscale = random(100) + 50);
if (this.dir == 1) {
this._x = random(600);
this._y = random(-50);
this.yspeed = random(7) + 1;
this.xspeed = 0;
} else if (this.dir == 2) {
this._x = random(600);
this._y = random(50) + 600;
this.yspeed = random(-7) - 1;
this.xspeed = 0;
} else if (this.dir == 3) {
this._x = random(-50);
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(7) + 1;
} else if (this.dir == 0) {
this._x = random(50) + 600;
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(-7) - 1;
}
} else if ((this._x >= 320) && (this.dir == 3)) {
this.dir = random(4);
this._xscale = (this._yscale = random(100) + 50);
if (this.dir == 1) {
this._x = random(600);
this._y = random(-50);
this.yspeed = random(7) + 1;
this.xspeed = 0;
} else if (this.dir == 2) {
this._x = random(600);
this._y = random(50) + 600;
this.yspeed = random(-7) - 1;
this.xspeed = 0;
} else if (this.dir == 3) {
this._x = random(-50);
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(7) + 1;
} else if (this.dir == 0) {
this._x = random(50) + 600;
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(-7) - 1;
}
} else if ((this._x <= -20) && (this.dir == 0)) {
this.dir = random(4);
this._xscale = (this._yscale = random(100) + 50);
if (this.dir == 1) {
this._x = random(600);
this._y = random(-50);
this.yspeed = random(7) + 1;
this.xspeed = 0;
} else if (this.dir == 2) {
this._x = random(600);
this._y = random(50) + 600;
this.yspeed = random(-7) - 1;
this.xspeed = 0;
} else if (this.dir == 3) {
this._x = random(-50);
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(7) + 1;
} else if (this.dir == 0) {
this._x = random(50) + 600;
this._y = random(600);
this.yspeed = 0;
this.xspeed = random(-7) - 1;
}
}
};
}
};
Instance of Symbol 1571 MovieClip "player" in Frame 247
onClipEvent (load) {
_root.timeclock = setInterval(_root.timer, 1000);
_root.enemyclock = setInterval(_root.enemytimer, 5000);
if (_root.character == 1) {
this.gotoAndStop(1);
} else if (_root.character == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Instance of Symbol 1501 MovieClip in Frame 247
onClipEvent (load) {
this._x = random(600);
this._y = random(600);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.score = _root.score + 1;
this._x = random(600);
this._y = random(600);
}
}
Instance of Symbol 1578 MovieClip "enemytwo" in Frame 247
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.lives = _root.lives - 1;
}
}
Instance of Symbol 1595 MovieClip in Frame 247
onClipEvent (load) {
this._x = random(600);
this._y = random(600);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.score = _root.score + 2;
this._x = random(600);
this._y = random(600);
}
}
Frame 248
stopAllSounds();
stop();
if (score >= 200) {
_root.medals[18] = 1;
}
if (clock >= 120) {
_root.medals[19] = 1;
}
Mouse.show();
clearInterval(timeclock);
clearInterval(enemyclock);
Instance of Symbol 1455 MovieClip in Frame 248
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Frame 249
stop();
Enemy = false;
Enemyi = false;
_root.Bullet = true;
Instance of Symbol 1648 MovieClip in Frame 249
on (release) {
_root.gotoAndStop("eastern");
}
Frame 250
removeAllBullet = false;
_root.Bullet = true;
stopAllSounds();
if (_root.Enemy == true) {
this.removeMovieClip();
_root.Enemy = false;
}
if (_root.Enemyi == true) {
this.removeMovieClip();
_root.Enemyi = false;
}
var nrEnemies = 3;
i = 1;
while (i < nrEnemies) {
_root.Enemy0.duplicateMovieClip("Enemy" + i, _root.getNextHighestDepth());
i++;
}
var i = 0;
var score = 0;
var lives = 3;
this.onEnterFrame = function () {
timer++;
if (_root.score >= 150) {
_root.medals[20] = 1;
}
if (_root.score >= 300) {
_root.medals[21] = 1;
}
if (Key.isDown(65)) {
i++;
if (timer >= 8) {
_root.Bullet._x = Ship._x + 3;
_root.Bullet._y = Ship._y;
timer = 0;
}
}
};
Instance of Symbol 200 MovieClip [Enemy] "Enemy0" in Frame 250
onClipEvent (load) {
function reset() {
this._y = Math.random() * 600;
this._x = 600;
mySpeed = Math.ceil(Math.random() * 6) + 2;
}
reset();
}
onClipEvent (enterFrame) {
this._x = this._x - mySpeed;
if (timer >= 15) {
var dir = Math.ceil(Math.random() * 2);
timer = 0;
}
timer++;
if (dir == 1) {
this._y = this._y - 3;
} else if (dir == 2) {
this._y = this._y + 3;
}
if (this._x < -10) {
reset();
}
}
Instance of Symbol 1682 MovieClip "Ship" in Frame 250
onClipEvent (load) {
speed = 10;
shot_level = 50;
xb = _x;
yb = _y;
canShoot = true;
limitShoot = 0;
reload = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(39) and (this._x < 450)) {
xb = xb + speed;
} else if (Key.isDown(37) and (this._x > 150)) {
xb = xb - speed;
}
if (Key.isDown(40) and (this._y < 500)) {
yb = yb + speed;
} else if (Key.isDown(38) and (this._y > 150)) {
yb = yb - speed;
}
this._x = _x + ((xb - _x) / speed);
this._y = _y + ((yb - _y) / speed);
if (Key.isDown(65) and (canShoot == true)) {
limitShoot = limitShoot + 1;
if (limitShoot >= 2) {
canShoot = false;
reload = 0;
}
duplicateMovieClip (_root.bullet, "bullet" + shot_level, shot_level);
_root["bullet" + shot_level]._x = this._x + 45;
_root["bullet" + shot_level]._y = this._y + 5;
shot_level++;
if (shot_level > 150) {
shot_level = 50;
}
}
if (canShoot == false) {
reload = reload + 1;
if (reload > 5) {
limitShoot = 0;
canShoot = true;
}
}
}
onClipEvent (enterFrame) {
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root["Enemy" + i])) {
_root.lives = _root.lives - 1;
if (_root.lives <= 0) {
_root.attachMovie("GameOver", "GameOver", 100);
_root.GameOver._x = 275;
_root.GameOver._y = 150;
this.swapDepths(10);
this.removeMovieClip();
}
reset();
k = 0;
while (k < _root.nrEnemies) {
_root["Enemy" + k].reset();
removeMovieClip("zooominsh_sperm_enemy");
k++;
}
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.character == 1) {
this.gotoAndStop(1);
} else if (_root.character == 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 1645 MovieClip in Frame 250
onClipEvent (load) {
this._x = random(450);
this._y = random(500);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ship)) {
_root.score = _root.score + 10;
this._x = random(450);
this._y = random(500);
}
}
Instance of Symbol 1686 MovieClip in Frame 250
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ship)) {
_root.lives = _root.lives + 1;
this._x = 1000;
this._y = 1000;
}
}
Instance of Symbol 1698 MovieClip in Frame 250
onClipEvent (enterFrame) {
if (this.hitTest(_root.Ship)) {
_root.score = _root.score - 1;
}
}
Frame 252
play();
Frame 253
_lockroot = true;
mm.a1.gotoAndStop(1);
mm.a2.gotoAndStop(2);
mm.a3.gotoAndStop(4);
mm.a4.gotoAndStop(5);
mm.a5.gotoAndStop(3);
mm.a6.gotoAndStop(1);
mm.a7.gotoAndStop(6);
mm.a8.gotoAndStop(7);
mm.a9.gotoAndStop(4);
mm.a10.gotoAndStop(2);
mm.a11.gotoAndStop(5);
mm.a12.gotoAndStop(7);
mm.a13.gotoAndStop(6);
mm.a14.gotoAndStop(3);
mm.a15.gotoAndStop(1);
mm.a16.gotoAndStop(3);
var myMenu = new ContextMenu();
myMenu.customItems.push(copyright);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
_x = 0;
_y = 0;
stopAllSounds();
Frame 254
_x = 120;
_y = 150;
clrs = [{txt:"purple", clr:6226007}, {txt:"red", clr:13573919}, {txt:"green", clr:32567}, {txt:"blue", clr:12159}, {txt:"orange", clr:14190105}, {txt:"pink", clr:16744319}, {txt:"yellow", clr:16776960}];
kNbrColors = clrs.length;
kNbrColumns = 10;
kNbrRows = 10;
kColWidth = 350 / kNbrColumns;
kColHeight = 350 / kNbrRows;
var n = 1;
score = 0;
score_txt.text = score;
startTimer = getTimer();
startTime = getTicks();
firstClick = undefined;
doCheck = false;
doScroll = false;
animCtr = 0;
cells = [];
SW = Stage.width;
SH = Stage.height;
kRadiansToDegrees = 57.2957795130823;
kDegreesToRadians = (Math.PI/180);
MovieClip.prototype.drawSphere = function (clrIdx, r) {
this.gotoAndStop(1 + clrIdx);
};
isLegal = function (c1, c2) {
var _local2 = c1.row - c2.row;
var _local1 = c1.col - c2.col;
if ((_local2 == 0) && (Math.abs(_local1) == 1)) {
return(true);
}
if ((_local1 == 0) && (Math.abs(_local2) == 1)) {
return(true);
}
return(false);
};
moveCell = function () {
var _local3 = this.dx - this._x;
var _local2 = this.dy - this._y;
if ((Math.abs(_local3) < 0.5) && (Math.abs(_local2) < 0.5)) {
this._rotation = 0;
this._x = this.dx;
this._y = this.dy;
doCheck = true;
this.onEnterFrame = normCell;
animCtr--;
}
this._x = this._x + (_local3 / 4);
this._y = this._y + (_local2 / 4);
};
growCell = function () {
var _local2 = this.dxs - this._xscale;
var _local3 = this.da - this._alpha;
if (Math.abs(_local3) < 0.5) {
this._xscale = this.dxs;
this._yscale = this.dxs;
this._alpha = this.da;
doScroll = true;
this.onEnterFrame = normCell;
animCtr--;
}
this._xscale = this._xscale + (_local2 / 3);
this._yscale = this._yscale + (_local2 / 3);
this._alpha = this._alpha + (_local3 / 3);
};
beginSwap = function (c1, c2) {
var _local4 = c1.row;
var _local3 = c1.col;
c1.row = c2.row;
c1.col = c2.col;
c1.dx = (c1.col * kColWidth) + (kColWidth / 2);
c1.dy = (c1.row * kColHeight) + (kColHeight / 2);
c2.row = _local4;
c2.col = _local3;
c2.dx = (c2.col * kColWidth) + (kColWidth / 2);
c2.dy = (c2.row * kColHeight) + (kColHeight / 2);
c1.onEnterFrame = moveCell;
c2.onEnterFrame = moveCell;
cells[c1.row][c1.col] = c1;
cells[c2.row][c2.col] = c2;
animCtr = animCtr + 2;
};
clickMe = function () {
if (animCtr > 0) {
return(undefined);
}
if (firstClick == undefined) {
firstClick = this;
this._rotation = 10;
} else if (isLegal(this, firstClick)) {
this._rotation = -10;
beginSwap(this, firstClick);
firstClick = undefined;
} else {
firstClick._rotation = 0;
firstClick = this;
this._rotation = 10;
}
};
isMatch = function (x1, y1, x2, y2, x3, y3) {
if ((x3 >= kNbrColumns) || (y3 > kNbrRows)) {
return(0);
}
if ((cells[y1][x1].hClr == cells[y2][x2].hClr) && (cells[y1][x1].hClr == cells[y3][x3].hClr)) {
return(2);
}
return(0);
};
flagMatchingCells = function (x, y) {
if (cells[y][x].isFlagged) {
return(undefined);
}
score++;
score_txt.text = score;
cells[y][x].isFlagged = true;
cells[y][x].dxs = 300;
cells[y][x].da = 0;
cells[y][x].onEnterFrame = growCell;
animCtr++;
if ((x > 0) && (cells[y][x - 1].hClr == cells[y][x].hClr)) {
flagMatchingCells(x - 1, y);
}
if ((x < (kNbrColumns - 1)) && (cells[y][x + 1].hClr == cells[y][x].hClr)) {
flagMatchingCells(x + 1, y);
}
if ((y > 0) && (cells[y - 1][x].hClr == cells[y][x].hClr)) {
flagMatchingCells(x, y - 1);
}
if ((y < (kNbrRows - 1)) && (cells[y + 1][x].hClr == cells[y][x].hClr)) {
flagMatchingCells(x, y + 1);
}
};
checkMatches = function () {
var _local3 = score;
var _local2 = 0;
while (_local2 < kNbrRows) {
var _local1 = 0;
while (_local1 < kNbrColumns) {
if (isMatch(_local1, _local2, _local1 + 1, _local2, _local1 + 2, _local2) || (isMatch(_local1, _local2, _local1, _local2 + 1, _local1, _local2 + 2))) {
flagMatchingCells(_local1, _local2);
}
_local1++;
}
_local2++;
}
if ((score - _local3) > 3) {
startTimer = startTimer + 500;
score = score + (10 * ((score - _local3) + 3));
score_txt.text = score;
}
};
checkAnim = function () {
var _local3 = 0;
while (_local3 < kNbrColumns) {
var _local2 = 0;
pcells = [];
var _local5 = kNbrRows - 1;
while (_local5 >= 0) {
var _local1 = cells[_local5][_local3];
if (_local1.isFlagged) {
pcells.push(_local1);
_local2++;
} else if (_local2) {
_local1.dx = (_local3 * kColWidth) + (kColWidth / 2);
_local1.dy = ((_local5 + _local2) * kColHeight) + (kColHeight / 2);
_local1.row = _local1.row + _local2;
_local1.onEnterFrame = moveCell;
animCtr++;
cells[_local1.row][_local3] = _local1;
}
_local5--;
}
var _local4 = 0;
var _local6 = _local2 - 1;
while (_local6 >= 0) {
var _local1 = pcells[_local6];
_local1.isFlagged = false;
_local1._xscale = (_local1._yscale = 90);
_local1.dx = (_local3 * kColWidth) + (kColWidth / 2);
_local1.dy = (_local4 * kColHeight) + (kColHeight / 2);
_local1._y = ((_local4 - _local2) * kColHeight) + (kColHeight / 2);
_local1.row = _local4;
cells[_local4][_local3] = _local1;
_local1.onEnterFrame = moveCell;
animCtr++;
randomize(_local1);
_local4++;
_local6--;
}
_local3++;
}
};
myRollOver = function () {
this._xscale = ((this._xscale < 0) ? -110 : 110);
this._yscale = 110;
};
myRollOut = function () {
this._xscale = ((this._xscale < 0) ? -100 : 100);
this._yscale = 100;
};
randomize = function (mc) {
mc.hClr = random(kNbrColors);
mc.drawSphere(mc.hClr, kColWidth / 2);
mc._alpha = 100;
mc._xscale = (random(2) ? -100 : 100);
};
lead2 = function (n) {
return(String(100 + n).substr(1));
};
onEnterFrame = function () {
if (animCtr == 0) {
if (doScroll) {
checkAnim();
doScroll = false;
} else if (doCheck) {
checkMatches();
doCheck = false;
}
}
clock = 180 - Math.floor((getTimer() - startTimer) / 1000);
clock_txt.text = (Math.floor(clock / 60) + ":") + lead2(clock % 60);
if (clock <= 0) {
var _local2 = 0;
while (_local2 < kNbrRows) {
var _local1 = 0;
while (_local1 < kNbrColumns) {
cells[_local2][_local1].removeMovieClip();
_local1++;
}
_local2++;
}
onEnterFrame = undefined;
gotoAndStop ("blockfinished");
}
};
var y = 0;
while (y < kNbrRows) {
cells[y] = [];
var x = 0;
while (x < kNbrColumns) {
var mc = _root.attachMovie("ball_mc", "tile_" + n, n);
mc._x = (x * kColWidth) + (kColWidth / 2);
mc._y = (y * kColHeight) + (kColHeight / 2);
mc._xscale = (mc._yscale = 100);
mc.row = y;
mc.col = x;
mc.onRollOver = myRollOver;
mc.onRollOut = myRollOut;
n++;
mc.onRelease = clickMe;
mc.onEnterFrame = normCell;
cells[y][x] = mc;
randomize(mc);
x++;
}
y++;
}
checkMatches();
stop();
stopAllSounds();
Frame 255
_x = 0;
_y = 0;
stopAllSounds();
stop();
score_txt.text = score;
score_txt2.text = score;
if (score >= 1500) {
_root.medals[8] = 1;
}
if (score >= 2500) {
_root.medals[9] = 1;
}
Frame 256
stop();
Frame 257
stopAllSounds();
stop();
life = 100;
score = 0;
hits = 0;
Instance of Symbol 1843 MovieClip "deadline" in Frame 257
onClipEvent (enterFrame) {
if (this.hitTest(_root.man)) {
_root.life = _root.life - 5;
_root.COUNTER2 = _root.life;
removeMovieClip("man");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.boss)) {
_root.life = _root.life - 1;
_root.COUNTER2 = _root.life;
removeMovieClip("boss");
}
}
Instance of Symbol 1795 MovieClip "cursor" in Frame 257
onClipEvent (load) {
startDrag ("", true);
Mouse.hide();
}
Instance of Symbol 1883 MovieClip "hpbar" in Frame 257
onClipEvent (enterFrame) {
_root.hpbar._width = _root.life;
}
Frame 258
stop();
stop();
Mouse.show();
if (score >= 10000) {
_root.medals[12] = 1;
}
if (hits >= 20) {
_root.medals[13] = 1;
}
this.boss.removeMovieClip(boss);
Frame 259
function die() {
this.hit.gotoAndPlay(1);
this.hit._x = this.player._x;
this.hit._y = this.player._y;
}
function lose() {
gotoAndStop ("shortlose");
}
function blur(bX, bY, obj) {
var _local1 = new flash.filters.BlurFilter(0, 0, 3);
var _local2 = new Array();
_local2.push(_local1);
_local1.blurX = bX;
_local1.blurY = bY;
obj.filters = _local2;
}
stop();
stopAllSounds();
timeLeft = 170;
i = 0;
Instance of Symbol 1908 MovieClip "vcam" in Frame 259
onClipEvent (enterFrame) {
this._x = this._x - ((this._x - this._parent.player._x) / 20);
this._y = this._y - ((this._y - this._parent.player._y) / 20);
}
Instance of Symbol 1917 MovieClip in Frame 259
onClipEvent (enterFrame) {
this._x = this._parent.vcam._x - 200;
this._y = this._parent.vcam._y - 200;
}
onClipEvent (enterFrame) {
if (((Key.isDown(90) && (Key.isDown(88))) && (Key.isDown(67))) && (Key.isDown(86))) {
this.nextFrame();
}
}
Instance of Symbol 1922 MovieClip "player" in Frame 259
onClipEvent (load) {
speed = 5;
radius = (this._width / 2) - 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this._y = this._y - speed;
this._rotation = 0;
}
if (Key.isDown(40)) {
this._y = this._y + speed;
this._rotation = 180;
}
if (Key.isDown(37)) {
this._x = this._x - speed;
this._rotation = 270;
}
if (Key.isDown(39)) {
this._x = this._x + speed;
this._rotation = 90;
}
while (_root.walls.hitTest(_x, _y + radius, true)) {
this._y--;
}
while (_root.walls.hitTest(_x, _y - radius, true)) {
_y = (_y+1);
}
while (_root.walls.hitTest(_x - radius, _y, true)) {
_x = (_x+1);
}
while (_root.walls.hitTest(_x + radius, _y, true)) {
_x = (_x-1);
}
}
Instance of Symbol 1924 MovieClip in Frame 259
onClipEvent (enterFrame) {
this._x = this._parent.vcam._x - 420;
this._y = this._parent.vcam._y - 330;
}
Instance of Symbol 1925 MovieClip "timer" in Frame 259
onClipEvent (load) {
this._visible = false;
timer = 0;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 1945 MovieClip in Frame 259
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.player)) {
_root.medals[26] = 1;
_root.gotoAndStop("shortwin");
}
}
Frame 260
timeLeft = 1E24;
Instance of Symbol 1910 MovieClip in Frame 260
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Instance of Symbol 1910 MovieClip in Frame 260
on (release) {
_root.gotoAndStop("shortgame");
stopAllSounds();
}
Frame 261
timeLeft = 1E18;
Frame 262
stopAllSounds();
_root.stop();
Frame 263
_root.stop();
stopAllSounds();
found = 0;
found2 = 2;
gotall._x = 10000;
circle1._alpha = 0;
circle2._alpha = 0;
circle3._alpha = 0;
onEnterFrame = function () {
if (found == 3) {
_root.medals[29] = 1;
gotall._x = 1;
}
};
Instance of Symbol 1996 MovieClip in Frame 263
onClipEvent (enterFrame) {
Mouse.hide();
startDrag (this, true);
}
Frame 264
_root.stop();
stopAllSounds();
found = 0;
found2 = 2;
gotall._x = 10000;
circle1._alpha = 0;
circle2._alpha = 0;
circle3._alpha = 0;
circle4._alpha = 0;
onEnterFrame = function () {
if (found == 4) {
_root.medals[30] = 1;
gotall._x = 1;
}
};
Frame 265
Mouse.show();
Frame 266
stop();
stopAllSounds();
Instance of Symbol 2019 MovieClip in Frame 266
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
time++;
if (time > 1800) {
_root.medals[38] = 1;
}
}
Frame 267
altitude = 250;
stop();
stopAllSounds();
Instance of Symbol 2042 MovieClip "plane" in Frame 267
onClipEvent (load) {
xM = 0;
yM = 0;
speed = 10;
turnleft = true;
turnright = true;
}
onClipEvent (enterFrame) {
xM = Math.sin(_rotation * (Math.PI/180)) * speed;
yM = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
_x = (_x + xM);
_y = (_y + yM);
if (Key.isDown(37)) {
if ((turnleft = turnleft + true)) {
this._rotation = this._rotation - 7;
}
}
if (Key.isDown(39)) {
if ((turnright = turnright + true)) {
this._rotation = this._rotation + 7;
}
}
if (_root.altitude > 0) {
_root.altitude = _root.altitude - 0.5;
this._width = this._width - 0.2;
this._height = this._height - 0.2;
}
if (_root.altitude == 0) {
speed = 0;
turnleft = false;
turnright = false;
}
if ((_root.altitude == 0) && (_root.plane.hitTest(_root.road))) {
_root.win.nextFrame();
}
if ((_root.altitude == 0) && (!_root.plane.hitTest(_root.road))) {
this.gotoAndStop("planeframe2");
_root.lose.nextFrame();
}
}
Frame 268
stop();
Frame 269
altitude = 250;
stop();
stopAllSounds();
Instance of Symbol 2042 MovieClip "plane" in Frame 269
onClipEvent (load) {
xM = 0;
yM = 0;
speed = 10;
turnleft = true;
turnright = true;
}
onClipEvent (enterFrame) {
xM = Math.sin(_rotation * (Math.PI/180)) * speed;
yM = (Math.cos(_rotation * (Math.PI/180)) * speed) * -1;
_x = (_x + xM);
_y = (_y + yM);
if (Key.isDown(37)) {
if ((turnleft = turnleft + true)) {
this._rotation = this._rotation - 7;
}
}
if (Key.isDown(39)) {
if ((turnright = turnright + true)) {
this._rotation = this._rotation + 7;
}
}
if (_root.altitude > 0) {
_root.altitude = _root.altitude - 0.5;
this._width = this._width - 0.175;
this._height = this._height - 0.175;
}
if (_root.altitude == 0) {
speed = 0;
turnleft = false;
turnright = false;
}
if ((_root.altitude == 0) && (_root.plane.hitTest(_root.road2))) {
_root.medals[15] = 1;
_root.win2.nextFrame();
_root.road2.stop();
}
if ((_root.altitude == 0) && (!_root.plane.hitTest(_root.road2))) {
this.gotoAndStop("planeframe2");
_root.lose2.nextFrame();
_root.road2.stop();
}
}
Frame 270
stop();
stop();
Instance of Symbol 2134 MovieClip in Frame 270
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Frame 310
function spawn() {
goto = Math.round(Math.random() * 3);
if (goto == 0) {
this.loger.gotoAndStop(1);
}
if (goto == 1) {
this.loger.gotoAndStop(2);
}
if (goto == 2) {
this.loger.gotoAndStop(3);
}
if (goto == 3) {
this.loger.gotoAndStop(4);
}
}
stopAllSounds();
timee = 0;
_root.onEnterFrame = function () {
if (timee > 30) {
gotoAndStop ("bacteriagameover");
}
};
stop();
score = 0;
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2196 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line1")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if (Clicked == 0) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2217 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "circle")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2249 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "squid")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2277 MovieClip in Frame 310
onClipEvent (load) {
Clicked = 0;
_root.score = 0;
}
on (press) {
if ((Clicked == 0) && (_root.virus == "line2")) {
this.gotoAndPlay(2);
_root.score = _root.score + 5;
Clicked = 1;
} else {
this.gotoAndPlay(2);
_root.score = _root.score + -10;
Clicked = 1;
}
}
Instance of Symbol 2284 MovieClip in Frame 310
onClipEvent (load) {
this.play();
this._visible = false;
this.timeUntillChange = 5;
}
Instance of Symbol 2293 MovieClip in Frame 310
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Frame 311
timee = 1E30;
timee = false;
if (_root.score >= 50) {
_root.medals[36] = 1;
}
if (_root.score >= 100) {
(medals[37] = 1);
}
stop();
stop();
stop();
stop();
Instance of Symbol 2134 MovieClip in Frame 311
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Frame 312
stop();
var notallowedtoduplicate = false;
var int1 = 0;
life = 100;
_root.score = 0;
timer = 0;
stopAllSounds();
Instance of Symbol 2333 MovieClip "mine" in Frame 312
onClipEvent (load) {
this._y = -50;
this._x = random(600);
}
onClipEvent (enterFrame) {
if (this._name != "mine") {
this._y = this._y + 3;
}
if (_root.notallowedtoduplicate == true) {
this.removemovieclip();
}
if (this.hitTest(this._parent.player)) {
_root.life = _root.life - 1;
}
var i = 0;
while (i <= _root.int1) {
if (this.hitTest(_root["bullet" + i])) {
_root["bullet" + i].removeMovieClip();
this.play();
}
i++;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bullet)) {
_root.mine.gotoAndPlay(2);
_root.bullet._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.guard)) {
this.removeMovieClip();
}
}
Instance of Symbol 2336 MovieClip "player" in Frame 312
onClipEvent (load) {
var framecount = 0;
_root.int1 = 0;
}
onClipEvent (enterFrame) {
framecount++;
if ((framecount / 15) == Math.round(framecount / 15)) {
duplicateMovieClip (_root.mine, "mine" + _root.int1, _root.getNextHighestDepth());
_root.int1++;
}
if (Key.isDown(39)) {
if (!this.hitTest(this._parent.right)) {
this._x = this._x + 8;
}
}
if (Key.isDown(37)) {
if (!this.hitTest(this._parent.left)) {
this._x = this._x - 8;
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(65)) {
duplicateMovieClip (this._parent.bullet, "bullet" + _root.int1, _root.getNextHighestDepth());
}
}
Instance of Symbol 2339 MovieClip "bullet" in Frame 312
onClipEvent (load) {
if (this._name != "bullet") {
this._x = _root.player._x;
this._y = _root.player._y - 35;
}
}
onClipEvent (enterFrame) {
if (this._name != "bullet") {
this._y = this._y - 10;
if (this._y < -20) {
this.removeMovieClip();
}
}
}
Instance of Symbol 2343 MovieClip "lifebar" in Frame 312
onClipEvent (enterFrame) {
_root.lifebar._width = _root.life;
if (_root.life <= 0) {
_root.gotoAndStop("gameoverteen");
}
}
Frame 313
stop();
notallowedtoduplicate = true;
Frame 314
function countdown() {
if (time_left <= 0) {
gotoAndStop ("y");
}
}
stop();
time_left = 25;
setInterval(countdown, 1000);
stop();
Frame 315
stop();
time_left = 1E63;
Frame 316
stop();
time_left = 1E63;
_root.medals[14] = 1;
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 5
this.gotoAndStop(1);
Symbol 60 MovieClip Frame 9
this.gotoAndStop(1);
Symbol 61 MovieClip [enemy_bish_body_mc] Frame 1
stop();
Symbol 74 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 75 MovieClip [GameOver] Frame 1
lives = false;
_root.Enemy0.removeMovieClip();
_root.Enemy.removeMovieClip();
Enemy0.onEnterFrame = function () {
this.removeMovieClip();
};
Enemy.onEnterFrame = function () {
this.removeMovieClip();
};
nrEnemies.onEnterFrame = function () {
this.removeMovieClip();
};
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 19
this._visible = false;
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 171 MovieClip Frame 5
_root.peee.gameOn = false;
Symbol 171 MovieClip Frame 66
gotoAndStop (1);
Symbol 184 Button
on (release) {
stopAllSounds();
_root.gotoAndPlay("mainmenu");
}
Symbol 185 MovieClip [peee] Frame 1
play();
Symbol 185 MovieClip [peee] Frame 2
function hit() {
if (spark1.hitTest(_root.peee.manPee.hit1)) {
_root.peee.manPee.gotoAndPlay(5);
}
if (spark2.hitTest(_root.peee.manPee.hit2)) {
_root.peee.manPee.gotoAndPlay(5);
}
if (spark3.hitTest(_root.peee.manPee.hit3)) {
_root.peee.manPee.gotoAndPlay(5);
}
}
function reset() {
}
stop();
peeHeight = 1;
gameOn = false;
keyPressed = 0;
vInterval = 100;
goPeeGo = false;
score = 0;
_root.peee.spark1._visible = false;
_root.peee.spark2._visible = false;
_root.peee.spark3._visible = false;
_root.peee.meterShrink = setInterval(function () {
_root.peee.meterLevel = meter._yscale;
if ((meterLevel > 1) && (goPeeGo)) {
_root.peee.meter._yscale = _root.peee.meter._yscale - 1;
}
if ((meterLevel <= 1) && (goPeeGo)) {
gameOn = false;
_root.peee.gotoAndStop("gameover");
}
}, vInterval);
sparkMove = setInterval(function () {
moveSpark = random(6) + 1;
switch (moveSpark) {
case 1 :
_root.peee.spark1._visible = true;
_root.peee.spark1.gotoAndPlay(2);
break;
case 2 :
_root.peee.spark2._visible = true;
_root.peee.spark2.gotoAndPlay(2);
break;
case 3 :
_root.peee.spark3._visible = true;
_root.peee.spark3.gotoAndPlay(2);
break;
case 4 :
_root.peee.spark3._visible = true;
_root.peee.spark3.gotoAndPlay(2);
_root.peee.spark1._visible = true;
_root.peee.spark1.gotoAndPlay(2);
break;
case 5 :
_root.peee.spark2._visible = true;
_root.peee.spark2.gotoAndPlay(2);
_root.peee.spark1._visible = true;
_root.peee.spark1.gotoAndPlay(2);
break;
case 6 :
_root.peee.spark2._visible = true;
_root.peee.spark2.gotoAndPlay(2);
_root.peee.spark3._visible = true;
_root.peee.spark3.gotoAndPlay(2);
}
}, 900);
onEnterFrame = function () {
if ((_root.peee.manPee._currentframe == 1) && (Key.isDown(32))) {
_root.peee.peeHeight = 1;
_root.peee.gameOn = true;
_root.peee.manPee.gotoAndStop(2);
}
hit();
if (gameOn) {
score++;
if (score >= 300) {
_root.medals[34] = 1;
}
if (score >= 500) {
_root.medals[35] = 1;
}
}
up = Key.isDown(38);
down = Key.isDown(40);
meterShrink();
if (((_root.peee.manPee._currentframe == 2) || (_root.peee.manPee._currentframe == 3)) || (_root.peee.manPee._currentframe == 4)) {
goPeeGo = true;
if (up && (keyPressed == 0)) {
if (_root.peee.peeHeight == 1) {
_root.peee.keyPressed = 1;
_root.peee.peeHeight = 2;
_root.peee.manPee.gotoAndStop(3);
} else if (_root.peee.peeHeight == 2) {
_root.peee.keyPressed = 1;
_root.peee.peeHeight = 3;
_root.peee.manPee.gotoAndStop(4);
}
} else if (down && (keyPressed == 0)) {
if (_root.peee.peeHeight == 3) {
_root.peee.keyPressed = 1;
_root.peee.peeHeight = 2;
_root.peee.manPee.gotoAndStop(3);
} else if (peeHeight == 2) {
_root.peee.keyPressed = 1;
_root.peee.peeHeight = 1;
_root.peee.manPee.gotoAndStop(2);
}
} else if ((!up) || (!down)) {
_root.peee.keyPressed = 0;
}
}
};
Symbol 185 MovieClip [peee] Frame 3
stop();
Symbol 190 MovieClip [hit] Frame 1
_root.timeLeft = _root.timeLeft - 10;
Symbol 190 MovieClip [hit] Frame 28
stop();
Symbol 213 MovieClip [enemy_dead] Frame 22
stop();
Symbol 213 MovieClip [enemy_dead] Frame 80
stop();
Symbol 2448 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.0");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, 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) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 2449 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 2450 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 242 MovieClip Frame 251
_root.gotoAndPlay("mainmenu");
Symbol 250 Button
on (release) {
this.gotoAndStop("gameselect2");
}
Symbol 253 Button
on (release) {
this.gotoAndStop("aboutcollab");
}
Symbol 256 Button
on (release) {
this.gotoAndStop("authorsofthecollab");
}
Symbol 259 Button
on (release) {
this.gotoAndStop("leaderboard");
}
Symbol 263 Button
on (release) {
gotoAndStop ("medalspage");
}
Symbol 270 MovieClip Frame 121
stop();
Symbol 275 Button
on (release) {
this.gotoAndStop("gameselect3");
}
Symbol 277 Button
on (release) {
gotoAndStop ("gameselect20");
}
Symbol 287 Button
on (release) {
gotoAndStop ("tut");
stopAllSounds();
}
Symbol 290 Button
on (release) {
_root.gotoAndStop("mainmenu2");
}
Symbol 293 Button
on (release) {
gotoAndStop ("submitscore");
}
Symbol 308 Button
on (release) {
this.gotoAndStop("gameselect4");
}
Symbol 309 Button
on (release) {
gotoAndStop ("gameselect2");
}
Symbol 312 Button
on (release) {
gotoAndStop ("peegame");
stopAllSounds();
}
Symbol 319 Button
on (release) {
this.gotoAndStop("gameselect5");
}
Symbol 320 Button
on (release) {
gotoAndStop ("gameselect3");
}
Symbol 326 Button
on (release) {
gotoAndStop ("skmframe1");
stopAllSounds();
}
Symbol 333 Button
on (release) {
this.gotoAndStop("gameselect6");
}
Symbol 334 Button
on (release) {
gotoAndStop ("gameselect4");
}
Symbol 336 Button
on (release) {
gotoAndStop ("clonewars");
}
Symbol 347 Button
on (release) {
this.gotoAndStop("gameselect7");
}
Symbol 348 Button
on (release) {
gotoAndStop ("gameselect5");
}
Symbol 352 Button
on (release) {
gotoAndStop ("kris008");
stopAllSounds();
}
Symbol 358 Button
on (release) {
this.gotoAndStop("gameselect8");
}
Symbol 359 Button
on (release) {
gotoAndStop ("gameselect6");
}
Symbol 363 Button
on (release) {
gotoAndStop ("guitarmenu");
stopAllSounds();
}
Symbol 384 Button
on (release) {
this.gotoAndStop("gameselect9");
}
Symbol 385 Button
on (release) {
gotoAndStop ("gameselect7");
}
Symbol 388 Button
on (release) {
gotoAndStop ("accshooter");
stopAllSounds();
}
Symbol 394 Button
on (release) {
this.gotoAndStop("gameselect10");
}
Symbol 395 Button
on (release) {
gotoAndStop ("gameselect8");
}
Symbol 398 Button
on (release) {
gotoAndStop ("mygamemenu");
stopAllSounds();
}
Symbol 404 Button
on (release) {
this.gotoAndStop("gameselect11");
}
Symbol 405 Button
on (release) {
gotoAndStop ("gameselect9");
}
Symbol 408 Button
on (release) {
gotoAndStop ("2006neon");
stopAllSounds();
}
Symbol 416 Button
on (release) {
this.gotoAndStop("gameselect12");
}
Symbol 417 Button
on (release) {
gotoAndStop ("gameselect10");
}
Symbol 419 Button
on (release) {
gotoAndStop ("zoommenu");
stopAllSounds();
}
Symbol 427 Button
on (release) {
this.gotoAndStop("gameselect13");
}
Symbol 428 Button
on (release) {
gotoAndStop ("gameselect11");
}
Symbol 430 Button
on (release) {
gotoAndStop ("nishmenu");
stopAllSounds();
}
Symbol 436 Button
on (release) {
this.gotoAndStop("gameselect14");
}
Symbol 437 Button
on (release) {
gotoAndStop ("gameselect12");
}
Symbol 439 Button
on (release) {
gotoAndStop ("aregalemenu");
stopAllSounds();
}
Symbol 445 Button
on (release) {
this.gotoAndStop("gameselect15");
}
Symbol 446 Button
on (release) {
gotoAndStop ("gameselect13");
}
Symbol 450 Button
on (release) {
gotoAndStop ("icewavemenu");
stopAllSounds();
}
Symbol 459 Button
on (release) {
this.gotoAndStop("gameselect16");
}
Symbol 460 Button
on (release) {
gotoAndStop ("gameselect14");
}
Symbol 463 Button
on (release) {
gotoAndStop ("shortgame");
stopAllSounds();
}
Symbol 471 Button
on (release) {
this.gotoAndStop("gameselect17");
}
Symbol 472 Button
on (release) {
gotoAndStop ("gameselect15");
}
Symbol 474 Button
on (release) {
gotoAndStop ("zooomsgame");
stopAllSounds();
}
Symbol 482 Button
on (release) {
this.gotoAndStop("gameselect18");
}
Symbol 483 Button
on (release) {
gotoAndStop ("gameselect16");
}
Symbol 485 Button
on (release) {
gotoAndStop ("teengame");
stopAllSounds();
}
Symbol 490 Button
on (release) {
this.gotoAndStop("gameselect19");
}
Symbol 491 Button
on (release) {
gotoAndStop ("gameselect17");
}
Symbol 499 Button
on (release) {
gotoAndStop ("main");
stopAllSounds();
}
Symbol 503 Button
on (release) {
this.gotoAndStop("mmem");
}
Symbol 504 Button
on (release) {
gotoAndStop ("gameselect18");
}
Symbol 510 Button
on (release) {
gotoAndStop ("lvl1zorse");
stopAllSounds();
}
Symbol 516 Button
on (release) {
this.gotoAndStop("gameselect20");
}
Symbol 517 Button
on (release) {
gotoAndStop ("gameselect19");
}
Symbol 518 Button
on (release) {
gotoAndStop ("leds");
stopAllSounds();
}
Symbol 525 Button
on (release) {
this.gotoAndStop("gameselect2");
}
Symbol 526 Button
on (release) {
gotoAndStop ("mmem");
}
Symbol 529 Button
on (release) {
gotoAndStop ("knoxclick");
stopAllSounds();
}
Symbol 540 Button
on (release) {
gotoAndStop ("mainmenu2");
}
Symbol 555 Button
on (release) {
getURL ("http://konx.newgrounds.com/", _blank);
}
Symbol 558 Button
on (release) {
getURL ("http://mrrandomist.newgrounds.com/", _blank);
}
Symbol 561 Button
on (release) {
getURL ("http://jkamovies.newgrounds.com/", _blank);
}
Symbol 564 Button
on (release) {
getURL ("http://kris008.newgrounds.com/", _blank);
}
Symbol 567 Button
on (release) {
getURL ("http://sasuke2910.newgrounds.com/", _blank);
}
Symbol 570 Button
on (release) {
getURL ("http://magical-zorse.newgrounds.com/", _blank);
}
Symbol 573 Button
on (release) {
getURL ("http://icewave-z.newgrounds.com/", _blank);
}
Symbol 576 Button
on (release) {
getURL ("http://shortmonkey.newgrounds.com/", _blank);
}
Symbol 579 Button
on (release) {
getURL ("http://teenplayer84.newgrounds.com/", _blank);
}
Symbol 582 Button
on (release) {
getURL ("http://evanhayes.newgrounds.com/", _blank);
}
Symbol 585 Button
on (release) {
getURL ("http://cainine-k9.newgrounds.com/", _blank);
}
Symbol 588 Button
on (release) {
getURL ("http://goat-man.newgrounds.com/", _blank);
}
Symbol 591 Button
on (release) {
getURL ("http://zooominsh.newgrounds.com/", _blank);
}
Symbol 594 Button
on (release) {
getURL ("http://areagle.newgrounds.com/", _blank);
}
Symbol 597 Button
on (release) {
getURL ("http://deltaphoenix.newgrounds.com/", _blank);
}
Symbol 600 Button
on (release) {
getURL ("http://2006neon2006.newgrounds.com/", _blank);
}
Symbol 603 Button
on (release) {
getURL ("http://imate900.newgrounds.com/", _blank);
}
Symbol 606 Button
on (release) {
getURL ("http://badim.newgrounds.com/", _blank);
}
Symbol 609 Button
on (release) {
getURL ("http://zuggz.newgrounds.com/", _blank);
}
Symbol 750 MovieClip Frame 1
i = 0;
while (i <= 40) {
if (_root.medals[i] == 1) {
this["medal" + i].gotoAndStop(2);
} else {
this["medal" + i].gotoAndStop(1);
}
i++;
}
Symbol 779 MovieClip Frame 8
stop();
Symbol 785 MovieClip Frame 8
stop();
Symbol 795 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 2
play();
_root.shoot = true;
Symbol 795 MovieClip Frame 3
_root.shoot = false;
Symbol 799 MovieClip Frame 1
stop();
Instance of Symbol 773 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._parent.rotation;
}
Symbol 806 MovieClip Frame 15
this.timer = this.timer + 0.5;
Symbol 806 MovieClip Frame 30
this.timer = this.timer + 0.5;
Symbol 808 MovieClip Frame 1
this._alpha = 1;
Symbol 811 MovieClip Frame 1000
stop();
Symbol 815 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 2
play();
Symbol 815 MovieClip Frame 85
_root.nextFrame();
this.gotoAndStop(1);
Symbol 815 MovieClip Frame 86
play();
Symbol 815 MovieClip Frame 145
_root.gotoAndPlay("death");
this.gotoAndStop(1);
Symbol 817 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 2
play();
Symbol 825 MovieClip Frame 5
stop();
Instance of Symbol 820 MovieClip in Symbol 825 MovieClip Frame 5
on (release) {
_root.win();
}
Instance of Symbol 820 MovieClip in Symbol 825 MovieClip Frame 5
on (release) {
_root.playerDie();
}
Instance of Symbol 820 MovieClip in Symbol 825 MovieClip Frame 5
on (release) {
this._parent.play();
}
Symbol 825 MovieClip Frame 6
play();
Symbol 825 MovieClip Frame 10
this.gotoAndStop(1);
Symbol 857 MovieClip Frame 8
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
play();
Symbol 858 MovieClip Frame 11
stop();
_root.kills++;
Symbol 862 MovieClip Frame 1
if (_root.kills >= 1) {
_root.win();
}
this._visible = false;
Symbol 862 MovieClip Frame 50
_root.spawn();
Symbol 874 MovieClip Frame 14
stop();
Symbol 876 Button
on (release) {
_root.nextFrame();
}
Instance of Symbol 869 MovieClip in Symbol 881 MovieClip Frame 70
on (release) {
_root.camSpeed = 2;
}
Instance of Symbol 869 MovieClip in Symbol 881 MovieClip Frame 70
on (release) {
_root.camSpeed = 6;
}
Instance of Symbol 869 MovieClip in Symbol 881 MovieClip Frame 70
on (release) {
_root.camSpeed = 4;
}
Symbol 881 MovieClip Frame 80
stop();
Symbol 883 MovieClip Frame 1
if (_root.kills >= 14) {
_root.win();
}
this._visible = false;
Symbol 883 MovieClip Frame 46
_root.spawn();
Symbol 885 MovieClip Frame 1
if (_root.kills >= 16) {
_root.win();
}
this._visible = false;
Symbol 885 MovieClip Frame 44
_root.spawn();
Symbol 887 MovieClip Frame 1
if (_root.kills >= 18) {
_root.win();
}
this._visible = false;
Symbol 887 MovieClip Frame 42
_root.spawn();
Symbol 889 MovieClip Frame 1
if (_root.kills >= 20) {
_root.win();
}
this._visible = false;
Symbol 889 MovieClip Frame 40
_root.spawn();
Symbol 891 MovieClip Frame 1
if (_root.kills >= 22) {
_root.win();
}
this._visible = false;
Symbol 891 MovieClip Frame 38
_root.spawn();
Symbol 894 MovieClip Frame 1
if (_root.kills >= 28) {
_root.win();
}
this._visible = false;
Symbol 894 MovieClip Frame 32
_root.spawn();
Symbol 895 MovieClip Frame 1
if (_root.kills >= 30) {
_root.win();
}
this._visible = false;
Symbol 895 MovieClip Frame 30
_root.spawn();
Symbol 897 MovieClip Frame 1
if (_root.kills >= 30) {
_root.win();
}
this._visible = false;
Symbol 897 MovieClip Frame 28
_root.spawn();
Symbol 906 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 908 Button
on (release) {
_root.nextFrame();
}
Symbol 923 MovieClip Frame 1
play();
Symbol 923 MovieClip Frame 679
stop();
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 679
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 679
on (release) {
this._parent.nextFrame();
}
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 680
on (release) {
trace("no");
}
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 680
on (release) {
nextFrame();
}
Symbol 923 MovieClip Frame 727
stopAllSounds();
_root.gotoAndStop(1);
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 727
on (release) {
trace("no");
}
Instance of Symbol 820 MovieClip in Symbol 923 MovieClip Frame 727
on (release) {
_root.nextFrame();
}
Symbol 939 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 942 MovieClip Frame 1
function end_game(win) {
game_end = true;
end_mc._visible = true;
end_mc.dtxt.text = "";
if (win) {
end_mc.dtxt.text = end_mc.dtxt.text + "You have defended Tower.";
_root.medals[39] = 1;
} else {
end_mc.dtxt.text = end_mc.dtxt.text + "Tower was destroyed.";
}
end_mc.dtxt.text = end_mc.dtxt.text + "\r";
end_mc.dtxt.text = end_mc.dtxt.text + ("You killed: " + deads);
delete this.onEnterFrame;
}
function add_lighting_trace(xy_start, xy_end, size, ttl) {
var _local8 = "e" + gfx_mc.di;
var _local4 = gfx_mc.createEmptyMovieClip(_local8, gfx_mc.di);
gfx_mc.di++;
if (gfx_mc.di > 100) {
gfx_mc.di = 0;
}
_local4.lineStyle(size, 2254557, 60);
_local4.moveTo(xy_start[0], xy_start[1]);
var _local7;
var _local6;
var _local3 = 20;
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 1) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 1) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 2) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 2) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local7 = (xy_start[0] + (((xy_end[0] - xy_start[0]) * 3) / 4)) + ((Math.random() - 0.5) * _local3);
_local6 = (xy_start[1] + (((xy_end[1] - xy_start[1]) * 3) / 4)) + ((Math.random() - 0.5) * _local3);
_local4.lineTo(_local7, _local6);
_local4.lineTo(xy_end[0] + ((Math.random() - 0.5) * _local3), xy_end[1] + ((Math.random() - 0.5) * _local3));
_local4.tts = ttl;
_local4.onEnterFrame = function () {
this.tts--;
this._alpha = this._alpha * 0.9;
if (this.tts < 0) {
this.unloadMovie();
}
};
}
var nd = 100;
var ndd = 0;
var deads = 0;
var e_counter = 0;
var base_life = 100;
var base_life_max = base_life;
var game_end = false;
end_mc._visible = false;
this.dtxt.text = deads + "x";
this.tsin = 0;
var gfx_mc = this.createEmptyMovieClip("gfx", 1000);
var db_mc = this.createEmptyMovieClip("db", 90);
db_mc.di = 0;
var l_f1 = (new flash.filters.GlowFilter(2254557, 0.8, 5, 5, 4, 3, false, false));
var l_f2 = (new flash.filters.GlowFilter(2254557, 0.3, 10, 10, 1, 1, false, false));
gfx_mc.filters = [l_f1, l_f2];
gfx_mc.di = 0;
this.turns = 0;
this.timer = getTimer();
this.onEnterFrame = function () {
this.turns++;
var _local11 = getTimer() - this.timer;
var _local8 = 90 - Math.round(_local11 / 1000);
timer_dtxt.text = _local8;
if (_local8 <= 0) {
timer_dtxt.text = 0;
end_game(true);
return(false);
}
this.per_mc.dtxt.text = Math.round(this.per * 100) + "%";
this.per_mc._xscale = 100 * Math.sin(this.tsin);
this.tsin = this.tsin + 0.08;
if (e_counter > (7 + Math.floor(Math.sqrt(this.turns / 12)))) {
return(false);
}
if (Math.random() < (0.99 - (this.per / 10))) {
return(false);
}
var _local3 = this.attachMovie("enemy_bish_body_mc", nd, nd);
if (nd > 250) {
nd = 100;
}
e_counter++;
nd++;
_local3._x = -20;
_local3._y = tower_mc._y;
if ((Math.random() > 0.5) && false) {
_local3._x = _local3._x + (60 + random(100));
_local3._sx = Math.random() - 0.5;
_local3._sy = -3;
} else {
var _local4 = 400 * (Math.random() - 0.5);
_local3._y = _local3._y + _local4;
_local3._sx = 3;
_local3._sy = (Math.random() * 0.3) + Math.abs(_local4 / 300);
if (_local4 > 0) {
_local3._sy = _local3._sy * -1;
}
}
var _local10 = ((Math.atan2(_local3._sy, _local3._sx) * 180) / Math.PI) - 90;
_local3._rotation = _local10;
_local3.onRollOver = function () {
this._sx = this._sx * 1.6;
this._sy = this._sy * 1.6;
};
_local3.onRollOut = function () {
this._sx = this._sx / 1.5;
this._sy = this._sy / 1.5;
};
_local3.onPress = function () {
add_lighting_trace([this._parent.tower_mc._x, this._parent.tower_mc._y - 115], [this._x, this._y], 2, 3);
add_lighting_trace([this._parent.tower_mc._x, this._parent.tower_mc._y - 115], [this._x, this._y], 2, 3);
add_lighting_trace([this._parent.tower_mc._x, this._parent.tower_mc._y - 115], [this._x, this._y], 2, 3);
var _local3 = db_mc.attachMovie("enemy_dead", String(db_mc.di), db_mc.di);
db_mc.di++;
if (db_mc.di > 50) {
db_mc.di = 0;
}
_local3._x = this._x;
_local3._y = this._y;
_local3._rotation = random(360);
deads++;
if (deads >= 300) {
_root.medals[40] = 1;
}
e_counter--;
this._parent.dtxt.text = deads + "x";
this.unloadMovie();
};
_local3.onEnterFrame = function () {
this._x = this._x + this._sx;
this._y = this._y + this._sy;
if (((this._y < -20) || (this._x > 620)) || (this._y > 620)) {
e_counter--;
this.unloadMovie();
}
var _local3 = this._parent.tower_mc._x - this._x;
var _local2 = this._parent.tower_mc._y - this._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
if (_local4 < 120) {
this.gotoAndStop(2);
var _local5 = ((Math.atan2(_local2, _local3) * 180) / Math.PI) - 90;
this._rotation = _local5;
this.onEnterFrame = function () {
if (game_end) {
delete this.onEnterFrame;
this.body.stop();
this.stop();
return(false);
}
if ((Math.random() > 0.98) && (this.fire_mc._currentframe === 1)) {
this.fire_mc.play();
base_life--;
if (base_life <= 0) {
end_game(false);
}
this._parent.hit_bar_mc._xscale = (base_life * 100) / base_life_max;
}
};
}
};
};
Symbol 1031 Button
on (press) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 1043 Button
on (release) {
gotoAndPlay ("kriss008game");
}
Symbol 1054 Button
on (release) {
gotoAndPlay ("kriss008game");
}
on (press) {
stopAllSounds();
}
Symbol 1057 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 1135 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 5;
}
}
};
Symbol 1139 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 5;
}
}
};
Symbol 1140 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 5;
}
}
};
Symbol 1141 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 5;
}
}
};
Symbol 1142 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 10;
}
}
};
Symbol 1148 MovieClip Frame 1
Symbol 1152 MovieClip Frame 1
onEnterFrame = function () {
if (((this.hitTest(_root.fish._x + 5, _root.fish._y + 5, true) || (this.hitTest(_root.fish._x - 5, _root.fish._y + 5, true))) || (this.hitTest(_root.fish._x + 5, _root.fish._y - 5, true))) || (this.hitTest(_root.fish._x - 5, _root.fish._y - 5, true))) {
if (this.hitTest(_root.fish)) {
_root.health.text = _root.health.text - 15;
}
}
};
Symbol 1153 MovieClip Frame 1
Symbol 1172 Button
on (press) {
gotoAndStop (2);
}
Symbol 1175 Button
on (release) {
gotoAndStop (1);
}
Symbol 1176 MovieClip Frame 1
stop();
Symbol 1176 MovieClip Frame 2
stop();
stopAllSounds();
Symbol 1194 Button
on (release) {
this.gotoAndStop("rockguitargame");
}
Symbol 1210 MovieClip Frame 30
_root.time_left = _root.time_left - 1;
Symbol 1215 MovieClip Frame 1
stop();
Symbol 1215 MovieClip Frame 5
this._x = 500;
this._y = -100;
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 83
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 237
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 273
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 312
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 391
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1216 MovieClip Frame 408
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowleft.hitT) && (this._parent._parent.arrowleft.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowleft.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowleft.hit == true) && (!this.hitTest(this._parent._parent.arrowleft.hitT))) {
this._parent._parent.arrowleft.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 104
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 218
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 248
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 546
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 560
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1217 MovieClip Frame 644
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowup.hitT) && (this._parent._parent.arrowup.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowup.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowup.hit == true) && (!this.hitTest(this._parent._parent.arrowup.hitT))) {
this._parent._parent.arrowup.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent._parent.arrowdown.hitT) && (this._parent._parent._parent.arrowdown.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent._parent.arrowdown.gotoAndPlay("correct");
} else if ((this._parent._parent._parent.arrowdown.hit == true) && (!this.hitTest(this._parent._parent._parent.arrowdown.hitT))) {
this._parent._parent._parent.arrowdown.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 75
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 83
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 328
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 374
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Instance of Symbol 1215 MovieClip in Symbol 1221 MovieClip Frame 493
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.arrowright.hitT) && (this._parent._parent.arrowright.hit == true)) {
_root.score++;
this.gotoAndPlay(2);
this._parent._parent.arrowright.gotoAndPlay("correct");
} else if ((this._parent._parent.arrowright.hit == true) && (!this.hitTest(this._parent._parent.arrowright.hitT))) {
this._parent._parent.arrowright.gotoAndPlay("false");
}
}
Symbol 1227 MovieClip Frame 1
stop();
bye = false;
hit = false;
bye = false;
hit = false;
Symbol 1227 MovieClip Frame 2
hit = true;
Symbol 1227 MovieClip Frame 11
this.gotoAndStop("normal");
bye = true;
Symbol 1227 MovieClip Frame 12
hit = false;
bye = false;
Symbol 1227 MovieClip Frame 21
this.gotoAndStop("normal");
_root.miss++;
Symbol 1232 MovieClip Frame 1
stop();
hit = false;
bye = false;
hit = false;
Symbol 1232 MovieClip Frame 2
hit = true;
Symbol 1232 MovieClip Frame 7
this.gotoAndStop("normal");
bye = true;
Instance of Symbol 1230 MovieClip in Symbol 1232 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.hittest(_root.uf)) {
_root.uf.removeMovieClip();
}
}
Symbol 1232 MovieClip Frame 8
hit = false;
bye = false;
Symbol 1232 MovieClip Frame 17
this.gotoAndStop("normal");
Symbol 1237 MovieClip Frame 1
stop();
Symbol 1237 MovieClip Frame 10
_root.miss++;
Symbol 1238 MovieClip Frame 1
stop();
bye = false;
hit = false;
Symbol 1238 MovieClip Frame 2
hit = true;
Symbol 1238 MovieClip Frame 11
this.gotoAndStop("normal");
_root.score++;
bye = true;
Symbol 1238 MovieClip Frame 12
hit = false;
bye = false;
Symbol 1238 MovieClip Frame 21
this.gotoAndStop("normal");
_root.miss++;
Instance of Symbol 1237 MovieClip "missbox" in Symbol 1238 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.arrowright("fail")) {
this.gotoAndPlay("missing");
}
}
Symbol 1242 MovieClip Frame 1
stop();
bye = false;
hit = false;
Symbol 1242 MovieClip Frame 2
hit = true;
Symbol 1242 MovieClip Frame 11
this.gotoAndStop("normal");
bye = true;
Symbol 1242 MovieClip Frame 12
hit = false;
bye = false;
Symbol 1242 MovieClip Frame 21
this.gotoAndStop("normal");
Symbol 1246 MovieClip Frame 2
stop();
Symbol 1252 Button
on (release) {
gotoAndStop ("guitarmenu");
}
Symbol 1254 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Instance of Symbol 1266 MovieClip "gunner" in Symbol 1267 MovieClip Frame 1
onClipEvent (enterFrame) {
Xd = _root.tank._x - _root.enemy1._x;
Yd = _root.tank._y - _root.enemy1._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 0);
updateAfterEvent();
}
Symbol 1275 MovieClip Frame 1
stop();
Symbol 1276 MovieClip Frame 1
stop();
Symbol 1280 MovieClip Frame 1
stop();
Instance of Symbol 1279 MovieClip "gun" in Symbol 1280 MovieClip Frame 1
onClipEvent (mouseMove) {
Xd = _parent._xmouse - _x;
Yd = _parent._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 0);
updateAfterEvent();
}
onClipEvent (enterFrame) {
Xd = _parent._xmouse - _x;
Yd = _parent._ymouse - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 0);
updateAfterEvent();
}
Symbol 1290 MovieClip Frame 2
stop();
Symbol 1309 Button
on (release) {
_root.gotoAndPlay("accshooter");
}
Symbol 1317 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Instance of Symbol 1266 MovieClip "gunner" in Symbol 1327 MovieClip Frame 1
onClipEvent (enterFrame) {
Xd = _root.tank._x - _root.enemy1._x;
Yd = _root.tank._y - _root.enemy1._y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 0);
updateAfterEvent();
}
Symbol 1340 Button
on (release) {
this.gotoAndStop("mygame");
}
Symbol 1346 MovieClip Frame 2
stop();
Instance of Symbol 1349 MovieClip in Symbol 1351 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
_root.levelSound.gotoAndPlay(2);
_root.gotoAndPlay("mygamestop");
}
}
Symbol 1355 MovieClip Frame 1
stop();
Symbol 1369 MovieClip Frame 1
stop();
Symbol 1369 MovieClip Frame 15
_root.gotoAndStop("stand");
Symbol 1370 MovieClip Frame 1
stop();
Symbol 1370 MovieClip Frame 10
_root.jumps++;
Symbol 1376 MovieClip Frame 30
_root.time++;
Symbol 1382 Button
on (release) {
gotoAndStop ("mygamemenu");
stopAllSounds();
}
Symbol 1386 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1405 Button
on (press) {
_root.gotoAndPlay("neoncheat");
}
Symbol 1408 Button
on (rollOver) {
onRollOver = function () {
gotoAndPlay (2);
};
_root.player.NEON_redkey = 1;
}
Symbol 1409 MovieClip Frame 1
stop();
Instance of Symbol 1406 MovieClip in Symbol 1409 MovieClip Frame 1
/* no clip actions */
Symbol 1409 MovieClip Frame 2
stop();
Symbol 1411 Button
on (rollOver) {
_root.medals[7] = 1;
gotoAndPlay ("neonwin");
}
Symbol 1413 MovieClip Frame 1
stop();
Symbol 1413 MovieClip Frame 2
stop();
Symbol 1415 MovieClip Frame 1
stop();
Symbol 1415 MovieClip Frame 2
stop();
Instance of Symbol 1413 MovieClip "yellowblue" in Symbol 1416 MovieClip Frame 1
onClipEvent (load) {
onRollOver = function () {
_root.gotoAndPlay("neonblue");
};
}
Instance of Symbol 1415 MovieClip in Symbol 1416 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.gotoAndPlay(2);
}
_root.player.bluekey = 1;
_root.blueyellow.yellowblue.gotoAndStop("bluegone");
}
Symbol 1421 MovieClip Frame 3
stop();
Symbol 1426 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1428 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1429 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1445 Button
on (release) {
gotoAndStop ("zoomcharselect");
}
Instance of Symbol 1500 MovieClip "coin" in Symbol 1501 MovieClip Frame 1
/* no clip actions */
Symbol 1507 Button
on (release) {
_root.character = 1;
_root.gotoAndStop("zoomgame");
}
Symbol 1513 Button
on (release) {
_root.character = 2;
_root.gotoAndStop("zoomgame");
}
Symbol 1517 Button
on (release) {
_root.character = 3;
_root.gotoAndStop("zoomgame");
}
Symbol 1570 MovieClip Frame 1
stop();
Symbol 1570 MovieClip Frame 2
stop();
Symbol 1570 MovieClip Frame 3
stop();
Symbol 1571 MovieClip Frame 1
stop();
Instance of Symbol 1570 MovieClip "player" in Symbol 1571 MovieClip Frame 1
onClipEvent (load) {
_root.timeclock = setInterval(_root.timer, 1000);
_root.enemyclock = setInterval(_root.enemytimer, 5000);
if (_root.character >= 1) {
this.gotoAndStop(_root.character);
}
}
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xmouse;
this._y = _root._ymouse;
if (this._x >= 600) {
this._x = 600;
} else if (this._x <= 0) {
this._x = 0;
}
if (this._y >= 600) {
this._y = 600;
} else if (this._y <= 0) {
this._y = 0;
}
}
Symbol 1571 MovieClip Frame 2
stop();
Symbol 1571 MovieClip Frame 3
stop();
Symbol 1589 MovieClip Frame 24
_root.clock = _root.clock + 1;
Symbol 1608 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1614 Button
on (release) {
_root.character = 2;
_root.gotoAndStop("nishgameframe");
}
Symbol 1617 Button
on (release) {
_root.character = 3;
_root.gotoAndStop("nishgameframe");
}
Symbol 1622 Button
on (release) {
_root.character = 1;
_root.gotoAndStop("nishgameframe");
}
Symbol 1682 MovieClip Frame 1
stop();
Symbol 1682 MovieClip Frame 2
stop();
Symbol 1682 MovieClip Frame 3
stop();
Symbol 1700 MovieClip Frame 2
stop();
Symbol 1717 MovieClip Frame 10
stop();
Symbol 1718 MovieClip Frame 1
this.onEnterFrame = function () {
this._x = this._x + 9;
if (this._x > 550) {
this.removeMovieClip();
}
i = 0;
while (i < _root.nrEnemies) {
if (this.hitTest(_root["Enemy" + i])) {
_root.score = _root.score + 10;
_root["Enemy" + i].reset();
this.removeMovieClip();
}
i++;
}
};
Symbol 1723 MovieClip Frame 198
gotoAndPlay (140);
Symbol 1741 MovieClip Frame 120
stop();
Symbol 1752 MovieClip Frame 177
gotoAndPlay (140);
Symbol 1759 MovieClip Frame 295
gotoAndPlay (140);
Symbol 1761 Button
on (release) {
gotoAndStop ("mainmenu");
}
Symbol 1771 Button
on (release) {
_root.nextFrame();
}
Symbol 1772 MovieClip Frame 1
stop();
a1.gotoAndStop(1);
a2.gotoAndStop(2);
a3.gotoAndStop(4);
a4.gotoAndStop(5);
a5.gotoAndStop(3);
a6.gotoAndStop(1);
a7.gotoAndStop(6);
a8.gotoAndStop(7);
a9.gotoAndStop(4);
a10.gotoAndStop(2);
a11.gotoAndStop(5);
a12.gotoAndStop(7);
a13.gotoAndStop(6);
a14.gotoAndStop(3);
a15.gotoAndStop(1);
a16.gotoAndStop(3);
Symbol 1777 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 1780 MovieClip Frame 2
stop();
Symbol 1786 Button
on (release) {
gotoAndStop ("aregale2");
}
Symbol 1791 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 1806 Button
on (release) {
gotoAndStop ("icewavegame");
}
Symbol 1813 Button
on (press) {
play();
}
Symbol 1814 MovieClip Frame 1
stop();
Symbol 1816 Button
on (release) {
play();
}
Symbol 1826 MovieClip Frame 1
stop();
Symbol 1829 Button
on (press) {
play();
}
Symbol 1839 MovieClip Frame 1
stop();
Symbol 1839 MovieClip Frame 10
stop();
_root.removeMovieClip("man");
_root.COUNTER = _root.score;
_root.score = _root.score + 1000;
_root.COUNTER3 = _root.hits;
_root.hits = _root.hits + 1;
Symbol 1841 MovieClip Frame 60
_root.man._x = Math.random() * 600;
Symbol 1843 MovieClip Frame 1
stop();
Symbol 1848 Button
on (press) {
_root.bosshealth = _root.bosshealth - 20;
_root.bosshpv = _root.bosshealth;
}
Symbol 1867 MovieClip Frame 1
_root.bosshealth = 100;
_root.boss.kill.bosshp._xscale = _root.bosshealth;
Symbol 1867 MovieClip Frame 2
if (_root.bosshealth == 0) {
gotoAndPlay (4);
} else {
}
_root.bosshpv = _root.bosshealth;
Symbol 1867 MovieClip Frame 3
gotoAndPlay (2);
this.bosshp._xscale = this._parent._parent.bosshpv;
Symbol 1867 MovieClip Frame 31
stop();
_root.removeMovieClip("boss");
_root.COUNTER = _root.score;
_root.score = _root.score + 1000;
_root.COUNTER3 = _root.hits;
_root.hits = _root.hits + 1;
Symbol 1868 MovieClip Frame 320
_root.boss._x = Math.random() * 600;
this.duplicateMovieClip((newName = "boss"), targets);
Symbol 1879 MovieClip Frame 2
if (_root.life <= 0) {
_root.play();
}
_root.score = _root.score + 1;
_root.COUNTER = _root.score;
Symbol 1888 MovieClip Frame 2
stop();
Symbol 1899 Button
on (release) {
gotoAndStop ("icewavegame");
}
Symbol 1903 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1908 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
_visible = false;
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 1917 MovieClip Frame 1
stop();
Instance of Symbol 1910 MovieClip in Symbol 1917 MovieClip Frame 2
onClipEvent (load) {
this._parent.x.text = Math.round(this._parent._parent.player._x);
this._parent.y.text = Math.round(this._parent._parent.player._y);
}
Instance of Symbol 1910 MovieClip in Symbol 1917 MovieClip Frame 2
on (release) {
this._parent._parent.player._x = this._parent.x.text;
this._parent._parent.player._y = this._parent.y.text;
this._parent.prevFrame();
}
Symbol 1922 MovieClip Frame 1
stop();
Symbol 1924 MovieClip Frame 1
amount = 0;
this.onEnterFrame = function () {
this.timer.text = _root.timeLeft;
if (_root.timeLeft < 10) {
amount = 10 - _root.timeLeft;
_root.blur(amount, amount, this._parent.player);
}
if (_root.timeLeft < 0) {
_root.lose();
}
};
Symbol 1925 MovieClip Frame 30
_root.timeLeft = _root.timeLeft - 1;
Symbol 1927 MovieClip Frame 2
stop();
Instance of Symbol 1929 MovieClip in Symbol 1937 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1930 MovieClip in Symbol 1937 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1931 MovieClip in Symbol 1937 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1932 MovieClip in Symbol 1937 MovieClip Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1933 MovieClip in Symbol 1937 MovieClip Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1934 MovieClip in Symbol 1937 MovieClip Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1935 MovieClip in Symbol 1937 MovieClip Frame 46
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1936 MovieClip in Symbol 1937 MovieClip Frame 55
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1939 MovieClip in Symbol 1943 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Instance of Symbol 1942 MovieClip in Symbol 1943 MovieClip Frame 80
onClipEvent (enterFrame) {
if (this.hitTest(this._parent._parent.player)) {
_root.die();
}
}
Symbol 1961 MovieClip Frame 1
play();
Symbol 1961 MovieClip Frame 679
stop();
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 679
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 679
on (release) {
this._parent.nextFrame();
stopAllSounds();
}
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 680
on (release) {
trace("no");
}
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 680
on (release) {
nextFrame();
}
Symbol 1961 MovieClip Frame 727
stopAllSounds();
_root.gotoAndStop(1);
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 727
on (release) {
trace("no");
}
Instance of Symbol 1910 MovieClip in Symbol 1961 MovieClip Frame 727
on (release) {
_root.nextFrame();
}
Symbol 1968 Button
on (press) {
gotoAndStop ("easy");
}
Symbol 1969 Button
on (press) {
gotoAndStop ("hard");
}
Symbol 1973 Button
on (press) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 1978 Button
on (press) {
button3._x = button3._x + 10000;
circle3._alpha = 100;
found = found + 1;
found2 = found2 - 1;
}
Symbol 1979 Button
on (press) {
button2._x = button2._x + 10000;
circle2._alpha = 100;
found = found + 1;
found2 = found2 - 1;
}
Symbol 1980 Button
on (press) {
button1._x = button1._x + 10000;
circle1._alpha = 100;
found = found + 1;
found2 = found2 - 1;
}
Symbol 1991 Button
on (press) {
stopAllSounds();
gotoAndStop ("winner");
}
Symbol 1994 MovieClip Frame 2
stop();
Symbol 2001 Button
on (press) {
button4._x = button4._x + 10000;
circle4._alpha = 100;
found = found + 1;
found2 = found2 - 1;
}
Symbol 2003 Button
on (press) {
gotoAndStop ("main");
}
Symbol 2007 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 2009 Button
on (press) {
this.gotoAndStop(3);
}
Symbol 2011 Button
on (press) {
this.gotoAndStop(4);
}
Symbol 2013 Button
on (press) {
this.gotoAndStop(5);
}
Symbol 2015 Button
on (press) {
this.gotoAndStop(1);
}
Symbol 2016 MovieClip Frame 1
stop();
Symbol 2017 Button
on (release) {
gotoAndStop ("mainmenu");
stopAllSounds();
}
Symbol 2030 Button
on (release) {
gotoAndStop (268);
}
Symbol 2041 MovieClip Frame 8
stop();
Symbol 2042 MovieClip Frame 1
stop();
Symbol 2042 MovieClip Frame 2
stop();
Symbol 2049 Button
on (release) {
_root.gotoAndStop("frame2");
}
Symbol 2050 MovieClip Frame 1
stop();
Symbol 2050 MovieClip Frame 31
stop();
Symbol 2054 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 2055 Button
on (release) {
_root.gotoAndStop("mainmenu");
}
Symbol 2056 MovieClip Frame 1
stop();
Symbol 2056 MovieClip Frame 31
stop();
Symbol 2064 Button
on (release) {
gotoAndStop ("lvl2zorse");
}
Symbol 2072 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 2073 MovieClip Frame 1
stop();
Symbol 2073 MovieClip Frame 60
stop();
Symbol 2077 Button
on (release) {
_root.gotoAndStop("frame2");
}
Symbol 2078 Button
on (release) {
_root.gotoAndStop("frame2");
}
Symbol 2079 MovieClip Frame 1
stop();
Symbol 2079 MovieClip Frame 60
stop();
Symbol 2079 MovieClip Frame 61
stop();
Symbol 2118 MovieClip Frame 82
stop();
Symbol 2122 MovieClip Frame 101
stop();
Symbol 2123 Button
on (release) {
gotoAndStop (271);
}
Symbol 2148 Button
on (release) {
gotoAndPlay (272);
}
Symbol 2194 MovieClip Frame 9
stop();
Symbol 2196 MovieClip Frame 1
stop();
Symbol 2196 MovieClip Frame 8
_root.health.nextFrame();
Symbol 2196 MovieClip Frame 17
stop();
Symbol 2198 MovieClip Frame 30
_root.timee = _root.timee + 0.5;
_root.timesbox = _root.timee;
Symbol 2215 MovieClip Frame 10
stop();
Symbol 2217 MovieClip Frame 1
stop();
Symbol 2217 MovieClip Frame 21
stop();
Symbol 2247 MovieClip Frame 8
stop();
Symbol 2249 MovieClip Frame 1
stop();
Symbol 2249 MovieClip Frame 16
stop();
Symbol 2275 MovieClip Frame 14
stop();
Symbol 2277 MovieClip Frame 1
stop();
Symbol 2277 MovieClip Frame 16
stop();
Symbol 2282 MovieClip Frame 1
_root.virus = "circle";
stop();
Symbol 2282 MovieClip Frame 2
_root.virus = "line1";
Symbol 2282 MovieClip Frame 3
_root.virus = "line2";
Symbol 2282 MovieClip Frame 4
_root.virus = "squid";
Symbol 2284 MovieClip Frame 1
play();
Symbol 2284 MovieClip Frame 30
if (this.timeUntillChange == 1) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 61
if (this.timeUntillChange == 2) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 90
if (this.timeUntillChange == 3) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 122
if (this.timeUntillChange == 4) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 151
if (this.timeUntillChange == 5) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 180
if (this.timeUntillChange == 6) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 212
if (this.timeUntillChange == 7) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 239
if (this.timeUntillChange == 8) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 271
if (this.timeUntillChange == 9) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2284 MovieClip Frame 300
if (this.timeUntillChange == 10) {
_root.spawn();
this.gotoAndPlay(1);
}
Symbol 2295 MovieClip Frame 2
stop();
Symbol 2321 Button
on (release) {
gotoAndPlay ("startingbac");
}
Symbol 2323 Button
on (release) {
gotoAndPlay ("mainmenu");
stopAllSounds();
}
Symbol 2333 MovieClip Frame 1
stop();
Symbol 2333 MovieClip Frame 2
play();
_root.score = _root.score + 1;
if (score >= 250) {
_root.medals[16] = 1;
}
Symbol 2333 MovieClip Frame 8
this.removeMovieClip();
this._visible = false;
Symbol 2339 MovieClip Frame 1
stop();
Symbol 2346 MovieClip Frame 30
_root.timer++;
if (timer >= 120) {
_root.medals[17] = 1;
}
Symbol 2355 MovieClip Frame 2
stop();
Symbol 2360 Button
on (release) {
gotoAndStop ("teengame");
}
Symbol 2362 Button
on (release) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 2365 Button
on (press) {
gotoAndStop (2);
}
Symbol 2372 Button
on (press) {
gotoAndStop (1);
}
Symbol 2373 Button
on (press) {
gotoAndStop (1);
}
Symbol 2374 Button
on (press) {
gotoAndStop (3);
}
Symbol 2377 Button
on (press) {
gotoAndStop (4);
}
Symbol 2378 Button
on (press) {
gotoAndStop (1);
}
Symbol 2381 Button
on (press) {
gotoAndStop (5);
}
Symbol 2384 Button
on (press) {
gotoAndStop (6);
}
Symbol 2387 Button
on (press) {
gotoAndStop (7);
}
Symbol 2390 Button
on (press) {
gotoAndStop (8);
}
Symbol 2393 Button
on (press) {
gotoAndStop (9);
}
Symbol 2396 Button
on (press) {
gotoAndStop (10);
}
Symbol 2399 Button
on (press) {
gotoAndStop (11);
}
Symbol 2402 Button
on (press) {
gotoAndStop (12);
}
Symbol 2405 Button
on (press) {
gotoAndStop (13);
}
Symbol 2408 Button
on (press) {
gotoAndStop (14);
}
Symbol 2411 Button
on (press) {
gotoAndStop (15);
}
Symbol 2414 Button
on (press) {
gotoAndStop (16);
}
Symbol 2415 Button
on (press) {
gotoAndStop (16);
}
Symbol 2418 Button
on (press) {
gotoAndStop (17);
}
Symbol 2421 Button
on (press) {
gotoAndStop (18);
}
Symbol 2424 Button
on (press) {
gotoAndStop (19);
}
Symbol 2427 Button
on (press) {
gotoAndStop (20);
}
Symbol 2430 Button
on (press) {
_root.gotoAndStop("knoxyouwin");
}
Symbol 2431 Button
on (press) {
_root.gotoAndStop("knoxyouwin");
}
Symbol 2432 Button
on (press) {
_root.gotoAndStop("knoxyouwin");
}
Symbol 2438 MovieClip Frame 1
stop();
Symbol 2441 MovieClip Frame 30
_root.time_left = _root.time_left - 1;
Symbol 2444 Button
on (press) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 2445 Button
on (press) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}
Symbol 2446 Button
on (press) {
_root.gotoAndStop("mainmenu");
stopAllSounds();
}