Frame 1
function ssClick() {
NewgroundsAPI.loadMySite();
}
function lowQuality() {
_root._quality = "LOW";
}
function medQuality() {
_root._quality = "MEDIUM";
}
function highQuality() {
_root._quality = "BEST";
}
function mainMenu() {
_root.gotoAndPlay(2);
}
NewgroundsAPI.connectMovie(9619);
NewgroundsAPI.addCustomLink(1, "Coin");
NewgroundsAPI.addCustomLink(2, "ArmorGames");
NewgroundsAPI.addCustomEvent(3, "PlayGame");
NewgroundsAPI.addCustomEvent(4, "ReplayGame");
NewgroundsAPI.addCustomEvent(5, "RefCoin");
stop();
Button.prototype.tabEnabled = false;
var debugMode = false;
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("\u00A9 2009 Silver Stitch Films", ssClick);
var conMainMenu = new ContextMenuItem("Return to Menu", mainMenu);
var conLowQuality = new ContextMenuItem("Low Quality", lowQuality);
var conMedQuality = new ContextMenuItem("Medium Quality", medQuality);
var conHighQuality = new ContextMenuItem("High Quality", highQuality);
myMenu.customItems.push(conLowQuality, conMedQuality, conHighQuality, conMainMenu, copyrightNotice);
_root.menu = myMenu;
Frame 2
stop();
var p_position = 0;
var vS2_prep_music = false;
var vS2_music_on = false;
var vS3_tele_drop = false;
var vS3_monster_drop = false;
var vS4_thunder_struck = false;
var vS4_radar_drop = false;
var vS5_mosnter_jump = false;
var vS5_heart_slide = false;
var vS5_moon_boom = false;
var vS6_blood_on = false;
var vS6_bridge_down = false;
var vS6_mons_drop = false;
var vS7_bridge_down = false;
var vS7_puzzle_solved = false;
var vS8_eye_pop = false;
var In_Infinity = false;
var W1 = 1;
var W2 = 2;
var W3 = 4;
var W4 = 5;
Instance of Symbol 73 MovieClip "trig_3" in Frame 3
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._y = 20;
_root.colour._y = 20;
_root.player._x = 225;
_root.gotoAndPlay(22);
activate = false;
}
}
Instance of Symbol 194 MovieClip "colour" in Frame 3
onClipEvent (load) {
var IsEnabled = false;
}
onClipEvent (enterFrame) {
if (IsEnabled == false) {
this._x = -50;
this._y = -50;
}
if (IsEnabled == true) {
this._x = (this._x + _root.player._x) / 2;
this._y = (this._y + (_root.player._y - 50)) / 2;
}
}
Instance of Symbol 247 MovieClip "player" in Frame 3
onClipEvent (load) {
var collision = _root.collision;
var xspeed = 0;
var yspeed = 0;
var max_yspeed = 18;
var gravity = 2;
var walk_speed = 6;
var can_jump = false;
var jump_power = 20;
var jump_walk = true;
var colliding = false;
var forecast_x = this._x;
var forecast_y = this._y;
var aniScale = _xscale;
var respawnX = _x;
var respawnY = _y;
var disable = false;
var killed = false;
var removed = false;
var unremoved = false;
var change_form = 0;
var change_v = 0;
}
onClipEvent (enterFrame) {
if (!removed) {
if (!disabled) {
if (killed == true) {
this._x = respawnX;
this._y = respawnY;
killed = false;
yspeed = 0;
_xscale = aniScale;
}
if (collision.hitTest(_x, _y + 2, true)) {
colliding = true;
} else {
colliding = false;
}
if (Key.isDown(65)) {
if (jump_walk or can_jump) {
xspeed = -walk_speed;
_xscale = (-aniScale);
}
}
if (Key.isDown(68)) {
if (jump_walk or can_jump) {
xspeed = walk_speed;
_xscale = aniScale;
}
}
if (Key.isDown(87) and can_jump) {
yspeed = yspeed - jump_power;
can_jump = false;
_root.p_position = 3;
this.gotoAndStop(3);
}
yspeed = yspeed + gravity;
forecast_x = this._x + xspeed;
forecast_y = this._y + yspeed;
while (collision.hitTest(forecast_x, forecast_y - 1, true)) {
forecast_y--;
xspeed = 0;
yspeed = 0;
can_jump = true;
}
if (!colliding) {
can_jump = false;
}
while (collision.hitTest(forecast_x, (forecast_y - this._height) + 3, true)) {
forecast_y++;
yspeed = 0;
}
while (collision.hitTest((forecast_x - (this._width / 2)) + 1, forecast_y - (this._height / 4), true)) {
forecast_x++;
xspeed = 0;
}
while (collision.hitTest(forecast_x + (this._width / 2), forecast_y - (this._height / 4), true)) {
forecast_x--;
xspeed = 0;
}
this._x = forecast_x;
this._y = forecast_y;
xspeed = 0;
if (!colliding) {
_root.p_position = 3;
this.gotoAndStop(3);
}
if ((_currentframe == 3) and colliding) {
_root.p_position = 1;
gotoAndStop (1);
}
if (((((!Key.isDown(87)) and (!Key.isDown(65))) and (!Key.isDown(68))) and (!Key.isDown(83))) and colliding) {
_root.p_position = 1;
gotoAndStop (1);
}
if (colliding) {
if (Key.isDown(68)) {
_root.p_position = 2;
this.gotoAndStop(2);
} else if (Key.isDown(65)) {
_root.p_position = 2;
this.gotoAndStop(2);
} else if (Key.isDown(83)) {
_root.p_position = 4;
gotoAndStop (4);
}
}
if (this.hitTest(_root.trig_1) == true) {
_root.trig_1.activate = true;
}
if (this.hitTest(_root.trig_2) == true) {
_root.trig_2.activate = true;
}
if (this.hitTest(_root.trig_3) == true) {
_root.trig_3.activate = true;
}
if (this.hitTest(_root.tele_1) == true) {
_root.tele_1.activate = true;
}
if (this.hitTest(_root.tele_2) == true) {
_root.tele_2.activate = true;
}
if (this.hitTest(_root.tele_3) == true) {
_root.tele_3.activate = true;
}
if (this.hitTest(_root.tele_4) == true) {
_root.tele_4.activate = true;
}
if (this.hitTest(_root.tele_5) == true) {
_root.tele_5.activate = true;
}
if (this.hitTest(_root.tele_6) == true) {
_root.tele_6.activate = true;
}
}
} else if (removed) {
if (!unremoved) {
this._x = -100;
this._y = -100;
} else {
this._x = respawnX;
this._y = respawnY;
removed = false;
unremoved = false;
}
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 3
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._y = 20;
_root.aud_S1water.gotoAndStop(1);
stopAllSounds();
_root.aud_S2telephone.gotoAndPlay(2);
_root.gotoAndPlay(21);
activate = false;
}
}
Frame 20
stop();
Frame 21
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 21
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(22);
activate = false;
}
}
Frame 22
stop();
Instance of Symbol 73 MovieClip "trig_1" in Frame 22
onClipEvent (load) {
var activate = false;
var once = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS3_tele_drop == false) {
_root.vS3_tele_drop = true;
_root.vS2_prep_music = true;
_root.telephone.gotoAndPlay(2);
_root.aud_S2telephone.gotoAndStop(1);
_root.monster.gotoAndPlay(2);
_root.overlay.gotoAndPlay(2);
once = true;
}
}
}
Instance of Symbol 328 MovieClip "tele_4" in Frame 22
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS2_prep_music == true) {
_root.aud_music.gotoAndPlay(2);
_root.vS2_prep_music = false;
_root.mute.gotoAndStop(2);
}
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(23);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 22
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS2_prep_music == true) {
_root.aud_music.gotoAndPlay(2);
_root.vS2_prep_music = false;
_root.mute.gotoAndStop(2);
}
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(21);
activate = false;
}
}
Frame 23
stop();
Instance of Symbol 73 MovieClip "trig_2" in Frame 23
onClipEvent (load) {
var activate = false;
var once = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS4_thunder_struck == false) {
_root.vS4_thunder_struck = true;
_root.thunder.gotoAndPlay(2);
_root.aud_S4thunder.gotoAndPlay(2);
_root.overlay.gotoAndPlay(2);
once = true;
}
}
}
Instance of Symbol 328 MovieClip "tele_2" in Frame 23
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(24);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 23
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(22);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_5" in Frame 23
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._y = 20;
_root.colour._y = 20;
_root.gotoAndPlay(22);
activate = false;
}
}
Frame 24
stop();
Instance of Symbol 328 MovieClip "tele_4" in Frame 24
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(25);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 24
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(23);
activate = false;
}
}
Frame 25
stop();
Instance of Symbol 73 MovieClip "trig_1" in Frame 25
onClipEvent (load) {
var activate = false;
var once = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS6_mons_drop == false) {
_root.vS6_mons_drop = true;
_root.monster.gotoAndPlay(2);
_root.aud_S6moan.gotoAndPlay(2);
once = true;
}
}
}
Instance of Symbol 328 MovieClip "tele_2" in Frame 25
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(27);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 25
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(24);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_6" in Frame 25
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = _root.player._x;
_root.gotoAndPlay(26);
activate = false;
}
}
Frame 26
stop();
Instance of Symbol 328 MovieClip "tele_6" in Frame 26
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.gotoAndPlay(25);
activate = false;
}
}
Frame 27
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 27
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(28);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 27
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(25);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_5" in Frame 27
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._y = 20;
_root.colour._y = 20;
_root.gotoAndPlay(22);
activate = false;
}
}
Frame 28
stop();
Instance of Symbol 328 MovieClip "tele_4" in Frame 28
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (_root.vS5_moon_boom == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(35);
} else {
_root.player._x = 20;
_root.colour._x = 20;
_root.In_Infinity = true;
_root.gotoAndPlay(29);
}
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 28
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(27);
activate = false;
}
}
Frame 29
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 29
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(30);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 29
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 30
stop();
Instance of Symbol 328 MovieClip "tele_4" in Frame 30
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(31);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 30
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 31
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 31
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(32);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 31
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 32
stop();
Instance of Symbol 328 MovieClip "tele_4" in Frame 32
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(33);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 32
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 33
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 33
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(34);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 33
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 34
stop();
Instance of Symbol 328 MovieClip "tele_4" in Frame 34
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(29);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_3" in Frame 34
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 35
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 35
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(36);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 35
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(28);
activate = false;
}
}
Frame 36
stop();
Instance of Symbol 328 MovieClip "tele_2" in Frame 36
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._x = 20;
_root.colour._x = 20;
_root.gotoAndPlay(37);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 36
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(35);
activate = false;
}
}
Instance of Symbol 328 MovieClip "tele_5" in Frame 36
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.player._y = 20;
_root.colour._y = 20;
_root.gotoAndPlay(35);
activate = false;
}
}
Frame 37
stop();
Instance of Symbol 73 MovieClip "trig_1" in Frame 37
onClipEvent (load) {
var activate = false;
var once = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
if (once == false) {
once = true;
_root.overlay.gotoAndPlay(2);
}
}
}
Instance of Symbol 328 MovieClip "tele_1" in Frame 37
onClipEvent (load) {
var activate = false;
}
onClipEvent (enterFrame) {
if (activate == true) {
_root.In_Infinity = false;
_root.player._x = 530;
_root.colour._x = 530;
_root.gotoAndPlay(36);
activate = false;
}
}
Frame 40
_root.vS2_music_on = false;
_root.aud_music.gotoAndStop(1);
Frame 330
stop();
Symbol 28 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 30 MovieClip Frame 40
stop();
Symbol 42 Button
on (release) {
startMovie();
}
Symbol 43 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 43 MovieClip Frame 51
stop();
Symbol 48 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 53 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 55 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + 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) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
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 846 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 62 Button
on (release) {
NewgroundsAPI.logCustomEvent("PlayGame");
_root.gotoAndPlay(3);
}
Symbol 66 Button
on (press) {
NewgroundsAPI.loadMySite();
}
Symbol 70 Button
on (press) {
NewgroundsAPI.logCustomEvent("RefCoin");
NewgroundsAPI.loadCustomLink("Coin");
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 1
var spark = 0;
Symbol 90 MovieClip Frame 2
spark = Math.ceil(Math.random() * 10);
Symbol 90 MovieClip Frame 10
if (spark >= 6.5) {
gotoAndPlay (11);
} else {
gotoAndPlay (2);
}
Symbol 92 Button
on (press) {
gotoAndPlay (2);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 6
_root.aud_S1boom.gotoAndPlay(2);
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 219 MovieClip Frame 4
stop();
Symbol 226 MovieClip Frame 6
stop();
Symbol 244 MovieClip Frame 12
gotoAndPlay (4);
Symbol 245 MovieClip Frame 7
stop();
Symbol 246 MovieClip Frame 5
stop();
Symbol 247 MovieClip Frame 1
if (_root.debugMode == false) {
plyr_debug.gotoAndStop(2);
} else {
plyr_debug.gotoAndStop(1);
}
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 247 MovieClip Frame 3
stop();
Symbol 247 MovieClip Frame 4
stop();
Symbol 247 MovieClip Frame 5
stop();
Symbol 247 MovieClip Frame 6
stop();
Symbol 247 MovieClip Frame 7
stop();
Symbol 247 MovieClip Frame 8
stop();
Symbol 257 Button
on (press) {
gotoAndPlay (2);
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 40
_root.well.gotoAndPlay(2);
_root.collision.well.gotoAndStop(2);
stop();
Symbol 267 Button
on (press) {
gotoAndPlay (2);
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 21
_root.aud_S1water.gotoAndPlay(2);
Symbol 301 MovieClip Frame 32
gotoAndPlay (28);
Symbol 304 Button
on (press) {
gotoAndPlay (2);
}
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 7
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 20
stop();
Symbol 320 Button
on (press) {
gotoAndPlay (2);
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 6
stop();
Symbol 331 MovieClip Frame 16
stop();
Symbol 334 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 110
gotoAndPlay (2);
Symbol 335 MovieClip Frame 1
if (_root.vS2_music_on == true) {
gotoAndPlay (2);
} else {
stop();
}
Symbol 335 MovieClip Frame 5530
gotoAndPlay (1);
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 110
gotoAndStop (1);
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 2
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 2
gotoAndStop (1);
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
gotoAndStop (1);
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
gotoAndStop (1);
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
gotoAndStop (1);
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
gotoAndStop (1);
Symbol 369 Button
on (press) {
_root.vS2_music_on = false;
_root.aud_music.gotoAndStop(1);
gotoAndStop (2);
}
Symbol 371 Button
on (press) {
_root.vS2_music_on = true;
_root.aud_music.gotoAndPlay(2);
gotoAndStop (1);
}
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 373 MovieClip Frame 1
if (_root.S2_tele_drop == true) {
gotoAndStop (2);
} else {
stop();
}
Symbol 373 MovieClip Frame 2
stop();
Symbol 379 MovieClip Frame 1
if (_root.vS3_tele_drop == true) {
gotoAndStop (2);
} else {
}
stop();
Symbol 379 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 1
if (_root.vS3_tele_drop == true) {
gotoAndStop (10);
} else {
stop();
}
Symbol 388 MovieClip Frame 2
_root.vS3_tele_drop = true;
Symbol 388 MovieClip Frame 10
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
_root.vS3_monster_drop = true;
_root.vS2_music_on = true;
Symbol 405 MovieClip Frame 110
_root.aud_music.gotoAndPlay(2);
_root.mute.gotoAndStop(2);
_root.vS2_prep_music = false;
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 13
_root.blood_text.gotoAndStop(2);
Symbol 408 MovieClip Frame 100
gotoAndStop (1);
Symbol 432 Button
on (press) {
_root.vS4_radar_drop = true;
gotoAndPlay (2);
}
Symbol 447 MovieClip Frame 1
if (_root.vS4_radar_drop == true) {
gotoAndStop (21);
} else {
stop();
}
Symbol 447 MovieClip Frame 21
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 10
gotoAndStop (1);
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 15
gotoAndStop (1);
Symbol 465 MovieClip Frame 1
stop();
Symbol 467 Button
on (press) {
if (_root.colour.IsEnabled == true) {
_root.vS5_moon_boom = true;
gotoAndPlay (2);
} else {
text.play();
}
}
Symbol 508 MovieClip Frame 1
if (_root.vS5_moon_boom == true) {
gotoAndStop (130);
} else {
stop();
}
Symbol 508 MovieClip Frame 25
_root.overlay.gotoAndPlay(2);
_root.aud_S5explo.gotoAndPlay(2);
Symbol 508 MovieClip Frame 130
stop();
Symbol 512 MovieClip Frame 1
if (_root.vS5_mosnter_jump == true) {
gotoAndStop (15);
}
Symbol 512 MovieClip Frame 5
_root.vS5_mosnter_jump = true;
_root.aud_S5roar.gotoAndPlay(2);
Symbol 512 MovieClip Frame 15
stop();
Symbol 518 Button
on (press) {
_root.vS5_heart_slide = true;
gotoAndPlay (2);
}
Symbol 519 MovieClip Frame 1
if (_root.vS5_heart_slide == true) {
gotoAndStop (35);
} else {
stop();
}
Symbol 519 MovieClip Frame 35
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 75
gotoAndStop (1);
Symbol 531 MovieClip Frame 1
if (_root.vS6_bridge_down == true) {
gotoAndStop (13);
} else {
stop();
}
Symbol 531 MovieClip Frame 13
stop();
Symbol 531 MovieClip Frame 55
gotoAndStop (1);
Symbol 540 Button
on (press) {
_root.vS6_blood_on = true;
gotoAndPlay (2);
}
Symbol 589 MovieClip Frame 1
if (_root.vS6_blood_on == true) {
gotoAndPlay (47);
} else {
stop();
}
Symbol 589 MovieClip Frame 2
play();
Symbol 589 MovieClip Frame 47
play();
Symbol 589 MovieClip Frame 54
gotoAndPlay (47);
Symbol 594 Button
on (press) {
_root.vS6_bridge_down = true;
_root.bridge.gotoAndPlay(2);
_root.collision.bridge.gotoAndPlay(2);
gotoAndPlay (2);
}
Symbol 596 Button
on (press) {
_root.vS6_bridge_down = false;
_root.bridge.gotoAndPlay(14);
_root.collision.bridge.gotoAndPlay(14);
gotoAndPlay (14);
}
Symbol 597 MovieClip Frame 1
if (_root.vS6_bridge_down == true) {
gotoAndStop (13);
} else {
stop();
}
Symbol 597 MovieClip Frame 13
stop();
Symbol 597 MovieClip Frame 55
gotoAndStop (1);
Symbol 600 MovieClip Frame 1
if (_root.vS6_bridge_down == true) {
gotoAndStop (13);
} else {
stop();
}
Symbol 600 MovieClip Frame 13
stop();
Symbol 600 MovieClip Frame 55
gotoAndStop (1);
Symbol 605 MovieClip Frame 1
if (_root.vS6_mons_drop == true) {
gotoAndStop (105);
} else {
stop();
}
Symbol 605 MovieClip Frame 105
stop();
Symbol 609 MovieClip Frame 1
if (_root.vS7_bridge_down == true) {
gotoAndStop (12);
} else {
stop();
}
Symbol 609 MovieClip Frame 12
stop();
Symbol 609 MovieClip Frame 60
gotoAndStop (1);
Symbol 616 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (2);
}
}
Symbol 617 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (21);
}
}
Symbol 618 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (41);
}
}
Symbol 619 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (61);
}
}
Symbol 620 MovieClip Frame 1
_root.W4 = 3;
stop();
Symbol 620 MovieClip Frame 20
_root.W4 = 4;
stop();
Symbol 620 MovieClip Frame 40
_root.W4 = 1;
stop();
Symbol 620 MovieClip Frame 60
_root.W4 = 2;
stop();
Symbol 620 MovieClip Frame 80
gotoAndPlay (1);
Symbol 621 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (2);
}
}
Symbol 622 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (21);
}
}
Symbol 623 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (41);
}
}
Symbol 624 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (61);
}
}
Symbol 625 MovieClip Frame 1
_root.W3 = 4;
stop();
Symbol 625 MovieClip Frame 20
_root.W3 = 1;
stop();
Symbol 625 MovieClip Frame 40
_root.W3 = 2;
stop();
Symbol 625 MovieClip Frame 60
_root.W3 = 3;
stop();
Symbol 625 MovieClip Frame 80
gotoAndPlay (1);
Symbol 626 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (2);
}
}
Symbol 627 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (21);
}
}
Symbol 628 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (41);
}
}
Symbol 629 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (61);
}
}
Symbol 630 MovieClip Frame 1
_root.W2 = 2;
stop();
Symbol 630 MovieClip Frame 20
_root.W2 = 3;
stop();
Symbol 630 MovieClip Frame 40
_root.W2 = 4;
stop();
Symbol 630 MovieClip Frame 60
_root.W2 = 1;
stop();
Symbol 630 MovieClip Frame 80
gotoAndPlay (1);
Symbol 631 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (2);
}
}
Symbol 632 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (21);
}
}
Symbol 633 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (41);
}
}
Symbol 634 Button
on (press) {
if (_parent.running == false) {
gotoAndPlay (61);
}
}
Symbol 635 MovieClip Frame 1
_root.W1 = 1;
stop();
Symbol 635 MovieClip Frame 20
_root.W1 = 2;
stop();
Symbol 635 MovieClip Frame 40
_root.W1 = 3;
stop();
Symbol 635 MovieClip Frame 60
_root.W1 = 4;
stop();
Symbol 635 MovieClip Frame 80
gotoAndPlay (1);
Symbol 637 Button
on (press) {
running = true;
gotoAndPlay (3);
}
Symbol 703 MovieClip Frame 1
var running = false;
if (_root.vS7_puzzle_solved == true) {
gotoAndPlay (96);
}
Symbol 703 MovieClip Frame 2
stop();
Symbol 703 MovieClip Frame 19
if (_root.W1 != 1) {
gotoAndPlay (125);
}
Symbol 703 MovieClip Frame 30
if (_root.W2 != 1) {
gotoAndPlay (116);
}
Symbol 703 MovieClip Frame 53
if (_root.W3 != 1) {
gotoAndPlay (105);
}
Symbol 703 MovieClip Frame 67
if (_root.W4 != 4) {
gotoAndPlay (97);
}
Symbol 703 MovieClip Frame 95
_root.vS7_puzzle_solved = true;
_root.aud_S7swish.gotoAndPlay(2);
_root.colour._x = 418.4;
_root.colour._y = 56.1;
_root.colour.IsEnabled = true;
Symbol 703 MovieClip Frame 96
running = false;
stop();
Symbol 703 MovieClip Frame 135
running = false;
gotoAndStop (2);
Symbol 707 MovieClip Frame 1
if (_root.vS7_bridge_down == true) {
gotoAndStop (12);
} else {
stop();
}
Symbol 707 MovieClip Frame 12
stop();
Symbol 707 MovieClip Frame 60
gotoAndStop (1);
Symbol 710 Button
on (press) {
_root.vS7_bridge_down = true;
_root.bridge.gotoAndPlay(2);
_root.collision.bridge.gotoAndPlay(2);
gotoAndPlay (2);
}
Symbol 711 Button
on (press) {
_root.vS7_bridge_down = false;
_root.bridge.gotoAndPlay(13);
_root.collision.bridge.gotoAndPlay(13);
gotoAndPlay (21);
}
Symbol 712 MovieClip Frame 1
if (_root.vS7_bridge_down == true) {
gotoAndStop (12);
} else {
stop();
}
Symbol 712 MovieClip Frame 12
stop();
Symbol 712 MovieClip Frame 60
gotoAndStop (1);
Symbol 720 MovieClip Frame 399
gotoAndPlay (1);
Symbol 725 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.player._x - (_root.eye._x - 10);
var _local3 = (_root.player._y - 45) - (_root.eye._y - 20);
var _local2 = Math.atan2(_local3, _local4);
degrees = (_local2 * 180) / Math.PI;
eye._rotation = (_local2 * 180) / Math.PI;
};
Symbol 728 Button
on (press) {
gotoAndPlay (2);
_root.vS8_eye_pop = true;
}
Symbol 750 MovieClip Frame 1
if (_root.vS8_eye_pop == true) {
gotoAndStop (24);
} else {
stop();
}
Symbol 750 MovieClip Frame 24
stop();
Symbol 753 Button
on (press) {
_root.player.disabled = true;
_root.over_compass.gotoAndPlay(2);
gotoAndStop (2);
}
Symbol 754 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 2
stop();
Symbol 757 Button
on (press) {
_parent.gotoAndStop(3);
}
Symbol 758 MovieClip Frame 1
if (_root.W1 == 4) {
if (_root.W2 == 3) {
if (_root.W3 == 2) {
if (_root.W4 == 1) {
gotoAndStop (2);
} else {
stop();
}
} else {
stop();
}
} else {
stop();
}
} else {
stop();
}
Symbol 758 MovieClip Frame 2
stop();
Symbol 762 Button
on (press) {
_root.player.disabled = false;
_root.compass.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 765 MovieClip Frame 1
var thepin = _root.W4;
gotoAndStop(thepin);
stop();
Symbol 765 MovieClip Frame 2
stop();
Symbol 765 MovieClip Frame 3
stop();
Symbol 765 MovieClip Frame 4
stop();
Symbol 768 MovieClip Frame 1
var thepin = _root.W2;
gotoAndStop(thepin);
stop();
Symbol 768 MovieClip Frame 2
stop();
Symbol 768 MovieClip Frame 3
stop();
Symbol 768 MovieClip Frame 4
stop();
Symbol 771 MovieClip Frame 1
var thepin = _root.W3;
gotoAndStop(thepin);
stop();
Symbol 771 MovieClip Frame 2
stop();
Symbol 771 MovieClip Frame 3
stop();
Symbol 771 MovieClip Frame 4
stop();
Symbol 774 MovieClip Frame 1
var thepin = _root.W1;
gotoAndStop(thepin);
stop();
Symbol 774 MovieClip Frame 2
stop();
Symbol 774 MovieClip Frame 3
stop();
Symbol 774 MovieClip Frame 4
stop();
Symbol 777 Button
on (press) {
_parent.gotoAndStop(2);
}
Symbol 779 MovieClip Frame 1
stop();
Symbol 779 MovieClip Frame 2
stop();
Symbol 779 MovieClip Frame 3
stop();
Symbol 790 MovieClip Frame 1
if (_root.vS5_moon_boom == true) {
gotoAndStop (2);
} else {
stop();
}
Symbol 790 MovieClip Frame 2
stop();
Symbol 793 MovieClip Frame 1
if (_root.vS5_moon_boom == true) {
gotoAndStop (2);
} else {
stop();
}
Symbol 793 MovieClip Frame 2
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 25
_root.gotoAndPlay(38);
Symbol 836 Button
on (press) {
NewgroundsAPI.loadMySite();
}
Symbol 838 Button
on (press) {
NewgroundsAPI.logCustomEvent("RefCoin");
NewgroundsAPI.loadCustomLink("Coin");
}
Symbol 840 Button
on (press) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 842 Button
on (press) {
NewgroundsAPI.loadCustomLink("ArmorGames");
}
Symbol 844 Button
on (press) {
NewgroundsAPI.logCustomEvent("ReplayGame");
_root.gotoAndStop(2);
}