Frame 1
stop();
Stage.showMenu = false;
mochi.MochiServices.connect("2e7c72a5c2cb1fcb");
NewgroundsAPI.connectMovie(1927);
NewgroundsAPI.addCustomLink(1, "MaxGames");
NewgroundsAPI.addCustomLink(3, "Profile");
NewgroundsAPI.addCustomLink(4, "Help");
NewgroundsAPI.addCustomEvent(2, "Beat the game");
Key.removeListener(options);
bgMusic.stop();
var site = "";
if (_url.indexOf("kongregate.com", 0) != -1) {
_root.kongregateServices.connect();
site = "kongregate";
} else if (_url.indexOf("hallpass.com") != -1) {
site = "hallpass";
} else if (_url.indexOf("spamtheweb.com/ul/") != -1) {
site = "stw";
} else if (_url.indexOf("albinoblacksheep.com") != -1) {
site = "abs";
}
Frame 21
gotoAndPlay ("intro");
Frame 24
stop();
Frame 25
function fromBeg() {
if (!antiCheat) {
fails = 0;
startTime = getTimer();
res = 0;
}
allTheWay = true;
}
function fail(type) {
if (levelMC.started) {
failSound.start(0, 1);
fails++;
}
levelMC.started = false;
cheated = false;
if (type == 0) {
levelMC.gotoAndStop("cheat");
} else if (type == 1) {
levelMC.gotoAndStop("fail");
} else if (!antiCheat) {
delete onEnterFrame;
Stage.showMenu = false;
Key.removeListener(keyListener);
Mouse.show();
transition("fail");
} else {
endLevel();
}
}
function endLevel() {
delete onEnterFrame;
Key.removeListener(keyListener);
Stage.showMenu = false;
Mouse.show();
if (level == 10) {
if (antiCheat) {
if (!allTheWay) {
transition("menu");
} else {
transition("endAnti");
}
return(undefined);
}
transition("end");
return(undefined);
}
if ((level == 8) && (usingMac)) {
if (antiCheat) {
if (!allTheWay) {
transition("menu");
} else {
transition("endAnti");
}
return(undefined);
}
transition("end");
return(undefined);
}
if (antiCheat) {
level++;
transition("success");
return(undefined);
}
if (!cheated) {
fail(2);
} else {
level++;
if (savefile.data.highLevel < level) {
savefile.data.highLevel = level;
savefile.flush();
}
transition("success");
}
}
function checkCheat(num) {
if ((levelCheats.length == 0) || (antiCheat)) {
return(false);
}
for (var _local2 in levelCheats) {
if (levelCheats[_local2] == num) {
return(true);
}
}
return(false);
}
function checkProtect(num) {
if (cheatProtect.length == 0) {
return(false);
}
for (var _local2 in cheatProtect) {
if (cheatProtect[_local2] == num) {
return(true);
}
}
return(false);
}
function levelInfo() {
panel.lvl_name.text = levelInfos[level - 1][0];
panel.lvl_author.text = levelInfos[level - 1][1];
panel.lvl.text = "Level " + level;
}
function mouseAvoider() {
function rightClick() {
if (checkCheat(3)) {
cheated = true;
} else if (checkProtect(3)) {
fail(0);
} else {
fail(1);
}
}
if (antiCheat) {
levelCheats = [];
cheatProtect = [];
}
cheated = false;
Stage.showMenu = true;
if (levelMC.cursor != undefined) {
startDrag (levelMC.cursor, true);
Mouse.hide();
}
var _local5 = new ContextMenu();
if (!checkCheat(0)) {
_local5.hideBuiltInItems();
}
_local5.onSelect = rightClick;
menu = _local5;
var _local7 = new Object();
_local7.onMouseWheel = function (delta) {
if (checkCheat(5)) {
cheated = true;
} else {
fail(1);
}
};
Mouse.addListener(_local7);
var _local8 = new Object();
_local8.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 9) {
if (checkCheat(5)) {
cheated = true;
} else if (checkProtect(5)) {
fail(0);
} else {
fail(1);
}
}
if (_local1 == 91) {
if (checkCheat(6)) {
cheated = true;
} else if (checkProtect(6)) {
fail(0);
} else {
fail(1);
}
}
if (_local1 == 17) {
if (checkCheat(7)) {
cheated = true;
} else if (checkProtect(7)) {
fail(0);
} else {
fail(1);
}
}
};
Key.addListener(_local8);
if ((level == 7) && (!antiCheat)) {
levelMC.course.onRollOver = function () {
fail(1);
};
levelMC.course.onDragOver = levelMC.course.onRollOver;
}
_root.onEnterFrame = function () {
if (Key.isDown(18) || (Key.isDown(121))) {
if (checkCheat(4)) {
cheated = true;
} else if (checkProtect(4)) {
fail(0);
} else {
fail(1);
}
}
if ((level != 7) || (antiCheat)) {
if (levelMC.course.hitTest(_xmouse, _ymouse, true)) {
if (checkCheat(2) && (leftDown)) {
cheated = true;
} else {
fail(1);
}
} else if ((!cheated) || (level == 10)) {
radians = Math.atan2(_ymouse - lastY, _xmouse - lastX);
xDif = _xmouse - lastX;
yDif = _ymouse - lastY;
dist = Math.sqrt((xDif * xDif) + (yDif * yDif));
var _local1 = 2;
while (_local1 < dist) {
var _local3 = (Math.cos(radians) * _local1) + lastX;
var _local2 = (Math.sin(radians) * _local1) + lastY;
if (levelMC.course.hitTest(_local3, _local2, true)) {
if (checkCheat(1)) {
cheated = true;
} else if (checkProtect(1)) {
fail(0);
} else {
fail(1);
}
return(undefined);
}
_local1 = _local1 + 0.3;
}
lastX = _xmouse;
lastY = _ymouse;
}
}
};
}
function transition(goTo) {
attachMovie("trans", "trans", getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2, goTo:goTo});
}
Stage.showMenu = false;
newMC = createEmptyMovieClip("soundAnchor" + getNextHighestDepth(), getNextHighestDepth());
var bgMusic = new Sound(newMC);
bgMusic.attachSound("bgMusic");
bgMusic.start(0, 9999);
bgMusic.setVolume(40);
var music = true;
newMC = createEmptyMovieClip("soundAnchor" + getNextHighestDepth(), getNextHighestDepth());
var failSound = new Sound(newMC);
failSound.attachSound("failSound");
newMC = createEmptyMovieClip("soundAnchor" + getNextHighestDepth(), getNextHighestDepth());
var ro_snd = new Sound(newMC);
ro_snd.attachSound("rollOver");
var savefile = SharedObject.getLocal("C2W");
if (savefile.data.highLevel == undefined) {
savefile.data.highLevel = 1;
savefile.flush();
}
var usingMac = false;
if (System.capabilities.os.indexOf("Mac", 0) != -1) {
usingMac = true;
}
var level = 1;
var lastX;
var lastY;
var cheated;
var leftDown = false;
var fails;
var startTime;
var totTime;
var allTheWay;
var res;
var firstTime;
var antiCheat;
var levelInfos = new Array(["my first game", "mariodude23"], ["i was bored", "filter-addict"], ["Mad Mouse Avoider", "cool-pete"], ["M0U53", "c0d4h"], ["RandomBonusLevels", "RandomGuy"], ["SubliminalAvoider", "Harry-POTter"], ["SlideVoider", "lightDarkness"], ["Gears of Flash", "360player"], ["Colorized Madness", "Chemical-Failure"], ["InvisiMouse", "l33tfl45h3r"]);
var levelCheats = new Array();
var cheatProtect = new Array();
onMouseDown = function () {
leftDown = true;
};
onMouseUp = function () {
leftDown = false;
};
Frame 26
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("22c2f60d", this, 10301, true);
Frame 27
transition("menu");
stop();
var options = new Object();
options.onKeyDown = function () {
var _local1 = Key.getCode();
if (_local1 == 77) {
if (_currentframe != menuFrame) {
delete onEnterFrame;
Key.removeListener(keyListener);
Stage.showMenu = false;
Mouse.show();
transition("menu");
}
} else if (_local1 == 83) {
music = !music;
if (music) {
bgMusic.start(0, 9999);
} else {
bgMusic.stop();
}
} else if (_local1 == 81) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else {
_quality = "HIGH";
}
}
};
Key.addListener(options);
Frame 28
stop();
var menuFrame = _currentframe;
Mouse.show();
level = 1;
fails = 0;
antiCheat = false;
allTheWay = false;
levelCheats = [];
cheatProtect = [];
Frame 29
stop();
levelCheats = [0, 1, 2, 3, 4, 5, 6, 7];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 30
cheated = true;
stop();
endLevel();
Frame 31
levelCheats = [1, 2, 3, 4, 5, 6, 7];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 32
levelCheats = [3, 4, 5, 6, 7];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 33
levelCheats = [1];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 34
if (antiCheat) {
level++;
gotoAndStop ("l6");
}
levelInfo();
Frame 35
levelCheats = [];
cheatProtect = [];
levelInfo();
if (savefile.data.highLevel < level) {
savefile.data.highLevel = level;
savefile.flush();
}
Frame 36
levelCheats = [4];
cheatProtect = [];
mouseAvoider();
levelInfo();
levelMC.orgX = levelMC._x;
levelMC.orgY = levelMC._y;
Frame 37
levelCheats = [1];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 38
levelCheats = [6];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 39
levelCheats = [7];
cheatProtect = [];
mouseAvoider();
levelInfo();
Frame 40
b1.btn_text = "Try Again";
b1.onrelease = function () {
transition("l" + _root.level);
};
b2.btn_text = "Main Menu";
b2.onrelease = function () {
transition("menu");
};
Frame 41
b1.btn_text = "Next Level";
b1.onrelease = function () {
transition("l" + _root.level);
};
b2.btn_text = "Main Menu";
b2.onrelease = function () {
transition("menu");
};
Frame 42
b1.btn_text = "Next Level";
b1.onrelease = function () {
transition("l" + _root.level);
};
b2.btn_text = "Main Menu";
b2.onrelease = function () {
transition("menu");
};
Frame 43
b1.btn_text = "Next Level";
b1.onrelease = function () {
transition("l" + _root.level);
};
b2.btn_text = "Main Menu";
b2.onrelease = function () {
transition("menu");
};
Frame 44
function closeLeader() {
_root.stop();
}
Key.removeListener(options);
mac = usingMac;
macMess._visible = mac;
if ((allTheWay && (!mac)) && (!antiCheat)) {
NewgroundsAPI.logCustomEvent("Beat the game");
totTime = Math.round((getTimer() - startTime) / 1000);
res_txt.text = ((fails + " fails\n") + totTime) + " seconds";
res = ((0.2 * fails) + 1) * totTime;
}
res_txt._visible = allTheWay;
if (!savefile.data.beat) {
firstTime = true;
savefile.data.beat = true;
} else {
firstTime = false;
}
b1.btn_text = "Submit Score";
b1.onrelease = function () {
mochi.MochiScores.showLeaderboard({boardID:"2a9984de14091d57", score:res, onClose:closeLeader, onError:closeLeader});
this.enabled = (this._visible = false);
};
b1.enabled = (b1._visible = (!mac) && (allTheWay));
b2.btn_text = "Main Menu";
b2.onrelease = function () {
_root.transition("menu");
Key.addListener(options);
};
if (site != "") {
if (site == "kongregate") {
if (allTheWay) {
_root.kongregateStats.submit("Result", res);
_root.kongregateStats.submit("Fails", fails);
_root.kongregateStats.submit("Time", totTime);
}
_root.kongregateStats.submit("BeatGame", 1);
} else if (site == "hallpass") {
_root.HPScoreService.postScore(res, "");
}
}
Frame 45
mac = usingMac;
macMess._visible = mac;
Symbol 6 MovieClip [l5_t] Frame 1
stop();
Symbol 6 MovieClip [l5_t] Frame 13
this.removeMovieClip();
Symbol 25 MovieClip Frame 40
stop();
Symbol 39 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 40 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 15 MovieClip in Symbol 41 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 41 MovieClip Frame 101
play();
Symbol 41 MovieClip Frame 165
stop();
Symbol 47 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 57 MovieClip Frame 1
onRelease = function () {
NewgroundsAPI.loadCustomLink("MaxGames");
};
onRollOver = function () {
_yscale = 120;
_xscale = 120;
};
onRollOut = function () {
_yscale = 100;
_xscale = 100;
};
Symbol 253 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 254 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.32");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 255 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 65 MovieClip [trans] Frame 18
_root.gotoAndStop(goTo);
Symbol 65 MovieClip [trans] Frame 36
removeMovieClip(this);
Symbol 72 Button
on (release) {
getURL ("http://www.maxgames.com", "_blank");
}
Symbol 75 MovieClip Frame 60
stop();
Symbol 89 MovieClip Frame 14
stop();
Symbol 90 MovieClip Frame 240
_root.play();
stop();
Symbol 94 MovieClip Frame 1
stop();
txt.text = btn_text;
txt.autoSize = "center";
onEnterFrame = function () {
if (btn_text != undefined) {
txt.text = btn_text;
txt.autoSize = "center";
if (onrelease == undefined) {
onRelease = function () {
_parent.goTo(section);
};
} else {
onRelease = onrelease;
}
delete onEnterFrame;
}
};
onRollOver = function () {
gotoAndStop (2);
_root.ro_snd.start(0, 1);
};
onRollOut = function () {
gotoAndStop (1);
};
onDragOver = onRollOver;
onDragOut = onRollOut;
Symbol 94 MovieClip Frame 2
txt.text = btn_text;
txt.autoSize = "center";
Symbol 99 MovieClip Frame 1
stop();
_visible = (_root.savefile.data.beat != undefined);
enabled = _root.savefile.data.beat != undefined;
btn.gotoAndStop(_root.antiCheat + 1);
onRelease = function () {
_root.antiCheat = !_root.antiCheat;
btn.gotoAndStop(_root.antiCheat + 1);
};
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
onDragOver = onRollOver;
onDragOut = onRollOut;
Symbol 99 MovieClip Frame 2
btn.gotoAndStop(antiCheat + 1);
Symbol 107 MovieClip Frame 1
function enDisable(bool) {
var _local3 = 1;
while (_local3 < 6) {
var _local4 = _parent[this._name]["b" + _local3];
if (_local4 != undefined) {
_local4.enabled = bool;
} else {
break;
}
_local3++;
}
}
function goTo(where) {
if (where == "playmore") {
NewgroundsAPI.loadCustomLink("MaxGames");
return(undefined);
}
enDisable(false);
onEnterFrame = function () {
_alpha = (_alpha - (2 + (3 / _alpha)));
if (_alpha <= 0) {
gotoAndStop(where);
_alpha = 1;
onEnterFrame = function () {
_alpha = (_alpha + (2 + (3 / _alpha)));
if (_alpha >= 100) {
_alpha = 100;
enDisable(true);
delete onEnterFrame;
}
};
}
};
}
function closeLeader() {
_root.stop();
}
stop();
b1.btn_text = "Start Game";
b1.section = "startgame";
b2.btn_text = "Level Select";
b2.section = "lSelect";
b3.btn_text = "Leaderboard";
b3.onrelease = function () {
mochi.MochiScores.showLeaderboard({boardID:"2a9984de14091d57", onClose:closeLeader, onError:closeLeader});
};
b4.btn_text = "Play More Games\nAt MaxGames.com!";
b4.section = "playmore";
Symbol 107 MovieClip Frame 3
b1.btn_text = "Start Game";
b1.onrelease = function () {
_root.fromBeg();
_root.transition("l1");
};
b2.btn_text = "Main Menu";
b2.section = "main";
Symbol 107 MovieClip Frame 5
function unlockedMessage() {
if (levelNo <= unlockedLevels) {
unl_txt._visible = false;
} else {
unl_txt._visible = true;
}
}
var levelNo = 1;
var maxLevel = 10;
var unlockedLevels = _root.savefile.data.highLevel;
unl_txt._visible = false;
b1.btn_text = "Go To Level";
b1.onrelease = function () {
if (levelNo <= unlockedLevels) {
if (levelNo == 1) {
fromBeg();
}
_root.level = levelNo;
_root.transition("l" + levelNo);
}
};
b2.btn_text = "Main Menu";
b2.section = "main";
back_btn.onRelease = function () {
if (levelNo > 1) {
levelNo--;
}
unlockedMessage();
};
fwd_btn.onRelease = function () {
if (levelNo < maxLevel) {
levelNo++;
}
unlockedMessage();
};
back_btn.onRollOver = (back_btn.onDragOver = (fwd_btn.onRollOver = (fwd_btn.onDragOver = function () {
this._xscale = (this._yscale = 120);
})));
back_btn.onRollOut = (back_btn.onDragOut = (fwd_btn.onRollOut = (fwd_btn.onDragOut = function () {
this._xscale = (this._yscale = 100);
})));
Symbol 118 MovieClip Frame 1
stop();
start_btn.onPress = function () {
gotoAndStop (2);
started = true;
lastX = _root._xmouse;
lastY = _root._ymouse;
};
Symbol 118 MovieClip Frame 2
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 129 MovieClip Frame 1
onRelease = function () {
getURL ("http://www.maxgames.com/game/cheat2win.html", _blank);
};
Symbol 130 MovieClip Frame 1
if (_root.allTheWay) {
onEnterFrame = function () {
info.text = (("Fails/Time\n" + _root.fails) + "/") + Math.round((getTimer() - _root.startTime) / 1000);
};
} else {
info._visible = false;
}
hints_link.enabled = (hints_link._visible = (!_root.antiCheat) && (_root.level != 5));
Symbol 137 MovieClip Frame 1
stop();
fail_txt._visible = failed != undefined;
start_btn.onPress = function () {
gotoAndStop (2);
started = true;
lastX = _root._xmouse;
lastY = _root._ymouse;
};
Symbol 137 MovieClip Frame 2
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 137 MovieClip Frame 3
failed = true;
play();
Symbol 141 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
start_btn.onRelease = function () {
lastX = _root._xmouse;
lastY = _root._ymouse;
started = true;
gotoAndStop (2);
};
Symbol 147 MovieClip Frame 2
goal_btn.gotoAndStop(2);
goal_btn.onRelease = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 147 MovieClip Frame 3
gotoAndStop (1);
Symbol 154 MovieClip Frame 16
gotoAndPlay (1);
Symbol 159 MovieClip Frame 1
stop();
start_btn.tabEnabled = false;
start_btn.onPress = function () {
gotoAndStop (2);
lastX = _root._xmouse;
lastY = _root._ymouse;
started = true;
};
Symbol 159 MovieClip Frame 2
goal_btn.tabEnabled = false;
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 159 MovieClip Frame 3
start_btn.onPress = function () {
gotoAndStop (2);
lastX = _root._xmouse;
lastY = _root._ymouse;
};
Symbol 159 MovieClip Frame 4
gotoAndStop (1);
Symbol 168 MovieClip Frame 13
gotoAndPlay (1);
Symbol 169 MovieClip Frame 1
function end(success) {
_root.level++;
delete onEnterFrame;
for (var _local4 in this) {
var _local3 = this[_local4];
if (_local3.getDepth() > 0) {
_local3.removeMovieClip();
}
}
if (success) {
if (_root.site != "") {
if (_root.site == "kongregate") {
_root.kongregateStats.submit("BeatBonus", 1);
}
}
}
if (success) {
_root.transition("successBonus");
} else {
_root.transition("failBonus");
}
delete end;
}
stop();
var amount = 15;
var clicked = 0;
var count = 0;
var sinceLast = 0;
onMouseDown = function () {
delete onMouseDown;
gotoAndStop (2);
onEnterFrame = function () {
sinceLast++;
if (((random(100 - (count * 4)) == 0) && (sinceLast > 10)) || (sinceLast > 80)) {
sinceLast = 0;
if (count < amount) {
count++;
var _local3 = (Math.random() * 650) - 325;
var xSpeed = ((Math.random() * ((_local3 > 0) ? -2 : 2)) + ((_local3 > 0) ? -1 : 1));
var ySpeed = ((Math.random() * -8) - 16);
var _local2 = attachMovie("l5_t", "t" + getNextHighestDepth(), getNextHighestDepth(), {_x:_local3, _y:270, xSpeed:xSpeed, ySpeed:ySpeed});
_local2.onEnterFrame = function () {
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((this._y > 270) && (ySpeed < 0)) {
end(0);
}
this.ySpeed = this.ySpeed + 0.6;
};
_local2.onPress = function () {
clicked++;
if (clicked >= amount) {
end(cheated);
}
delete this.onEnterFrame;
this.play();
};
if (!cheated) {
_local2.onSetFocus = function () {
cheated = true;
};
}
}
}
};
};
Symbol 179 MovieClip Frame 1
onEnterFrame = function () {
mo1._rotation = mo1._rotation + 3;
mo2._rotation = mo2._rotation - 3;
};
Symbol 181 MovieClip Frame 1
stop();
start_btn.onPress = function () {
_root.lastX = _root._xmouse;
_root.lastY = _root._ymouse;
gotoAndStop (2);
started = true;
};
start_btn.onKillFocus = function () {
if (Key.isDown(13) || (Key.isDown(32))) {
cheated = true;
}
};
course._alpha = 40;
delete _root.onEnterFrame;
Key.removeListener(keyListener);
Stage.showMenu = false;
Mouse.show();
Symbol 181 MovieClip Frame 2
_root.mouseAvoider();
course._alpha = 100;
goal_btn.gotoAndStop(2);
goal_btn.onPress = function () {
this.enabled = false;
_root.cheated = cheated;
_root.endLevel();
};
Symbol 191 MovieClip Frame 1
stop();
delete onEnterFrame;
_x = orgX;
_y = orgY;
course.bottomMC._y = Stage.height - orgY;
course.topMC._y = -orgY;
start_btn.tabEnabled = false;
start_btn.onPress = function () {
started = true;
gotoAndStop (2);
};
Symbol 191 MovieClip Frame 2
goal_btn.tabEnabled = false;
goal_btn.onRollOver = function () {
delete onEnterFrame;
this.enabled = false;
_root.cheated = true;
_root.endLevel();
};
var speed = 1.5;
onEnterFrame = function () {
_y = (_y + speed);
course.bottomMC._y = course.bottomMC._y - speed;
course.topMC._y = course.topMC._y - speed;
if (_y > ((Stage.height + _height) - orgY)) {
_root.fail(1);
}
};
Symbol 191 MovieClip Frame 3
gotoAndStop (1);
Symbol 195 MovieClip Frame 1
onEnterFrame = function () {
b1._rotation++;
b2._rotation--;
b3._rotation++;
};
Symbol 198 MovieClip Frame 1
Symbol 201 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
stop();
delete onEnterFrame;
start_btn.tabEnabled = false;
start_btn.onPress = function () {
_root.lastX = _root._xmouse;
_root.lastY = _root._ymouse;
started = true;
gotoAndStop (2);
};
Symbol 202 MovieClip Frame 2
goal_btn.gotoAndStop(2);
goal_btn.tabEnabled = false;
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
onEnterFrame = function () {
course._rotation = course._rotation + 0.5;
};
Symbol 202 MovieClip Frame 3
gotoAndStop (1);
Symbol 209 MovieClip Frame 1
stop();
barrier_ins.gotoAndStop(_name.charAt(0));
Symbol 216 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 1
useHandCursor = false;
onRollOver = function () {
for (var _local2 in _parent.course) {
if (_local2.indexOf(_name, 0) != -1) {
_parent.course[_local2].gotoAndStop(2);
}
}
};
gotoAndStop(_name);
Symbol 222 MovieClip Frame 1
stop();
start_btn.tabEnabled = false;
start_btn.onPress = function () {
_root.lastX = _root._xmouse;
_root.lastY = _root._ymouse;
started = true;
gotoAndStop (2);
};
Symbol 222 MovieClip Frame 2
goal_btn.gotoAndStop(2);
goal_btn.tabEnabled = false;
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 222 MovieClip Frame 4
gotoAndStop (1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
onEnterFrame = function () {
spin._rotation = spin._rotation + 0.25;
};
Symbol 237 MovieClip Frame 1
stop();
start_btn.tabEnabled = false;
start_btn.onPress = function () {
_root.lastX = _root._xmouse;
_root.lastY = _root._ymouse;
started = true;
gotoAndStop (2);
};
Symbol 237 MovieClip Frame 2
Mouse.hide();
goal_btn.gotoAndStop(2);
goal_btn.tabEnabled = false;
goal_btn.onPress = function () {
this.enabled = false;
_root.endLevel();
};
Symbol 237 MovieClip Frame 3
gotoAndStop (1);
Symbol 248 MovieClip Frame 1
var currMess = 1;
var numOfMess = 3;
var m1 = ("DUDE, YOU MADE IT ALL THE WAY !!\n\n" + (_root.allTheWay ? (("Your result:\n" + _root.res) + "\n\nYour result is calculated based on the number of times you failed, and the time it took for you to finish the game.\nThe lower the score, the better!") : "Play the game from beginning to end in one run to get a result and to be able to submit it!"));
var m2 = "By finishing the game you have unlocked a new feature! If you for any reason would want to play this game having to finish it WITHOUT cheating, you can now do so.\n\nYou can choose which mode you want upon starting a new game or going directly to a level using level select.";
var m3 = "..And so at last, the moment you have all been waiting for: the credits!\n\nIdea, graphics & coding: knugen\nMusic: Doki\n\nSpecial thanks to:\nCaiWengi, Xeptic, MorrowDays, crushy, Newgrounds, Adam Nilsson, Johan Hjerpe, Dennis Berggren, Marcus Redig";
if (!_root.firstTime) {
m2 = m3;
numOfMess = 2;
}
mess.text = m1;
b1.onRelease = function () {
if (currMess > 1) {
currMess--;
mess.text = ((currMess == 1) ? (m1) : (m2));
}
};
b2.onRelease = function () {
if (currMess < numOfMess) {
currMess++;
mess.text = ((currMess == 2) ? (m2) : (m3));
}
};
b1.onRollOver = (b1.onDragOver = (b2.onRollOver = (b2.onDragOver = function () {
this._xscale = (this._yscale = 120);
})));
b1.onRollOut = (b1.onDragOut = (b2.onRollOut = (b2.onDragOut = function () {
this._xscale = (this._yscale = 100);
})));