Frame 1
loadMovieNum ("Title_Music.swf", 200);
Frame 2
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes / 1000);
totalkbytes = Math.ceil(totalbytes / 1000);
if (loadedbytes == totalbytes) {
gotoAndPlay ("Start");
}
frame = int(loadedbytes / (totalbytes / 100));
barmovement = frame - oldframe;
_root.loader.Loadbar._x = _root.loader.Loadbar._x + (barmovement * 3);
oldframe = frame;
Frame 3
prevFrame();
play();
Frame 4
_quality = "high";
loadVariables ("config.php", "_root.varTarget");
Score = 0;
TotalEp1Score = 0;
TotalEp2Score = 0;
TotalEp3Score = 0;
TotalScore = 0;
EnemiesKilled = 0;
DragonLife = 0;
DragonLifeTotal = 200;
Stamp = new Date();
TimeStamp = Stamp.getTime();
Frame 100
if (_level200._currentframe == 1) {
_level200.play();
}
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
Frame 173
stop();
Frame 189
if (SectionToLoad == 1) {
gotoAndPlay ("Level1Loading");
} else if (SectionToLoad == 2) {
gotoAndPlay ("Email");
} else if (SectionToLoad == 3) {
gotoAndPlay ("Credits");
} else if (SectionToLoad == 4) {
gotoAndPlay ("ViewHighScores");
} else if (SectionToLoad == 5) {
gotoAndPlay ("HowToPlay");
} else if (SectionToLoad == 6) {
gotoAndPlay ("BuyNow");
}
Frame 206
stop();
Frame 221
stop();
Frame 238
stop();
Frame 260
stop();
loadMovieNum ("Postcard_Thumb.swf", 15);
Frame 264
_level200.gotoAndStop("Stop");
LevelMusic.gotoAndStop(2);
Frame 348
Timer.MyMinute = 0;
_root.MySeconds = 0;
Timer.MyTimer = 0;
Timer.MyZero = 0;
_root.TotalScoreP1 = 0;
_root.rings = 0;
_level201.gotoAndStop(2);
fire = 1;
s = 0;
fps = 30;
timer = 60;
timeleft = 60;
shurikensused = 0;
hits = 0;
Frame 350
Timer.gotoAndPlay(2);
_level5.gotoAndStop(3);
Frame 352
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 ("Timesup");
}
Instance of Symbol 183 MovieClip in Frame 352
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 (damagecounter > 0) {
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 185 MovieClip in Frame 352
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 (damagecounter > 0) {
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 187 MovieClip in Frame 352
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 (damagecounter > 0) {
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 189 MovieClip in Frame 352
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 (damagecounter > 0) {
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 193 MovieClip in Frame 352
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 (damagecounter > 0) {
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 195 MovieClip in Frame 352
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 (damagecounter > 0) {
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 197 MovieClip in Frame 352
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 (damagecounter > 0) {
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 353
prevFrame();
play();
Frame 423
gotoAndPlay ("Scoring");
Frame 432
LevelMusic.gotoAndStop("Stop");
_level200.gotoAndStop("Start");
hits = s / 10;
accuracycount = hits / shurikensused;
a = Math.round(accuracycount * 100);
_root.TempTotalScore = s;
_root.TotalScoreP1 = a + s;
Frame 462
stop();
Stamp = new Date();
TimeStamp = Stamp.getTime();
Frame 465
Frame 495
stop();
Stamp = new Date();
TimeStamp = Stamp.getTime();
Frame 496
_root.scoretable.filename = _root.varTarget.filename;
_root.scoretable.scoresize = 20;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = _root.varTarget.viewingtype;
_root.scoretable.winname = _root.name;
_root.scoretable.winscore = _root.score;
_root.traceurl = (("http://" + _root.varTarget.server) + _root.varTarget.base) + _root.varTarget.scoresurl;
_root.scoretable.loadVariables((("http://" + _root.varTarget.server) + _root.varTarget.base) + _root.varTarget.scoresurl, "GET");
Frame 501
prevFrame();
play();
Frame 527
stop();
Symbol 40 Button
on (release) {
SectionToLoad = 3;
play();
}
Symbol 49 Button
on (release) {
SectionToLoad = 4;
play();
}
Symbol 50 Button
on (release) {
getURL ("http://www.sega.com/games/game_temp.php?game=tenchu", "_blank");
}
Symbol 51 Button
on (release) {
SectionToLoad = 2;
play();
}
Symbol 52 Button
on (release) {
SectionToLoad = 5;
play();
}
Symbol 53 Button
on (release) {
SectionToLoad = 6;
play();
}
Symbol 54 Button
on (release) {
SectionToLoad = 1;
_level200.gotoAndStop(1);
unloadMovieNum (205);
play();
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 59 Button
on (release) {
gotoAndPlay ("Menu");
}
Symbol 64 Button
on (release) {
getURL ("http://www.ebgames.com/ebx/product/246587.asp", "_blank");
}
Symbol 91 Button
on (release) {
if (((!useremail.length) || (useremail.indexOf("@") == -1)) || (useremail.indexOf(".") == -1)) {
answer = "Please enter a valid E-mail address";
} else if (((!friendemail.length) || (friendemail.indexOf("@") == -1)) || (friendemail.indexOf(".") == -1)) {
answer = "Please enter a valid E-mail address to send this to";
} else if (!friendname.length) {
answer = "Please enter the name of who you are sending this to";
} else if (!username.length) {
answer = "Please Enter your name before Sending";
} else {
action = "send";
loadVariablesNum ("email.php", 0, "POST");
answer = "Sending... One Moment Please...";
tellTarget ("_root.EmailIncrement") {
gotoAndPlay (2);
};
unloadMovieNum (15);
play();
}
}
Symbol 92 Button
on (release) {
unloadMovieNum (15);
_parent.gotoAndPlay("Menu");
}
Symbol 101 Button
on (release) {
_parent.gotoAndPlay("Menu");
}
Symbol 103 Button
on (release) {
loadMovieNum ("Postcard_Thumb.swf", 10);
gotoAndPlay ("Entry");
}
Symbol 104 MovieClip Frame 1
useremail = "";
answer = "";
friendemail = "";
friendname = "";
username = "";
comments = "";
Symbol 104 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 3
loadVariablesNum ("email.php", 0);
if (answer != "Sending... One Moment Please....") {
stop();
this.gotoAndPlay("Done");
} else {
play();
}
Symbol 104 MovieClip Frame 4
prevFrame();
Symbol 104 MovieClip Frame 6
stop();
Stamp = new Date();
TimeStamp = Stamp.getTime();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 7
gotoAndStop (1);
Symbol 115 MovieClip Frame 13
gotoAndStop (1);
Symbol 115 MovieClip Frame 19
gotoAndStop (1);
Symbol 120 MovieClip Frame 1
scale = Number(random(50)) + 30;
setProperty(_target, _x , (Number(../:x) + Number(random(12))) - 6);
setProperty(_target, _yscale , scale);
Symbol 121 MovieClip Frame 1
i = 1;
max = 20;
x = getProperty("fire", _x);
Symbol 121 MovieClip Frame 2
if (Number(i) <= Number(max)) {
duplicateMovieClip ("fire", "fire" add i, i);
i = Number(i) + 1;
}
Symbol 121 MovieClip Frame 3
gotoAndPlay (2);
Symbol 133 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 3
stop();
Symbol 154 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 = 315;
tellTarget (eval (shotname)) {
play();
};
if (_root.fire < 20) {
_root.fire = _root.fire + 1;
} else {
_root.fire = 1;
}
}
}
on (release) {
fired = 0;
_root.shurikensused++;
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 6
gotoAndStop ("Start");
Symbol 161 MovieClip Frame 9
gotoAndStop ("Start");
Symbol 161 MovieClip Frame 13
gotoAndStop ("Start");
Symbol 161 MovieClip Frame 16
gotoAndStop ("Start");
Symbol 163 MovieClip Frame 1
stop();
Symbol 165 Button
on (release) {
removeMovieClip(_level5.tiles);
_level201.gotoAndStop("Start");
_level5.gotoAndPlay(1);
_root.gotoAndPlay("Level1Loading");
}
Symbol 166 Button
on (release) {
LevelMusic.gotoAndStop("Stop");
_level200.gotoAndStop("Start");
_root.gotoAndPlay("Menu");
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 3
stop();
Symbol 180 MovieClip Frame 4
stop();
Symbol 180 MovieClip Frame 5
stop();
Symbol 180 MovieClip Frame 6
stop();
Symbol 180 MovieClip Frame 7
stop();
Symbol 180 MovieClip Frame 8
stop();
Symbol 180 MovieClip Frame 9
stop();
Symbol 180 MovieClip Frame 10
stop();
Symbol 180 MovieClip Frame 11
stop();
Symbol 180 MovieClip Frame 12
stop();
Symbol 183 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 183 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 183 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 183 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 183 MovieClip Frame 5
currentframe = _currentframe;
Symbol 185 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 185 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 185 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 185 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 185 MovieClip Frame 5
currentframe = _currentframe;
Symbol 187 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 187 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 187 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 187 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 187 MovieClip Frame 5
currentframe = _currentframe;
Symbol 189 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 189 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 189 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 189 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 189 MovieClip Frame 5
currentframe = _currentframe;
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
_root.Death.gotoAndPlay(2);
Symbol 193 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 193 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 193 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 193 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 193 MovieClip Frame 5
currentframe = _currentframe;
Symbol 195 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 195 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 195 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 195 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 195 MovieClip Frame 5
currentframe = _currentframe;
Symbol 197 MovieClip Frame 1
poptime = 1000;
enemyhit = 0;
Symbol 197 MovieClip Frame 2
currentframe = _currentframe;
if (poptime < 10) {
gangmember = random(13) + 1;
visibletime = 200;
tellTarget ("Gang") {
gotoAndStop(gangmember);
};
gotoAndPlay ("Visible");
} else {
poptime = random(1000);
play();
}
Symbol 197 MovieClip Frame 3
currentframe = _currentframe;
gotoAndPlay ("Hidden");
Symbol 197 MovieClip Frame 4
currentframe = _currentframe;
Gang.gotoAndStop(gangmember);
Symbol 197 MovieClip Frame 5
currentframe = _currentframe;
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
deathnum = random(3) + 1;
gotoAndPlay("Death" + deathnum);
Symbol 201 MovieClip Frame 4
gotoAndStop (1);
Symbol 201 MovieClip Frame 7
gotoAndStop (1);
Symbol 201 MovieClip Frame 10
gotoAndStop (1);
Symbol 205 MovieClip Frame 1
stop();
getstartdist = 0;
Symbol 205 MovieClip Frame 2
dx = Math.abs(_x - targetx);
moveSpeedx = dx / 5;
if (dx > 1) {
firing = 1;
if (targetx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
} else {
xmovedone = 1;
}
dy = Math.abs(_y - targety);
moveSpeedy = dy / 5;
if (dy > 1) {
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 (this._xscale > 1) {
this._yscale = this._yscale - (this._yscale / 10);
this._xscale = this._xscale - (this._xscale / 10);
} else {
scaling = done;
}
Symbol 205 MovieClip Frame 3
prevFrame();
play();
Symbol 207 MovieClip Frame 1
timetoflash = 1000;
Symbol 207 MovieClip Frame 2
if (lighteningon != 1) {
timetoflash = random(1500);
}
if (timetoflash < 10) {
if (lighteningon != 1) {
lighteningon = 1;
lighteningtoplay = random(4) + 1;
_root.LighteningSound.gotoAndPlay("Thun" add lighteningtoplay);
}
if (lighteningpasses > 0) {
passtouse = random(2);
if (passtouse == 0) {
lighteningpasses = lighteningpasses - 1;
boltnum = random(3) + 1;
_root.Bolts.gotoAndPlay("Bolt" add boltnum);
gotoAndPlay ("Short");
} else {
lighteningpasses = lighteningpasses - 1;
boltnum = random(3) + 1;
_root.Bolts.gotoAndPlay("Bolt" add boltnum);
gotoAndPlay ("Long");
}
} else {
lighteningon = 0;
lighteningpasses = 3;
}
}
Symbol 207 MovieClip Frame 3
prevFrame();
play();
Symbol 207 MovieClip Frame 6
gotoAndPlay ("Start");
Symbol 207 MovieClip Frame 10
gotoAndPlay ("Start");
Symbol 213 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.GameOver.gotoAndStop(1);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Menu");
}
Symbol 216 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.GameOver.gotoAndStop(1);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Level1Loading");
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
_level201.gotoAndStop("Start");
_level10.Timer.stop();
Symbol 217 MovieClip Frame 14
stop();
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 10
_root.gotoAndPlay("Scoring");
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 237 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Scoring2");
}
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
filename = "sonicscores";
state = "busy";
name21 = "";
score21 = 0;
loadVariables ("http://immersion-a.sega.com/cgi-bin/SonicDBread.cgi", "", "POST");
Symbol 248 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 248 MovieClip Frame 5
if (state eq "done") {
i = 1;
while (Number(i) <= 20) {
Set("/:name" add i, eval ("name" add i));
Set("/:score" add i, eval ("score" add i));
i = Number(i) + 1;
}
}
if (/:score ne "") {
name21 = /:name;
Set("/:name21", /:name);
score21 = /:score;
Set("/:score21", /:score);
scoretemp = score21;
nametemp = name21;
if (score21 < score20) {
score20 = score20;
} else {
scoretemp = score20;
nametemp = name20;
score20 = score21;
Set("/:score20", score21);
name20 = name21;
Set("/:name20", name21);
score21 = scoretemp;
name21 = nametemp;
}
i = 20;
while (i > 1) {
j = i - 1;
if (eval ("score" add i) > eval ("score" add j)) {
Set(scoretemp, eval ("score" add i));
Set(nametemp, eval ("name" add i));
Set("score" add i, eval ("score" add j));
Set("/:score" add i, eval ("score" add j));
Set("name" add i, eval ("name" add j));
Set("/:name" add i, eval ("name" add j));
Set("score" add j, eval (scoretemp));
Set("/:score" add j, eval (scoretemp));
Set("name" add j, eval (nametemp));
Set("/:name" add j, eval (nametemp));
}
i--;
}
}
filename = "sonicscores";
loadVariables ("http://immersion-a.sega.com/cgi-bin/SonicDBwrite.cgi", "", "POST");
gotoAndStop (1);
Symbol 250 Button
on (release, keyPress "<Enter>") {
_root.score = _root.TotalScoreP1;
_root.scoretable.filename = _root.varTarget.filename;
_root.scoretable.scoresize = 20;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = _root.varTarget.viewingtype;
_root.scoretable.winname = _root.name;
_root.scoretable.winscore = _root.score;
_root.TraceURl = (("http://" + _root.varTarget.server) + _root.varTarget.base) + _root.varTarget.scoresurl;
_root.scoretable.loadVariables((("http://" + _root.varTarget.server) + _root.varTarget.base) + _root.varTarget.scoresurl, "GET");
_root.Scoreloop.gotoAndStop(1);
gotoAndPlay ("ViewHighScores");
}
Symbol 251 Button
on (release) {
_root.Scoreloop.gotoAndStop(1);
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Menu");
}
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
filename = "sonicscores";
state = "busy";
name21 = "";
score21 = 0;
loadVariables ("http://immersion-a.sega.com/cgi-bin/SonicDBread.cgi", "", "POST");
Symbol 252 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 252 MovieClip Frame 5
if (state eq "done") {
i = 1;
while (Number(i) <= 20) {
Set("/:name" add i, eval ("name" add i));
Set("/:score" add i, eval ("score" add i));
i = Number(i) + 1;
}
}
stop();
Symbol 314 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Menu");
}
Symbol 315 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Email");
}
Symbol 318 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
_root.gotoAndPlay("Menu");
}
Symbol 319 Button
on (release) {
removeMovieClip(_level5.tiles);
_level5.gotoAndPlay(1);
_level201.gotoAndStop("Start");
gotoAndPlay ("Email");
}