Frame 1
loadMovieNum ("Title_Music.swf", 200);
loadMovieNum ("Level_Music.swf", 201);
Frame 2
stop();
Instance of Symbol 11 MovieClip in Frame 2
onClipEvent (enterFrame) {
text = ((int(_parent.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_parent.getBytesTotal() / 1000)) add " LOADED ...";
Loadbar._x = ((300 * _parent.getBytesLoaded()) / _parent.getBytesTotal()) - 300;
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.play();
}
}
Frame 3
_quality = "high";
loadVariables ("rivals_config.php", "_root.varTarget1");
TotalScore = 0;
shinetimer = 1000;
Frame 4
if (_root.varTarget1.loading == "done") {
gotoAndPlay ("Go");
}
Frame 5
Frame 99
if ((_level200._currentframe == 1) or (_level200._currentframe == 3)) {
_level200.play();
}
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (10);
_level201.gotoAndStop("Stop");
Instance of Symbol 20 MovieClip "MenuLogo" in Frame 183
onClipEvent (enterFrame) {
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "BUY NOW!";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
getURL ("http://www.ebgames.com/product.asp?product%5Fid=190322", "_blank");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "CREDITS";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.SectionToLoad = 3;
_root.gotoAndPlay("MenuFade");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "RECEIVE UPDATES";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
getURL ("/newsblast/signup.php?id=sonicrivals_gs", "_blank");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "ABOUT THE GAME";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
getURL ("http://www.sega.com/gamesite/sonicrivals/", "_blank");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "SEND POSTCARD";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.SectionToLoad = 2;
_root.gotoAndPlay("MenuFade");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "VIEW HIGH SCORES";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.SectionToLoad = 4;
_root.gotoAndPlay("MenuFade");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "HOW TO PLAY";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.SectionToLoad = 5;
_root.gotoAndPlay("MenuFade");
}
}
Instance of Symbol 47 MovieClip in Frame 183
onClipEvent (load) {
buttonname = "START";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.SectionToLoad = 1;
_root.gotoAndPlay("MenuFade");
}
}
Frame 186
stop();
Frame 195
if (SectionToLoad == 1) {
gotoAndPlay ("ChooseGame");
} else if (SectionToLoad == 2) {
gotoAndPlay ("Email");
} else if (SectionToLoad == 3) {
gotoAndPlay ("Credits");
} else if (SectionToLoad == 4) {
gotoAndPlay ("ViewHighScores1");
} else if (SectionToLoad == 5) {
gotoAndPlay ("HowToPlay");
} else if (SectionToLoad == 6) {
gotoAndPlay ("BuyNow");
}
Frame 212
stop();
Instance of Symbol 47 MovieClip in Frame 212
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Frame 226
stop();
Instance of Symbol 47 MovieClip in Frame 226
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Frame 242
stop();
Instance of Symbol 47 MovieClip in Frame 242
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Frame 259
stop();
Instance of Symbol 47 MovieClip in Frame 259
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Frame 281
stop();
Frame 285
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (10);
_root.p1done = false;
_root.p2done = false;
loadMovieNum ("Rivals.swf", 5);
loadMovieNum ("Rivals.swf", 6);
loadMovieNum ("2pframe.swf", 10);
Frame 286
if ((p1done == true) and (p2done == true)) {
gotoAndPlay ("2playerstart");
}
Instance of Symbol 11 MovieClip in Frame 286
onClipEvent (enterFrame) {
text = ((int(_level5.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_level5.getBytesTotal() / 1000)) add " LOADED ...";
Loadbar._x = ((300 * _level5.getBytesLoaded()) / _level5.getBytesTotal()) - 300;
if (_level5.getBytesTotal() == _level5.getBytesLoaded()) {
_root.p1done = true;
}
}
Instance of Symbol 11 MovieClip in Frame 286
onClipEvent (enterFrame) {
text = ((int(_level6.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_level6.getBytesTotal() / 1000)) add " LOADED ...";
Loadbar._x = ((300 * _level6.getBytesLoaded()) / _level6.getBytesTotal()) - 300;
if (_level6.getBytesTotal() == _level6.getBytesLoaded()) {
_root.p2done = true;
}
}
Frame 287
prevFrame();
play();
Frame 288
_level5.gametype = "2player";
_level5.player = 1;
_level5.play();
_level6.gametype = "2player";
_level6.player = 2;
_level6.play();
_level201.gotoAndStop("Start");
Frame 289
stop();
Frame 297
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (10);
_root.p1done = false;
_root.p2done = false;
loadMovieNum ("Rivals.swf", 5);
loadMovieNum ("1pframe.swf", 10);
Frame 298
if (p1done == true) {
gotoAndPlay ("1playerstart");
}
Instance of Symbol 11 MovieClip in Frame 298
onClipEvent (enterFrame) {
text = ((int(_level5.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_level5.getBytesTotal() / 1000)) add " LOADED ...";
Loadbar._x = ((300 * _level5.getBytesLoaded()) / _level5.getBytesTotal()) - 300;
if (_level5.getBytesTotal() == _level5.getBytesLoaded()) {
_root.p1done = true;
}
}
Frame 299
prevFrame();
play();
Frame 300
_level5.gametype = "1player";
_level5.player = 1;
_level5.play();
_level201.gotoAndStop("Start");
Frame 301
stop();
Frame 311
unloadMovieNum (5);
unloadMovieNum (6);
unloadMovieNum (10);
_level201.gotoAndStop("Stop");
_level200.play();
Frame 332
function senddata() {
_root.score = _root.TotalScore;
_root.scoretable.filename = _root.varTarget1.filename;
_root.scoretable.scoresize = 20;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = _root.varTarget1.viewingtype;
_root.scoretable.winname = _root.name;
_root.scoretable.winscore = _root.score;
_root.TraceURL = (("http://" + _root.varTarget1.server) + _root.varTarget1.base) + _root.varTarget1.scoresurl;
_root.scoretable.loadVariables((("http://" + _root.varTarget1.server) + _root.varTarget1.base) + _root.varTarget1.scoresurl, "GET");
}
stop();
Instance of Symbol 47 MovieClip in Frame 332
onClipEvent (load) {
buttonname = "SUBMIT SCORE";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.senddata();
_root.Scoreloop.gotoAndStop(1);
_root.gotoAndPlay("ViewHighScores1");
}
}
Instance of Symbol 47 MovieClip in Frame 332
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_level0.gotoAndPlay("Menu");
_level200.gotoAndPlay(1);
_level201.gotoAndStop("Stop");
unloadMovieNum (5);
}
}
Frame 341
_root.scoretable.filename = _root.varTarget1.filename;
_root.scoretable.scoresize = 20;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = _root.varTarget1.viewingtype;
_root.scoretable.winname = _root.name;
_root.scoretable.winscore = _root.score;
_root.traceURL = (("http://" + _root.varTarget1.server) + _root.varTarget1.base) + _root.varTarget1.scoresurl;
_root.scoretable.loadVariables((("http://" + _root.varTarget1.server) + _root.varTarget1.base) + _root.varTarget1.scoresurl, "GET");
Instance of Symbol 47 MovieClip in Frame 341
onClipEvent (load) {
buttonname = "SEND POSTCARD";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Email");
}
}
Instance of Symbol 47 MovieClip in Frame 341
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Frame 346
prevFrame();
play();
Symbol 41 MovieClip Frame 1
this._width = _parent._parent.mainbar._width;
Symbol 41 MovieClip Frame 2
gotoAndPlay (1);
Symbol 43 MovieClip Frame 1
buttontext.autoSize = "center";
buttonhighlight.autoSize = "center";
buttonshadow.autoSize = "center";
Symbol 46 Button
on (release) {
doaction = 1;
}
Symbol 47 MovieClip Frame 1
buttontext.autoSize = "center";
buttonhighlight.autoSize = "center";
buttonshadow.autoSize = "center";
hotspot.buttontext.autoSize = "center";
hotspot.buttonhighlight.autoSize = "center";
hotspot.buttonshadow.autoSize = "center";
stop();
Instance of Symbol 26 MovieClip "mainbar" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _parent.buttontext._width;
this._x = _parent.buttontext._x + (_parent.buttontext._width / 2);
}
Instance of Symbol 28 MovieClip "rightcap" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = (_parent.mainbar._x + (_parent.mainbar._width / 2)) - 0.5;
}
Instance of Symbol 30 MovieClip "leftcap" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = (_parent.mainbar._x - (_parent.mainbar._width / 2)) + 0.5;
}
Instance of Symbol 35 MovieClip "mainref" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = _parent.buttontext._width;
this._x = _parent.buttontext._x + (_parent.buttontext._width / 2);
}
Instance of Symbol 37 MovieClip "rightref" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _parent.mainref._x + (_parent.mainref._width / 2);
}
Instance of Symbol 39 MovieClip "leftref" in Symbol 47 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = _parent.mainref._x - (_parent.mainref._width / 2);
}
Symbol 62 Button
on (release) {
_level200.gotoAndStop("Stop");
gotoAndPlay ("2player");
}
Symbol 65 Button
on (release) {
_level200.gotoAndStop("Stop");
gotoAndPlay ("1player");
}
Symbol 88 MovieClip Frame 1
function sendMail() {
action = "send";
loadVariablesNum ("email.php", 0, "POST");
}
useremail = "";
answer = "";
friendemail = "";
friendname = "";
username = "";
comments = "";
loadMovieNum ("Postcard_Thumb.swf", 15);
Instance of Symbol 47 MovieClip in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
unloadMovieNum (15);
_root.gotoAndPlay("Menu");
}
}
Instance of Symbol 47 MovieClip in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
buttonname = "SEND POSTCARD";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
if (((!_parent.useremail.length) || (_parent.useremail.indexOf("@") == -1)) || (_parent.useremail.indexOf(".") == -1)) {
_parent.answer = "Please enter a valid E-mail address";
} else if (((!_parent.friendemail.length) || (_parent.friendemail.indexOf("@") == -1)) || (_parent.friendemail.indexOf(".") == -1)) {
_parent.answer = "Please enter a valid E-mail address to send this to";
} else if (!_parent.friendname.length) {
_parent.answer = "Please enter the name of who you are sending this to";
} else if (!_parent.username.length) {
_parent.answer = "Please Enter your name before Sending";
} else {
_parent.sendMail();
_parent.answer = "Sending... One Moment Please...";
unloadMovieNum (15);
_parent.play();
}
}
}
Symbol 88 MovieClip Frame 2
stop();
Symbol 88 MovieClip Frame 3
loadVariablesNum ("email.php", 0);
if (answer != "Sending... One Moment Please....") {
stop();
this.gotoAndPlay("Done");
} else {
play();
}
Symbol 88 MovieClip Frame 4
prevFrame();
Instance of Symbol 47 MovieClip in Symbol 88 MovieClip Frame 5
onClipEvent (load) {
buttonname = "RETURN TO MENU";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
_root.gotoAndPlay("Menu");
}
}
Instance of Symbol 47 MovieClip in Symbol 88 MovieClip Frame 5
onClipEvent (load) {
buttonname = "SEND POSTCARD";
doaction = 0;
}
onClipEvent (enterFrame) {
if (doaction == 1) {
doaction = 0;
loadMovieNum ("Postcard_Thumb.swf", 15);
_parent.gotoAndPlay("Entry");
}
}
Symbol 88 MovieClip Frame 6
stop();
Stamp = new Date();
TimeStamp = Stamp.getTime();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
filename = "sonicscores";
state = "busy";
name21 = "";
score21 = 0;
loadVariables ("http://immersion-a.sega.com/cgi-bin/SonicDBread.cgi", "", "POST");
Symbol 165 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 165 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 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
filename = "sonicscores";
state = "busy";
name21 = "";
score21 = 0;
loadVariables ("http://immersion-a.sega.com/cgi-bin/SonicDBread.cgi", "", "POST");
Symbol 167 MovieClip Frame 4
if (state eq "busy") {
gotoAndPlay (3);
}
Symbol 167 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();