Frame 1
Stage.showMenu = false;
Mouse.show();
NewgroundsAPI.connectMovie(11394);
var game = SharedObject.getLocal("game_data");
if (game.data.confirm == true) {
_root.highscore1 = game.data.score1;
_root.highscore2 = game.data.score2;
_root.highscore3 = game.data.score3;
_root.highscore4 = game.data.score4;
_root.highscore5 = game.data.score5;
_root.highscore6 = game.data.score6;
_root.highscore7 = game.data.score7;
} else {
_root.highscore1 = 0;
_root.highscore2 = 0;
_root.highscore3 = 0;
_root.highscore4 = 0;
_root.highscore5 = 0;
_root.highscore6 = 0;
_root.highscore7 = 0;
}
Instance of Symbol 39 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.currentSong == "Song1") {
if (_root.fScore > _root.highscore1) {
_root.highscore1 = _root.fScore;
}
}
if (_root.currentSong == "Song2") {
if (_root.fScore > _root.highscore2) {
_root.highscore2 = _root.fScore;
}
}
if (_root.currentSong == "Song3") {
if (_root.fScore > _root.highscore3) {
_root.highscore3 = _root.fScore;
}
}
if (_root.currentSong == "Song4") {
if (_root.fScore > _root.highscore4) {
_root.highscore4 = _root.fScore;
}
}
if (_root.currentSong == "Song5") {
if (_root.fScore > _root.highscore5) {
_root.highscore5 = _root.fScore;
}
}
if (_root.currentSong == "Song6") {
if (_root.fScore > _root.highscore6) {
_root.highscore6 = _root.fScore;
}
}
}
Frame 10
stop();
_root.isRetrying = false;
_root.currentSelection = 1;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
stop();
Frame 18
currentSelection = 1;
stop();
_root.isRetrying = false;
_root.currentSelection = 1;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
stop();
Mouse.show();
var game = SharedObject.getLocal("game_data");
game.data.score1 = _root.highscore1;
game.data.score2 = _root.highscore2;
game.data.score3 = _root.highscore3;
game.data.score4 = _root.highscore4;
game.data.score5 = _root.highscore5;
game.data.score6 = _root.highscore6;
game.data.score7 = _root.highscore7;
game.data.confirm = true;
game.flush();
onEnterFrame = function () {
if (currentSelection == 1) {
_root.HS = _root.highscore1;
songMover.Song1.gotoAndStop(2);
songMover.Song2.gotoAndStop(1);
if (_root.selBox._currentframe > 11) {
_root.selBox.gotoAndPlay("MidToLeft");
}
}
if (currentSelection == 2) {
_root.HS = _root.highscore2;
songMover.Song1.gotoAndStop(1);
songMover.Song2.gotoAndStop(3);
songMover.Song3.gotoAndStop(1);
if (((_root.selBox._currentframe < 12) || (_root.selBox._currentframe > 21)) && (_root.selBox._currentframe != 42)) {
_root.selBox.gotoAndPlay("LeftToMid");
}
if (_root.songMover._currentFrame > 1) {
_root.songMover.prevFrame();
}
}
if (currentSelection == 3) {
_root.HS = _root.highscore3;
songMover.Song3.gotoAndStop(4);
songMover.Song2.gotoAndStop(1);
songMover.Song4.gotoAndStop(1);
songMover.Song1.gotoAndStop(1);
if (_root.songMover._currentFrame == 1) {
_root.songMover.gotoAndPlay(2);
}
if (_root.songMover._currentFrame > 10) {
_root.songMover.prevFrame();
}
if (((_root.selBox._currentframe < 12) || (_root.selBox._currentframe > 21)) && (_root.selBox._currentframe != 42)) {
_root.selBox.gotoAndPlay("LeftToMid");
}
}
if (currentSelection == 4) {
_root.HS = _root.highscore4;
songMover.Song1.gotoAndStop(1);
songMover.Song3.gotoAndStop(1);
songMover.Song4.gotoAndStop(5);
songMover.Song5.gotoAndStop(1);
if (_root.songMover._currentFrame == 10) {
_root.songMover.gotoAndPlay(11);
}
if (_root.songMover._currentFrame > 20) {
_root.songMover.prevFrame();
}
}
if (currentSelection == 5) {
_root.HS = _root.highscore5;
songMover.Song4.gotoAndStop(1);
songMover.Song5.gotoAndStop(6);
songMover.Song6.gotoAndStop(1);
songMover.Song7.gotoAndStop(1);
if (_root.songMover._currentFrame == 20) {
_root.songMover.gotoAndPlay(21);
}
if (_root.songMover._currentFrame > 30) {
_root.songMover.prevFrame();
}
if (((_root.selBox._currentframe < 32) || (_root.selBox._currentframe > 42)) && (_root.selBox._currentframe != 32)) {
_root.selBox.gotoAndPlay("RightToMid");
}
}
if (currentSelection == 6) {
_root.HS = _root.highscore6;
songMover.Song5.gotoAndStop(1);
songMover.Song6.gotoAndStop(7);
songMover.Song7.gotoAndStop(1);
if (((_root.selBox._currentframe < 22) || (_root.selBox._currentframe > 31)) && (_root.selBox._currentframe != 31)) {
_root.selBox.gotoAndPlay("MidToRight");
}
if (_root.songMover._currentFrame == 30) {
_root.songMover.gotoAndPlay(31);
}
}
if (currentSelection == 7) {
songMover.Song6.gotoAndStop(1);
songMover.Song7.gotoAndStop(8);
if (((_root.selBox._currentframe < 22) || (_root.selBox._currentframe > 31)) && (_root.selBox._currentframe != 31)) {
_root.selBox.gotoAndPlay("MidToRight");
}
}
};
Frame 31
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song1";
Instance of Symbol 190 MovieClip "shield" in Frame 31
onClipEvent (load) {
myx = 1;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Instance of Symbol 202 MovieClip "sonic" in Frame 31
onClipEvent (enterFrame) {
if (_root.sonic.shield._visible) {
_root.hasShield = true;
} else {
_root.hasShield = false;
}
Mouse.hide();
if (_root.youLose == false) {
startDrag (this, true);
} else {
stopDrag();
this.gotoAndStop("youLose");
}
if (this._x < 0) {
_root.gotoAndStop("gameOver");
}
if (this._x > 550) {
_root.gotoAndStop("gameOver");
}
if (this._y > 400) {
_root.gotoAndStop("gameOver");
}
if (this._y < 0) {
_root.gotoAndStop("gameOver");
}
}
Frame 43
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song2";
Instance of Symbol 190 MovieClip "shield" in Frame 43
onClipEvent (load) {
myx = 10;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Frame 56
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song3";
Instance of Symbol 190 MovieClip "shield" in Frame 56
onClipEvent (load) {
myx = 15;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Frame 64
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song4";
Instance of Symbol 190 MovieClip "shield" in Frame 64
onClipEvent (load) {
myx = 20;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Frame 72
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song5";
Instance of Symbol 190 MovieClip "shield" in Frame 72
onClipEvent (load) {
myx = 10;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Frame 80
Mouse.hide();
_root.sonic.shield._visible = false;
_root.hasShield = false;
_root.currentSong = "Song6";
Instance of Symbol 190 MovieClip "shield" in Frame 80
onClipEvent (load) {
myx = 30;
}
onClipEvent (enterFrame) {
if (_root.youLose == true) {
this._visible = false;
this._x = 9000;
}
if (_root.fScore > myx) {
this.play();
}
if (_root.fScore > myx) {
this.play();
}
}
Frame 97
Mouse.show();
stopAllSounds();
stop();
Mouse.show();
stopAllSounds();
var game = SharedObject.getLocal("game_data");
game.data.score1 = _root.highscore1;
game.data.score2 = _root.highscore2;
game.data.score3 = _root.highscore3;
game.data.score4 = _root.highscore4;
game.data.score5 = _root.highscore5;
game.data.score6 = _root.highscore6;
game.data.score7 = _root.highscore7;
game.data.confirm = true;
game.flush();
Frame 107
_root.backGround2.gotoAndStop(currentSelection);
Mouse.show();
stop();
Mouse.show();
var game = SharedObject.getLocal("game_data");
game.data.score1 = _root.highscore1;
game.data.score2 = _root.highscore2;
game.data.score3 = _root.highscore3;
game.data.score4 = _root.highscore4;
game.data.score5 = _root.highscore5;
game.data.score6 = _root.highscore6;
game.data.score7 = _root.highscore7;
game.data.confirm = true;
game.flush();
switch (_root.currentSelection) {
case 1 :
_root.RightSide.vSong_Name = "Starlight Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
break;
case 2 :
_root.RightSide.vSong_Name = "Spring Yard Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
break;
case 3 :
_root.RightSide.vSong_Name = "Chemical Plant Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
break;
case 4 :
_root.RightSide.vSong_Name = "Casino Night Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
break;
case 5 :
_root.RightSide.vSong_Name = "Hydrocity Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
break;
case 6 :
_root.RightSide.vSong_Name = "Flying Battery Zone";
_root.RightSide.vNumNotes = _root.fScore;
if (_root.hasShield) {
_root.RightSide.vShieldNotice = 50;
_root.fScore = _root.fScore + 50;
} else {
_root.RightSide.vShieldNotice = 0;
}
_root.RightSide.vTotalScore = 0;
}
Instance of Symbol 370 MovieClip in Frame 107
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 401 MovieClip in Frame 107
onClipEvent (enterFrame) {
if (_root.RightSide._currentframe > 80) {
if (_root.RightSide.vShieldNotice != 0) {
if (_root.RightSide.vShieldNotice > 2) {
_root.RightSide.vShieldNotice = _root.RightSide.vShieldNotice - 2;
_root.RightSide.vTotalScore = _root.RightSide.vTotalScore + 2;
} else if (_root.RightSide.vShieldNotice != 0) {
_root.RightSide.vTotalScore = _root.RightSide.vTotalScore + _root.RightSide.vShieldNotice;
_root.RightSide.vShieldNotice = 0;
}
} else if (_root.RightSide.vNumNotes != 0) {
if (_root.RightSide.vNumNotes > 2) {
_root.RightSide.vNumNotes = _root.RightSide.vNumNotes - 2;
_root.RightSide.vTotalScore = _root.RightSide.vTotalScore + 2;
} else if (_root.RightSide.vNumNotes != 0) {
_root.RightSide.vTotalScore = _root.RightSide.vTotalScore + _root.RightSide.vNumNotes;
_root.RightSide.vNumNotes = 0;
}
}
}
}
Instance of Symbol 435 MovieClip "sure" in Frame 118
on (rollOver) {
_root.boxes.gotoAndStop(4);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
Instance of Symbol 477 MovieClip in Frame 118
onClipEvent (enterFrame) {
if (!_root.three) {
_root.em._visible = false;
_root.em2._visible = false;
_root.em3._visible = false;
_root.sure.gotoAndStop(1);
_root.NumBox.gotoAndStop(1);
} else {
_root.sure.gotoAndStop(2);
_root.NumBox.gotoAndStop(2);
_root.em._visible = true;
_root.em2._visible = true;
_root.em3._visible = true;
}
}
Frame 126
_root.bgNum = currentSelection;
switch (currentSelection) {
case 1 :
Transitioner.SN = "STARLIGHT ZONE";
Transitioner.SL = "EASY - 1:05";
_root.songSelection = "Song1";
break;
case 2 :
Transitioner.SN = "SPRINGYARD ZONE";
Transitioner.SL = "MODERATE - 1:17";
_root.songSelection = "Song2";
break;
case 3 :
Transitioner.SN = "CHEMICAL PLANT ZONE";
Transitioner.SL = "MODERATE - 1:30";
_root.songSelection = "Song3";
break;
case 4 :
Transitioner.SN = "CASINO NIGHT ZONE";
Transitioner.SL = "EASY - 1:30";
_root.songSelection = "Song4";
break;
case 5 :
Transitioner.SN = "HYDROCITY ZONE";
Transitioner.SL = "MODERATE - 2:30";
_root.songSelection = "Song5";
break;
case 6 :
Transitioner.SN = "FLYING BATTERY ZONE";
Transitioner.SL = "HARD - 1:30";
_root.songSelection = "Song6";
break;
case 7 :
Transitioner.SN = "DEATH EGG ZONE";
Transitioner.SL = "HARD - 1:30";
_root.songSelection = "Song7";
}
Instance of Symbol 482 MovieClip in Frame 126
onClipEvent (load) {
this._visible = false;
if (_root.isRetrying == true) {
this._visible = true;
}
}
Instance of Symbol 367 MovieClip "backGround" in Frame 126
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 202 MovieClip "sonic" in Frame 126
onClipEvent (enterFrame) {
Mouse.hide();
if (_root.youLose == false) {
startDrag (this, true);
} else {
stopDrag();
this.gotoAndStop("youLose");
}
}
Symbol 9 Button
on (press) {
_root.play();
}
Symbol 10 MovieClip Frame 1
_root.stop();
stop();
Instance of Symbol 4 MovieClip "bar" in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
loaded = (_root.getBytesLoaded() / _root.getBytesTotal()) + 0.01;
this._xscale = 100 * loaded;
if (loaded >= 0.99) {
_root.api.loadBar.gotoAndStop(2);
}
}
Symbol 10 MovieClip Frame 2
stop();
Symbol 16 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 21 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 23 MovieClip Frame 1
function startAd(ngad_url) {
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 518 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 54 Button
on (release) {
gotoAndPlay (59);
}
Symbol 62 MovieClip Frame 58
stop();
Symbol 62 MovieClip Frame 59
Vid.gotoAndPlay(434);
Symbol 62 MovieClip Frame 69
stopAllSounds();
_root.gotoAndStop("SongSelect");
Symbol 119 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
Song1.onRelease = function () {
if (_root.currentSelection == 1) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 1;
}
};
Song2.onRelease = function () {
if (_root.currentSelection == 2) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 2;
}
};
Song3.onRelease = function () {
if (_root.currentSelection == 3) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 3;
}
};
Song4.onRelease = function () {
if (_root.currentSelection == 4) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 4;
}
};
Song5.onRelease = function () {
if (_root.currentSelection == 5) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 5;
}
};
Song6.onRelease = function () {
if (_root.currentSelection == 6) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 6;
}
};
Song7.onRelease = function () {
if (_root.currentSelection == 7) {
stopAllSounds();
_root.gotoAndStop("Transition");
} else {
_root.currentSelection = 7;
}
};
stop();
Symbol 120 MovieClip Frame 10
stop();
Symbol 120 MovieClip Frame 20
stop();
Symbol 120 MovieClip Frame 29
stop();
Symbol 120 MovieClip Frame 40
stop();
Symbol 123 MovieClip Frame 1
gotoAndStop ("Middle");
Symbol 123 MovieClip Frame 11
stop();
Symbol 123 MovieClip Frame 21
gotoAndStop ("Middle");
Symbol 123 MovieClip Frame 31
stop();
Symbol 123 MovieClip Frame 42
stop();
Symbol 129 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 134 Button
on (press) {
NewgroundsAPI.loadMySite();
}
Symbol 144 Button
on (press) {
_root.fScore = 0;
_root.highscore1 = 0;
_root.highscore2 = 0;
_root.highscore3 = 0;
_root.highscore4 = 0;
_root.highscore5 = 0;
_root.highscore6 = 0;
}
Symbol 154 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 157 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 156 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 158 MovieClip Frame 1
_y = random(375);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 158 MovieClip Frame 51
stop();
Symbol 164 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 156 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_parent.play();
_parent._parent.stop();
}
}
}
Symbol 165 MovieClip Frame 17
_parent._x = 9000;
Symbol 166 MovieClip Frame 1
_y = random(365);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 166 MovieClip Frame 47
stop();
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 156 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_parent.play();
_parent._parent.stop();
}
}
}
Symbol 173 MovieClip Frame 8
_parent._x = 9000;
Symbol 174 MovieClip Frame 1
_root.fScore = _root.fScore + 1;
this._x = random(500) + 25;
if (_root.youLose == true) {
this.stop();
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 174 MovieClip Frame 39
stop();
Symbol 175 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
stopAllSounds();
Symbol 175 MovieClip Frame 1993
_root.gotoAndStop("youWin");
Symbol 184 MovieClip Frame 15
stop();
Symbol 187 MovieClip Frame 4
if (_root.hasShield == false) {
gotoAndPlay (1);
}
Symbol 187 MovieClip Frame 5
if (_root.youLose == true) {
gotoAndStop (1);
}
Symbol 187 MovieClip Frame 21
_root.sonic.shield._visible = true;
_root.sonic.shield.play();
_root.shield.shield_animation.shield.play();
Symbol 187 MovieClip Frame 30
_root.PLAYED = true;
stop();
Symbol 188 MovieClip Frame 1
_visible = false;
Instance of Symbol 187 MovieClip "shield" in Symbol 189 MovieClip Frame 1
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
if (_root.sonic.box.hitTest(_root.shield.shield_animation.box) && (_root.PLAYED == false)) {
_root.PLAYED = true;
_root.hasShield = true;
this.gotoAndPlay(5);
}
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
onEnterFrame = function () {
if (_root.PLAYED == true) {
this.stop();
}
};
Symbol 190 MovieClip Frame 68
this._visible = false;
stop();
this._x = 9000;
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
_root.grace = true;
if (_root.youLose == true) {
stop();
}
Symbol 191 MovieClip Frame 3
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 5
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 7
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 9
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 11
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 13
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 15
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 17
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 19
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 21
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 23
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 25
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 27
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 29
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 31
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 33
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 35
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 37
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 39
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 41
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 43
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 45
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 47
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 49
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 51
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 53
_root.sonic._visible = false;
Symbol 191 MovieClip Frame 55
_root.sonic._visible = true;
Symbol 191 MovieClip Frame 57
_root.grace = false;
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 8
gotoAndPlay (3);
Symbol 201 MovieClip Frame 1
stopAllSounds();
Symbol 201 MovieClip Frame 58
_root.gotoAndStop("gameOver");
Instance of Symbol 194 MovieClip "box" in Symbol 202 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 202 MovieClip Frame 18
gotoAndPlay (2);
Symbol 202 MovieClip Frame 19
stop();
Symbol 209 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 210 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 15;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) + 18;
_parent._x = 9000;
}
}
}
Instance of Symbol 210 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 15;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) + 18;
_parent._x = 9000;
}
}
}
Symbol 212 MovieClip Frame 1
_x = (random(530) + 20);
if (random(2) == 1) {
_xscale = 100;
} else {
_xscale = -100;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 212 MovieClip Frame 53
stop();
Symbol 217 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 210 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = _parent._parent._x + 20;
_root.finalExecutions._y = _parent._parent._x - 20;
_parent._x = 9000;
}
}
}
Symbol 218 MovieClip Frame 1
this._x = random(500) + 20;
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 218 MovieClip Frame 50
stop();
Symbol 222 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 210 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) + 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 5;
_parent._x = 9000;
}
}
}
Symbol 224 MovieClip Frame 1
_y = (random(380) + 10);
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 224 MovieClip Frame 51
stop();
Symbol 227 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 231 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
stop();
Instance of Symbol 194 MovieClip in Symbol 231 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 231 MovieClip Frame 5
_parent._x = 9000;
Symbol 232 MovieClip Frame 1
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
this._x = random(500) + 25;
if (_root.youLose == true) {
this.stop();
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 232 MovieClip Frame 51
stop();
Symbol 235 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 210 MovieClip in Symbol 236 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = _parent._parent._x + 15;
_root.finalExecutions._y = _parent._y - 30;
_parent._x = 9000;
}
}
}
Symbol 237 MovieClip Frame 1
this._x = random(500) + 25;
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 237 MovieClip Frame 46
stop();
Symbol 238 MovieClip Frame 1
stopAllSounds();
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 238 MovieClip Frame 2323
_root.gotoAndStop("youWin");
Symbol 244 MovieClip Frame 1
this._visible = false;
Instance of Symbol 244 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 246 MovieClip Frame 1
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
this._x = random(500) + 25;
if (_root.youLose == true) {
this.stop();
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 246 MovieClip Frame 49
stop();
Symbol 247 MovieClip Frame 1
stopAllSounds();
Symbol 247 MovieClip Frame 2
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 253 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 244 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 255 MovieClip Frame 1
this._x = random(500) + 25;
if (_root.youLose == true) {
this.stop();
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 255 MovieClip Frame 46
stop();
Symbol 260 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 261 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 244 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 262 MovieClip Frame 1
this._y = random(350);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
if (_root.youLose == true) {
this.stop();
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 262 MovieClip Frame 50
stop();
Symbol 263 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
stopAllSounds();
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 263 MovieClip Frame 1687
stop();
_root.gotoAndStop("youWin");
Symbol 272 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 269 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 273 MovieClip Frame 1
this._x = random(500) + 20;
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 273 MovieClip Frame 44
stop();
Symbol 276 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 269 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 278 MovieClip Frame 1
_y = (random(380) + 10);
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 278 MovieClip Frame 51
stop();
Symbol 282 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 283 MovieClip in Symbol 284 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 285 MovieClip Frame 1
_y = random(365);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 285 MovieClip Frame 47
stop();
Symbol 286 MovieClip Frame 1
stopAllSounds();
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 286 MovieClip Frame 1947
_root.gotoAndStop("youWin");
Instance of Symbol 291 MovieClip in Symbol 292 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 294 MovieClip Frame 1
_x = random(500);
this._x = random(500);
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 294 MovieClip Frame 50
stop();
Symbol 301 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 300 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Instance of Symbol 300 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Instance of Symbol 300 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 302 MovieClip Frame 1
this._y = random(350);
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 302 MovieClip Frame 50
stop();
Symbol 305 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 306 MovieClip in Symbol 307 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 308 MovieClip Frame 1
_y = (random(380) + 10);
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
Symbol 308 MovieClip Frame 51
stop();
Symbol 319 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 318 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 320 MovieClip Frame 1
_y = random(375);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 320 MovieClip Frame 51
stop();
Symbol 323 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 306 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 325 MovieClip Frame 1
this._x = random(500) + 25;
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
_root.fScore = _root.fScore + 1;
Symbol 325 MovieClip Frame 46
stop();
Symbol 329 MovieClip Frame 1
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Instance of Symbol 330 MovieClip in Symbol 331 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if ((_root.sonic.shield._visible == false) && (_root.grace == false)) {
if (this.hitTest(_root.sonic.box)) {
_root.youLose = true;
}
}
if (_root.sonic.shield._visible != false) {
if (this.hitTest(_root.sonic.box)) {
_root.sonic.shield._visible = false;
_root.finalExecutions.play();
_root.finalExecutions._x = (_parent._parent._x + _parent._x) - 10;
_root.finalExecutions._y = (_parent._parent._y + _parent._y) - 15;
_parent._x = 9000;
}
}
}
Symbol 332 MovieClip Frame 1
_y = random(365);
if (!_root.youLose) {
_root.fScore = _root.fScore + 1;
}
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
_root.fScore = _root.fScore + 1;
Symbol 332 MovieClip Frame 47
stop();
Symbol 333 MovieClip Frame 1
stopAllSounds();
onEnterFrame = function () {
if (_root.youLose == true) {
this.stop();
}
};
Symbol 333 MovieClip Frame 1767
_root.gotoAndStop("youWin");
Symbol 337 MovieClip Frame 7
stop();
Symbol 341 MovieClip Frame 7
stop();
Symbol 350 Button
on (press) {
_root.gotoAndStop("SongSelect");
}
Symbol 353 Button
on (press) {
a = _root.currentSong;
_root.isRetrying = true;
_root.youLose = false;
_root.PLAYED = false;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.fScore = 0;
_root.grace = false;
_root.hasShield = false;
_root.gotoAndStop("Transition");
}
Symbol 356 Button
on (press) {
_root.gotoAndStop("credits");
}
Symbol 358 Button
on (press) {
NewgroundsAPI.loadMySite();
}
Symbol 376 MovieClip Frame 199
stop();
Symbol 398 MovieClip Frame 1
Song_Name.text = this.vSong_Name;
ShieldNotice.text = this.vShieldNotice;
NumNotes.text = this.vNumNotes;
Symbol 398 MovieClip Frame 5
Song_Name.text = this.vSong_Name;
ShieldNotice.text = this.vShieldNotice;
NumNotes.text = this.vNumNotes;
Symbol 398 MovieClip Frame 9
this.onEnterFrame = function () {
Song_Name.text = this.vSong_Name;
ShieldNotice.text = this.vShieldNotice;
NumNotes.text = this.vNumNotes;
TotalScore.text = this.vTotalScore;
};
Symbol 398 MovieClip Frame 201
stop();
Symbol 412 Button
on (press) {
stopAllSounds();
_root.gotoAndStop("SongSelect");
}
Symbol 420 Button
on (rollOver) {
_root.boxes.gotoAndStop(2);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
on (press) {
getURL ("http://flaskman.newgrounds.com/", "_blank");
}
Symbol 426 Button
on (rollOver) {
_root.boxes.gotoAndStop(3);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
on (press) {
NewgroundsAPI.loadMySite();
}
Symbol 431 MovieClip Frame 1
stop();
_root.three = false;
Symbol 431 MovieClip Frame 2
stop();
_root.three = false;
Symbol 431 MovieClip Frame 3
stop();
_root.three = false;
Symbol 431 MovieClip Frame 4
stop();
_root.three = true;
Symbol 435 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 1
stop();
_root.ex = 1;
Symbol 449 MovieClip Frame 2
_root.ex = 2;
Symbol 449 MovieClip Frame 3
_root.ex = 3;
Symbol 449 MovieClip Frame 4
_root.ex = 4;
Symbol 449 MovieClip Frame 5
_root.ex = 5;
Symbol 449 MovieClip Frame 6
_root.ex = 6;
Symbol 449 MovieClip Frame 7
_root.ex = 7;
Symbol 449 MovieClip Frame 8
_root.ex = 8;
Symbol 449 MovieClip Frame 9
_root.ex = 9;
Symbol 449 MovieClip Frame 10
_root.ex = 10;
Symbol 449 MovieClip Frame 11
_root.ex = 10;
Symbol 449 MovieClip Frame 12
_root.ex = 11;
Symbol 449 MovieClip Frame 13
_root.ex = 12;
Symbol 450 MovieClip Frame 1
stop();
Symbol 453 Button
on (press) {
stopAllSounds();
if (_root.ex == 1) {
_root.musicBox1.play();
}
if (_root.ex == 2) {
_root.musicBox2.play();
}
if (_root.ex == 3) {
_root.musicBox3.play();
}
if (_root.ex == 4) {
_root.musicBox4.play();
}
if (_root.ex == 5) {
_root.musicBox5.play();
}
if (_root.ex == 6) {
_root.musicBox6.play();
}
if (_root.ex == 7) {
_root.musicBox7.play();
}
if (_root.ex == 8) {
_root.musicBox8.play();
}
if (_root.ex == 9) {
_root.musicBox9.play();
}
if (_root.ex == 10) {
_root.musicBox10.play();
}
if (_root.ex == 11) {
_root.musicBox11.play();
}
if (_root.ex == 12) {
_root.musicBox12.play();
}
}
on (rollOver) {
_root.boxes.gotoAndStop(4);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
Symbol 457 Button
on (press) {
_root.NumBox.Nums.prevFrame();
}
on (rollOver) {
_root.boxes.gotoAndStop(4);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
Symbol 461 Button
on (press) {
_root.NumBox.Nums.nextFrame();
}
on (rollOver) {
_root.boxes.gotoAndStop(4);
}
on (rollOut) {
_root.boxes.gotoAndStop(1);
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 17
Song_Name.text = this.SN;
Song_Length.text = this.SL;
Symbol 517 MovieClip Frame 23
Song_Name.text = this.SN;
Song_Length.text = this.SL;
Symbol 517 MovieClip Frame 47
_root.backGround.gotoAndStop(_root.bgNum);
_root.backGround._visible = true;
Symbol 517 MovieClip Frame 62
Song_Name.text = this.SN;
Song_Length.text = this.SL;
Symbol 517 MovieClip Frame 67
Song_Name.text = this.SN;
Song_Length.text = this.SL;
Symbol 517 MovieClip Frame 80
_root.gotoAndStop(_root.songSelection);
stop();