Frame 1
Stage.showMenu = false;
Frame 2
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
gotoAndPlay (4);
}
frame = int(loadedbytes / (totalbytes / 100));
barmovement = frame - oldframe;
_root.loader.Loadbar._x = _root.loader.Loadbar._x + (barmovement * 3);
oldframe = frame;
Frame 3
gotoAndPlay (2);
Frame 4
_quality = "medium";
Frame 13
stop();
_quality = "high";
Frame 20
fire = 1;
s = 0;
fps = 30;
timer = 60;
timeleft = 60;
shurikensused = 0;
hits = 0;
loadMovieNum ("Music2.swf", 5);
_quality = "low";
Frame 32
_quality = "high";
Frame 121
oldtimeleft = timeleft;
timer = timer - 0.0333333333333333;
timeleft = Math.round(timer);
if (oldtimeleft != timeleft) {
alertplay = 1;
} else {
alertplay = 0;
}
if (timeleft < 10) {
if (alertplay == 1) {
Alert.gotoAndPlay(2);
}
}
if (timeleft < 1) {
gotoAndPlay (123);
}
Instance of Symbol 91 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale - 30) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale - 30) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 123 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale - 30) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale - 30) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 127 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale - 20) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale - 20) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 129 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale - 30) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale - 30) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 133 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale - 30) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale - 30) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 137 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 139 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 140 MovieClip in Frame 121
onClipEvent (enterFrame) {
i = 1;
while (i < 21) {
if (enemyhit != 1) {
if (this.Target.hitTest(_root["star" + i]) == true) {
_root.bulletxscale = _root["Bullet0" + i]._xscale;
_root.enemyxscale = Math.round(this._xscale);
if ((Math.round(this.Gang._xscale) >= _root["star" + i]._xscale) or (Math.round(this.Gang._yscale) == _root["star" + i]._yscale)) {
enemyhit = 1;
_root.s = _root.s + 10;
_root.hits++;
damagecounter = 20;
tellTarget (_root.EnemyDamageSound) {
gotoAndPlay (2);
};
_root["star" + i].gotoAndStop(1);
_root["star" + i]._x = -20;
_root["star" + i]._y = -20;
_root["star" + i].ymovedone = 0;
_root["star" + i].xmovedone = 0;
_root["star" + i].firing = 0;
}
}
}
i++;
}
if (enemyhit == 1) {
if (0 < damagecounter) {
stop();
damagecounter = damagecounter - 1;
if (this.Gang._alpha == 100) {
this.Gang._alpha = 50;
} else if (this.Gang._alpha < 100) {
this.Gang._alpha = 100;
}
} else {
this.Gang._alpha = 100;
this.gotoAndPlay(1);
}
}
}
Frame 122
prevFrame();
play();
Frame 188
hits = s / 10;
accuracycount = hits / shurikensused;
a = Math.round(accuracycount * 100);
Frame 189
stop();
Frame 195
gotoAndPlay (190);
Symbol 1 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "ninjaturtles2";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.hits));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 26 Button
on (release) {
gotoAndStop (16);
}
Symbol 34 Button
on (release) {
getURL ("http://www.synergyforums.com", "_blank");
}
Symbol 39 Button
on (release) {
gotoAndPlay (20);
}
Symbol 42 Button
on (release) {
gotoAndStop (16);
}
Symbol 43 Button
on (release) {
getURL ("http://www.synergyforums.com", "_blank");
}
Symbol 44 Button
on (release) {
gotoAndPlay (20);
}
Symbol 46 Button
on (release) {
gotoAndStop (13);
}
Symbol 51 Button
on (release) {
gotoAndStop (13);
}
Symbol 55 MovieClip Frame 1
stop();
getstartdist = 0;
Symbol 55 MovieClip Frame 2
dx = Math.abs(_x - targetx);
moveSpeedx = dx / 5;
if (1 < dx) {
firing = 1;
if (targetx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
} else {
xmovedone = 1;
}
dy = Math.abs(_y - targety);
moveSpeedy = dy / 5;
if (1 < dy) {
firing = 1;
if (targety < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
} else {
ymovedone = 1;
}
if ((ymovedone + xmovedone) == 2) {
if (scaling == done) {
this.gotoAndStop(1);
this._x = -20;
this._y = -20;
ymovedone = 0;
xmovedone = 0;
firing = 0;
}
}
if (1 < this._xscale) {
this._yscale = this._yscale - (this._yscale / 10);
this._xscale = this._xscale - (this._xscale / 10);
} else {
scaling = done;
}
Symbol 55 MovieClip Frame 3
prevFrame();
play();
Symbol 59 MovieClip Frame 1
stop();
Symbol 67 Button
on (press) {
tellTarget ("Arms") {
gotoAndPlay (2);
};
if (fired != 1) {
fired = 1;
shotname = "_root.star" + _root.fire;
eval (shotname)._yscale = 100;
eval (shotname)._xscale = 100;
eval (shotname).targetx = _root._xmouse;
eval (shotname).targety = _root._ymouse;
eval (shotname)._x = BG._width / 2;
eval (shotname)._y = 283;
tellTarget (eval (shotname)) {
play();
};
if (_root.fire < 20) {
_root.fire = _root.fire + 1;
} else {
_root.fire = 1;
}
}
}
on (release) {
fired = 0;
_root.shurikensused++;
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 6
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 9
stop();
Symbol 93 MovieClip Frame 10
stop();
Symbol 93 MovieClip Frame 11
stop();
Symbol 93 MovieClip Frame 12
stop();
Symbol 91 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 91 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 91 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 91 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 91 MovieClip Frame 5
currentframe = _currentframe;
Symbol 123 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 123 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 123 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 123 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 123 MovieClip Frame 5
currentframe = _currentframe;
Symbol 127 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 127 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 127 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 127 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 127 MovieClip Frame 5
currentframe = _currentframe;
Symbol 129 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 129 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 129 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 129 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 129 MovieClip Frame 5
currentframe = _currentframe;
Symbol 133 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 133 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 133 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 133 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 133 MovieClip Frame 5
currentframe = _currentframe;
Symbol 136 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 137 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 137 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 137 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 137 MovieClip Frame 5
currentframe = _currentframe;
Symbol 139 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 139 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 139 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 139 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 139 MovieClip Frame 5
currentframe = _currentframe;
Symbol 140 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 140 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay (4);
} else {
poptime = random(1000);
play();
}
Symbol 140 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay (2);
Symbol 140 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 140 MovieClip Frame 5
currentframe = _currentframe;
Symbol 142 Button
on (press) {
tellTarget ("Arms") {
gotoAndPlay (2);
};
if (fired != 1) {
fired = 1;
shotname = "_root.star" + _root.fire;
eval (shotname)._yscale = 100;
eval (shotname)._xscale = 100;
eval (shotname).targetx = _root._xmouse;
eval (shotname).targety = _root._ymouse;
eval (shotname)._x = BG._width / 2;
eval (shotname)._y = 283;
tellTarget (eval (shotname)) {
play();
};
if (_root.fire < 20) {
_root.fire = _root.fire + 1;
} else {
_root.fire = 1;
}
}
}
on (release) {
fired = 0;
_root.shurikensused++;
}
Symbol 148 MovieClip Frame 2
filename = "turtlesscores";
state = "busy";
loadVariables ("http://www.konami.com/main/cgi-bin/TurtlesDBread.cgi", "", "POST");
Symbol 148 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 148 MovieClip Frame 5
if (state eq "done") {
i = 1;
while (10 >= Number(i)) {
Set("/:n" add i, eval ("n" add i));
Set("/:s" add i, eval ("s" add i));
Set("/:a" add i, eval ("a" add i));
i = Number(i) + 1;
}
}
gotoAndStop (1);
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
filename = "turtlesscores";
state = "busy";
n11 = "";
s11 = 0;
a11 = 0;
loadVariables ("http://www.konami.com/main/cgi-bin/TurtlesDBread.cgi", "", "POST");
Symbol 150 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 150 MovieClip Frame 5
if (state eq "done") {
i = 1;
if (_root.a < 100) {
_root.a = "0" add _root.a;
}
while (10 >= Number(i)) {
Set("/:n" add i, eval ("n" add i));
Set("/:s" add i, eval ("s" add i));
Set("/:a" add i, eval ("a" add i));
i = Number(i) + 1;
}
}
if (/:a ne "") {
i = 10;
n11 = /:n;
Set("/:n11", /:n);
s11 = /:s;
Set("/:s11", /:s);
a11 = /:a;
Set("/:a11", /:a);
scoretemp = s11;
acctemp = a11;
nametemp = n11;
if (s11 < s10) {
s10 = s10;
a10 = a10;
} else if ((s11 == s10) and (a11 < a10)) {
s10 = s10;
a10 = a10;
} else {
scoretemp = s10;
acctemp = a10;
nametemp = n10;
s10 = s11;
Set("/:s10", s11);
a10 = a11;
Set("/:a10", a11);
n10 = n11;
Set("/:n10", n11);
s11 = scoretemp;
a11 = acctemp;
n11 = nametemp;
}
i = 10;
while (1 < i) {
j = i - 1;
if (eval ("s" add j) < eval ("s" add i)) {
Set(scoretemp, eval ("s" add i));
Set(acctemp, eval ("a" add i));
Set(nametemp, eval ("n" add i));
Set("s" add i, eval ("s" add j));
Set("/:s" add i, eval ("s" add j));
Set("a" add i, eval ("a" add j));
Set("/:a" add i, eval ("a" add j));
Set("n" add i, eval ("n" add j));
Set("/:n" add i, eval ("n" add j));
Set("s" add j, eval (scoretemp));
Set("/:s" add j, eval (scoretemp));
Set("a" add j, eval (acctemp));
Set("/:a" add j, eval (acctemp));
Set("n" add j, eval (nametemp));
Set("/:n" add j, eval (nametemp));
} else if (eval ("s" add i) == eval ("s" add j)) {
if (eval ("a" add j) < eval ("a" add i)) {
Set(scoretemp, eval ("s" add i));
Set(acctemp, eval ("a" add i));
Set(nametemp, eval ("n" add i));
Set("s" add i, eval ("s" add j));
Set("/:s" add i, eval ("s" add j));
Set("a" add i, eval ("a" add j));
Set("/:a" add i, eval ("a" add j));
Set("n" add i, eval ("n" add j));
Set("/:n" add i, eval ("n" add j));
Set("s" add j, eval (scoretemp));
Set("/:s" add j, eval (scoretemp));
Set("a" add j, eval (acctemp));
Set("/:a" add j, eval (acctemp));
Set("n" add j, eval (nametemp));
Set("/:n" add j, eval (nametemp));
}
}
i--;
}
}
filename = "turtlesscores";
loadVariables ("http://www.konami.com/main/cgi-bin/TurtlesDBwrite.cgi", "", "POST");
gotoAndStop (1);
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 5
counter = "0";
filename = "scorecounter";
state = "busy";
loadVariables ("http://www.konami.com/main/cgi-bin/TurtlesDBread.cgi", "", "POST");
Symbol 152 MovieClip Frame 7
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 152 MovieClip Frame 8
counter = Number(counter) + 1;
Set("/:counter", counter);
loadVariables ("http://www.konami.com/main/cgi-bin/TurtlesDBwrite.cgi", "", "POST");
gotoAndStop (1);
Symbol 153 Button
on (release) {
_root.gameover = 1;
}
Symbol 176 Button
on (release) {
gotoAndStop (13);
unloadMovieNum (5);
}
Symbol 189 Button
on (release) {
gotoAndPlay (1);
unloadMovieNum (5);
unloadMovieNum (201);
loadMovieNum ("Music_Title.swf", 205);
}
Symbol 198 Button
on (release) {
gotoAndStop (13);
unloadMovieNum (5);
}
Symbol 203 Button
on (release) {
_root.gameover = 1;
}
Symbol 244 Button
on (release) {
gotoAndStop (13);
unloadMovieNum (5);
}