Frame 1
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__("98f267ff", this, 10301, true);
mochi.as2.MochiServices.connect("a20b7545eba9ea10");
logo_btn.onRelease = function () {
getURL ("http://www.i6.com/most-played-games.php?utm_source=games&utm_medium=acrobaticriderpr", "_blank");
};
function stop_waiting() {
if (percent >= 100) {
waitI_num++;
}
if (waitI_num >= 4) {
waiting = false;
clearInterval(waitID);
}
}
var waiting = true;
var waitID = setInterval(stop_waiting, 1000);
var waitI_num = 0;
Frame 2
percent = Math.round((_root.getBytesLoaded() * 100) / _root.getBytesTotal());
intro.gauge.gotoAndStop(percent);
Frame 3
if ((percent < 100) || (waiting)) {
gotoAndPlay (2);
}
Frame 4
stop();
start_btn.onRelease = function () {
gotoAndStop (5);
};
Frame 5
function playMoreGameRealse() {
getURL ("http://www.i6.com/most-played-games.php?utm_source=games&utm_medium=acrobaticriderpmg", "_blank");
}
function freeGamesForYourSite() {
getURL ("http://www.i6.com/freegamesforyoursite.php?utm_source=games&utm_medium=acrobaticriderfgfys", "_blank");
}
stop();
_root.motorColorNum = 1;
_root.bodyColorNum = 1;
_root.vehicleIndex = 0;
_root.stageIndex = 0;
_root.passIndex = 1;
_root.player = new Player();
_root._crash = false;
_root.count = 0;
_root.carX = 200;
_root.carY = 270;
_root.levelScore = 0;
_root.totalScore = 0;
_root.stage1score = 0;
_root.stage2score = 0;
_root.stage3score = 0;
_root.stage4score = 0;
_root.stage5score = 0;
_root.stage6score = 0;
_root.stage7score = 0;
_root.stage8score = 0;
_root.stage9score = 0;
_root.stage10score = 0;
_root.levelResult = 0;
var i = 1;
while (i < 11) {
_root[("stage" + i) + "score"] = 0;
i++;
}
play_btn.onRelease = function () {
fade.Fade.start();
gotoAndStop ("select");
};
help_btn.onRelease = function () {
fade.Fade_2.start();
gotoAndStop ("help");
};
var myCoverSound = new Sound();
myCoverSound.attachSound("\u5F00\u573A\u97F3\u4E50");
myCoverSound.start(0, 999);
Frame 11
instr.back_btn.onRelease = function () {
fade.Fade.start();
gotoAndStop ("cover");
};
Frame 18
function balpha() {
b1._alpha = 0;
b2._alpha = 0;
b3._alpha = 0;
b4._alpha = 0;
b5._alpha = 0;
b6._alpha = 0;
b7._alpha = 0;
b8._alpha = 0;
b9._alpha = 0;
b10._alpha = 0;
}
function init() {
var _local2 = 1;
while (_local2 < 11) {
_root["_pH" + _local2]._visible = false;
_root["_btn" + _local2].enabled = false;
_root["_btn" + _local2]._alpha = 80;
_local2++;
}
unlockFunc();
_root.stageValue = _root.passIndex - 1;
_root.mapMc.attachMovie("stage" + _root.stageValue, "stage", 10000, {_x:14, _y:28});
}
function unlockFunc() {
_root["_btn" + _root.passIndex].enabled = true;
_root["_btn" + _root.passIndex]._alpha = 100;
var _local2 = 1;
while (_local2 < _root.passIndex) {
_root["_pH" + _local2]._visible = true;
_root["_btn" + _local2].enabled = true;
_root["_btn" + _local2]._alpha = 80;
_local2++;
}
}
function switchPoistion() {
switch (_root.stageIndex) {
case 0 :
_root.carX = 200;
_root.carY = 275;
break;
case 1 :
_root.carX = 200;
_root.carY = 150;
break;
case 2 :
_root.carX = 200;
_root.carY = 275;
break;
case 4 :
_root.carX = 200;
_root.carY = 230;
break;
case 6 :
_root.carX = 200;
_root.carY = 150;
break;
case 3 :
_root.carX = 200;
_root.carY = 205;
break;
case 5 :
_root.carX = 200;
_root.carY = 100;
break;
case 7 :
_root.carX = 200;
_root.carY = 260;
break;
case 8 :
_root.carX = 200;
_root.carY = 265;
break;
case 9 :
_root.carX = 200;
_root.carY = 280;
}
}
Game._heroDeathFlag = false;
_root._gameWind.stop();
myCoverSound.stop();
_root.myBgSound = new Sound();
_root.myBgSound.attachSound("\u80CC\u666F\u97F3\u4E50");
_root.myBgSound.start(0, 9999);
init();
balpha();
play_btn.onRelease = function () {
fade.Fade.start();
_root.levelScore = 0;
gotoAndStop ("start");
};
var i = 1;
while (i < 11) {
_root["_btn" + i].onRelease = function () {
balpha();
aaaa = this._name;
kkk = aaaa.substr(4);
_root["b" + kkk]._alpha = 100;
_root.player = new Player();
var _local3 = this._target.split("");
if (_local3.length < 7) {
_root.stageIndex = Number(_local3[5]) - 1;
_root.stageValue = Number(_local3[5]);
_root.levelScore = _root[("stage" + _local3[5]) + "score"];
} else {
_root.stageIndex = 9;
_root.stageValue = 10;
_root.levelScore = _root.stage10score;
}
trace("_root.stageValue = " + _root.stageValue);
_root.mapMc.attachMovie("stage" + _root.stageValue, "stage", 10000, {_x:14, _y:28});
switchPoistion();
};
i++;
}
_root._btn2.enabled = true;
_root._btn3.enabled = true;
_root._btn4.enabled = true;
_root._btn5.enabled = true;
_root._btn6.enabled = true;
_root._btn7.enabled = true;
_root._btn8.enabled = true;
_root._btn9.enabled = true;
_root._btn10.enabled = true;
_btn1.onRelease();
leveltxt.text = String(_root.levelResult);
Instance of Symbol 815 MovieClip in Frame 18
on (release) {
_root.bodyColorNum = 2;
with (_parent) {
bodyMc.h.gotoAndStop(2);
bodyMc.hd.gotoAndStop(2);
bodyMc.hu.gotoAndStop(2);
bodyMc.b.gotoAndStop(2);
bodyMc.l.gotoAndStop(2);
bodyMc.ld.gotoAndStop(2);
bodyMc.g.gotoAndStop(2);
bodyMc.ld2.gotoAndStop(2);
bodyMc.hd2.gotoAndStop(2);
}
}
Instance of Symbol 186 MovieClip in Frame 18
on (release) {
_root.bodyColorNum = 3;
with (_parent) {
bodyMc.h.gotoAndStop(3);
bodyMc.hd.gotoAndStop(3);
bodyMc.hu.gotoAndStop(3);
bodyMc.b.gotoAndStop(3);
bodyMc.l.gotoAndStop(3);
bodyMc.ld.gotoAndStop(3);
bodyMc.g.gotoAndStop(3);
bodyMc.ld2.gotoAndStop(3);
bodyMc.hd2.gotoAndStop(3);
}
}
Instance of Symbol 189 MovieClip in Frame 18
on (release) {
_root.bodyColorNum = 4;
with (_parent) {
bodyMc.h.gotoAndStop(4);
bodyMc.hd.gotoAndStop(4);
bodyMc.hu.gotoAndStop(4);
bodyMc.b.gotoAndStop(4);
bodyMc.l.gotoAndStop(4);
bodyMc.ld.gotoAndStop(4);
bodyMc.g.gotoAndStop(4);
bodyMc.ld2.gotoAndStop(4);
bodyMc.hd2.gotoAndStop(4);
}
}
Instance of Symbol 818 MovieClip in Frame 18
on (release) {
_root.bodyColorNum = 1;
with (_parent) {
bodyMc.h.gotoAndStop(1);
bodyMc.hd.gotoAndStop(1);
bodyMc.hu.gotoAndStop(1);
bodyMc.b.gotoAndStop(1);
bodyMc.l.gotoAndStop(1);
bodyMc.ld.gotoAndStop(1);
bodyMc.g.gotoAndStop(1);
bodyMc.ld2.gotoAndStop(1);
bodyMc.hd2.gotoAndStop(1);
}
}
Frame 25
Game.main(_root.gameMc, _root.stageIndex, _root.player);
pauseMc._visible = false;
_root.myBgSound.stop();
_root.createEmptyMovieClip("s1", -23454);
_root.createEmptyMovieClip("s2", -547654);
_root._bring2 = new Sound("s1");
_root._bring2.attachSound("bring2");
_root._bring2.start(0, 99999);
_root.lifeflag = true;
_root.soundfa = false;
_root.stopengingeSndflag = false;
_root._engineSnd2 = new Sound("s2");
_root._engineSnd2.attachSound("\u53D1\u52A8\u673A\u653E\u624B");
var someListener = new Object();
someListener.onKeyUp = function () {
if (_root.soundfa) {
_root.stopengingeSndflag = true;
_root._engineSnd.stop();
_root._engineSnd2.stop();
_root._engineSnd2.start();
_root.soundfa = false;
}
};
Key.addListener(someListener);
Frame 39
fade.Fade_2.start();
_root.myBgSound.stop();
_root._bring2.stop();
gotoAndStop ("start");
Frame 44
var _timeB = (18000 - _root.count);
if (_timeB < 0) {
_timeB = 0;
}
winMc._timeBonus = _timeB;
winMc._specialBonus = 0;
winMc._trickBonus = _root.levelScore;
_root.levelResult = (winMc._timeBonus + winMc._specialBonus) + winMc._trickBonus;
trace(_root.levelResult);
switch (_root.stageIndex + 1) {
case 1 :
if (_root.levelResult > _root.stage1score) {
_root.stage1score = _root.levelResult;
}
break;
case 2 :
if (_root.levelResult > _root.stage2score) {
_root.stage2score = _root.levelResult;
}
break;
case 3 :
if (_root.levelResult > _root.stage3score) {
_root.stage3score = _root.levelResult;
}
break;
case 4 :
if (_root.levelResult > _root.stage4score) {
_root.stage4score = _root.levelResult;
}
break;
case 5 :
if (_root.levelResult > _root.stage5score) {
_root.stage5score = _root.levelResult;
}
break;
case 6 :
if (_root.levelResult > _root.stage6score) {
_root.stage6score = _root.levelResult;
}
break;
case 7 :
if (_root.levelResult > _root.stage7score) {
_root.stage7score = _root.levelResult;
}
break;
case 8 :
if (_root.levelResult > _root.stage8score) {
_root.stage8score = _root.levelResult;
}
break;
case 9 :
if (_root.levelResult > _root.stage9score) {
_root.stage9score = _root.levelResult;
}
break;
case 10 :
if (_root.levelResult <= _root.stage10score) {
break;
}
_root.stage10score = _root.levelResult;
}
trace(_root.stage1score);
_root.totalScore = ((((((((_root.stage1score + _root.stage2score) + _root.stage3score) + _root.stage4score) + _root.stage5score) + _root.stage6score) + _root.stage7score) + _root.stage8score) + _root.stage9score) + _root.stage10score;
trace(_root.totalScore);
back_btn.onRelease = function () {
fade.Fade.start();
_root.gotoAndStop("select");
};
_root.myBgSound.stop();
_root._bring2.stop();
_root._gameWin = new Sound();
_root._gameWin.attachSound("Game win");
_root._gameWin.start(0, 1);
Frame 45
back_btn.onRelease();
Frame 52
_root.myBgSound.stop();
_root._bring2.stop();
_root._gameWin = new Sound();
_root._gameWin.attachSound("Game win");
_root._gameWin.start(0, 1);
replay_btn.onRelease = function () {
fade.Fade.start();
_root.gotoAndStop("cover");
};
more_btn.onRelease = function () {
};
Frame 69
stop();
_root.winnerSound.stop();
myCoverSound.start(0, 999);
Symbol 23 MovieClip Frame 1
stop();
Symbol 1037 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1038 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _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("3.8 as2");
}
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";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.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();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
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.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.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];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._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:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1039 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1040 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1041 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1042 MovieClip [__Packages.Game] Frame 0
class Game
{
var _owner, _worldMc, engine, stage, player, _map, _car, _screen, onFailed, onWin, _carDeath;
function Game (mc) {
_root.createEmptyMovieClip("sound3", 3415);
_root.createEmptyMovieClip("passsound", 34215);
_flag = false;
_owner = mc;
_worldMc = _owner.world;
org.cove.flade.DynamicsEngine.worldContainer = _worldMc;
engine = new org.cove.flade.DynamicsEngine();
engine.checkCollision = mx.utils.Delegate.create(this, onCheckCollision);
engine.setDamping(1);
engine.setGravity(0, 0.6);
engine.setSurfaceBounce(1E-6);
engine.setSurfaceFriction(0.02);
Map.engine = engine;
Map.mapOwner = _worldMc;
Map.bkOwner = _owner.bk;
Map.bk2Owner = _owner.bk2;
var _local3 = 0;
while (_local3 < 10) {
MySecret.register("sijia" + _local3, function (s) {
var _local2 = int(s.charAt(s.length - 1));
_root.stageIndex = _local2;
_root.gotoAndStop("gameStart");
});
MySecret.register("go" + _local3, function (s) {
var _local2 = int(s.charAt(s.length - 1));
_root.stageIndex = _local2;
_root.gotoAndStop("gameStart");
});
_local3 = _local3 + 2;
}
MySecret.register("sijial", function () {
_root.player.life = _root.player.life + 4;
});
MySecret.register("sijiar", function () {
_root.player.N2O_total = _root.player.N2O_total + 4;
});
}
function init(s, p) {
stage = s;
player = p;
_map = new Map(200, 200, stage);
_car = new Car(_root.carX, _root.carY, engine);
_car.onCrash = mx.utils.Delegate.create(this, onCarCrash);
_car.setSkins("Hero", "Wheel", "car", 1000);
_car.create();
_screen = new Screen(this, _owner.screenMc);
}
function start() {
player.countTime();
_worldMc.ref = this;
_worldMc.onEnterFrame = function () {
if (Game._heroDeathFlag == false) {
this.ref.run();
} else {
this.ref.heroDeath();
}
};
_global.sound.startLoop("ss_" + stage.index);
}
function pause(flag) {
if (flag) {
_global.sound.stopLoop();
delete _worldMc.onEnterFrame;
Map._tailFlag = false;
Map._tailFlag = false;
Map._againstFlag = false;
Map._bridgeFlag = false;
Map._waterFlag = false;
Map._waterPipeFlag = false;
_timeFlag = false;
} else {
_global.sound.startLoop();
_timeFlag = true;
_worldMc.onEnterFrame = function () {
if (Game._heroDeathFlag == false) {
this.ref.run();
} else {
this.ref.heroDeath();
}
};
}
}
function onCheckCollision(s) {
var _local3 = _car.__get__x() - 80;
var _local2 = _car.__get__x() + 80;
if (s.p2.x < _local3) {
return(false);
}
if (s.p1.x > _local2) {
return(false);
}
return(true);
}
function onCarCrash() {
onFailed();
}
function run() {
var _local3 = 0.8;
if (Key.isDown(40)) {
_car._bodyMc.gotoAndStop("brake");
_car.speed = _car.speed - (_local3 * 2);
if (_car.__get__speed() < -2) {
_car.__set__speed(-2);
}
} else if (Key.isDown(38)) {
engine.setGravity(0.15, 0.6);
if (_engineSndFlag == false) {
_root._engineSnd = new Sound("sound3");
_root._engineSnd.attachSound("\u00B7\u00A2\u00B6\u00AF\u00BB\u00FA");
_root._engineSnd.start(0, 1);
_engineSndFlag = true;
_root.soundfa = true;
_root.stopengingeSndflag = false;
}
_car.speed = _car.speed + (_local3 * 2);
if (_car.__get__speed() > 2) {
_car.__set__speed(2);
}
} else {
engine.setGravity(0, 0.6);
_engineSndFlag = false;
_car.speed = _car.speed - (_local3 / 2);
if (_car.__get__speed() < 0) {
_car.__set__speed(0);
}
}
if (Key.isDown(37)) {
_car.frontPull();
if (_leftFlag == false) {
_car._bodyMc.myHero.drivingAct.gotoAndStop("toLeft");
_leftFlag = true;
}
} else if (Key.isDown(39)) {
_car.backPull();
if (_rightFlag == false) {
_car._bodyMc.myHero.drivingAct.gotoAndStop("toRight");
_rightFlag = true;
}
} else {
if (_rightFlag == true) {
_car._bodyMc.myHero.drivingAct.gotoAndStop("fromRight");
_rightFlag = false;
}
if (_leftFlag == true) {
_car._bodyMc.myHero.drivingAct.gotoAndStop("fromLeft");
_leftFlag = false;
}
}
heroActionDeath();
flipScoreFunc();
mySoundFunc();
engine.timeStep();
_map.render(_car.__get__x(), _car.__get__y());
_car.render();
if ((count++) % 2) {
gameCheck();
}
}
function mySoundFunc() {
}
function flipScoreFunc() {
if (_car._bodyMc._rotation > 170) {
if (_flipCount == 0) {
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = 80;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbFrontFlip");
_root.gameMc.ScreenMc.scoreHipMc.play();
_flipCount++;
}
} else if (_car._bodyMc._rotation < -170) {
if (_flipCount == 0) {
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = 50;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbBackFlip");
_root.gameMc.ScreenMc.scoreHipMc.play();
_flipCount++;
}
} else {
_flipCount--;
if (_flipCount < 0) {
_flipCount = 0;
}
}
}
function heroActionDeath() {
if (_heroActionDeathFlag) {
onFailed();
_actFlag = 0;
_heroActionDeathFlag = false;
}
}
function gameCheck() {
if (_car.__get__y() > stage.deadLine) {
if (!_root.SPM) {
onFailed();
return(undefined);
}
}
if ((!_heroDeathFlag) && (!_heroActionDeathFlag)) {
if (_car.__get__x() > (stage.finalLine - 100)) {
if (_barrierSndFlag == false) {
_barrierSndFlag = true;
_root._barrierSnd = new Sound("passsound");
_root._barrierSnd.attachSound("pass a barrier");
_root._barrierSnd.start(0, 1);
}
}
if (_car.__get__x() > stage.finalLine) {
onWin();
return(undefined);
}
}
}
function checkStars() {
var _local4 = _map.stars;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
if (_car.getRectangle().contains(_local3.x, _local3.y)) {
_map.removeStarAt(_local2);
player.totalScore = player.totalScore + _local3.getScore();
_screen.updateScore();
break;
}
_local2++;
}
}
static function main(mc, stageIndex, player) {
_root.lifeflag = true;
var _local3 = new Game(mc);
_local3.onFailed = function () {
_root._crash = true;
this._car._bodyMc.myHero.gotoAndStop("death");
_root.carX = this._car.__get__x() - 80;
_root.carY = this._car.__get__y() - 100;
if (this._deathCount == 0) {
if (_root.lifeflag) {
this.player.life--;
_root.lifeflag = false;
}
_root.menlife = this.player.life;
if (this.player.life <= 0) {
_root.menlife = 0;
_root._bring2.stop();
_root.gotoAndStop("gameover");
} else {
_root._loseSound = new Sound();
_root._loseSound.attachSound("lose");
_root._loseSound.start(0, 1);
this.pasue(true);
this.initDeath();
Game._heroDeathFlag = true;
this.pasue(false);
}
_root._deathSound = new Sound();
_root._deathSound.attachSound("\u00CB\u00C0\u00CD\u00F6");
_root._deathSound.start(0, 1);
}
};
_local3.onWin = function () {
if (_root.stageIndex == (_root.passIndex - 1)) {
_root.passIndex++;
}
if (this.stage.index > 6) {
Game._flag = true;
fade.Fade.start();
_root.gotoAndStop("passGame");
} else {
Game._flag = true;
_root.stageIndex = this.stage.index;
this.switchPoistion();
fade.Fade.start();
_root.gotoAndStop("winner");
}
};
load(stageIndex, _local3, player);
}
function switchPoistion() {
switch (_root.stageIndex) {
case 0 :
_root.carX = 200;
_root.carY = 275;
break;
case 1 :
_root.carX = 200;
_root.carY = 150;
break;
case 2 :
_root.carX = 200;
_root.carY = 275;
break;
case 4 :
_root.carX = 200;
_root.carY = 230;
break;
case 6 :
_root.carX = 200;
_root.carY = 150;
break;
case 3 :
_root.carX = 200;
_root.carY = 215;
break;
case 5 :
_root.carX = 200;
_root.carY = 100;
break;
case 7 :
_root.carX = 200;
_root.carY = 260;
break;
case 8 :
_root.carX = 200;
_root.carY = 265;
break;
case 9 :
_root.carX = 200;
_root.carY = 280;
}
}
function initDeath() {
_carDeath = new Car(_root.carX, _root.carY, engine);
_carDeath.setDeathSkins("Deathcopy");
_carDeath.createDeath();
}
function heroDeath() {
_deathCount++;
trace("_deathCount : " + _deathCount);
_car.__set__speed(0);
_map.render(_car.__get__x(), _car.__get__y());
_car.render();
_carDeath.renderDeath();
engine.timeStep();
if ((_deathCount % 90) == 0) {
_heroDeathFlag = false;
delete _worldMc.onEnterFrame;
_root.gotoAndStop("win");
}
}
static function load(stageIndex, game, player) {
var _local1 = new JSON().parse(StageData["stage" + stageIndex]);
var _local2 = new GameStage(stageIndex, _local1.mapData, _local1.scoreData, _local1.final.x);
game.init(_local2, player);
game.start();
}
static function loadFromFile(stageIndex, game, player) {
var _local3 = ("stage" + stageIndex) + ".txt";
var _local2 = new LoadVars();
_local2.game = game;
_local2.player = player;
_local2.onData = function (str) {
var _local2 = new JSON().parse(str);
var _local3 = new GameStage(stageIndex, _local2.mapData, _local2.scoreData, _local2.final.x);
this.game.init(_local3, this.player);
this.game.start();
};
_local2.load(_local3);
}
var _engineSndFlag = false;
var _barrierSndFlag = false;
static var _flag = false;
static var _timeFlag = true;
var _leftFlag = false;
var _rightFlag = false;
static var allowFlag = false;
static var _heroDeathFlag = false;
static var _heroActionDeathFlag = false;
static var _actFlag = 0;
var _flipCount = 0;
var _deathCount = 0;
var count = 0;
}
Symbol 1043 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp, checkCollision;
function DynamicsEngine () {
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addPrimitive(p) {
primitives.push(p);
}
function addSurface(s) {
surfaces.push(s);
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
for (var _local4 in surfaces) {
var _local2 = surfaces[_local4];
if (_local2.getActiveState()) {
if (checkCollision(_local2)) {
for (var _local3 in primitives) {
primitives[_local3].checkCollision(_local2, this);
}
}
}
}
}
static var worldContainer = _root;
}
Symbol 1044 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 1045 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 1046 MovieClip [__Packages.Map] Frame 0
class Map
{
static var bkOwner, bk2Owner, mapOwner, engine;
var _camaraCenterX, _camaraCenterY, _bkMc, _bk2Mc, _mapMc, stars;
function Map (centerX, centerY, stageData) {
_camaraCenterX = centerX;
_camaraCenterY = centerY;
_bkMc = bkOwner.attachMovie(stageData.__get__bkID(), "bk", 0);
_bkMc.cacheAsBitmap = true;
_bk2Mc = bk2Owner.attachMovie(stageData.__get__bk2ID(), "bk2", 0);
_bk2Mc._x = 0;
_bk2Mc._y = bk2Y;
_bk2Mc.cacheAsBitmap = true;
_mapMc = mapOwner.attachMovie(stageData.__get__mapID(), "map", mapOwner.getNextHighestDepth());
_mapMc.cacheAsBitmap = true;
Star.owner = mapOwner.createEmptyMovieClip("stars", mapOwner.getNextHighestDepth());
drawMapSurface(stageData.mapData);
}
function drawMapSurface(pointArr) {
var _local2 = null;
var _local6 = null;
var _local3 = 0;
var _local4 = 0;
while (_local4 < 3) {
_local3 = 0;
while (_local3 < pointArr.length) {
_local2 = pointArr[_local3];
if (_local4 == 0) {
_local2.y = _local2.y + 50;
}
if ((_root.stageIndex == 0) && (_local4 > 0)) {
_local2.x = _local2.x + 8000;
} else if ((_root.stageIndex != 0) && (_local4 > 0)) {
_local2.x = _local2.x + 8000;
}
if (_local6 != null) {
var _local5 = new org.cove.flade.surfaces.LineSurface(_local6.x, _local6.y, _local2.x, _local2.y);
_local5.setCollisionDepth(40);
engine.addSurface(_local5);
_local5.onContact = function () {
Game.allowFlag = false;
};
}
_local6 = _local2;
_local3++;
}
_local4++;
}
var _local8 = new org.cove.flade.surfaces.LineSurface(_local2.x, _local2.y, _local2.x + 1000, _local2.y);
_local8.setCollisionDepth(40);
engine.addSurface(_local8);
var _local9 = new org.cove.flade.surfaces.LineSurface(50, 0, 50, 350);
_local9.setCollisionDepth(40);
engine.addSurface(_local9);
}
function initConveyors(conArr) {
}
function rotaryWall(dx, dy) {
}
function initStars(starArr) {
}
function render(dx, dy) {
var _local5 = ((-dx) / 5) % (bk2Owner._width / 2);
if ((Game._actFlag != 0) && (Game.allowFlag == false)) {
Game._heroActionDeathFlag = true;
_heroActionAllowFlag = false;
}
mapOwner._x = _camaraCenterX - dx;
mapOwner._y = (_camaraCenterY - dy) / 1.3;
bkOwner._y = (_camaraCenterY - dy) / 1.3;
bk2Owner._x = _local5;
if (bk2Owner._x < ((-bk2Owner._width) / 2)) {
bk2Owner._x = 0;
}
bk2Owner._y = (_camaraCenterY - dy) / 1.3;
if (_heroActionAllowFlag == true) {
if (Game.allowFlag == true) {
var _local3 = _root.gameMc.world.Boy;
if (Key.isDown(49)) {
_local3.myHero.gotoAndStop("idTrick1");
Game._actFlag = 1;
} else if (Key.isDown(50)) {
_local3.myHero.gotoAndStop("idTrick2");
Game._actFlag = 2;
} else if (Key.isDown(51)) {
_local3.myHero.gotoAndStop("idTrick3");
Game._actFlag = 3;
} else if (Key.isDown(52)) {
_local3.myHero.gotoAndStop("idTrick4");
Game._actFlag = 4;
} else if (Key.isDown(53)) {
_local3.myHero.gotoAndStop("idTrick5");
Game._actFlag = 5;
} else if (Key.isDown(54)) {
_local3.myHero.gotoAndStop("idTrick6");
Game._actFlag = 6;
} else {
_local3.myHero.mc.play();
}
}
}
if ((_camaraCenterY - dy) > 50) {
Game.allowFlag = true;
}
}
function removeStarAt(index) {
var _local2 = stars[index];
if (_local2) {
_local2.remove();
stars.splice(index, 1);
}
}
static var _tailFlag = false;
static var _againstFlag = false;
static var _bridgeFlag = false;
static var _waterFlag = false;
static var _waterPipeFlag = false;
var _heroActionAllowFlag = true;
static var bk2Y = 0;
static var bk2X = -120;
}
Symbol 1047 MovieClip [__Packages.Star] Frame 0
class Star
{
static var owner;
var x, y, level, mc;
function Star (tx, ty, l) {
x = tx;
y = ty;
level = l;
starCount = ++starCount;
mc = owner.attachMovie("star" + level, "star" + starCount, owner.getNextHighestDepth());
var _local2 = 20 + (level * 5);
mc._width = _local2;
mc._height = _local2;
mc._x = x;
mc._y = y;
}
function getScore() {
return(scoreArr[level]);
}
function remove() {
_global.sound.playSound("eatStar");
mc.onEnterFrame = function () {
this._alpha = this._alpha - 7;
this._y = this._y - 4;
this._width = this._width + 1;
this._height = this._height + 1;
if (this._alpha < 5) {
this.removeMovieClip();
}
};
}
static var scoreArr = [50, 100, 300, 800];
static var starCount = 0;
}
Symbol 1048 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
var center, verts, normal, isVisible, isActivated, dmc, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.worldContainer.getNextHighestDepth();
var _local3 = "_surface" + _local2;
dmc = org.cove.flade.DynamicsEngine.worldContainer.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
function onContact() {
}
}
Symbol 1049 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 1050 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, isVisible, dmc, onContact, faceNormal, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(30);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(3, 16711680, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.x, p1.y, p2.x, p2.y);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(faceNormal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local9 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local9 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local8 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local10 == 0) {
return(false);
}
var _local4 = Math.abs(_local9);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local8);
var _local5 = Math.abs(_local10);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local9, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local10);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local8);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 1051 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.4142136 * r);
var msp4r = (0.7071068 * r);
with (dmc) {
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
}
}
}
Symbol 1052 MovieClip [__Packages.MySecret] Frame 0
class MySecret
{
static var keyObj;
function MySecret () {
}
static function register(keyMap, func) {
keyObj = {};
keyObj.keyMap = keyMap.split("");
keyObj.index = 0;
keyObj.func = func;
keyObj.onKeyUp = function () {
if (this.keyMap[this.index] && (Key.getAscii() == this.keyMap[this.index].charCodeAt(0))) {
if (!this.keyMap[++this.index]) {
this.func(this.keyMap.join(""));
this.index = 0;
}
} else {
this.index = 0;
}
};
Key.addListener(keyObj);
}
static function unRegister() {
Key.removeListener(keyObj);
}
}
Symbol 1053 MovieClip [__Packages.Car] Frame 0
class Car
{
var _x, _y, _engine, _wheelA, _wheelB, _body, _deathHero, _leftCon, _rightCon, _centerCon, _vehicle, onCrash, _deathHeroMc, _bodyMc, _wheelAMc, _wheelBMc, _vehicleMc, _playerMc, _rocketMc;
function Car (posX, posY, engine) {
_x = posX;
_y = posY;
_engine = engine;
initCar();
}
function initCar() {
var _local3 = _x - (_width / 2);
var _local10 = _x + (_width / 2);
var _local2 = _y + _height;
var _local8 = _local2;
_wheelA = new org.cove.flade.primitives.Wheel(_local3, _local2, _wheelRadius);
_wheelB = new org.cove.flade.primitives.Wheel(_local10, _local8, _wheelRadius);
_body = new org.cove.flade.primitives.RectangleParticle(_x, _y, 5, 5);
_deathHero = new org.cove.flade.primitives.Wheel(_local3, _local2, _wheelRadius);
_leftCon = new org.cove.flade.constraints.SpringConstraint(_wheelA, _body);
_rightCon = new org.cove.flade.constraints.SpringConstraint(_wheelB, _body);
_centerCon = new org.cove.flade.constraints.SpringConstraint(_wheelA, _wheelB);
_vehicle = new org.cove.flade.composites.SpringBox(_x, _local2, _width, 5, _engine);
var _local4 = new org.cove.flade.constraints.SpringConstraint(_wheelA, _vehicle.p3);
_engine.addConstraint(_local4);
var _local6 = new org.cove.flade.constraints.SpringConstraint(_wheelB, _vehicle.p2);
_engine.addConstraint(_local6);
var _local7 = new org.cove.flade.constraints.SpringConstraint(_wheelA, _vehicle.p0);
_engine.addConstraint(_local7);
var _local9 = new org.cove.flade.constraints.SpringConstraint(_wheelB, _vehicle.p1);
_engine.addConstraint(_local9);
var _local5 = new org.cove.flade.constraints.AngularConstraint(_wheelA, _body, _wheelB);
_engine.addConstraint(_local5);
_body.onCollision = mx.utils.Delegate.create(this, onBodyCllision);
_leftCon.setStiffness(0.6);
_rightCon.setStiffness(0.6);
_centerCon.setStiffness(0.6);
}
function onBodyCllision() {
onCrash(this);
}
function setDeathSkins(deathID) {
_deathHeroMc.removeMovieClip();
var _local2 = org.cove.flade.DynamicsEngine.worldContainer;
_deathHeroMc = _local2.attachMovie(deathID, "deathHero", 1007, {_x:_deathHero.curr.x + 100, _y:_deathHero.curr.y, _rotation:calRotation(_deathHero.curr.y, _deathHero.curr.x)});
_deathHeroMc.cacheAsBitmap = true;
}
function setSkins(bodyID, wheelID, vihecleID, baseDepth) {
_bodyMc.removeMovieClip();
_wheelAMc.removeMovieClip();
_wheelBMc.removeMovieClip();
var _local2 = org.cove.flade.DynamicsEngine.worldContainer;
_vehicleMc = _local2.attachMovie(vihecleID, "Motor", baseDepth + 5, {_x:_vehicle.p1.curr.x, _y:_vehicle.p1.curr.y, _rotation:calRotation(_wheelB.curr.y - _wheelA.curr.y, _wheelB.curr.x - _wheelA.curr.x)});
_bodyMc = _local2.attachMovie(bodyID, "Boy", baseDepth + 5, {_x:_body.curr.x, _y:_body.curr.y, _rotation:calRotation(_wheelB.curr.y - _wheelA.curr.y, _wheelB.curr.x - _wheelA.curr.x)});
_wheelAMc = _local2.attachMovie(wheelID, "carWheelA", baseDepth + 3, {_x:_wheelA.curr.x, _y:_wheelB.curr.y});
_wheelBMc = _local2.attachMovie(wheelID, "carWheelB", baseDepth + 4, {_x:_wheelB.curr.x, _y:_wheelB.curr.y});
trace("_bodyMc = " + _bodyMc);
_vehicleMc.cacheAsBitmap = true;
_bodyMc.cacheAsBitmap = true;
_wheelAMc.cacheAsBitmap = true;
_wheelBMc.cacheAsBitmap = true;
_vehicleMc.cacheAsBitmap = true;
}
function createDeath() {
_engine.addPrimitive(_deathHero);
}
function create() {
_engine.addPrimitive(_wheelA);
_engine.addPrimitive(_wheelB);
_engine.addPrimitive(_body);
_engine.addPrimitive(_vehicle);
_engine.addConstraint(_leftCon);
_engine.addConstraint(_rightCon);
_engine.addConstraint(_centerCon);
}
function renderDeath() {
var _local2 = calRotation(_wheelA.rp.curr.y, _wheelA.rp.curr.x);
_deathHeroMc._x = _deathHero.curr.x;
_deathHeroMc._y = _deathHero.curr.y;
_deathHeroMc._rotation = _local2;
}
function render() {
var _local2 = _wheelA.rp.vs;
var _local3 = calRotation(_wheelB.curr.y - _wheelA.curr.y, _wheelB.curr.x - _wheelA.curr.x);
_wheelAMc._x = _wheelA.curr.x;
_wheelAMc._y = _wheelA.curr.y;
_wheelBMc._x = _wheelB.curr.x;
_wheelBMc._y = _wheelB.curr.y;
_bodyMc.bWheel._rotation = calRotation(_wheelA.rp.curr.y, _wheelA.rp.curr.x);
_bodyMc.fWheel._rotation = calRotation(_wheelB.rp.curr.y, _wheelB.rp.curr.x);
_bodyMc._x = (_playerMc._x = _body.curr.x);
_bodyMc._y = (_playerMc._y = _body.curr.y);
_bodyMc._rotation = calRotation(_wheelB.curr.y - _wheelA.curr.y, _wheelB.curr.x - _wheelA.curr.x);
_vehicleMc._x = _vehicle.p1.curr.x;
_vehicleMc._y = _vehicle.p1.curr.y;
_vehicleMc._rotation = calRotation(_wheelB.curr.y - _wheelA.curr.y, _wheelB.curr.x - _wheelA.curr.x);
}
function calRotation(dy, dx) {
return(Math.atan2(dy, dx) * 57.29578);
}
function calVeticalVector(dx, dy) {
var _local2 = new org.cove.flade.util.Vector(_wheelB.curr.x - _wheelA.curr.x, _wheelB.curr.y - _wheelA.curr.y);
var _local3 = Math.atan2(_local2.y, _local2.x) - 1.570796;
var _local4 = (_local2.x * _local2.x) + (_local2.y * _local2.y);
var _local5 = new org.cove.flade.util.Vector(_local4 * Math.cos(_local3), _local4 * Math.sin(_local3));
return(_local5.normalize());
}
function get speed() {
return(_wheelA.rp.vs);
}
function set speed(v) {
_wheelA.rp.vs = v;
_wheelB.rp.vs = v;
//return(speed);
}
function frontPull() {
var _local2 = calVeticalVector(_wheelB.curr.x - _wheelA.curr.x, _wheelB.curr.y - _wheelA.curr.y);
_wheelB.curr.plus(_local2.mult(2.2));
}
function backPull() {
var _local2 = calVeticalVector(_wheelB.curr.x - _wheelA.curr.x, _wheelB.curr.y - _wheelA.curr.y);
_wheelA.curr.plus(_local2.mult(2.2));
}
function get x() {
return(_body.curr.x);
}
function set x(val) {
var _local2 = val - _body.curr.x;
_body.curr.x = _body.curr.x + _local2;
_wheelA.curr.x = _wheelA.curr.x + _local2;
_wheelB.curr.x = _wheelB.curr.x + _local2;
render();
//return(x);
}
function addY(val) {
var _local2 = val;
_body.curr.y = _body.curr.y + _local2;
_wheelA.curr.y = _wheelA.curr.y + _local2;
_wheelB.curr.y = _wheelB.curr.y + _local2;
render();
}
function set y(val) {
var _local2 = val - _body.curr.y;
_body.curr.y = _body.curr.y + _local2;
_wheelA.curr.y = _wheelA.curr.y + _local2;
_wheelB.curr.y = _wheelB.curr.y + _local2;
render();
//return(y);
}
function get y() {
return(_body.curr.y);
}
function getRectangle() {
return(new flash.geom.Rectangle((_body.curr.x - (_width / 2)) - _wheelRadius, _body.curr.y, _width + (_wheelRadius * 2), _height + _wheelRadius));
}
function controlRocket(flag) {
if (flag && (!_rocketFlag)) {
_rocketMc.gotoAndPlay("fire");
_rocketFlag = true;
} else if ((!flag) && (_rocketFlag)) {
_rocketMc.gotoAndStop("empty");
_rocketFlag = false;
}
}
var _width = 80;
var _height = 30;
var _wheelRadius = 19;
var _rocketFlag = false;
}
Symbol 1054 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle
{
var init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible, dmc, onCollision;
function Particle (posX, posY) {
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
initializeContainer();
isVisible = true;
}
function get mc() {
return(dmc);
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.worldContainer.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.worldContainer.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + ((sysObj.coeffDamp * (curr.x - prev.x)) + sysObj.gravity.x);
curr.y = curr.y + ((sysObj.coeffDamp * (curr.y - prev.y)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local4 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local4);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local8 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local8.multNew(sysObj.coeffFric);
var _local5 = normal.multNew(_local3 * sysObj.coeffRest);
var _local6 = _local5.plusNew(_local4);
var _local7 = _local2.minusNew(_local6);
curr.plus(mtd);
prev = curr.minusNew(_local7);
onCollision(this);
}
function paint() {
}
function checkCollision(surface, sysObj) {
}
}
Symbol 1055 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var radius, contactRadius, extents, closestPoint, dmc, curr;
function CircleParticle (px, py, r) {
super(px, py);
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function paint() {
dmc.clear();
dmc.lineStyle(3, 16711680, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, curr.x, curr.y, radius);
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 1056 MovieClip [__Packages.org.cove.flade.primitives.Wheel] Frame 0
class org.cove.flade.primitives.Wheel extends org.cove.flade.primitives.CircleParticle
{
var rp, coeffSlip, isVisible, curr, dmc, radius, prev;
function Wheel (x, y, r) {
super(x, y, r);
rp = new org.cove.flade.primitives.RimParticle(r, 2);
coeffSlip = 0;
}
function verlet(sysObj) {
rp.verlet(sysObj);
super.verlet(sysObj);
}
function resolveCollision(normal, sysObj) {
super.resolveCollision(normal, sysObj);
resolve(normal);
}
function paint() {
if (isVisible) {
var _local3 = curr.x;
var _local2 = curr.y;
var _local5 = rp.curr.x;
var _local4 = rp.curr.y;
dmc.clear();
dmc.lineStyle(3, 16711680, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, _local3, _local2, radius);
dmc.lineStyle(3, 16711680, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local5 + _local3, _local4 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local5) + _local3, (-_local4) + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local4) + _local3, _local5 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local4 + _local3, (-_local5) + _local2, _local3, _local2);
}
}
function setTraction(t) {
coeffSlip = t;
}
function resolve(n) {
var _local3 = -rp.curr.y;
var _local2 = rp.curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
var _local10 = _local3 * rp.speed;
var _local8 = _local2 * rp.speed;
var _local11 = curr.x - prev.x;
var _local9 = curr.y - prev.y;
var _local13 = _local11 + _local10;
var _local12 = _local9 + _local8;
var _local6 = ((-n.y) * _local13) + (n.x * _local12);
rp.prev.x = rp.curr.x - (_local6 * _local3);
rp.prev.y = rp.curr.y - (_local6 * _local2);
var _local7 = 1 - coeffSlip;
curr.x = curr.x + ((_local7 * rp.speed) * (-n.y));
curr.y = curr.y + ((_local7 * rp.speed) * n.x);
rp.speed = rp.speed * coeffSlip;
}
}
Symbol 1057 MovieClip [__Packages.org.cove.flade.primitives.RimParticle] Frame 0
class org.cove.flade.primitives.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle (r, mt) {
curr = new org.cove.flade.util.Vector(r, 0);
prev = new org.cove.flade.util.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = mt;
wr = r;
}
function verlet(sysObj) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
var _local3 = -curr.y;
var _local2 = curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local2);
var _local7 = prev.x;
var _local10 = prev.y;
var _local9 = (prev.x = curr.x);
var _local8 = (prev.y = curr.y);
curr.x = curr.x + (sysObj.coeffDamp * (_local9 - _local7));
curr.y = curr.y + (sysObj.coeffDamp * (_local8 - _local10));
var _local6 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local5 = (_local6 - wr) / _local6;
curr.x = curr.x - (curr.x * _local5);
curr.y = curr.y - (curr.y * _local5);
}
}
Symbol 1058 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents, isVisible, dmc, curr;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(3, 16711680, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, curr.x, curr.y, width, height);
}
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 1059 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 1060 MovieClip [__Packages.org.cove.flade.constraints.SpringConstraint] Frame 0
class org.cove.flade.constraints.SpringConstraint implements org.cove.flade.constraints.Constraint
{
var p1, p2, restLength, stiffness, color, isVisible, dmc;
function SpringConstraint (p1, p2) {
this.p1 = p1;
this.p2 = p2;
restLength = p1.curr.distance(p2.curr);
stiffness = 0.5;
color = 10053171 /* 0x996633 */;
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.worldContainer.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.worldContainer.createEmptyMovieClip(_local3, _local2);
}
function resolve() {
var _local5 = p1.curr.minusNew(p2.curr);
var _local3 = p1.curr.distance(p2.curr);
var _local4 = (_local3 - restLength) / _local3;
var _local2 = _local5.mult(_local4 * stiffness);
p1.curr.minus(_local2);
p2.curr.plus(_local2);
}
function getRestLength() {
return(restLength);
}
function setRestLength(r) {
restLength = r;
}
function setStiffness(s) {
stiffness = s;
}
function setVisible(v) {
isVisible = v;
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(3, color, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
}
Symbol 1061 MovieClip [__Packages.org.cove.flade.composites.SpringBox] Frame 0
class org.cove.flade.composites.SpringBox
{
var p0, p1, p2, p3;
function SpringBox (px, py, w, h, engine) {
p0 = new org.cove.flade.primitives.RectangleParticle(px - (w / 2), py - (h / 2), 1, 1);
p1 = new org.cove.flade.primitives.RectangleParticle(px + (w / 2), py - (h / 2), 1, 1);
p2 = new org.cove.flade.primitives.RectangleParticle(px + (w / 2), py + (h / 2), 1, 1);
p3 = new org.cove.flade.primitives.RectangleParticle(px - (w / 2), py + (h / 2), 1, 1);
p0.setVisible(false);
p1.setVisible(false);
p2.setVisible(false);
p3.setVisible(false);
engine.addPrimitive(p0);
engine.addPrimitive(p1);
engine.addPrimitive(p2);
engine.addPrimitive(p3);
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p1));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p2, p3));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p3, p0));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p3));
}
}
Symbol 1062 MovieClip [__Packages.org.cove.flade.constraints.AngularConstraint] Frame 0
class org.cove.flade.constraints.AngularConstraint implements org.cove.flade.constraints.Constraint
{
var pA, pB, pC, lineA, lineB, pD, lineC, targetTheta, stiffness;
function AngularConstraint (p1, p2, p3) {
pA = p1.curr;
pB = p2.curr;
pC = p3.curr;
lineA = new org.cove.flade.util.Line(pA, pB);
lineB = new org.cove.flade.util.Line(pB, pC);
pD = new org.cove.flade.util.Vector(pB.x + 0, pB.y - 1);
lineC = new org.cove.flade.util.Line(pB, pD);
targetTheta = calcTheta(pA, pB, pC);
stiffness = 1;
}
function resolve() {
var _local9 = getCentroid();
lineC.p2.x = lineC.p1.x + 0;
lineC.p2.y = lineC.p1.y - 1;
var _local4 = pA.distance(pB);
var _local6 = pB.distance(pC);
var _local12 = calcTheta(pA, pB, pC);
var _local11 = calcTheta(pA, pB, pD);
var _local13 = calcTheta(pC, pB, pD);
var _local8 = (targetTheta - _local12) / 2;
var _local5 = _local11 + (_local8 * stiffness);
var _local10 = _local13 - (_local8 * stiffness);
pA.x = (_local4 * Math.sin(_local5)) + pB.x;
pA.y = (_local4 * Math.cos(_local5)) + pB.y;
pC.x = (_local6 * Math.sin(_local10)) + pB.x;
pC.y = (_local6 * Math.cos(_local10)) + pB.y;
var _local7 = getCentroid();
var _local2 = _local7.x - _local9.x;
var _local3 = _local7.y - _local9.y;
pA.x = pA.x - _local2;
pA.y = pA.y - _local3;
pB.x = pB.x - _local2;
pB.y = pB.y - _local3;
pC.x = pC.x - _local2;
pC.y = pC.y - _local3;
}
function paint() {
}
function setStiffness(s) {
stiffness = s;
}
function calcTheta(pa, pb, pc) {
var _local2 = new org.cove.flade.util.Vector(pb.x - pa.x, pb.y - pa.y);
var _local1 = new org.cove.flade.util.Vector(pc.x - pb.x, pc.y - pb.y);
var _local5 = _local2.dot(_local1);
var _local4 = _local2.cross(_local1);
return(Math.atan2(_local4, _local5));
}
function getCentroid() {
var _local2 = ((pA.x + pB.x) + pC.x) / 3;
var _local3 = ((pA.y + pB.y) + pC.y) / 3;
return(new org.cove.flade.util.Vector(_local2, _local3));
}
}
Symbol 1063 MovieClip [__Packages.org.cove.flade.util.Line] Frame 0
class org.cove.flade.util.Line
{
var p1, p2;
function Line (p1, p2) {
this.p1 = p1;
this.p2 = p2;
}
}
Symbol 1064 MovieClip [__Packages.Screen] Frame 0
class Screen
{
var _g, _owner, _lifeMc, _dynamicsBarMc, _countDownMc, _scoreHipMc, _scoreMc, _stageMc, _failedMc, _successedMc, _nextMc, _N2OMc, _roadmapMc;
function Screen (g, mc) {
_g = g;
_owner = mc;
_lifeMc = _owner.lifeMc;
_dynamicsBarMc = _owner.dynamicsBarMc;
_countDownMc = _owner.countDownMc;
_scoreHipMc = _owner.scoreHipMc;
_scoreMc = _owner.scoreMc;
_stageMc = _owner.stageMc;
_failedMc = _owner.failedMc;
_successedMc = _owner.successedMc;
_failedMc.stop();
_failedMc._visible = false;
_successedMc.stop();
_successedMc._visible = false;
_nextMc = _owner.nextMc;
_nextMc.stop();
_nextMc._visible = false;
_N2OMc = _owner.N2OMc;
_roadmapMc = _owner.roadmapMc;
_roadmapMc.gotoAndPlay(1);
_N2OMc.mask.width = _N2OMc.mask._width;
updateN2O();
updateLife();
updateScore();
updateStage();
updateCountDown();
updateDynamicsBar();
}
function updateDynamicsBar() {
_dynamicsBarMc.stop();
}
function updateCountDown() {
_countDownMc.value = _g.player.timeCount;
_root.timeValue = "00 : 00";
}
function updateN2O() {
_N2OMc.total = _g.player.N2O_total;
_N2OMc.mask._width = (_g.player.N2O_left / Player.N2O_FULL) * _N2OMc.mask.width;
}
function updateLife() {
_lifeMc.value = _g.player.life;
}
function updateStage() {
_stageMc.value = _g.stage.index + 1;
_root.levelValue = _root.stageIndex + 1;
}
function updateScore() {
trace("_root.levelScore = " + _root.levelScore);
}
function showRoadMap() {
var _local2 = 0;
while (_local2 < 8) {
var _local3 = _roadmapMc.map["s" + _local2];
if (_local2 < _g.stage.index) {
_local3.gotoAndStop("passed");
} else if (_local2 == _g.stage.index) {
_local3.gotoAndPlay("current");
} else {
_local3.gotoAndStop("unknow");
}
_local2++;
}
_roadmapMc.missionMc.value = _g.stage.index + 1;
_roadmapMc.play();
}
}
Symbol 1065 MovieClip [__Packages.Player] Frame 0
class Player
{
var life, timeCount, N2O_total, N2O_left;
function Player () {
life = 3;
_root.menlife = life;
timeCount = "00 : 00";
N2O_total = 8;
N2O_left = N2O_FULL;
}
function countTime() {
function timeCounter() {
var _local2 = Math.floor(_root.count % 100);
var _local4 = Math.floor((_root.count / 100) % 60);
var _local3 = Math.floor((_root.count / 6000) % 60);
if (_local2 < 10) {
_local2 = "0" + _local2;
}
if (_local4 < 10) {
_local4 = "0" + _local4;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
_root.timeValue = (((_local3 + " : ") + _local4) + " : ") + _local2;
if (_root.count >= maxCount) {
clearInterval(timeInterval);
}
if (Game._flag == true) {
clearInterval(timeInterval);
_root.count = 0;
}
if (Game._timeFlag == true) {
_root.count++;
}
}
var timeInterval;
var maxCount = 1000000000;
var _local5 = 10;
timeInterval = setInterval(timeCounter, _local5);
}
function costN2O(num) {
if (_root.SPM) {
return(true);
}
if ((N2O_total <= 0) && (N2O_left <= 0)) {
return(false);
}
var _local3 = (N2O_total * N2O_FULL) + N2O_left;
_local3 = _local3 - num;
if (_local3 < 0) {
_local3 = 0;
}
N2O_total = Math.floor(_local3 / N2O_FULL);
N2O_left = _local3 % N2O_FULL;
return(true);
}
function plusN2O(num) {
var _local2 = N2O_left + num;
N2O_total = N2O_total + Math.floor(_local2 / N2O_FULL);
N2O_left = _local2 % N2O_FULL;
}
static var totalScore = 0;
static var N2O_FULL = 50;
}
Symbol 1066 MovieClip [__Packages.fade.Fade] Frame 0
class fade.Fade
{
function Fade () {
}
static function start(_ob) {
var _local13 = false;
var _local8 = Stage.width;
var _local10 = Stage.height;
var _local12 = 0;
var _local11 = 0;
for (var _local6 in _ob) {
fade.Fade[_local6] = _ob[_local6];
}
var _local7 = new flash.display.BitmapData(_local8, _local10, false, nColor);
_local7.draw(_root);
var _local3 = _root.createEmptyMovieClip("mClip_root" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("mClip_mask", 0);
var _local9 = _local3.createEmptyMovieClip("mClip_bmp", 1);
_local9.attachBitmap(_local7, 0);
_local3.nT = nInterval;
_local13 && (disableBtn(_local3));
_local3.bmpRoot = _local7;
_local3.nTime = 0;
_local3.finish = function () {
this.bmpRoot.dispose();
this.removeMovieClip();
};
_local3.switchDepth = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth() - 1);
}
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 0, 0);
_local3.m_1 = createClip("m_", _local4, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 50 - fade.Fade.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
_local3.m_0 = createClip("m_", _local4, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - fade.Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._xscale = 150;
this.m_0._yscale = this.nTemp;
break;
case 1 :
this.m_0._xscale = this.nTemp;
this.m_0._yscale = 150;
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - fade.Fade.trigonometric(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = fade.Fade.trigonometric(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 2 :
_local3.nRdm = random(5);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - fade.Fade.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
case 3 :
_local3.nRdm = random(2);
_local3.m_0 = createClip("m_", _local4, 2, 0);
_local3.m_1 = createClip("m_", _local4, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.m_2 = createClip("m_", _local4, 2, 2, {_x:0, _y:10, _rotation:-90});
_local3.m_3 = createClip("m_", _local4, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
this.nTime++;
this.nTemp = 100 - fade.Fade.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
if (this.nTime == (this.nT / 2)) {
this.finish();
}
this.switchDepth();
};
break;
}
_local4._width = _local8;
_local4._height = _local10;
_local4._x = _local12;
_local4._y = _local11;
_local9.setMask(_local4);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local1 = 0;
var _local2 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local1 = P - _local2;
}
return(A * Math.sin(_local2 + _local1));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 20;
}
Symbol 1067 MovieClip [__Packages.JSON] Frame 0
class JSON
{
var text;
function JSON () {
}
function stringify(arg) {
var _local3;
var _local6;
var _local7;
var _local2 = "";
var _local4;
switch (typeof(arg)) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local6 = 0;
while (_local6 < arg.length) {
_local4 = stringify(arg[_local6]);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + _local4;
_local6++;
}
return(("[" + _local2) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local6 in arg) {
_local4 = arg[_local6];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = stringify(_local4);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + ((stringify(_local6) + ":") + _local4);
}
}
return(("{" + _local2) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local7 = arg.length;
_local2 = "\"";
_local6 = 0;
while (_local6 < _local7) {
_local3 = arg.charAt(_local6);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local2 = _local2 + "\\";
}
_local2 = _local2 + _local3;
} else {
switch (_local3) {
case "\b" :
_local2 = _local2 + "\\b";
break;
case "\f" :
_local2 = _local2 + "\\f";
break;
case newline :
_local2 = _local2 + "\\n";
break;
case "\r" :
_local2 = _local2 + "\\r";
break;
case "\t" :
_local2 = _local2 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local2 = _local2 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local6 = _local6 + 1;
}
return(_local2 + "\"");
case "boolean" :
return(String(arg));
}
return("null");
}
function white() {
if (ch) {
if (ch <= " ") {
next();
// unexpected jump
}
if (ch == "/") {
switch (next()) {
case "/" :
while ((next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
next();
if (ch) {
if (ch == "*") {
if (next() == "/") {
next();
}
} else {
next();
}
} else {
error("Unterminated comment");
}
break;
default :
error("Syntax error");
}
// unexpected jump
}
}
}
function error(m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
}
function next() {
ch = text.charAt(at);
at = at + 1;
return(ch);
}
function str() {
var _local3;
var _local2 = "";
var _local5;
var _local4;
var _local6 = false;
if (ch == "\"") {
while (next()) {
if (ch == "\"") {
next();
return(_local2);
}
if (ch == "\\") {
switch (next()) {
case "b" :
_local2 = _local2 + "\b";
break;
case "f" :
_local2 = _local2 + "\f";
break;
case "n" :
_local2 = _local2 + newline;
break;
case "r" :
_local2 = _local2 + "\r";
break;
case "t" :
_local2 = _local2 + "\t";
break;
case "u" :
_local4 = 0;
_local3 = 0;
while (_local3 < 4) {
_local5 = parseInt(next(), 16);
if (!isFinite(_local5)) {
_local6 = true;
break;
}
_local4 = (_local4 * 16) + _local5;
_local3 = _local3 + 1;
}
if (_local6) {
_local6 = false;
break;
}
_local2 = _local2 + String.fromCharCode(_local4);
break;
default :
_local2 = _local2 + ch;
}
continue;
}
_local2 = _local2 + ch;
}
}
error("Bad string");
}
function arr() {
var _local2 = [];
if (ch == "[") {
next();
white();
if (ch == "]") {
next();
return(_local2);
}
while (ch) {
_local2.push(value());
white();
if (ch == "]") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad array");
}
function obj() {
var _local3;
var _local2 = {};
if (ch == "{") {
next();
white();
if (ch == "}") {
next();
return(_local2);
}
while (ch) {
_local3 = str();
white();
if (ch != ":") {
break;
}
next();
_local2[_local3] = value();
white();
if (ch == "}") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad object");
}
function num() {
var _local2 = "";
var _local3;
if (ch == "-") {
_local2 = "-";
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
if (ch == ".") {
_local2 = _local2 + ".";
next();
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
if ((ch == "e") || (ch == "E")) {
_local2 = _local2 + ch;
next();
if ((ch == "-") || (ch == "+")) {
_local2 = _local2 + ch;
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
_local3 = Number(_local2);
if (!isFinite(_local3)) {
error("Bad number");
}
return(_local3);
}
function word() {
switch (ch) {
case "t" :
if (((next() == "r") && (next() == "u")) && (next() == "e")) {
next();
return(true);
}
break;
case "f" :
if ((((next() == "a") && (next() == "l")) && (next() == "s")) && (next() == "e")) {
next();
return(false);
}
break;
case "n" :
if (!(((next() == "u") && (next() == "l")) && (next() == "l"))) {
break;
}
next();
return(null);
}
error("Syntax error");
}
function value() {
white();
switch (ch) {
case "{" :
return(obj());
case "[" :
return(arr());
case "\"" :
return(str());
case "-" :
return(num());
}
return((((ch >= "0") && (ch <= "9")) ? (num()) : (word())));
}
function parse(_text) {
text = _text;
at = 0;
ch = " ";
return(value());
}
var ch = "";
var at = 0;
}
Symbol 1068 MovieClip [__Packages.StageData] Frame 0
class StageData
{
function StageData () {
}
static var stage0 = "{\"final\":{\"x\":23400,\"y\":20},\"mapData\":[{\"y\":290,\"x\":0},{\"y\":290,\"x\":617.15},{\"y\":186.5,\"x\":837.05},{\"y\":186.05,\"x\":890.7},{\"y\":222.4,\"x\":890.4},{\"y\":223,\"x\":961},{\"y\":286,\"x\":960},{\"y\":286,\"x\":1427},{\"y\":205,\"x\":1583},{\"y\":205,\"x\":1623},{\"y\":239,\"x\":1624},{\"y\":221,\"x\":1670},{\"y\":219,\"x\":1728},{\"y\":222,\"x\":1803},{\"y\":229,\"x\":1859},{\"y\":249,\"x\":1896},{\"y\":281,\"x\":1895},{\"y\":280,\"x\":2311},{\"y\":258,\"x\":2381},{\"y\":225,\"x\":2442},{\"y\":162,\"x\":2521},{\"y\":161,\"x\":2603},{\"y\":200,\"x\":2661},{\"y\":246,\"x\":2753},{\"y\":276,\"x\":2866},{\"y\":276,\"x\":3038},{\"y\":190,\"x\":3206},{\"y\":191,\"x\":3320},{\"y\":276,\"x\":3480},{\"y\":275,\"x\":3736},{\"y\":178,\"x\":3971},{\"y\":169,\"x\":4019},{\"y\":177,\"x\":4051},{\"y\":178,\"x\":4185},{\"y\":234,\"x\":4186},{\"y\":236,\"x\":4253},{\"y\":251,\"x\":4258},{\"y\":198,\"x\":4315},{\"y\":186,\"x\":4343},{\"y\":182,\"x\":4375},{\"y\":211,\"x\":4464},{\"y\":265,\"x\":4567},{\"y\":302,\"x\":4636},{\"y\":304,\"x\":4740},{\"y\":254,\"x\":4817},{\"y\":228,\"x\":4878},{\"y\":232,\"x\":4949},{\"y\":251,\"x\":4997},{\"y\":280,\"x\":5048},{\"y\":282,\"x\":5104},{\"y\":246,\"x\":5177},{\"y\":237,\"x\":5218},{\"y\":238,\"x\":5270},{\"y\":250,\"x\":5310},{\"y\":272,\"x\":5348},{\"y\":279,\"x\":5378},{\"y\":276,\"x\":5414},{\"y\":251,\"x\":5451},{\"y\":235,\"x\":5493},{\"y\":238,\"x\":5564},{\"y\":255,\"x\":5609},{\"y\":276,\"x\":5634},{\"y\":283,\"x\":5665},{\"y\":274,\"x\":5706},{\"y\":253,\"x\":5741},{\"y\":242,\"x\":5785},{\"y\":247,\"x\":5845},{\"y\":263,\"x\":5888},{\"y\":261,\"x\":5941},{\"y\":247,\"x\":6005},{\"y\":242,\"x\":6058},{\"y\":250,\"x\":6109},{\"y\":265,\"x\":6148},{\"y\":274,\"x\":6189},{\"y\":295,\"x\":6239},{\"y\":291,\"x\":6417},{\"y\":260,\"x\":6531},{\"y\":223,\"x\":6613},{\"y\":176,\"x\":6686},{\"y\":176,\"x\":6824},{\"y\":294,\"x\":6825},{\"y\":293,\"x\":8000}],\"scoreData\":[]}";
static var stage1 = "{\"scoreData\":[],\"mapData\":[{\"x\":0,\"y\":310},{\"x\":328.15,\"y\":309.6},{\"x\":362.05,\"y\":297.5},{\"x\":379.7,\"y\":278.05},{\"x\":391.4,\"y\":256.4},{\"x\":460,\"y\":257},{\"x\":461,\"y\":321},{\"x\":645,\"y\":320},{\"x\":925,\"y\":203},{\"x\":1207,\"y\":321},{\"x\":1514,\"y\":321},{\"x\":1531,\"y\":304},{\"x\":1555,\"y\":303},{\"x\":1569,\"y\":286},{\"x\":1601,\"y\":279},{\"x\":1621,\"y\":264},{\"x\":1649,\"y\":258},{\"x\":1694,\"y\":241},{\"x\":1738,\"y\":257},{\"x\":1733,\"y\":313},{\"x\":1989,\"y\":312},{\"x\":2119,\"y\":281},{\"x\":2187,\"y\":252},{\"x\":2234,\"y\":223},{\"x\":2267,\"y\":194},{\"x\":2290,\"y\":166},{\"x\":2308,\"y\":136},{\"x\":2400,\"y\":134},{\"x\":2406,\"y\":319},{\"x\":2656,\"y\":315},{\"x\":2684,\"y\":315},{\"x\":2709,\"y\":314},{\"x\":2749,\"y\":312},{\"x\":3122,\"y\":306},{\"x\":3363,\"y\":166},{\"x\":3376,\"y\":307},{\"x\":3858,\"y\":308},{\"x\":3872,\"y\":277},{\"x\":3895,\"y\":252},{\"x\":3938,\"y\":250},{\"x\":3976,\"y\":266},{\"x\":4004,\"y\":249},{\"x\":4036,\"y\":247},{\"x\":4073,\"y\":264},{\"x\":4097,\"y\":247},{\"x\":4139,\"y\":247},{\"x\":4177,\"y\":271},{\"x\":4195,\"y\":310},{\"x\":4379,\"y\":305},{\"x\":4455,\"y\":264},{\"x\":4530,\"y\":307},{\"x\":4639,\"y\":239},{\"x\":4759,\"y\":312},{\"x\":4784,\"y\":312},{\"x\":4817,\"y\":311},{\"x\":4854,\"y\":311},{\"x\":4882,\"y\":310},{\"x\":5003,\"y\":309},{\"x\":5201,\"y\":187},{\"x\":5222,\"y\":311},{\"x\":5722,\"y\":304},{\"x\":5742,\"y\":262},{\"x\":5779,\"y\":249},{\"x\":5831,\"y\":263},{\"x\":5868,\"y\":254},{\"x\":5905,\"y\":254},{\"x\":5931,\"y\":265},{\"x\":5978,\"y\":249},{\"x\":6034,\"y\":266},{\"x\":6066,\"y\":248},{\"x\":6105,\"y\":249},{\"x\":6133,\"y\":269},{\"x\":6164,\"y\":250},{\"x\":6203,\"y\":250},{\"x\":6234,\"y\":265},{\"x\":6260,\"y\":251},{\"x\":6289,\"y\":248},{\"x\":6325,\"y\":264},{\"x\":6349,\"y\":302},{\"x\":6422,\"y\":299},{\"x\":6683,\"y\":191},{\"x\":6949,\"y\":301}],\"final\":{\"y\":20,\"x\":23400}}";
static var stage2 = "{\"scoreData\":[],\"mapData\":[{\"x\":0,\"y\":280},{\"x\":467.15,\"y\":278.6},{\"x\":489.05,\"y\":285.5},{\"x\":653.7,\"y\":259.05},{\"x\":654.4,\"y\":259.4},{\"x\":706,\"y\":221},{\"x\":778,\"y\":208},{\"x\":848,\"y\":258},{\"x\":921,\"y\":296},{\"x\":1026,\"y\":295},{\"x\":1094,\"y\":253},{\"x\":1137,\"y\":197},{\"x\":1303,\"y\":186},{\"x\":1303,\"y\":185},{\"x\":1304,\"y\":185},{\"x\":1391,\"y\":211},{\"x\":1542,\"y\":275},{\"x\":1715,\"y\":296},{\"x\":1786,\"y\":273},{\"x\":1949,\"y\":277},{\"x\":1964,\"y\":252},{\"x\":2006,\"y\":252},{\"x\":2029,\"y\":203},{\"x\":2346,\"y\":202},{\"x\":2360,\"y\":185},{\"x\":2439,\"y\":194},{\"x\":2846,\"y\":197},{\"x\":2868,\"y\":207},{\"x\":2905,\"y\":175},{\"x\":2946,\"y\":100},{\"x\":3081,\"y\":106},{\"x\":3083,\"y\":106},{\"x\":3182,\"y\":115},{\"x\":3260,\"y\":149},{\"x\":3337,\"y\":213},{\"x\":3537,\"y\":244},{\"x\":3538,\"y\":244},{\"x\":3561,\"y\":195},{\"x\":3604,\"y\":170},{\"x\":3621,\"y\":134},{\"x\":3675,\"y\":122},{\"x\":3756,\"y\":147},{\"x\":3803,\"y\":195},{\"x\":3953,\"y\":197},{\"x\":4036,\"y\":235},{\"x\":4186,\"y\":275},{\"x\":4263,\"y\":266},{\"x\":4326,\"y\":219},{\"x\":4393,\"y\":220},{\"x\":4476,\"y\":289},{\"x\":4569,\"y\":288},{\"x\":4597,\"y\":247},{\"x\":4636,\"y\":238},{\"x\":4770,\"y\":172},{\"x\":4788,\"y\":180},{\"x\":4823,\"y\":114},{\"x\":4889,\"y\":98},{\"x\":4971,\"y\":57},{\"x\":5044,\"y\":-6},{\"x\":5077,\"y\":3},{\"x\":5792,\"y\":271},{\"x\":5887,\"y\":264},{\"x\":5952,\"y\":288},{\"x\":6068,\"y\":273},{\"x\":6152,\"y\":228},{\"x\":6237,\"y\":250},{\"x\":6335,\"y\":242},{\"x\":6407,\"y\":253},{\"x\":6471,\"y\":245},{\"x\":6542,\"y\":266},{\"x\":6690,\"y\":283},{\"x\":6913,\"y\":272},{\"x\":7000,\"y\":207},{\"x\":7119,\"y\":130},{\"x\":7251,\"y\":153},{\"x\":7405,\"y\":141},{\"x\":7463,\"y\":190},{\"x\":7537,\"y\":203},{\"x\":7577,\"y\":228},{\"x\":7666,\"y\":258},{\"x\":7738,\"y\":279},{\"x\":8000,\"y\":279}],\"final\":{\"y\":20,\"x\":23400}}";
static var stage3 = "{\"final\":{\"x\":23400,\"y\":20},\"mapData\":[{\"y\":238,\"x\":0},{\"y\":228.6,\"x\":1018.15},{\"y\":200.5,\"x\":1129.45},{\"y\":150,\"x\":1199.8},{\"y\":128.4,\"x\":1249.2},{\"y\":94.65,\"x\":1293.9},{\"y\":231.45,\"x\":1647.65},{\"y\":239,\"x\":1941.05},{\"y\":152.9,\"x\":2090},{\"y\":214.95,\"x\":2121.9},{\"y\":213.75,\"x\":2170.4},{\"y\":184.25,\"x\":2189.4},{\"y\":242.15,\"x\":2225},{\"y\":247,\"x\":2888.9},{\"y\":213.85,\"x\":2888.8},{\"y\":215,\"x\":3014.95},{\"y\":186.95,\"x\":3015.6},{\"y\":185.95,\"x\":3053.9},{\"y\":161.45,\"x\":3054.1},{\"y\":161.6,\"x\":3101},{\"y\":187.35,\"x\":3101.1},{\"y\":188.6,\"x\":3142.05},{\"y\":213.45,\"x\":3143.05},{\"y\":222.95,\"x\":3171.35},{\"y\":245.6,\"x\":3173.25},{\"y\":241.55,\"x\":3554.4},{\"y\":215.35,\"x\":3556.45},{\"y\":213.9,\"x\":3587.9},{\"y\":194.15,\"x\":3588.4},{\"y\":191.8,\"x\":3619.45},{\"y\":166.75,\"x\":3619.7},{\"y\":168.3,\"x\":3682.6},{\"y\":217.2,\"x\":3798.55},{\"y\":245.5,\"x\":3801.15},{\"y\":247.1,\"x\":4284.25},{\"y\":221.95,\"x\":4307.7},{\"y\":208.8,\"x\":4334.95},{\"y\":184.55,\"x\":4375.2},{\"y\":180.15,\"x\":4433.5},{\"y\":249.7,\"x\":4438.85},{\"y\":247.15,\"x\":4727},{\"y\":223.6,\"x\":4735.3},{\"y\":221.9,\"x\":4787.4},{\"y\":206.8,\"x\":4804.05},{\"y\":207.7,\"x\":4899.65},{\"y\":220.9,\"x\":4916.75},{\"y\":222.5,\"x\":4937},{\"y\":240.65,\"x\":4935.9},{\"y\":229.25,\"x\":5381.95},{\"y\":197.95,\"x\":5471.7},{\"y\":148.3,\"x\":5531.2},{\"y\":127.25,\"x\":5578.85},{\"y\":94,\"x\":5627.45},{\"y\":97.3,\"x\":5755.95},{\"y\":178.5,\"x\":5759.25},{\"y\":148.25,\"x\":5790.55},{\"y\":148.1,\"x\":5861.5},{\"y\":183.3,\"x\":5862.25},{\"y\":182.9,\"x\":5920.15},{\"y\":235.9,\"x\":5921.15},{\"y\":242.8,\"x\":6423.25},{\"y\":224.35,\"x\":6424.3},{\"y\":222.3,\"x\":6453.4},{\"y\":197.9,\"x\":6453.2},{\"y\":197.3,\"x\":6491.3},{\"y\":174.65,\"x\":6490.4},{\"y\":173.7,\"x\":6547.25},{\"y\":223.85,\"x\":6668.95},{\"y\":244.35,\"x\":6668.4},{\"y\":248.15,\"x\":7229.35},{\"y\":219.25,\"x\":7229},{\"y\":220.1,\"x\":7352.25},{\"y\":195.7,\"x\":7353},{\"y\":193.8,\"x\":7392.45},{\"y\":161.85,\"x\":7391.7},{\"y\":162.15,\"x\":7448.1},{\"y\":190,\"x\":7447.85},{\"y\":190.75,\"x\":7483.9},{\"y\":221.8,\"x\":7484.85},{\"y\":223,\"x\":7514.15},{\"y\":248.5,\"x\":7514.3},{\"y\":246.8,\"x\":8156.55}],\"scoreData\":[]}";
static var stage4 = "{\"final\":{\"x\":23400,\"y\":20},\"mapData\":[{\"y\":225,\"x\":2},{\"y\":222.6,\"x\":1042.15},{\"y\":206.5,\"x\":1082.05},{\"y\":168.05,\"x\":1110.7},{\"y\":165.4,\"x\":1144.4},{\"y\":139,\"x\":1145},{\"y\":140,\"x\":1212},{\"y\":187,\"x\":1255},{\"y\":220,\"x\":1308},{\"y\":223,\"x\":1678},{\"y\":177,\"x\":1769},{\"y\":178,\"x\":1834},{\"y\":200,\"x\":1833},{\"y\":200,\"x\":1873},{\"y\":227,\"x\":1874},{\"y\":225,\"x\":2526},{\"y\":170,\"x\":2559},{\"y\":170,\"x\":2602},{\"y\":218,\"x\":2631},{\"y\":217,\"x\":2647},{\"y\":169,\"x\":2677},{\"y\":169,\"x\":2717},{\"y\":220,\"x\":2743},{\"y\":220,\"x\":2764},{\"y\":169,\"x\":2793},{\"y\":169,\"x\":2836},{\"y\":219,\"x\":2860},{\"y\":219,\"x\":2881},{\"y\":168,\"x\":2910},{\"y\":171,\"x\":2952},{\"y\":225,\"x\":2984},{\"y\":222,\"x\":3321},{\"y\":178,\"x\":3424},{\"y\":172,\"x\":3531},{\"y\":118,\"x\":3629},{\"y\":135,\"x\":3658},{\"y\":224,\"x\":3659},{\"y\":227,\"x\":4550},{\"y\":181,\"x\":4657},{\"y\":178,\"x\":4681},{\"y\":205,\"x\":4712},{\"y\":221,\"x\":4745},{\"y\":183,\"x\":4841},{\"y\":182,\"x\":4859},{\"y\":109,\"x\":4929},{\"y\":85,\"x\":4939},{\"y\":85,\"x\":4983},{\"y\":131,\"x\":4991},{\"y\":131,\"x\":5031},{\"y\":178,\"x\":5037},{\"y\":177,\"x\":5080},{\"y\":229,\"x\":5082},{\"y\":226,\"x\":5652},{\"y\":169,\"x\":5746},{\"y\":196,\"x\":5804},{\"y\":168,\"x\":5858},{\"y\":218,\"x\":5940},{\"y\":217,\"x\":5958},{\"y\":195,\"x\":5964},{\"y\":182,\"x\":5988},{\"y\":196,\"x\":6015},{\"y\":220,\"x\":6024},{\"y\":223,\"x\":6497},{\"y\":184,\"x\":6586},{\"y\":183,\"x\":6610},{\"y\":111,\"x\":6680},{\"y\":83,\"x\":6687},{\"y\":83,\"x\":6734},{\"y\":130,\"x\":6741},{\"y\":132,\"x\":6785},{\"y\":176,\"x\":6788},{\"y\":176,\"x\":6830},{\"y\":226,\"x\":6832},{\"y\":225,\"x\":7363},{\"y\":178,\"x\":7455},{\"y\":177,\"x\":7527},{\"y\":194,\"x\":7528},{\"y\":194,\"x\":7569},{\"y\":227,\"x\":7568},{\"y\":228,\"x\":7650},{\"y\":228,\"x\":7818},{\"y\":225,\"x\":7967}],\"scoreData\":[]}";
static var stage5 = "{\"final\":{\"x\":23400,\"y\":20},\"mapData\":[{\"y\":207,\"x\":2},{\"y\":208.6,\"x\":931.15},{\"y\":176.5,\"x\":959.05},{\"y\":167.05,\"x\":992.7},{\"y\":166.4,\"x\":1017.4},{\"y\":129,\"x\":1032},{\"y\":113,\"x\":1083},{\"y\":111,\"x\":1244},{\"y\":85,\"x\":1350},{\"y\":86,\"x\":1423},{\"y\":65,\"x\":1531},{\"y\":66,\"x\":1643},{\"y\":134,\"x\":1644},{\"y\":134,\"x\":1773},{\"y\":199,\"x\":1771},{\"y\":200,\"x\":1908},{\"y\":185,\"x\":1922},{\"y\":184,\"x\":1959},{\"y\":164,\"x\":1978},{\"y\":162,\"x\":2021},{\"y\":153,\"x\":2075},{\"y\":125,\"x\":2103},{\"y\":147,\"x\":2180},{\"y\":203,\"x\":2192},{\"y\":203,\"x\":2521},{\"y\":172,\"x\":2650},{\"y\":143,\"x\":2674},{\"y\":146,\"x\":2736},{\"y\":75,\"x\":2857},{\"y\":113,\"x\":2941},{\"y\":68,\"x\":3030},{\"y\":204,\"x\":3033},{\"y\":204,\"x\":3385},{\"y\":184,\"x\":3396},{\"y\":183,\"x\":3469},{\"y\":157,\"x\":3480},{\"y\":156,\"x\":3528},{\"y\":132,\"x\":3533},{\"y\":132,\"x\":3593},{\"y\":206,\"x\":3647},{\"y\":207,\"x\":4031},{\"y\":173,\"x\":4173},{\"y\":145,\"x\":4186},{\"y\":145,\"x\":4255},{\"y\":74,\"x\":4376},{\"y\":115,\"x\":4459},{\"y\":76,\"x\":4542},{\"y\":128,\"x\":4641},{\"y\":127,\"x\":4717},{\"y\":66,\"x\":4806},{\"y\":65,\"x\":4936},{\"y\":112,\"x\":4937},{\"y\":113,\"x\":5124},{\"y\":163,\"x\":5124},{\"y\":165,\"x\":5208},{\"y\":199,\"x\":5215},{\"y\":205,\"x\":5859},{\"y\":181,\"x\":5862},{\"y\":180,\"x\":5924},{\"y\":155,\"x\":5925},{\"y\":153,\"x\":5971},{\"y\":112,\"x\":5985},{\"y\":113,\"x\":6099},{\"y\":200,\"x\":6100},{\"y\":200,\"x\":6235},{\"y\":177,\"x\":6245},{\"y\":177,\"x\":6302},{\"y\":155,\"x\":6310},{\"y\":153,\"x\":6346},{\"y\":115,\"x\":6360},{\"y\":115,\"x\":6475},{\"y\":190,\"x\":6478},{\"y\":152,\"x\":6559},{\"y\":117,\"x\":6588},{\"y\":118,\"x\":6660},{\"y\":198,\"x\":6873},{\"y\":196,\"x\":7197},{\"y\":118,\"x\":7342},{\"y\":157,\"x\":7427},{\"y\":120,\"x\":7511},{\"y\":202,\"x\":7652},{\"y\":204,\"x\":7998}],\"scoreData\":[]}";
static var stage6 = "{\"scoreData\":[],\"mapData\":[{\"x\":0,\"y\":251},{\"x\":386.15,\"y\":251.6},{\"x\":468.05,\"y\":198.5},{\"x\":490.7,\"y\":246.05},{\"x\":746.4,\"y\":246.4},{\"x\":947,\"y\":128},{\"x\":949,\"y\":174},{\"x\":1044,\"y\":179},{\"x\":1044,\"y\":228},{\"x\":1107,\"y\":178},{\"x\":1164,\"y\":178},{\"x\":1163,\"y\":247},{\"x\":1290,\"y\":245},{\"x\":1394,\"y\":193},{\"x\":1414,\"y\":209},{\"x\":1469,\"y\":169},{\"x\":1509,\"y\":171},{\"x\":1605,\"y\":247},{\"x\":1947,\"y\":244},{\"x\":2059,\"y\":188},{\"x\":2151,\"y\":186},{\"x\":2225,\"y\":233},{\"x\":2247,\"y\":233},{\"x\":2254,\"y\":197},{\"x\":2308,\"y\":195},{\"x\":2327,\"y\":162},{\"x\":2371,\"y\":149},{\"x\":2416,\"y\":163},{\"x\":2415,\"y\":244},{\"x\":2798,\"y\":244},{\"x\":2802,\"y\":203},{\"x\":2908,\"y\":203},{\"x\":2922,\"y\":244},{\"x\":3067,\"y\":243},{\"x\":3122,\"y\":172},{\"x\":3166,\"y\":173},{\"x\":3198,\"y\":225},{\"x\":3215,\"y\":224},{\"x\":3249,\"y\":172},{\"x\":3290,\"y\":171},{\"x\":3322,\"y\":222},{\"x\":3340,\"y\":222},{\"x\":3371,\"y\":174},{\"x\":3414,\"y\":173},{\"x\":3445,\"y\":218},{\"x\":3487,\"y\":246},{\"x\":3815,\"y\":247},{\"x\":3834,\"y\":221},{\"x\":3949,\"y\":218},{\"x\":3954,\"y\":198},{\"x\":4008,\"y\":196},{\"x\":4025,\"y\":183},{\"x\":4065,\"y\":186},{\"x\":4074,\"y\":199},{\"x\":4083,\"y\":202},{\"x\":4083,\"y\":244},{\"x\":4383,\"y\":245},{\"x\":4523,\"y\":246},{\"x\":4619,\"y\":245},{\"x\":4724,\"y\":248},{\"x\":4724,\"y\":232},{\"x\":4874,\"y\":143},{\"x\":4904,\"y\":142},{\"x\":4904,\"y\":98},{\"x\":4974,\"y\":98},{\"x\":4976,\"y\":141},{\"x\":5050,\"y\":139},{\"x\":5050,\"y\":254},{\"x\":6239,\"y\":252},{\"x\":6318,\"y\":197},{\"x\":6343,\"y\":250},{\"x\":6585,\"y\":245},{\"x\":6691,\"y\":191},{\"x\":6787,\"y\":190},{\"x\":6790,\"y\":223},{\"x\":6842,\"y\":222},{\"x\":6842,\"y\":184},{\"x\":6901,\"y\":185},{\"x\":6916,\"y\":137},{\"x\":7095,\"y\":139},{\"x\":7095,\"y\":253},{\"x\":7906,\"y\":251}],\"final\":{\"y\":20,\"x\":23400}}";
static var stage7 = "{\"scoreData\":[],\"mapData\":[{\"x\":0,\"y\":270},{\"x\":1302.15,\"y\":272.6},{\"x\":1361.05,\"y\":216.5},{\"x\":1493.7,\"y\":171.05},{\"x\":1612.4,\"y\":273.4},{\"x\":1928,\"y\":273},{\"x\":1996,\"y\":253},{\"x\":2063,\"y\":215},{\"x\":2112,\"y\":171},{\"x\":2153,\"y\":120},{\"x\":2175,\"y\":133},{\"x\":2176,\"y\":186},{\"x\":2239,\"y\":188},{\"x\":2242,\"y\":268},{\"x\":2887,\"y\":262},{\"x\":3038,\"y\":190},{\"x\":3042,\"y\":169},{\"x\":3071,\"y\":166},{\"x\":3090,\"y\":121},{\"x\":3102,\"y\":120},{\"x\":3125,\"y\":170},{\"x\":3126,\"y\":212},{\"x\":3342,\"y\":214},{\"x\":3346,\"y\":259},{\"x\":3590,\"y\":260},{\"x\":3626,\"y\":235},{\"x\":3637,\"y\":244},{\"x\":3657,\"y\":201},{\"x\":3667,\"y\":200},{\"x\":3688,\"y\":260},{\"x\":3972,\"y\":265},{\"x\":4093,\"y\":182},{\"x\":4311,\"y\":186},{\"x\":4407,\"y\":121},{\"x\":4422,\"y\":141},{\"x\":4406,\"y\":157},{\"x\":4408,\"y\":210},{\"x\":4520,\"y\":212},{\"x\":4626,\"y\":141},{\"x\":4643,\"y\":164},{\"x\":4623,\"y\":183},{\"x\":4623,\"y\":222},{\"x\":4747,\"y\":222},{\"x\":4850,\"y\":152},{\"x\":4863,\"y\":177},{\"x\":4844,\"y\":194},{\"x\":4844,\"y\":247},{\"x\":4967,\"y\":248},{\"x\":5056,\"y\":184},{\"x\":5070,\"y\":211},{\"x\":5054,\"y\":225},{\"x\":5055,\"y\":263},{\"x\":5701,\"y\":263},{\"x\":5702,\"y\":238},{\"x\":5892,\"y\":241},{\"x\":5978,\"y\":181},{\"x\":5987,\"y\":194},{\"x\":6076,\"y\":124},{\"x\":6087,\"y\":156},{\"x\":6073,\"y\":170},{\"x\":6075,\"y\":265},{\"x\":6790,\"y\":260},{\"x\":6927,\"y\":188},{\"x\":6938,\"y\":165},{\"x\":6968,\"y\":162},{\"x\":6982,\"y\":122},{\"x\":6996,\"y\":121},{\"x\":7018,\"y\":171},{\"x\":7018,\"y\":212},{\"x\":7231,\"y\":213},{\"x\":7233,\"y\":264},{\"x\":7652,\"y\":267},{\"x\":7702,\"y\":251},{\"x\":7743,\"y\":229},{\"x\":7769,\"y\":210},{\"x\":7808,\"y\":177},{\"x\":7840,\"y\":139},{\"x\":7857,\"y\":116},{\"x\":7877,\"y\":132},{\"x\":7874,\"y\":271},{\"x\":7935,\"y\":271},{\"x\":8038,\"y\":271}],\"final\":{\"y\":20,\"x\":23400}}";
static var stage8 = "{\"final\":{\"x\":23600,\"y\":20},\"mapData\":[{\"y\":275,\"x\":0},{\"y\":275,\"x\":556},{\"y\":249,\"x\":589},{\"y\":249,\"x\":624},{\"y\":226,\"x\":624},{\"y\":226,\"x\":859},{\"y\":92,\"x\":1051},{\"y\":39,\"x\":1109},{\"y\":7,\"x\":1166},{\"y\":7,\"x\":1221},{\"y\":171,\"x\":1371},{\"y\":214,\"x\":1431},{\"y\":244,\"x\":1464},{\"y\":244,\"x\":1735},{\"y\":257,\"x\":1807},{\"y\":269,\"x\":2000},{\"y\":246,\"x\":2012},{\"y\":246,\"x\":2115},{\"y\":81,\"x\":2408},{\"y\":81,\"x\":2428},{\"y\":151,\"x\":2342},{\"y\":151,\"x\":2464},{\"y\":132,\"x\":2476},{\"y\":171,\"x\":2581},{\"y\":135,\"x\":2649},{\"y\":135,\"x\":2725},{\"y\":128,\"x\":2781},{\"y\":140,\"x\":2895},{\"y\":132,\"x\":2943},{\"y\":136,\"x\":3122},{\"y\":145,\"x\":3179},{\"y\":160,\"x\":3234},{\"y\":174,\"x\":3274},{\"y\":223,\"x\":3352},{\"y\":246,\"x\":3402},{\"y\":263,\"x\":3469},{\"y\":263,\"x\":3658},{\"y\":245,\"x\":3723},{\"y\":213,\"x\":3790},{\"y\":169,\"x\":3838},{\"y\":135,\"x\":3944},{\"y\":139,\"x\":4000},{\"y\":167,\"x\":4141},{\"y\":201,\"x\":4228},{\"y\":233,\"x\":4281},{\"y\":286,\"x\":4339},{\"y\":296,\"x\":4391},{\"y\":296,\"x\":4460},{\"y\":278,\"x\":4522},{\"y\":211,\"x\":4573},{\"y\":169,\"x\":4622},{\"y\":142,\"x\":4668},{\"y\":118,\"x\":4715},{\"y\":109,\"x\":4771},{\"y\":109,\"x\":4837},{\"y\":127,\"x\":4909},{\"y\":168,\"x\":5019},{\"y\":219,\"x\":5108},{\"y\":250,\"x\":5151},{\"y\":268,\"x\":5200},{\"y\":279,\"x\":5255},{\"y\":286,\"x\":5297},{\"y\":289,\"x\":5336},{\"y\":93,\"x\":5686},{\"y\":105,\"x\":5694},{\"y\":170,\"x\":5689},{\"y\":242,\"x\":5825},{\"y\":269,\"x\":5918},{\"y\":287,\"x\":6000},{\"y\":287,\"x\":6027},{\"y\":192,\"x\":6262},{\"y\":246,\"x\":6337},{\"y\":307,\"x\":6453},{\"y\":331,\"x\":6642},{\"y\":331,\"x\":6964},{\"y\":315,\"x\":7435},{\"y\":249,\"x\":7557},{\"y\":200,\"x\":7590},{\"y\":148,\"x\":7610},{\"y\":110,\"x\":7620},{\"y\":92,\"x\":7625},{\"y\":92,\"x\":7642},{\"y\":120,\"x\":7672},{\"y\":162,\"x\":7704},{\"y\":193,\"x\":7725},{\"y\":234,\"x\":7775},{\"y\":269,\"x\":7855},{\"y\":284,\"x\":7920},{\"y\":284,\"x\":8000}],\"scoreData\":[]}";
static var stage9 = "{\"final\":{\"x\":23800,\"y\":20},\"mapData\":[{\"y\":240,\"x\":0},{\"y\":297,\"x\":102},{\"y\":297,\"x\":564},{\"y\":304,\"x\":604},{\"y\":290,\"x\":671},{\"y\":263,\"x\":703},{\"y\":233,\"x\":720},{\"y\":193,\"x\":737},{\"y\":176,\"x\":751},{\"y\":175,\"x\":811},{\"y\":191,\"x\":846},{\"y\":289,\"x\":934},{\"y\":314,\"x\":971},{\"y\":329,\"x\":1008},{\"y\":338,\"x\":1049},{\"y\":338,\"x\":1093},{\"y\":309,\"x\":1141},{\"y\":236,\"x\":1182},{\"y\":228,\"x\":1194},{\"y\":228,\"x\":1211},{\"y\":273,\"x\":1269},{\"y\":291,\"x\":1304},{\"y\":304,\"x\":1338},{\"y\":314,\"x\":1377},{\"y\":314,\"x\":1421},{\"y\":301,\"x\":1446},{\"y\":281,\"x\":1470},{\"y\":230,\"x\":1509},{\"y\":221,\"x\":1535},{\"y\":230,\"x\":1633},{\"y\":240,\"x\":1662},{\"y\":324,\"x\":1821},{\"y\":317,\"x\":1913},{\"y\":255,\"x\":1991},{\"y\":255,\"x\":2000},{\"y\":255,\"x\":2024},{\"y\":250,\"x\":2086},{\"y\":238,\"x\":2188},{\"y\":229,\"x\":2231},{\"y\":216,\"x\":2265},{\"y\":200,\"x\":2295},{\"y\":182,\"x\":2318},{\"y\":159,\"x\":2338},{\"y\":140,\"x\":2345},{\"y\":125,\"x\":2355},{\"y\":125,\"x\":2369},{\"y\":215,\"x\":2444},{\"y\":246,\"x\":2541},{\"y\":246,\"x\":2927},{\"y\":228,\"x\":3066},{\"y\":187,\"x\":3156},{\"y\":136,\"x\":3241},{\"y\":100,\"x\":3295},{\"y\":76,\"x\":3342},{\"y\":47,\"x\":3406},{\"y\":47,\"x\":3521},{\"y\":65,\"x\":3550},{\"y\":96,\"x\":3573},{\"y\":122,\"x\":3595},{\"y\":136,\"x\":3618},{\"y\":139,\"x\":3632},{\"y\":139,\"x\":3662},{\"y\":130,\"x\":3677},{\"y\":118,\"x\":3693},{\"y\":110,\"x\":3706},{\"y\":130,\"x\":3720},{\"y\":155,\"x\":3734},{\"y\":175,\"x\":3751},{\"y\":198,\"x\":3777},{\"y\":221,\"x\":3814},{\"y\":245,\"x\":3866},{\"y\":249,\"x\":3894},{\"y\":249,\"x\":4000},{\"y\":254,\"x\":4094},{\"y\":254,\"x\":4238},{\"y\":295,\"x\":4478},{\"y\":295,\"x\":4615},{\"y\":283,\"x\":4690},{\"y\":257,\"x\":4763},{\"y\":233,\"x\":4781},{\"y\":203,\"x\":4807},{\"y\":172,\"x\":4819},{\"y\":132,\"x\":4831},{\"y\":132,\"x\":4845},{\"y\":143,\"x\":4865},{\"y\":219,\"x\":4923},{\"y\":237,\"x\":4948},{\"y\":255,\"x\":4991},{\"y\":255,\"x\":5046},{\"y\":231,\"x\":5181},{\"y\":231,\"x\":5284},{\"y\":205,\"x\":5376},{\"y\":172,\"x\":5431},{\"y\":131,\"x\":5467},{\"y\":90,\"x\":5490},{\"y\":90,\"x\":5510},{\"y\":112,\"x\":5540},{\"y\":180,\"x\":5670},{\"y\":180,\"x\":5705},{\"y\":159,\"x\":5771},{\"y\":185,\"x\":5802},{\"y\":211,\"x\":5847},{\"y\":224,\"x\":5885},{\"y\":239,\"x\":5955},{\"y\":256,\"x\":6000},{\"y\":256,\"x\":6041},{\"y\":186,\"x\":6207},{\"y\":161,\"x\":6300},{\"y\":82,\"x\":6449},{\"y\":68,\"x\":6481},{\"y\":68,\"x\":6573},{\"y\":86,\"x\":6601},{\"y\":108,\"x\":6610},{\"y\":124,\"x\":6641},{\"y\":124,\"x\":6753},{\"y\":69,\"x\":6840},{\"y\":-13,\"x\":6913},{\"y\":-26,\"x\":6943},{\"y\":-26,\"x\":6994},{\"y\":-1,\"x\":7029},{\"y\":40,\"x\":7067},{\"y\":74,\"x\":7096},{\"y\":106,\"x\":7114},{\"y\":114,\"x\":7133},{\"y\":114,\"x\":7225},{\"y\":140,\"x\":7291},{\"y\":146,\"x\":7354},{\"y\":114,\"x\":7405},{\"y\":28,\"x\":7478},{\"y\":12,\"x\":7496},{\"y\":-4,\"x\":7520},{\"y\":-4,\"x\":7552},{\"y\":9,\"x\":7593},{\"y\":24,\"x\":7609},{\"y\":102,\"x\":7768},{\"y\":138,\"x\":7821},{\"y\":178,\"x\":7899},{\"y\":205,\"x\":7942}],\"scoreData\":[]}";
}
Symbol 1069 MovieClip [__Packages.GameStage] Frame 0
class GameStage
{
var index, mapData, scoreData, finalLine;
function GameStage (i, m, s, finalLineX) {
index = i;
mapData = m;
scoreData = s;
finalLine = finalLineX;
}
function get bkID() {
return("bk" + index);
}
function get bk2ID() {
return("bk2_" + index);
}
function get mapID() {
return("map" + index);
}
function get bkMusicID() {
return("bkMusic" + index);
}
static function parse(str, index) {
var _local2 = new JSON();
var _local1 = _local2.parse(str);
return(new GameStage(index, _local1.mapData, _local1.scoreData));
}
var deadLine = 1000;
}
Symbol 1070 MovieClip [__Packages.fade.Fade_2] Frame 0
class fade.Fade_2
{
function Fade_2 () {
}
static function start(_ob) {
var _local23 = false;
var _local17 = Stage.width;
var _local18 = Stage.height;
var _local22 = 0;
var _local21 = 0;
for (var _local14 in _ob) {
fade.Fade_2[_local14] = _ob[_local14];
}
var _local16 = new flash.display.BitmapData(_local17, _local18, false, nColor);
_local16.draw(_root);
var _local15 = _root.createEmptyMovieClip("mClip_root" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var _local10 = _local15.createEmptyMovieClip("mClip_mask", 0);
var _local20 = _local15.createEmptyMovieClip("mClip_bmp", 1);
_local20.attachBitmap(_local16, 0);
_local23 && (disableBtn(_local15));
_local10.bmpRoot = _local16;
_local10.nFinish = nLine_x * nLine_y;
_local10.isFinish = function () {
this.nFinish--;
if (this.nFinish <= 0) {
this.bmpRoot.dispose();
fade.Fade_2.end();
this.removeMovieClip();
}
};
if (!(0 === 0)) {
} else {
var _local9 = random(2);
var _local7 = 10;
var _local8 = 10;
var _local5 = 0;
var _local3 = 0;
var _local19 = random(4);
var _local13 = "animation_" + _local19;
var _local12 = getRdm(_local19);
var _local4 = 0;
while (_local4 < _local10.nFinish) {
var _local6 = fade.Fade_2[_local13](_local10, "m_", nInterval + (_local4 / 2), _local12);
if (_local4 < ((_local5 + nLine_x) - ((2 * _local3) + 1))) {
_local6._x = ((nLine_x - ((((_local3 + _local5) + nLine_x) - ((2 * _local3) + 1)) - _local4)) - 1) * _local7;
_local6._y = (_local9 ? ((nLine_y - _local3) - 1) : (_local3)) * _local8;
} else if (_local4 < (((_local5 + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1)))) {
_local6._x = ((nLine_x - _local3) - 1) * _local7;
_local6._y = (_local9 ? (((((_local3 + _local5) + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1))) - _local4) : ((nLine_y - (((((_local3 + _local5) + nLine_x) + nLine_y) - (2 * ((2 * _local3) + 1))) - _local4)) - 1)) * _local8;
} else if (_local4 < (((_local5 + (2 * (nLine_x - ((2 * _local3) + 1)))) + nLine_y) - ((2 * _local3) + 1))) {
_local6._x = (((((_local3 + _local5) + (2 * (nLine_x - ((2 * _local3) + 1)))) + nLine_y) - ((2 * _local3) + 1)) - _local4) * _local7;
_local6._y = (_local9 ? (_local3) : ((nLine_y - _local3) - 1)) * _local8;
} else {
_local6._x = _local3 * _local7;
_local6._y = (_local9 ? ((nLine_y - (((_local3 + _local5) + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - _local4)) - 1) : (((_local3 + _local5) + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - _local4)) * _local8;
if (_local4 == ((_local5 + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))))) - 1)) {
_local5 = _local5 + (2 * ((nLine_x + nLine_y) - (2 * ((2 * _local3) + 1))));
_local3++;
}
}
_local4++;
}
}
_local10._width = _local17;
_local10._height = _local18;
_local10._x = _local22;
_local10._y = _local21;
_local20.setMask(_local10);
}
static function adjustXY(_m) {
}
static function end() {
}
static function getRdm(_n) {
switch (_n) {
case 0 :
case 3 :
return(random(2));
case 1 :
return(random(9));
case 2 :
return(random(5));
}
}
static function animation_0(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(2)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
createClip("m_", _local2, 0, 0);
createClip("m_", _local2, 0, 1, {_x:10, _y:10, _rotation:180});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= int(this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 50 - fade.Fade_2.trigonometric(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
}
};
return(_local2);
}
static function animation_1(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(9)) : (_nRdm));
_local2.nRdm_1 = _local2.nRdm % 3;
_local2.nRdm_2 = int(_local2.nRdm / 3);
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 1, 0, {_x:5, _y:5});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - fade.Fade_2.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm_1) {
case 0 :
this.m_0._xscale = 150;
this.m_0._yscale = this.nTemp;
break;
case 1 :
this.m_0._xscale = this.nTemp;
this.m_0._yscale = 150;
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 2) {
this.m_0._rotation = fade.Fade_2.trigonometric(this.nTime, this.nT, -180);
} else if (this.nRdm_2 == 1) {
this.m_0._rotation = fade.Fade_2.trigonometric(this.nTime, this.nT, 180);
}
}
};
return(_local2);
}
static function animation_2(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(5)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 2, 0);
_local2.m_1 = createClip("m_", _local2, 2, 1, {_x:10, _y:10, _rotation:180});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - fade.Fade_2.trigonometric(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
}
};
return(_local2);
}
static function animation_3(_m, _s, _nT, _nRdm, _nDelay) {
var _local3 = _m.getNextHighestDepth();
var _local2 = _m.createEmptyMovieClip(_s + _local3, _local3);
_local2.nRdm = (isNaN(_nRdm) ? (random(2)) : (_nRdm));
_local2.nTime = (isNaN(_nDelay) ? 0 : (_nDelay));
_local2.nT = _nT;
_local2.m_0 = createClip("m_", _local2, 2, 0);
_local2.m_1 = createClip("m_", _local2, 2, 1, {_x:10, _y:10, _rotation:180});
_local2.m_2 = createClip("m_", _local2, 2, 2, {_x:0, _y:10, _rotation:-90});
_local2.m_3 = createClip("m_", _local2, 2, 3, {_x:10, _y:0, _rotation:90});
_local2.onEnterFrame = function () {
this.nTime++;
if (this.nTime >= (this.nT / 2)) {
this._parent.isFinish();
delete this.onEnterFrame;
this.removeMovieClip();
} else if (this.nTime >= 0) {
this.nTemp = 100 - fade.Fade_2.trigonometric(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
}
};
return(_local2);
}
static function disableBtn(_m) {
_m.onPress = null;
_m.enabled = false;
_m.hitArea = _root;
}
static function trigonometric(x, T, A, P) {
var _local1 = 0;
var _local2 = (Math.PI / T) * x;
if (!isNaN(P)) {
_local1 = P - _local2;
}
return(A * Math.sin(_local2 + _local1));
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
isNaN(_nDepth) && (_nDepth = _m.getNextHighestDepth());
isNaN(_nType) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(0);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static var nColor = 0;
static var nInterval = 15;
static var nLine_x = 10;
static var nLine_y = 10;
}
Symbol 1071 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.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 (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.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.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.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 1072 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 122 MovieClip [body] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 128 MovieClip [leg_down] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 134 MovieClip [hand_up copy] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 140 MovieClip [hand_down copy] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 143 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (1);
break;
case 4 :
gotoAndStop (2);
break;
case 5 :
gotoAndStop (1);
}
Symbol 150 MovieClip [head] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 156 MovieClip [leg] Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 163 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 170 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 177 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 190 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Instance of Symbol 186 MovieClip in Symbol 190 MovieClip Frame 3
on (release) {
_root.bodyColorNum = 3;
with (_parent) {
bodyMc.h.gotoAndStop(3);
bodyMc.hd.gotoAndStop(3);
bodyMc.hu.gotoAndStop(3);
bodyMc.b.gotoAndStop(3);
bodyMc.l.gotoAndStop(3);
bodyMc.ld.gotoAndStop(3);
bodyMc.g.gotoAndStop(3);
bodyMc.ld2.gotoAndStop(3);
bodyMc.hd2.gotoAndStop(3);
}
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 4
on (release) {
_root.bodyColorNum = 4;
with (_parent) {
bodyMc.h.gotoAndStop(4);
bodyMc.hd.gotoAndStop(4);
bodyMc.hu.gotoAndStop(4);
bodyMc.b.gotoAndStop(4);
bodyMc.l.gotoAndStop(4);
bodyMc.ld.gotoAndStop(4);
bodyMc.g.gotoAndStop(4);
bodyMc.ld2.gotoAndStop(4);
bodyMc.hd2.gotoAndStop(4);
}
}
Symbol 197 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 203 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 210 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 217 MovieClip Frame 1
stop();
switch (_root.bodyColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 218 MovieClip Frame 11
stop();
Symbol 219 MovieClip Frame 11
stop();
Symbol 225 MovieClip Frame 1
stop();
switch (_root.motorColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
}
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
stop();
Symbol 225 MovieClip Frame 4
stop();
Symbol 227 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 229 MovieClip Frame 6
stop();
Symbol 230 MovieClip Frame 6
stop();
Symbol 235 MovieClip [lib_man] Frame 1
stop();
Symbol 236 MovieClip Frame 13
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 236 MovieClip Frame 22
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 1;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbTsunami");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 237 MovieClip Frame 17
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 237 MovieClip Frame 23
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 2;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbRockSolid");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 238 MovieClip Frame 10
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 238 MovieClip Frame 16
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 3;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbCliffhanger");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 239 MovieClip Frame 12
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 239 MovieClip Frame 19
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 4;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbMcMetz");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 241 MovieClip Frame 12
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 241 MovieClip Frame 18
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 5;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbStripper");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 242 MovieClip Frame 13
stop();
_root.keyDownScore = 0;
onEnterFrame = function () {
_root.keyDownScore++;
};
Symbol 242 MovieClip Frame 19
Game._actFlag = 0;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.txtScore = _root.keyDownScore * 6;
_root.gameMc.ScreenMc.scoreHipMc.mcMessage.gotoAndStop("lbSuperman");
_root.gameMc.ScreenMc.scoreHipMc.play();
_parent.gotoAndStop("normal");
Symbol 243 MovieClip [myHero] Frame 1
stop();
Instance of Symbol 243 MovieClip [myHero] "myHero" in Symbol 244 MovieClip [Hero] Frame 1
onClipEvent (enterFrame) {
switch (_root.hColorNum) {
case 1 :
gotoAndStop (1);
case 2 :
gotoAndStop (2);
}
}
Symbol 680 MovieClip [Motorcycle copy] Frame 1
stop();
switch (_root.motorColorNum) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
break;
case 5 :
gotoAndStop (5);
}
Symbol 681 MovieClip Frame 1
stop();
Symbol 719 Button
on (release) {
playMoreGameRealse();
}
Symbol 730 Button
on (release) {
freeGamesForYourSite();
}
Symbol 808 Button
on (press) {
_root.motorColorNum++;
if (_root.motorColorNum > 4) {
_root.motorColorNum = 1;
}
switch (_root.motorColorNum) {
case 1 :
motorMc.gotoAndStop(1);
break;
case 2 :
motorMc.gotoAndStop(2);
break;
case 3 :
motorMc.gotoAndStop(3);
break;
case 4 :
motorMc.gotoAndStop(4);
}
}
Symbol 809 Button
on (press) {
_root.motorColorNum--;
if (_root.motorColorNum < 0) {
_root.motorColorNum = 4;
}
switch (_root.motorColorNum) {
case 1 :
motorMc.gotoAndStop(1);
break;
case 2 :
motorMc.gotoAndStop(2);
break;
case 3 :
motorMc.gotoAndStop(3);
break;
case 4 :
motorMc.gotoAndStop(4);
}
}
Symbol 847 Button
on (press) {
trace("Pause Game");
}
Symbol 851 MovieClip Frame 1
stop();
Symbol 851 MovieClip Frame 2
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 2
_root.winnerSound = new Sound();
_root.winnerSound.attachSound("winner");
_root.winnerSound.start(0, 1);
Symbol 897 MovieClip Frame 56
_root.levelScore = _root.levelScore + mcMessage.txtScore;
mcMessage.gotoAndStop("normal");
Symbol 898 MovieClip Frame 1
onEnterFrame = function () {
if (_root.myBgSound.getVolume() == 0) {
sound_btn.gotoAndStop(2);
} else {
sound_btn.gotoAndStop(1);
}
};
var _sound = new Sound(_root);
sound_btn.onRelease = function () {
((_sound.getVolume() > 0) ? (_sound.setVolume(0)) : (_sound.setVolume(100)));
if (sound_btn._currentframe == 1) {
} else if (sound_btn._currentframe == 2) {
}
trace("myBgSound = " + _root.myBgSound);
if (_root.myBgSound.getVolume() == 0) {
_root.myBgSound.setVolume(100);
_root._bring2.setVolume(100);
_root._engineSnd.setVolume(100);
_root._deathSound.setVolume(100);
_root._loseSound.setVolume(100);
_root._barrierSnd.setVolume(100);
_root.winnerSound.setVolume(100);
_root._engineSnd2.setVolume(100);
} else {
_root._bring2.setVolume(0);
_root.myBgSound.setVolume(0);
_root._engineSnd.setVolume(0);
_root._engineSnd2.setVolume(0);
_root._deathSound.setVolume(0);
_root._loseSound.setVolume(0);
_root._barrierSnd.setVolume(0);
_root.winnerSound.setVolume(0);
}
};
pause_btn.onRelease = function () {
if (_root.pauseMc._visible == false) {
_root.pauseMc._visible = true;
var _local2 = new Game(_root.gameMc);
_local2.pause(true);
} else {
_root.pauseMc._visible = false;
var _local2 = new Game(_root.gameMc);
_local2.pause(false);
}
};
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (Key.getCode() == 32) {
if (_root.pauseMc._visible == false) {
_root.pauseMc._visible = true;
var _local2 = new Game(_root.gameMc);
_local2.pause(true);
} else {
_root.pauseMc._visible = false;
var _local2 = new Game(_root.gameMc);
_local2.pause(false);
}
}
};
Key.addListener(keyListener);
Symbol 926 MovieClip Frame 1
exit_btn.onRelease = function () {
fade.Fade.start();
_root.gotoAndStop("select");
};
start_btn.onRelease = function () {
_root.pauseMc._visible = false;
var _local2 = new Game(_root.gameMc);
_local2.pause(false);
};
Symbol 972 Button
on (release) {
playMoreGameRealse();
}
Symbol 981 Button
on (release) {
var o = {n:[15, 8, 15, 6, 8, 1, 8, 4, 5, 8, 9, 12, 2, 2, 7, 13], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
var board_array = ["f8f68184589c227d", "8ec3cfa6ca33dcd9", "0ee5df7eabc78a81", "ef9029aa0fd09121", "b1a6585d90f97940", "6c88d7edc0798caa", "04b184c12c5f77d4", "bf70e679c11bcc25"];
mochi.as2.MochiScores.showLeaderboard({boardID:board_array[_root.stageValue], score:_root.levelResult});
}
Symbol 1012 MovieClip Frame 70
stop();
Symbol 1019 Button
on (release) {
gotoAndStop ("select");
_root.player = new Player();
_root.count = 0;
switchPoistion();
_root.levelScore = 0;
_root.totalScore = 0;
}
Symbol 1028 Button
on (release) {
with (_parent) {
_root.player = new Player();
_root.count = 0;
switchPoistion();
gotoAndStop("select");
}
}
Symbol 1029 Button
on (release) {
_parent.playMoreGameRealse();
}
Symbol 1036 MovieClip Frame 15
_root.leve = _root.stageIndex + 1;
Symbol 1036 MovieClip Frame 50
stop();