Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
MochiAd.showPreGameAd({id:"540b01866f2d9c2b", res:"390x360"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 7
stop();
Symbol 6 MovieClip Frame 1
onPress = function () {
};
Symbol 9 MovieClip Frame 1
function Replace() {
if (sVariable.length == 0) {
tTxt.text = sTxt;
} else {
tTxt.variable = sVariable;
}
tTxt.autoSize = autoSize;
if (autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
}
var sTxt;
var bBmp;
var bMultiline;
var autoSize;
var sVariable;
Replace();
this.cacheAsBitmap = bBmp;
Symbol 10 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 10 MovieClip Frame 25
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = Math.round(SFM.linearCycle(getTimer(), 1000, 100));
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Instance of Symbol 9 MovieClip in Symbol 10 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
autoSize = "center";
bBmp = false;
}
Instance of Symbol 9 MovieClip "mLoading" in Symbol 10 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
autoSize = "center";
bBmp = false;
}
Symbol 4 MovieClip [ui.Label] Frame 1
#initclip 83
Object.registerClass("ui.Label", ui.Label);
#endinitclip
Symbol 626 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.0");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip;
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
options.ad_finished();
return(undefined);
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip;
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
options.ad_finished();
return(undefined);
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security;
System.security;
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
this._endpoint;
var _local9;
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local21 + ".swf";
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local10 + ".swf";
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 627 MovieClip [__Packages.Global] Frame 0
class Global
{
static var pause, main, game, testBar;
function Global () {
}
static function runAll() {
var _local2 = runArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (objArr[_local1][runArr[_local1]] == undefined) {
objArr.splice(_local1, 1);
runArr.splice(_local1, 1);
_local1--;
_local2--;
} else {
objArr[_local1][runArr[_local1]]();
}
_local1++;
}
if (pause) {
updateTestBar();
return(undefined);
}
_local2 = gameRunArr.length;
_local1 = 0;
while (_local1 < _local2) {
if (gameObjArr[_local1][gameRunArr[_local1]] == undefined) {
gameObjArr.splice(_local1, 1);
gameRunArr.splice(_local1, 1);
_local1--;
_local2--;
} else {
gameObjArr[_local1][gameRunArr[_local1]]();
}
_local1++;
}
_local2 = gameDelayRunArr.length;
_local1 = 0;
while (_local1 < _local2) {
if (gameDelayObjArr[_local1][gameDelayRunArr[_local1][0]] == undefined) {
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
_local1--;
_local2--;
} else if ((--gameDelayRunArr[_local1][1]) <= 0) {
gameDelayObjArr[_local1][gameDelayRunArr[_local1][0]]();
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
_local1--;
_local2--;
}
_local1++;
}
updateTestBar();
}
static function addRun(obj, runF) {
objArr.push(obj);
runArr.push(runF);
}
static function delRun(obj, runF) {
var _local2 = runArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((obj == objArr[_local1]) && (runF == runArr[_local1])) {
objArr.splice(_local1, 1);
runArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addGameRun(obj, runF) {
gameObjArr.push(obj);
gameRunArr.push(runF);
}
static function delGameRun(obj, runF) {
var _local2 = gameRunArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((obj == gameObjArr[_local1]) && (runF == gameRunArr[_local1])) {
gameObjArr.splice(_local1, 1);
gameRunArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addGameDelayRun(obj, runF, delayTime) {
gameDelayObjArr.push(obj);
gameDelayRunArr.push([runF, delayTime]);
}
static function delGameDelayRun(obj, runF) {
var _local2 = gameDelayRunArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if ((obj == gameDelayObjArr[_local1]) && (runF == gameDelayRunArr[_local1][0])) {
gameDelayObjArr.splice(_local1, 1);
gameDelayRunArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function addBmd(bmd) {
bmdArr.push(bmd);
return(bmd);
}
static function delBmd(bmd) {
if (Common.arrDel(bmdArr, bmd) == -1) {
}
}
static function updateTestBar() {
var _local1 = "";
_local1 = _local1 + (("main=" + main) + newline);
_local1 = _local1 + (("game=" + game) + newline);
_local1 = _local1 + (("pause=" + pause) + newline);
_local1 = _local1 + (("objArr.length=" + objArr.length) + newline);
_local1 = _local1 + (("runArr.length=" + runArr.length) + newline);
_local1 = _local1 + (("gameObjArr.length=" + gameObjArr.length) + newline);
_local1 = _local1 + (("gameRunArr.length=" + gameRunArr.length) + newline);
_local1 = _local1 + (("gameDelayObjArr.length=" + gameDelayObjArr.length) + newline);
_local1 = _local1 + (("gameDelayRunArr.length=" + gameDelayRunArr.length) + newline);
_local1 = _local1 + (("bmdArr.length=" + bmdArr.length) + newline);
testBar.showMsg(_local1);
}
static var gameInterface = new Object();
static var objArr = new Array();
static var runArr = new Array();
static var gameObjArr = new Array();
static var gameRunArr = new Array();
static var gameDelayObjArr = new Array();
static var gameDelayRunArr = new Array();
static var bmdArr = new Array();
var initObj = (_root.onEnterFrame = function () {
runAll();
});
}
Symbol 628 MovieClip [__Packages.basic.Mc] Frame 0
class basic.Mc extends MovieClip
{
function Mc () {
super();
}
}
Symbol 629 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends basic.Mc
{
var _parent, gameName, stageWid, stageHei, sndBg, playerInfo, keySetting, isFirstPlay, stageData, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, qualitySetting, snd_mc, __musicOn, __soundOn, isWin, effectArea;
function BasicMain (_gameName, _stageWid, _stageHei, hasKeySetting) {
super();
Global.main = this;
_parent.stop();
gameName = _gameName;
stageWid = _stageWid;
stageHei = _stageHei;
sndBg = new Sound();
sndBg.attachSound("SndBg");
musicOn = (true);
soundOn = (true);
playerInfo = new FWG.PlayerInfo();
if (hasKeySetting) {
keySetting = new FWG.KeySetting();
}
isFirstPlay = true;
currentScore = (0);
score = (0);
stageNum = (1);
stageData = new FWG.StageData(["score", "stageNum"]);
Common.cSetTimeout(this, "gotoMenu", 100);
}
function restartStage() {
stageData.restartStage();
}
function resetGameData() {
stageData.resetGameData();
}
function instPlay() {
if (isFirstPlay) {
gotoInst();
} else {
gotoOptions();
}
}
function initBtn(btn) {
switch (btn.__get__label()) {
case "Play Game" :
case "Play" :
case "Skip" :
btn._press = function () {
Global.main.instPlay();
};
break;
case "Next Stage" :
btn._press = function () {
Global.main.nextStage();
};
break;
case "Play Again" :
btn._press = function () {
Global.main.playAgain();
};
break;
case "Instructions" :
btn._press = function () {
Global.main.gotoInst();
};
break;
case "Key Settings" :
btn._press = function () {
Global.main.gotoKeySetting();
};
break;
case "View Highscores" :
btn._press = function () {
"http://www.freeworldgroup.com/score/index.asp?game=" + Global.main.gameName;
};
break;
case "Download Games" :
btn._press = function () {
};
break;
case "More Online Games" :
btn._press = function () {
};
break;
case "Add Games to Your Site" :
btn._press = function () {
};
break;
case "Copyright 2007 freeworldgroup.com" :
btn._press = function () {
};
break;
case "Credits" :
btn._press = function () {
Global.main.musicCredits.fadeShow();
};
break;
case "Menu" :
btn._press = function () {
ui.Alt.hide();
Global.main.gotoMenu();
};
break;
case "Submit Score" :
btn._press = function () {
if (Global.main.__get__score() <= 0) {
ui.Alt.show("Your score is 0 !");
ui.Alt.hideDelay(2000);
} else {
Global.main.submitScore.show();
}
};
}
}
function addScore(dScore) {
currentScore = currentScore + dScore;
score = score + dScore;
}
function get currentScore() {
return(__currentScore);
}
function set currentScore(_currentScore) {
gamePad.__set__currentScore((__currentScore = _currentScore));
//return(currentScore);
}
function get score() {
return(__score);
}
function set score(_score) {
gamePad.__set__score((__score = _score));
//return(score);
}
function get stageNum() {
return(__stageNum);
}
function set stageNum(_stageNum) {
__stageNum = _stageNum;
//return(stageNum);
}
function fadeTo(_pageId, onFadeShow) {
pageId = _pageId;
fadeEffect.fadeHide();
fadeEffect.onShow = onFadeShow;
fadeEffect.onHide = function () {
Global.main.mainContainer.putIn(Global.main.pageId);
Global.main.fadeEffect.fadeShow();
Global.main.fadeEffect.onHide = null;
};
}
function gotoMenu() {
Global.pause = true;
ui.Alert.show("Back To Main Menu?", gotoMenuHandler);
}
function gotoMenuHandler(flag) {
if (flag) {
Global.main.resetGameData();
Global.main.fadeTo("FWG.PageMenu");
} else {
Global.pause = false;
}
}
function gotoInst() {
fadeTo("FWG.PageInst");
}
function gotoOptions() {
fadeTo("FWG.PageOptions");
}
function gotoGame() {
record.Recorder.reset();
Global.pause = false;
fadeTo("FWG.PageGame");
}
function gotoKeySetting() {
fadeTo("FWG.PageKeySetting");
}
function showQualitySetting() {
Global.pause = true;
qualitySetting.fadeShow();
qualitySetting.onHide = function () {
Global.pause = false;
};
}
function playSound(soundId) {
if (soundOn) {
var _local2 = snd_mc[soundId];
if (snd_mc[soundId] == undefined) {
var _local4 = snd_mc.getNextHighestDepth();
_local2 = (snd_mc[soundId] = new Sound(snd_mc.createEmptyMovieClip("mc" + _local4, _local4)));
_local2.attachSound(soundId);
}
_local2.start();
return(_local2);
}
return(null);
}
function get musicOn() {
return(__musicOn);
}
function set musicOn(_musicOn) {
__musicOn = _musicOn;
if (__musicOn) {
sndBg.start(0, 10000);
} else {
sndBg.stop();
}
//return(musicOn);
}
function get soundOn() {
return(__soundOn);
}
function set soundOn(_soundOn) {
__soundOn = _soundOn;
//return(soundOn);
}
function stageClear() {
Global.pause = true;
stageData.update();
fadeTo("FWG.PageStageClear");
}
function win() {
Global.pause = true;
isWin = true;
fadeTo("FWG.PageGameOver");
}
function lose() {
Global.pause = true;
isWin = false;
fadeTo("FWG.PageGameOver");
}
function nextStage() {
stageNum = ((stageNum+1));
currentScore = (0);
stageData.update();
gotoGame();
}
function playAgain() {
stageData.resetGameData();
gotoOptions();
}
function addEffect(id, initObj) {
var _local2 = effectArea.getNextHighestDepth();
effectArea.attachMovie(id, "effect" + _local2, _local2, initObj);
}
}
Symbol 630 MovieClip [__Packages.FWG.LocalSetting] Frame 0
class FWG.LocalSetting
{
var lso, dataObj;
function LocalSetting (saveName) {
saveName = saveName + "_as2";
lso = SharedObject.getLocal(saveName, "/");
if (lso.data.dataObj) {
dataObj = Common.cloneObj(lso.data.dataObj);
} else {
lso.data.defaultDataObj = Common.cloneObj(dataObj);
}
lso.data.dataObj = dataObj;
}
function getDefault() {
return(lso.data.defaultDataObj);
}
function setDefault() {
lso.data.dataObj = (dataObj = Common.cloneObj(lso.data.defaultDataObj));
}
}
Symbol 631 MovieClip [__Packages.Common] Frame 0
class Common
{
static var tempArr;
function Common () {
}
static function setRGB(mc, color) {
new Color(mc).setRGB(color);
}
static function setRGBOffset(mc, color, modeNum) {
if (isNaN(modeNum)) {
modeNum = 1;
}
var _local1 = mc.transform.colorTransform;
_local1.redOffset = ((color >> 16) & 255) - (255 * modeNum);
_local1.greenOffset = ((color >> 8) & 255) - (255 * modeNum);
_local1.blueOffset = (color & 255) - (255 * modeNum);
mc.transform.colorTransform = _local1;
}
static function disorder(arr) {
var _local5 = arr.length;
var _local1 = 0;
while (_local1 < _local5) {
var _local3 = record.Recorder.getData(random(_local5));
var _local4 = arr[_local1];
arr[_local1] = arr[_local3];
arr[_local3] = _local4;
_local1++;
}
}
static function arrDel(arr, item) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
if (arr[_local1] == item) {
arr.splice(_local1, 1);
return(_local1);
}
_local1++;
}
return(-1);
}
static function forEach(arr, f) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
f(arr[_local1], _local1, arr);
_local1++;
}
}
static function getSum(numArr) {
var totalValue = 0;
forEach(numArr, function (value) {
totalValue = totalValue + value;
});
return(totalValue);
}
static function arrToStr(arr, depth) {
if (isNaN(depth)) {
depth = 0;
}
var _local7 = getSpaces(depth);
if (arr.constructor == Array) {
var _local4 = ((arr[0].constructor == Array) ? newline : "");
var _local2 = (_local7 + "[") + _local4;
var _local6 = arr.length;
var _local1 = 0;
while (_local1 < _local6) {
_local2 = _local2 + ((arrToStr(arr[_local1], depth + 1) + ",") + _local4);
_local1++;
}
if (_local4 == "") {
return(_local2.substr(0, _local2.length - 1) + "]");
}
return(((_local2.substr(0, _local2.length - 2) + newline) + _local7) + "]");
}
return(arr);
}
static function getChildAt(mc, index) {
var _local2 = 0;
for (var _local4 in mc) {
var _local1 = mc[_local4];
if (_local1 instanceof MovieClip) {
if (_local2 == index) {
return(_local1);
}
_local2++;
}
}
return(null);
}
static function getNumChildren(mc) {
var _local2 = 0;
for (var _local3 in mc) {
if (mc[_local3] instanceof MovieClip) {
_local2++;
}
}
return(_local2);
}
static function randomStop(mc, totalFs) {
if (isNaN(totalFs)) {
totalFs = mc._totalframes;
}
mc.gotoAndStop(record.Recorder.getData(random(totalFs) + 1));
}
static function getAllChildren(mc, recursion, notClearTempArr) {
if (recursion && (!notClearTempArr)) {
tempArr = new Array();
}
var _local2 = new Array();
for (var _local5 in mc) {
var _local1 = mc[_local5];
if ((_local1 instanceof MovieClip) && (!isInTempArr(_local1))) {
tempArr.push(_local1);
_local2.push(_local1);
if (recursion) {
_local2 = _local2.concat(getAllChildren(_local1, true, true));
}
}
}
return(_local2);
}
static function isInTempArr(value) {
var _local2 = tempArr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (tempArr[_local1] == value) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllChildrenByOrder(mc, varName, recursion) {
var _local1 = getAllChildren(mc, recursion);
_local1.sortOn(varName, Array.NUMERIC);
return(_local1);
}
static function cSetTimeout(objectReference, methodName, timeout) {
return(setTimeout(objectReference, methodName, timeout));
}
static function cClearTimeout(timeoutId) {
clearTimeout(timeoutId);
}
static function randomLine(mc, x1, y1, x2, y2, d) {
var _local2 = new flash.geom.Point(x2 - x1, y2 - y1);
var _local8 = _local2.length;
var _local4 = Math.round(_local8 / d);
_local2.x = _local2.x / _local4;
_local2.y = _local2.y / _local4;
mc.moveTo(x1, y1);
var _local1 = 1;
while (_local1 < _local4) {
mc.lineTo((x1 + (_local2.x * _local1)) + ((record.Recorder.getData(Math.random()) - 0.5) * d), (y1 + (_local2.y * _local1)) + ((record.Recorder.getData(Math.random()) - 0.5) * d));
_local1++;
}
mc.lineTo(x2, y2);
}
static function selectTxt(txt) {
Selection.setFocus(txt);
Selection.setSelection(0, txt.text.length);
}
static function cloneObj(obj, varName, depth) {
if (isNaN(depth)) {
depth = 0;
}
if (varName == undefined) {
varName = "";
}
var _local5 = getObjType(obj);
switch (_local5) {
case "Array" :
return(obj.slice());
case "Object" :
var _local2 = new Object();
for (varName in obj) {
_local2[varName] = cloneObj(obj[varName], varName, depth + 1);
}
return(_local2);
}
return(obj);
}
static function getObjType(obj) {
switch (obj.constructor) {
case Boolean :
return("Boolean");
case Number :
return("Number");
case String :
return("String");
case Array :
return("Array");
}
return("Object");
}
static function objToStr(obj, depth) {
if (isNaN(depth)) {
depth = 0;
}
var _local3 = obj + newline;
for (var _local4 in obj) {
_local3 = _local3 + ((((((getSpaces(depth) + "|-") + getObjType(obj[_local4])) + ":") + _local4) + " -- ") + objToStr(obj[_local4], depth + 1));
}
return(_local3);
}
static function getSpaces(total) {
var _local2 = "";
var _local1 = 0;
while (_local1 < total) {
_local2 = _local2 + " ";
_local1++;
}
return(_local2);
}
static function drawRect() {
var _local3 = arguments[0];
var _local2 = arguments[1];
var _local4;
var _local5;
var _local6;
var _local7;
switch (_local2.constructor) {
case flash.geom.Rectangle :
_local4 = _local2.x;
_local5 = _local2.y;
_local6 = _local2.x + _local2.width;
_local7 = _local2.y + _local2.height;
break;
case Number :
_local4 = _local2;
_local5 = arguments[2];
_local6 = arguments[3];
_local7 = arguments[4];
break;
default :
_local4 = _local2.xMin;
_local5 = _local2.yMin;
_local6 = _local2.xMax;
_local7 = _local2.yMax;
}
_local3.moveTo(_local4, _local5);
_local3.lineTo(_local6, _local5);
_local3.lineTo(_local6, _local7);
_local3.lineTo(_local4, _local7);
_local3.lineTo(_local4, _local5);
}
static var a2r = 57.2957795130823;
static var p0 = new flash.geom.Point();
static var bf = new flash.filters.BlurFilter();
static var cf = new flash.filters.ConvolutionFilter(3, 3, [1, 1, 1, 1, 30, 1, 1, 1, 1], 38);
}
Symbol 632 MovieClip [__Packages.record.Recorder] Frame 0
class record.Recorder extends basic.Mc
{
static var recorder, recordSave, keyDownArr, keyDownArr2, onReplayFinish, __keyDown, __keyUp, __mouseDown, __mouseUp, __mouseMove, dataId, totalData, output;
function Recorder () {
super();
recorder = this;
if (recordSave == undefined) {
recordSave = new record.RecordSave();
}
Key.addListener(recorder);
keyDownArr = new Array(256);
keyDownArr2 = new Array(256);
recorder.onKeyDown = function () {
if (record.Recorder.action == "playing") {
return(undefined);
}
if (!record.Recorder.keyDownArr2[Key.getCode()]) {
record.Recorder.keyDownArr2[Key.getCode()] = true;
record.Recorder.addCtrl(record.Recorder.KEYDOWN, Key.getCode());
}
};
recorder.onKeyUp = function () {
if (record.Recorder.action == "playing") {
return(undefined);
}
if (record.Recorder.keyDownArr2[Key.getCode()]) {
record.Recorder.keyDownArr2[Key.getCode()] = false;
record.Recorder.addCtrl(record.Recorder.KEYUP, Key.getCode());
}
};
Global.addGameRun(this, "run");
}
function run() {
var _local3 = ctrlObj["$" + frameId];
if (_local3) {
var _local4 = _local3.length;
var _local2 = 0;
while (_local2 < _local4) {
var _local1 = _local3[_local2];
switch (_local1.type) {
case KEYDOWN :
keyDownArr[_local1.data] = true;
keyDown(_local1.data);
break;
case KEYUP :
keyDownArr[_local1.data] = false;
keyUp(_local1.data);
break;
case MOUSEDOWN :
mouseDown(_local1.data);
break;
case MOUSEUP :
mouseUp(_local1.data);
break;
case MOUSEMOVE :
mouseMove(_local1.data);
}
_local2++;
}
}
frameId++;
if ((action == "playing") && (frameId > totalFrame)) {
frameId = totalFrame;
Global.pause = true;
onReplayFinish();
}
showMsg();
}
static function get keyDown() {
return(__keyDown);
}
static function set keyDown(_keyDown) {
__keyDown = _keyDown;
//return(keyDown);
}
static function get keyUp() {
return(__keyUp);
}
static function set keyUp(_keyUp) {
__keyUp = _keyUp;
//return(keyUp);
}
static function get mouseDown() {
return(__mouseDown);
}
static function set mouseDown(_mouseDown) {
__mouseDown = _mouseDown;
if (__mouseDown) {
recorder.onMouseDown = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEDOWN, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseDown = null;
}
//return(mouseDown);
}
static function get mouseUp() {
return(__mouseUp);
}
static function set mouseUp(_mouseUp) {
__mouseUp = _mouseUp;
if (__mouseUp) {
recorder.onMouseUp = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEUP, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseUp = null;
}
//return(mouseUp);
}
static function get mouseMove() {
return(__mouseMove);
}
static function set mouseMove(_mouseMove) {
__mouseMove = _mouseMove;
if (__mouseMove) {
recorder.onMouseMove = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEMOVE, new flash.geom.Point(this._xmouse, this._ymouse));
};
} else {
recorder.onMouseMove = null;
}
//return(mouseMove);
}
static function keyIsDown(keyCode) {
return(keyDownArr[keyCode]);
}
static function addCtrl(type, data) {
totalCtrl++;
var _local1 = ctrlObj["$" + frameId];
if (_local1 == undefined) {
_local1 = (ctrlObj["$" + frameId] = new Array());
}
_local1.push(new record.CtrlItem(type, data));
}
static function reset() {
frameId = 0;
totalFrame = 0;
dataId = 0;
dataArr = new Array();
ctrlObj = new Object();
action = "";
}
static function replay(readId) {
if (action == "playing") {
} else {
if (isNaN(readId)) {
totalFrame = frameId;
totalData = dataId;
save(0);
} else {
read(0);
}
action = "playing";
}
frameId = 0;
dataId = 0;
}
static function save(id) {
var _local1 = new Object();
copyToObj(record.Recorder, _local1);
recordSave.save(id, _local1);
}
static function read(id) {
copyToObj(recordSave.read(id), record.Recorder);
}
static function copyToObj(obj1, obj2) {
var _local3 = saveNames.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = saveNames[_local1];
obj2[_local2] = obj1[_local2];
_local1++;
}
}
static function showMsg() {
var _local1 = "";
_local1 = _local1 + (("frameId=" + frameId) + newline);
if (action == "playing") {
_local1 = _local1 + (("totalFrame=" + totalFrame) + newline);
}
_local1 = _local1 + (("dataId=" + dataId) + newline);
if (action == "playing") {
_local1 = _local1 + (("totalData=" + totalData) + newline);
} else {
_local1 = _local1 + (("dataArr.length=" + dataArr.length) + newline);
}
_local1 = _local1 + (("totalCtrl=" + totalCtrl) + newline);
output.__set__msg(_local1);
}
static function getData(data) {
if (action == "playing") {
return(dataArr[dataId++]);
}
dataId++;
dataArr.push(data);
return(data);
}
static var action = "";
static var frameId = 0;
static var totalFrame = 0;
static var dataArr = new Array();
static var ctrlObj = new Object();
static var totalCtrl = 0;
static var KEYDOWN = 0;
static var KEYUP = 1;
static var MOUSEDOWN = 2;
static var MOUSEUP = 3;
static var MOUSEMOVE = 4;
static var saveNames = ["totalFrame", "totalData", "totalCtrl", "dataArr", "ctrlObj"];
}
Symbol 633 MovieClip [__Packages.record.Output] Frame 0
class record.Output extends basic.Mc
{
var msgTxt, __get__msg;
function Output () {
super();
msg = ("");
record.Recorder.output = this;
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(__get__msg());
}
}
Symbol 634 MovieClip [__Packages.record.Replayer] Frame 0
class record.Replayer extends basic.Mc
{
var stop;
function Replayer () {
super();
record.Recorder.replayer = this;
record.Recorder.replay();
record.Recorder.onReplayFinish = function () {
record.Recorder.replayer.gotoAndPlay(1);
record.Recorder.replay();
};
}
function init() {
stop();
Global.pause = false;
}
}
Symbol 635 MovieClip [__Packages.record.RecordSave] Frame 0
class record.RecordSave extends FWG.LocalSetting
{
function RecordSave () {
super(Global.main.gameName + "RecordSave");
}
function save(id, obj) {
dataObj["$" + id] = obj;
}
function read(id) {
return(dataObj["$" + id]);
}
var dataObj = {};
}
Symbol 636 MovieClip [__Packages.record.CtrlItem] Frame 0
class record.CtrlItem
{
var type, data;
function CtrlItem (_type, _data) {
type = _type;
data = _data;
}
function toString() {
return((("type=" + type) + ",data=") + data);
}
}
Symbol 637 MovieClip [__Packages.FWG.PlayerInfo] Frame 0
class FWG.PlayerInfo extends FWG.LocalSetting
{
function PlayerInfo () {
super("FWGPlayerInfo");
}
static var DEFAULT_PLAYERNAME = "MrNoName";
var dataObj = {playerName:DEFAULT_PLAYERNAME};
}
Symbol 638 MovieClip [__Packages.FWG.KeySetting] Frame 0
class FWG.KeySetting extends FWG.LocalSetting
{
var getDefault;
function KeySetting () {
super(Global.main.gameName + "KeySetting");
}
function getCode(id) {
return(dataObj["$" + id]);
}
function saveCode(id, code) {
dataObj["$" + id] = code;
}
function isDefault() {
var _local2 = getDefault().dataObj;
for (var _local3 in _local2) {
if (dataObj[_local3] == _local2[_local3]) {
return(false);
}
}
return(true);
}
var dataObj = {$0:65, $1:87, $2:68, $3:83, $4:74, $5:73, $6:76, $7:75, $8:86, $9:66, $10:32};
}
Symbol 639 MovieClip [__Packages.FWG.SubmitScore] Frame 0
class FWG.SubmitScore extends basic.Mc
{
var stop, _visible, btnSubmit, btnX, nameTxt, nameTxtPos, scoreTxt, send_var, gotoAndStop;
function SubmitScore () {
super();
stop();
_visible = false;
Global.main.submitScore = this;
btnSubmit._press = function () {
Global.main.submitScore.checkSubmit();
};
btnX._press = function () {
Global.main.submitScore.hide();
};
}
function checkSubmit() {
Common.selectTxt(nameTxt);
switch (nameTxt.text) {
case "" :
case FWG.PlayerInfo.DEFAULT_PLAYERNAME :
ui.Alt.show("Your Name, please", nameTxtPos);
ui.Alt.hideDelay(2000);
return(undefined);
}
submit();
}
function init() {
nameTxt.text = Global.main.playerInfo.dataObj.playerName;
scoreTxt.text = String(Global.main.__get__score());
Common.selectTxt(nameTxt);
send_var = new LoadVars();
send_var.game = Global.main.gameName;
}
function hideAlt() {
ui.Alt.hide();
}
function show() {
_visible = true;
init();
}
function hide() {
_visible = false;
gotoAndStop(1);
send_var = null;
}
function submit() {
send_var.score = scoreTxt.text;
send_var.name = nameTxt.text;
if (send_var.name == "") {
send_var.name = "guest" + random(1000);
}
Global.main.playerInfo.dataObj.playerName = send_var.name;
var _local2 = new LoadVars();
_local2.onLoad = function () {
Global.main.submitScore.gotoAndStop(3);
};
send_var;
gotoAndStop(2);
Global.main.btnSs._visible = false;
}
}
Symbol 640 MovieClip [__Packages.ui.SBtn] Frame 0
class ui.SBtn extends basic.Mc
{
var filters0, filters, greyFilters, rollOverFilters, __selectAble, btn, rollOver, _rollOver, rollOut, _rollOut, press, _press, release, _release, __selected, enabled, useHandCursor, __errorPress;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
rollOverFilters = [redGlowFilter].concat(filters);
__selectAble = true;
if (btn == undefined) {
btn = this;
}
btn.sbtn = this;
btn.onRollOver = function () {
this.sbtn._onRollOver();
};
btn.onRollOut = function () {
this.sbtn._onRollOut();
};
btn.onPress = function () {
this.sbtn._onPress();
};
btn.onRelease = function () {
this.sbtn._onRelease();
};
}
function _onRollOver() {
if (selectAble) {
rollOverEffect();
rollOver();
_rollOver();
}
}
function _onRollOut() {
if (selectAble) {
rollOutEffect();
rollOut();
_rollOut();
}
}
function _onPress() {
if (selectAble) {
rollOutEffect();
press();
_press();
} else if (errorPress) {
errorPress();
}
}
function _onRelease() {
if (selectAble) {
release();
_release();
}
}
function get selected() {
return(__selected);
}
function set selected(_selected) {
__selected = _selected;
if (__selected) {
enabled = false;
rollOverEffect();
} else {
enabled = true;
rollOutEffect();
}
//return(selected);
}
function get selectAble() {
return(__selectAble);
}
function set selectAble(_selectAble) {
__selectAble = _selectAble;
if (__selectAble) {
enabled = true;
useHandCursor = true;
filters = filters0;
} else {
if (!errorPress) {
enabled = false;
}
filters = greyFilters;
useHandCursor = false;
}
//return(selectAble);
}
function get errorPress() {
return(__errorPress);
}
function set errorPress(_errorPress) {
__errorPress = _errorPress;
enabled = true;
//return(errorPress);
}
function rollOverEffect() {
filters = rollOverFilters;
}
function rollOutEffect() {
filters = filters0;
}
static var greyFilter = new flash.filters.ColorMatrixFilter([0.15, 0.295, 0.055, 0, 0, 0.15, 0.295, 0.055, 0, 0, 0.15, 0.295, 0.055, 0, 0, 0, 0, 0, 1, 0]);
static var redGlowFilter = new flash.filters.GlowFilter(16777215, 1, 3, 3);
}
Symbol 641 MovieClip [__Packages.FWG.Btn] Frame 0
class FWG.Btn extends ui.SBtn
{
var clear, beginFill, getBounds, __label;
function Btn () {
super();
Common.cSetTimeout(this, "init", 100);
}
function init() {
if (Common.getChildAt(this, 0) instanceof ui.Label) {
} else {
clear();
beginFill(16711680, 0);
Common.drawRect(this, getBounds(this));
}
}
function get label() {
return(__label);
}
function set label(_label) {
__label = _label;
Global.main.initBtn(this);
//return(label);
}
function rollOver() {
Global.main.playSound("SndRollOver", this);
}
function press() {
Global.main.playSound("SndPress", this);
}
}
Symbol 1 MovieClip [__Packages.ui.Label] Frame 0
class ui.Label extends MovieClip
{
var txt;
function Label () {
super();
}
function get text() {
return(txt.text);
}
function set text(_text) {
txt.text = _text;
//return(text);
}
function get color() {
return(txt.textColor);
}
function set color(_color) {
txt.textColor = _color;
//return(color);
}
function get autoSize() {
return(txt.getTextFormat().align);
}
function set autoSize(_align) {
txt.autoSize = _align;
//return(autoSize);
}
function get textWidth() {
return(txt.textWidth);
}
function get textHeight() {
return(txt.textHeight);
}
}
Symbol 642 MovieClip [__Packages.ui.Alt] Frame 0
class ui.Alt extends basic.Mc
{
static var alt;
var _visible, msgTxt, bg, _parent, _x, _y;
function Alt () {
super();
alt = this;
_visible = false;
}
static function show(_msg, mc) {
alt.show_(_msg, mc);
}
static function hide() {
alt.hide_();
}
function show_(_msg, mc) {
_visible = true;
msg = (_msg);
bg._width = msgTxt._width + 10;
if (mc) {
var _local4 = new flash.geom.Point();
mc.localToGlobal(_local4);
_parent.globalToLocal(_local4);
_x = _local4.x;
_y = _local4.y;
} else {
_x = _parent._xmouse;
_y = _parent._ymouse;
}
var _local3 = bg.getBounds(_root);
if (_local3.xMin < 0) {
_x = _x + (10 - _local3.xMin);
} else if (_local3.xMax > Global.main.stageWid) {
_x = _x - ((10 + _local3.xMax) - Global.main.stageWid);
}
if (_local3.yMin < 0) {
_y = _y + (10 - _local3.yMin);
} else if (_local3.yMax > Global.main.stageHei) {
_y = _y - ((10 + _local3.yMax) - Global.main.stageHei);
}
_x = Math.round(_x);
_y = Math.round(_y);
}
function hide_() {
_visible = false;
}
static function hideDelay(delayTime) {
Common.cClearTimeout(timeoutId);
timeoutId = Common.cSetTimeout(alt, "hide_", delayTime);
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
static var timeoutId = -1;
}
Symbol 643 MovieClip [__Packages.effect.AlphaFadeSp] Frame 0
class effect.AlphaFadeSp extends basic.Mc
{
var _visible, _alpha, onShow, onHide;
function AlphaFadeSp () {
super();
}
function show() {
_visible = true;
_alpha = 100;
}
function hide() {
_visible = false;
_alpha = 0;
}
function fadeShow() {
_visible = true;
Global.delRun(this, "showRun");
Global.addRun(this, "showRun");
}
function fadeHide() {
Global.delRun(this, "hideRun");
Global.addRun(this, "hideRun");
}
function showRun() {
if (((_alpha = _alpha + 20)) > 90) {
Global.delRun(this, "showRun");
show();
onShow();
}
}
function hideRun() {
if (_alpha <= 10) {
_alpha = 0;
Global.delRun(this, "hideRun");
hide();
onHide();
return(undefined);
}
_alpha = _alpha - 20;
}
}
Symbol 644 MovieClip [__Packages.FWG.MusicCredits] Frame 0
class FWG.MusicCredits extends effect.AlphaFadeSp
{
var hide, btnBack;
function MusicCredits () {
super();
Global.main.musicCredits = this;
hide();
btnBack._press = function () {
this._parent.fadeHide();
};
}
}
Symbol 645 MovieClip [__Packages.FWG.QualitySetting] Frame 0
class FWG.QualitySetting extends effect.AlphaFadeSp
{
var hide, btnOK, _quality, __get__quality;
function QualitySetting () {
super();
Global.main.qualitySetting = this;
hide();
var _local3 = 0;
while (_local3 < 4) {
this["btn" + _local3]._press = function () {
Global.main.qualitySetting.__set__quality(this.label);
};
_local3++;
}
btnOK._press = function () {
Global.main.qualitySetting.fadeHide();
};
}
function fadeShow() {
super.fadeShow();
quality = (_quality);
}
function set quality(__quality) {
var _local3 = 0;
while (_local3 < 4) {
var _local2 = this["btn" + _local3];
if (_local2.label == __quality) {
_local2.selected = true;
} else {
_local2.selected = false;
}
_local3++;
}
_quality = __quality;
//return(__get__quality());
}
}
Symbol 646 MovieClip [__Packages.FWG.BtnSs] Frame 0
class FWG.BtnSs extends FWG.Btn
{
var __set__label;
function BtnSs () {
super();
__set__label("Submit Score");
Global.main.btnSs = this;
}
}
Symbol 647 MovieClip [__Packages.effect.FadeEffect] Frame 0
class effect.FadeEffect extends basic.Mc
{
function FadeEffect () {
super();
Global.main.fadeEffect = this;
}
function fadeShow() {
}
function fadeHide() {
}
function show() {
}
function hide() {
}
function fadeRun() {
}
}
Symbol 648 MovieClip [__Packages.FWG.MainContainer] Frame 0
class FWG.MainContainer extends basic.Mc
{
var page, attachMovie;
function MainContainer () {
super();
Global.main.mainContainer = this;
}
function putIn(mcId) {
page = attachMovie(mcId, "page", 0);
}
}
Symbol 649 MovieClip [__Packages.FWG.BasicGamePad] Frame 0
class FWG.BasicGamePad extends basic.Mc
{
var stageNumTxt, __get__stageNum, currentScoreTxt, __get__currentScore, scoreTxt, __get__score;
function BasicGamePad () {
super();
Global.main.gamePad = this;
}
function init() {
stageNum = (Global.main.stageNum);
currentScore = (Global.main.currentScore);
score = (Global.main.score);
}
function set stageNum(_stageNum) {
stageNumTxt.text = _stageNum;
//return(__get__stageNum());
}
function set currentScore(_currentScore) {
currentScoreTxt.text = _currentScore;
//return(__get__currentScore());
}
function set score(_score) {
scoreTxt.text = _score;
//return(__get__score());
}
}
Symbol 650 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var levelTxt, level_mc, levelNum, powerUpTxt, __get__shieldEnergy;
function GamePad () {
super();
}
function init() {
super.init();
Global.gameInterface.lifeBar.value = Global.game.hero.__get__life() / Global.game.hero.totalLife;
levelTxt = level_mc.body.levelTxt;
levelTxt.text = (levelNum = 1);
}
function levelUp() {
levelTxt.text = ++levelNum;
level_mc.play();
}
function set shieldEnergy(_shieldEnergy) {
powerUpTxt.text = _shieldEnergy;
//return(__get__shieldEnergy());
}
}
Symbol 651 MovieClip [__Packages.FWG.StageData] Frame 0
class FWG.StageData
{
var varNameList, dataObj0, prevDataObj, dataObj;
function StageData (_varNameList) {
varNameList = _varNameList;
dataObj0 = new Object();
prevDataObj = new Object();
dataObj = new Object();
allCopyMain();
}
function addVars(_varNameList) {
allCopyMain(_varNameList);
varNameList = varNameList.concat(_varNameList);
traceDataObj();
}
function allCopyMain(_varNameList) {
copyMain(dataObj0, _varNameList);
copyMain(prevDataObj, _varNameList);
copyMain(dataObj, _varNameList);
}
function updatePrevDataObj() {
copyMain(prevDataObj);
}
function copyMain(obj, _varNameList) {
if (!_varNameList) {
_varNameList = varNameList;
}
var _local5 = _varNameList.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = _varNameList[_local2];
obj[_local3] = Common.cloneObj(Global.main[_local3], _local3);
_local2++;
}
}
function initByObj(obj) {
if (!obj) {
obj = dataObj;
}
var _local5 = varNameList.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = varNameList[_local3];
Global.main[_local2] = Common.cloneObj(obj[_local2], _local2);
dataObj[_local2] = Common.cloneObj(obj[_local2], _local2);
_local3++;
}
}
function update() {
copyMain(prevDataObj);
copyMain(dataObj);
traceDataObj();
}
function restartStage() {
initByObj(prevDataObj);
traceDataObj();
}
function resetGameData() {
initByObj(dataObj0);
traceDataObj();
}
function traceDataObj() {
}
}
Symbol 652 MovieClip [__Packages.ui.Alert] Frame 0
class ui.Alert extends effect.AlphaFadeSp
{
static var alert;
var btnYes, btnNo, msgTxt;
function Alert () {
super();
alert = this;
alert.hide();
btnYes._press = function () {
ui.Alert.callBack(true);
};
btnNo._press = function () {
ui.Alert.callBack(false);
};
}
static function show(_msg, _onCallBack) {
if (showAlert) {
alert.__set__msg(_msg);
alert.onCallBack = _onCallBack;
alert.fadeShow();
} else {
_onCallBack(true);
}
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
static function callBack(_flag) {
alert.flag = _flag;
alert.fadeHide();
alert.onHide = function () {
this.onCallBack(this.flag);
};
}
static function get showAlert() {
return(alert._name != undefined);
}
}
Symbol 653 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
function Main () {
super("desertrally", 520, 480, true);
}
}
Symbol 654 MovieClip [__Packages.FWG.BasicGame] Frame 0
class FWG.BasicGame extends basic.Mc
{
function BasicGame () {
super();
Global.game = this;
}
function stageClear() {
Global.main.stageClear();
}
function win() {
Global.main.win();
}
function lose() {
Global.main.lose();
}
}
Symbol 655 MovieClip [__Packages.deathRally.Game] Frame 0
class deathRally.Game extends FWG.BasicGame
{
var carArr, leftKey, upKey, rightKey, downKey, screenShake, levelUpDelayTime, heroDie, hero, road, coinValue;
function Game () {
super();
Global.pause = true;
carArr = new Array();
Global.addGameRun(this, "run");
leftKey = Global.main.keySetting.getCode(0);
upKey = Global.main.keySetting.getCode(1);
rightKey = Global.main.keySetting.getCode(2);
downKey = Global.main.keySetting.getCode(3);
screenShake = new effect.ScreenShake(this);
levelUpDelayTime = 300;
}
function shake(dx, dy) {
screenShake.shake(dx, dy);
}
function die() {
heroDie = true;
if (record.Recorder.action == "playing") {
return(undefined);
}
Global.addGameDelayRun(this, "lose", 30);
}
function run() {
if (heroDie) {
} else {
if ((--levelUpDelayTime) <= 0) {
levelUpDelayTime = 300;
levelUp();
}
forEachCar(function (car) {
if (car == this.hero) {
}
car.run();
});
var _local6 = carArr.length;
var _local3 = 0;
while (_local3 < (_local6 - 1)) {
var _local5 = carArr[_local3];
var _local2 = _local3 + 1;
while (_local2 < _local6) {
var _local4 = carArr[_local2];
_local5.checkHit(_local4);
_local2++;
}
_local3++;
}
hero.movTo(record.Recorder.getData(Math.round(road._xmouse)), record.Recorder.getData(Math.round(road._ymouse)));
var _local7 = hero.body.getBounds(road._parent);
if (_local7.xMin < 0) {
hero._x = hero._x - _local7.xMin;
} else if (_local7.xMax > Global.main.stageHei) {
hero._x = hero._x - (_local7.xMax - Global.main.stageHei);
}
if (_local7.yMin < 0) {
hero._y = hero._y - _local7.yMin;
} else if (_local7.yMax > Global.main.stageHei) {
hero._y = hero._y - (_local7.yMax - Global.main.stageHei);
}
road.mov();
}
}
function addEffect(id, initObj) {
var _local2 = road.effectArea.getNextHighestDepth();
road.effectArea.attachMovie(id, "effect" + _local2, _local2, initObj);
}
function addCar(car) {
carArr.push(car);
}
function forEachCar(f) {
var _local3 = carArr.length;
var _local2 = 0;
while (_local2 < _local3) {
if (carArr[_local2].life > 0) {
f(carArr[_local2]);
} else {
carArr.splice(_local2, 1);
_local2--;
_local3--;
}
_local2++;
}
}
function addCoinScore(x, y) {
coinValue = coinValue + 10;
addScore(coinValue, x, y);
}
function addScore(dScore, x, y) {
if (!isNaN(x)) {
Global.main.addEffect("effect.ScorePopUp", {_x:x, _y:y, score:dScore});
}
if (record.Recorder.action == "playing") {
return(undefined);
}
Global.main.addScore(dScore);
}
function levelUp() {
road.vMax = road.vMax + 1.7;
Global.main.gamePad.levelUp();
}
static var D = 480;
}
Symbol 656 MovieClip [__Packages.deathRally.Road] Frame 0
class deathRally.Road extends basic.Mc
{
var typeArr, rotateDelayTime, max_y, _y, vMax, prevY, viewVisibleValue, front, addCoinsDelay, coinsArea, currentPiece, hitShapeArea, topArea, powerUpArea, carArea;
function Road () {
super();
Global.game.road = this;
typeArr = [1, 1, 1];
rotateDelayTime = 5;
max_y = 0;
addPiece();
max_y = deathRally.Game.D * 2;
_y = deathRally.Game.D;
vMax = 10;
}
function mov() {
if (((v = v + 0.2)) > vMax) {
v = vMax;
}
prevY = _y;
_y = _y + v;
if (_y > max_y) {
addPiece();
max_y = max_y + (deathRally.Game.D * 2);
}
Global.gameInterface.smallMap.mov(_y, Global.game.hero._x, Global.game.hero._y);
}
function addPiece() {
viewVisibleValue = record.Recorder.getData(random(4));
var _local2 = front.getNextHighestDepth();
var _local4 = false;
if ((--rotateDelayTime) <= 0) {
rotateDelayTime = record.Recorder.getData(random(10) + 5);
typeArr.push("turn");
} else {
typeArr.push(record.Recorder.getData(roadTypeArr[random(roadTypeArr.length)]));
}
var _local3 = typeArr.shift();
if (_local3 == "turn") {
Global.game.roadContainer.rotateDealy(int((deathRally.Game.D * 1.5) / v));
} else if ((--addCoinsDelay) <= 0) {
Global.game.coinValue = 0;
_local4 = true;
addCoinsDelay = record.Recorder.getData(random(5) + 10);
coinsArea.attachMovie("deathRally.Coins", "piece" + _local2, _local2, {_y:-max_y, type:_local3});
}
currentPiece = front.attachMovie("deathRally.RoadPiece", "piece" + _local2, _local2, {_y:-max_y, type:_local3});
hitShapeArea.attachMovie("deathRally.HitShape", "piece" + _local2, _local2, {_y:-max_y, type:_local3});
topArea.attachMovie("deathRally.TopPiece", "piece" + _local2, _local2, {_y:-max_y, type:_local3});
front["piece" + (_local2 - 2)].removeMovieClip();
hitShapeArea["piece" + (_local2 - 2)].removeMovieClip();
topArea["piece" + (_local2 - 2)].removeMovieClip();
coinsArea["piece" + (_local2 - 2)].removeMovieClip();
powerUpArea["piece" + (_local2 - 2)].removeMovieClip();
if (_local3 == 1) {
} else {
if ((!_local4) && (record.Recorder.getData(Math.random() < 0.3))) {
var _local5 = currentPiece.getRanXy();
powerUpArea.attachMovie("deathRally.PowerUp", "piece" + _local2, _local2, {_x:currentPiece._x + _local5[0], _y:currentPiece._y + _local5[1]});
}
if (record.Recorder.getData(Math.random() < 0.8)) {
addCar();
}
}
Global.gameInterface.smallMap.addPiece(typeArr[1]);
}
function hit(car, x, y) {
var _local2 = new flash.geom.Point(x, y);
car.localToGlobal(_local2);
return(hitShapeArea.hitTest(_local2.x, _local2.y, true));
}
function addCar() {
var _local3 = currentPiece.getRanXy();
var _local2 = carArea.getNextHighestDepth();
carArea.attachMovie("deathRally.EnemyCar", "car" + _local2, _local2, {_x:currentPiece._x + _local3[0], _y:currentPiece._y + _local3[1]});
}
function setViewVisible(mc, name) {
var _local2 = false;
switch (viewVisibleValue) {
case 0 :
if (name == "\u6865") {
_local2 = true;
}
break;
case 1 :
if (name == "\u68652") {
_local2 = true;
}
break;
case 2 :
if (name != "\u62F1") {
break;
}
_local2 = record.Recorder.getData(Math.random() < 0.9);
}
if (!_local2) {
mc.swapDepths(0);
mc.removeMovieClip();
}
}
var v = 0;
static var roadTypeArr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
}
Symbol 657 MovieClip [__Packages.deathRally.Car] Frame 0
class deathRally.Car extends basic.Mc
{
var v, prevX, _x, prevY, _y, uUnCtrl, addSmokeDelay, flyingTime, depth0, getDepth, body, _xscale, _yscale, swapDepths, wing, isHurting, hurtFlashTime, _alpha, dh, vRota, aRota, dw, localToGlobal, removeMovieClip, hitTest, __life, __shieldEnergy, shield, _parent;
function Car () {
super();
v = new flash.geom.Point();
Global.game.addCar(this);
prevX = _x;
prevY = _y;
uUnCtrl = 0;
addSmokeDelay = 0;
shieldEnergy = (0);
flyingTime = 0;
depth0 = getDepth();
}
function init() {
body.body.stop();
body.body.body.stop();
}
function movTo(x, y) {
uUnCtrl = uUnCtrl * 0.9;
var _local3 = x - _x;
var _local2 = y - _y;
v.x = getV(v.x, _local3);
v.y = getV(v.y, _local2);
_x = _x + (((_local3 * 0.5) * (1 - uUnCtrl)) + (v.x * uUnCtrl));
_y = _y + (((_local2 * 0.5) * (1 - uUnCtrl)) + ((v.y - Global.game.road.v) * uUnCtrl));
setBody(_local3, _local2);
setHat();
addSmoke();
if (flyingTime > 0) {
if (flyingTime > (totalFlyingTime - 20)) {
_xscale = (_yscale = 100 + (((totalFlyingTime - flyingTime) * (flyingScale - 100)) / 20));
} else if (flyingTime < 20) {
_xscale = (_yscale = 100 + ((flyingTime * (flyingScale - 100)) / 20));
} else {
_xscale = (_yscale = flyingScale);
}
if ((--flyingTime) <= 0) {
_xscale = (_yscale = 100);
swapDepths(depth0);
}
if (flyingTime == 10) {
wing.play();
}
} else {
var _local4 = allHitRoad(true);
if (_local4.length > 0) {
hurt(_local4);
}
}
if (isHurting) {
hurtFlashTime++;
_alpha = (((int(hurtFlashTime / 3) % 2) == 0) ? 100 : 30);
}
prevX = _x;
prevY = _y;
}
function getV(_v, d) {
if (d > 0) {
_v = _v + a;
if (_v > vMax) {
_v = vMax;
}
} else if (d < 0) {
_v = _v - a;
if (_v < (-vMax)) {
_v = -vMax;
}
}
return(_v);
}
function setBody(dx, dy) {
if (body.body._currentframe == body.body._totalframes) {
body.body.gotoAndStop(1);
} else {
body.body.nextFrame();
}
if ((dx * dx) < 10) {
body.body.body.gotoAndStop(1);
} else if (dx > 0) {
body.body.body.gotoAndStop(2);
} else {
body.body.body.gotoAndStop(3);
}
}
function addSmoke() {
if ((--addSmokeDelay) <= 0) {
addSmokeDelay = 5;
Global.game.addEffect("deathRally.Smoke", {_x:_x + record.Recorder.getData(random(5) - 2), _y:(_y + dh) + record.Recorder.getData(random(5) - 2)});
}
}
function setHat() {
body.hat._x = prevX - _x;
body.hat._y = (prevY - _y) - Global.game.road.v;
if (body.hat._x < (-maxHatX)) {
body.hat._x = -maxHatX;
} else if (body.hat._x > maxHatX) {
body.hat._x = maxHatX;
}
if (body.hat._y < (-maxHatY)) {
body.hat._y = -maxHatY;
} else if (body.hat._y > maxHatY) {
body.hat._y = maxHatY;
}
}
function hurt(dp) {
if (isHurting) {
life = ((life-1));
if (life <= 0) {
life = (0);
die();
Global.game.shake();
}
return(undefined);
}
v.x = prevX - _x;
v.y = prevY - _y;
uUnCtrl = 1;
Global.main.playSound("SndHit");
if (shieldEnergy == 0) {
isHurting = true;
hurtFlashTime = 0;
if (((life = life - 10)) <= 0) {
life = (0);
die();
Global.game.shake();
return(undefined);
}
}
Global.game.shake(dp.x * 0.1, dp.y * 0.1);
var _local2 = new flash.geom.Point(-dp.x, -dp.y);
_x = _x - _local2.x;
_y = _y - _local2.y;
var _local3 = false;
var _local4 = 0;
do {
_local2.x = _local2.x / 2;
_local2.y = _local2.y / 2;
_x = _x + _local2.x;
_y = _y + _local2.y;
if (allHitRoad().length > 0) {
if (!_local3) {
_local2.x = _local2.x * -1;
_local2.y = _local2.y * -1;
_local3 = true;
}
} else if (_local3) {
_local2.x = _local2.x * -1;
_local2.y = _local2.y * -1;
_local3 = false;
}
_local4++;
} while (_local4 <= 5);
v.x = v.x + (dp.x * 0.2);
v.y = v.y + (dp.y * 0.2);
if (shieldEnergy > 0) {
shieldEnergy = ((shieldEnergy-1));
Global.main.gamePad.__set__shieldEnergy(shieldEnergy);
} else {
vRota = -dp.x;
aRota = 0;
Global.delGameRun(this, "rotateRun");
Global.addGameRun(this, "rotateRun");
}
}
function rotateRun() {
if ((vRota > -15) && (vRota < 15)) {
var _local2 = -body._rotation;
if (_local2 < -180) {
_local2 = _local2 + 360;
} else if (_local2 > 180) {
_local2 = _local2 - 360;
}
vRota = vRota + (_local2 * 0.02);
if (((vRota * vRota) < 1) && ((body._rotation * body._rotation) < 1)) {
hurtFinish();
}
vRota = vRota * 0.85;
} else {
vRota = vRota * 0.95;
}
body._rotation = body._rotation + vRota;
}
function hurtFinish() {
isHurting = false;
hurtFlashTime = 0;
_alpha = 100;
Global.delGameRun(this, "rotateRun");
body._rotation = 0;
}
function allHitRoad(addHitFlame) {
var _local2 = new flash.geom.Point();
hitRoadP(_local2, -dw, -dh, addHitFlame);
hitRoadP(_local2, -dw, dh, addHitFlame);
hitRoadP(_local2, dw, -dh, addHitFlame);
hitRoadP(_local2, dw, dh, addHitFlame);
return(_local2);
}
function hitRoadP(dp, x, y, addHitFlame) {
if (hitRoad(x, y)) {
if (addHitFlame) {
Global.game.addEffect("effect.HitFlame", {_x:_x + x, _y:_y + y, vx:-x, vy:-y});
}
dp.x = dp.x - x;
dp.y = dp.y - y;
}
}
function die() {
Global.main.playSound("SndExp");
var _local5;
if (this == Global.game.hero) {
_local5 = body._currentframe;
} else {
_local5 = 0;
var _local2 = new flash.geom.Point();
localToGlobal(_local2);
Global.game.globalToLocal(_local2);
Global.game.addScore(37, _local2.x, _local2.y);
}
Global.game.addEffect("deathRally.CarDie", {_x:_x, _y:_y, f:_local5});
removeMovieClip();
}
function checkHit(car) {
if (flying || (car.__get__flying())) {
return(undefined);
}
if (hitTest(car)) {
Global.main.playSound("SndHit");
var _local2 = new flash.geom.Point(car._x - _x, car._y - _y);
var _local4 = new flash.geom.Point(Math.abs(_local2.x), Math.abs(_local2.y));
if ((_local4.x * (dh + car.dh)) < ((dw + car.dw) * _local4.y)) {
_local2.x = 0;
if (_local2.y > 0) {
_local2.y = 1;
} else if (_local2.y < 0) {
_local2.y = -1;
} else {
_local2.y = 0;
}
} else {
_local2.y = 0;
if (_local2.x > 0) {
_local2.x = 1;
} else if (_local2.x < 0) {
_local2.x = -1;
} else {
_local2.x = 0;
}
}
car.setAfterHit(_local2.x, _local2.y);
setAfterHit(-_local2.x, -_local2.y);
}
}
function setAfterHit(dx, dy) {
_x = _x + ((dx * dw) * 0.5);
_y = _y + ((dy * dh) * 0.5);
if (this == Global.game.hero) {
v.x = v.x + (dx * dw);
v.y = v.y + (dy * dh);
} else {
v.x = v.x + ((dx * dw) * 2);
v.y = v.y + ((dy * dh) * 2);
}
uUnCtrl = 1;
}
function hitRoad(x, y) {
return(Global.game.road.hit(this, x, y));
}
function run() {
}
function get life() {
return(__life);
}
function set life(_life) {
__life = _life;
//return(life);
}
function showShield() {
Global.main.gamePad.__set__shieldEnergy(shieldEnergy = (9));
}
function get shieldEnergy() {
return(__shieldEnergy);
}
function set shieldEnergy(_shieldEnergy) {
__shieldEnergy = _shieldEnergy;
shield.gotoAndStop(_shieldEnergy + 1);
//return(shieldEnergy);
}
function fly() {
wing.gotoAndPlay(2);
swapDepths(_parent.getNextHighestDepth());
flyingTime = totalFlyingTime;
}
function get flying() {
return(flyingTime > 0);
}
static var vxMax = 15;
static var vyMax = 30;
static var a = 3;
static var vMax = 16;
var maxHatX = 6;
var maxHatY = 6;
static var totalFlyingTime = 120;
static var flyingScale = 150;
}
Symbol 658 MovieClip [__Packages.deathRally.Hero] Frame 0
class deathRally.Hero extends deathRally.Car
{
var onDie, heroId, body, maxHatX, maxHatY, dw, dh, totalLife, init, __life, swapDepths;
function Hero () {
super();
Global.game.hero = this;
onDie = function () {
Global.game.die();
};
heroId = record.Recorder.getData(Global.gameInterface.heroId);
body.gotoAndStop(heroId);
if (heroId == 5) {
maxHatX = 20;
maxHatY = 20;
}
var _local3 = dArr[heroId - 1];
dw = _local3[0];
dh = _local3[1];
life = ((totalLife = totalLifeArr[heroId - 1]));
init();
}
function die() {
onDie();
super.die();
}
function allHitRoad(addHitFlame) {
var _local2 = super.allHitRoad(addHitFlame);
if (_local2.length > 0) {
Global.game.road.v = Global.game.road.v * 0.99;
}
return(_local2);
}
function get life() {
return(__life);
}
function set life(_life) {
super.__set__life(_life);
Global.gameInterface.lifeBar.value = _life / totalLife;
//return(life);
}
function removeMovieClip() {
swapDepths(0);
super.removeMovieClip();
}
static var dArr = [[20, 18], [17, 22], [21, 23], [27, 30], [23, 25], [27, 28]];
static var totalLifeArr = [50, 50, 50, 75, 75, 75];
}
Symbol 659 MovieClip [__Packages.deathRally.RoadContainer] Frame 0
class deathRally.RoadContainer extends basic.Mc
{
var rota, rotaT, delayTime, _rotation, dRota;
function RoadContainer () {
super();
Global.game.roadContainer = this;
}
function rotateDealy(_delayTime) {
rota = 0;
rotaT = record.Recorder.getData(random(2) - 0.5) * 180;
delayTime = _delayTime;
Global.addGameRun(this, "delayRun");
}
function delayRun() {
if ((--delayTime) <= 0) {
Global.delGameRun(this, "delayRun");
rotate();
}
}
function rotate() {
var _local2 = ((Math.round(_rotation / 90) * 90) + 360) % 360;
var _local3 = ((_local2 + rotaT) + 360) % 360;
Global.gameInterface.smallMap._parent.gotoAndPlay((("f" + _local2) + "_") + _local3);
Global.addGameRun(this, "rotateRun");
}
function rotateRun() {
dRota = rotaT - rota;
rota = rota + (dRota * 0.2);
_rotation = _rotation + (dRota * 0.2);
if ((dRota * dRota) < 1) {
dRota = 0;
_rotation = Math.round(_rotation / 90) * 90;
Global.delGameRun(this, "rotateRun");
}
}
}
Symbol 660 MovieClip [__Packages.effect.ScreenShake] Frame 0
class effect.ScreenShake
{
var mc, mcX0, mcY0, xShake, yShake;
function ScreenShake (_mc) {
mc = _mc;
mcX0 = mc._x;
mcY0 = mc._y;
}
function shake(_xShake, _yShake) {
return(undefined);
}
function shakeRun() {
xShake = xShake - (xShake * 1.8);
yShake = yShake - (yShake * 1.8);
mc._x = mcX0 + xShake;
mc._y = mcY0 + yShake;
if (((xShake * xShake) + (yShake * yShake)) < 5) {
xShake = (yShake = 0);
mc._x = mcX0;
mc._y = mcY0;
Global.delGameRun(this, "shakeRun");
}
}
}
Symbol 661 MovieClip [__Packages.TestBmd] Frame 0
class TestBmd extends flash.display.BitmapData
{
function TestBmd () {
super();
}
}
Symbol 662 MovieClip [__Packages.deathRally.AnimalNeck] Frame 0
class deathRally.AnimalNeck extends basic.Mc
{
var w0, _width, _parent, _rotation, _xscale;
function AnimalNeck () {
super();
w0 = _width;
Global.addGameRun(this, "run");
}
function run() {
var _local2 = new flash.geom.Point(_parent.hat._x - _parent.body._x, _parent.hat._y - _parent.body._y);
_rotation = 0;
_xscale = (_local2.length / w0) * 100;
_rotation = Math.atan2(_local2.y, _local2.x) * Common.a2r;
}
}
Symbol 663 MovieClip [__Packages.deathRally.SmallMap] Frame 0
class deathRally.SmallMap extends basic.Mc
{
var _parent, max_y, pieces;
function SmallMap () {
super();
Global.gameInterface.smallMap = this;
_parent.stop();
max_y = 120;
addPiece(1);
addPiece(1);
addPiece(1);
}
function mov(roadY, heroX, heroY) {
pieces._y = (roadY / 8) + 180;
pieces.hero._x = heroX / 8;
pieces.hero._y = heroY / 8;
}
function addPiece(roadType) {
var _local2 = pieces.getNextHighestDepth();
pieces.attachMovie("deathRally.SmallMapPiece", "piece" + _local2, _local2, {_y:-max_y, type:roadType});
pieces["piece" + (_local2 - 4)].removeMovieClip();
max_y = max_y + 120;
}
}
Symbol 664 MovieClip [__Packages.ui.ValueBar] Frame 0
class ui.ValueBar extends basic.Mc
{
var __value, gotoAndStop, _totalframes;
function ValueBar () {
super();
}
function get value() {
return(__value);
}
function set value(_value) {
__value = _value;
gotoAndStop(Math.round(__value * (_totalframes - 1)) + 1);
//return(value);
}
}
Symbol 665 MovieClip [__Packages.deathRally.LifeBar] Frame 0
class deathRally.LifeBar extends ui.ValueBar
{
function LifeBar () {
super();
Global.gameInterface.lifeBar = this;
}
}
Symbol 666 MovieClip [__Packages.FWG.BtnS] Frame 0
class FWG.BtnS extends FWG.Btn
{
var redCircle;
function BtnS () {
super();
redCircle._visible = false;
}
}
Symbol 667 MovieClip [__Packages.FWG.BtnM] Frame 0
class FWG.BtnM extends FWG.Btn
{
var redCircle;
function BtnM () {
super();
redCircle._visible = false;
}
}
Symbol 668 MovieClip [__Packages.FWG._3Btn] Frame 0
class FWG._3Btn extends basic.Mc
{
var btnQ, btnM, btnS;
function _3Btn () {
super();
btnQ._rollOver = function () {
ui.Alt.show("Quality");
};
btnQ._press = function () {
Global.main.showQualitySetting();
ui.Alt.hide();
};
btnQ._rollOut = function () {
ui.Alt.hide();
};
btnM._rollOver = function () {
if (Global.main.__get__musicOn()) {
ui.Alt.show("Music Off");
} else {
ui.Alt.show("Music On");
}
};
btnM._press = function () {
if (Global.main.__get__musicOn()) {
ui.Alt.show("Music On");
Global.main.__set__musicOn(false);
} else {
ui.Alt.show("Music Off");
Global.main.__set__musicOn(true);
}
this.redCircle._visible = !Global.main.__get__musicOn();
ui.Alt.hideDelay(2000);
};
btnM._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__musicOn()) {
btnM.redCircle._visible = false;
} else {
btnM.redCircle._visible = true;
}
btnS._rollOver = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound Off");
} else {
ui.Alt.show("Sound On");
}
};
btnS._press = function () {
if (Global.main.__get__soundOn()) {
ui.Alt.show("Sound On");
Global.main.__set__soundOn(false);
} else {
ui.Alt.show("Sound Off");
Global.main.__set__soundOn(true);
}
this.redCircle._visible = !Global.main.__get__soundOn();
ui.Alt.hideDelay(2000);
};
btnS._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__soundOn()) {
btnS.redCircle._visible = false;
} else {
btnS.redCircle._visible = true;
}
}
}
Symbol 669 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 670 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends basic.Mc
{
var onPress, useHandCursor;
function HitRec () {
super();
onPress = function () {
};
useHandCursor = false;
}
}
Symbol 671 MovieClip [__Packages.FWG.BtnQ0] Frame 0
class FWG.BtnQ0 extends FWG.Btn
{
var __set__label;
function BtnQ0 () {
super();
__set__label("LOW");
}
}
Symbol 672 MovieClip [__Packages.FWG.BtnQ1] Frame 0
class FWG.BtnQ1 extends FWG.Btn
{
var __set__label;
function BtnQ1 () {
super();
__set__label("MEDIUM");
}
}
Symbol 673 MovieClip [__Packages.FWG.BtnQ2] Frame 0
class FWG.BtnQ2 extends FWG.Btn
{
var __set__label;
function BtnQ2 () {
super();
__set__label("HIGH");
}
}
Symbol 674 MovieClip [__Packages.FWG.BtnQ3] Frame 0
class FWG.BtnQ3 extends FWG.Btn
{
var __set__label;
function BtnQ3 () {
super();
__set__label("BEST");
}
}
Symbol 675 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends basic.Mc
{
function PageGame () {
super();
}
}
Symbol 676 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 677 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 678 MovieClip [__Packages.FWG.BtnAgtys] Frame 0
class FWG.BtnAgtys extends FWG.Btn
{
var __set__label;
function BtnAgtys () {
super();
__set__label("Add Games to Your Site");
}
}
Symbol 679 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 680 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 681 MovieClip [__Packages.FWG.PageGameOver] Frame 0
class FWG.PageGameOver extends effect.AlphaFadeSp
{
var scoreTxt, gotoAndStop;
function PageGameOver () {
super();
scoreTxt.text = Global.main.score;
if (Global.main.isWin) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
Symbol 682 MovieClip [__Packages.FWG.BtnSkip] Frame 0
class FWG.BtnSkip extends FWG.Btn
{
var __set__label;
function BtnSkip () {
super();
__set__label("Skip");
}
}
Symbol 683 MovieClip [__Packages.FWG.BtnPlay] Frame 0
class FWG.BtnPlay extends FWG.Btn
{
var __set__label;
function BtnPlay () {
super();
__set__label("Play");
}
}
Symbol 684 MovieClip [__Packages.FWG.Instructions] Frame 0
class FWG.Instructions extends basic.Mc
{
var stop, btnNext, btnBack, _totalframes, _currentframe, btnPlay, btnSkip;
function Instructions () {
super();
stop();
setPos();
Global.main.isFirstPlay = false;
btnNext._press = function () {
this._parent.nextFrame();
this._parent.setPos();
};
btnBack._press = function () {
this._parent.prevFrame();
this._parent.setPos();
};
}
function setPos() {
btnPlay._visible = _currentframe == _totalframes;
btnSkip._visible = (btnNext._visible = _currentframe != _totalframes);
btnBack._visible = _currentframe > 1;
}
}
Symbol 685 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends basic.Mc
{
function PageInst () {
super();
}
}
Symbol 686 MovieClip [__Packages.FWG.BtnCopyright] Frame 0
class FWG.BtnCopyright extends FWG.Btn
{
var __set__label;
function BtnCopyright () {
super();
__set__label("Copyright 2007 freeworldgroup.com");
}
}
Symbol 687 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 688 MovieClip [__Packages.FWG.Logo] Frame 0
class FWG.Logo extends ui.SBtn
{
var _press;
function Logo () {
super();
_press = function () {
};
}
}
Symbol 689 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 690 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 691 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends basic.Mc
{
function PageMenu () {
super();
}
}
Symbol 692 MovieClip [__Packages.FWG.PageOptions] Frame 0
class FWG.PageOptions extends basic.Mc
{
function PageOptions () {
super();
var _local3 = 1;
while (_local3 <= 6) {
this["p" + _local3].id = _local3;
this["p" + _local3].onRelease = function () {
Global.gameInterface.heroId = this.id;
Global.main.gotoGame();
var _local2 = 1;
while (_local2 <= 6) {
this._parent["p" + _local2].enabled = false;
_local2++;
}
};
_local3++;
}
}
}
Symbol 693 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label;
function BtnNs () {
super();
__set__label("Next Stage");
}
}
Symbol 694 MovieClip [__Packages.deathRally.CarExp] Frame 0
class deathRally.CarExp extends basic.Mc
{
var pieces, delayTime, removeMovieClip;
function CarExp () {
super();
pieces = Common.getAllChildren(this);
var _local5 = pieces.length;
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = pieces[_local4];
_local3.da = record.Recorder.getData(random(10) + 10);
_local3.o3 = new effect.Obj3d(_local3, _local3._y, _local3._x, 60, 0.95);
_local4++;
}
delayTime = 0;
Global.addGameRun(this, "run");
}
function run() {
var _local4 = pieces.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = pieces[_local3];
_local2.o3.mov();
_local2._x = _local2.o3._x;
_local2._y = _local2.o3._y;
_local2._rotation = _local2._rotation + _local2.da;
_local2._xscale = (_local2._yscale = _local2._yscale * 0.95);
if (_local2.o3.isSlow) {
_local2.swapDepths(0);
_local2.removeMovieClip();
pieces.splice(_local3, 1);
_local3--;
_local4--;
}
_local3++;
}
if (pieces.length == 0) {
removeMovieClip();
}
}
}
Symbol 695 MovieClip [__Packages.effect.Obj3d] Frame 0
class effect.Obj3d
{
var mc, z, x, y, vx, vy, vz, u, _x, _y;
function Obj3d (_mc, _vx, _vy, _vz, _u, _z) {
mc = _mc;
if (isNaN(_z)) {
_z = 0;
}
z = _z;
x = mc._y + (z * 0.2);
y = mc._x;
if (isNaN(_vx)) {
_vx = 0;
}
vx = _vx;
if (isNaN(_vy)) {
_vy = 0;
}
vy = _vy;
if (isNaN(_vz)) {
_vz = 0;
}
vz = _vz;
if (isNaN(_u)) {
_u = 1;
}
u = _u;
}
function shootPoint(_x, _y, _vz) {
var _local4 = _y;
var _local3 = _x;
var _local7 = 0;
var _local6 = _local4 - x;
var _local5 = _local3 - y;
vz = _vz;
var _local2 = (-2 * vz) / g;
vx = _local6 / _local2;
vy = _local5 / _local2;
}
function mov() {
vx = vx * u;
vy = vy * u;
x = x + vx;
y = y + vy;
vz = vz + g;
z = z + vz;
_x = y;
_y = x - (z * 0.2);
if (z <= 0) {
z = 0;
vz = vz * -0.6;
}
}
function get isSlow() {
return(((((vx * vx) + (vy * vy)) + (vz * vz)) + (z * z)) < 5);
}
function get shadowDistance() {
return(z * 0.31);
}
static var g = -4;
}
Symbol 696 MovieClip [__Packages.deathRally.CarDie] Frame 0
class deathRally.CarDie extends basic.Mc
{
var _rotation, carBlack, f;
function CarDie () {
super();
_rotation = -Global.game.roadContainer._rotation;
carBlack.gotoAndStop(f + 1);
}
}
Symbol 697 MovieClip [__Packages.deathRally.EnemyCar] Frame 0
class deathRally.EnemyCar extends deathRally.Car
{
var dirId, __set__life, body, dw, dh, checkHitWid, checkHitHei, init, hitRoad, v, _x, _y, localToGlobal, removeMovieClip, setBody, setHat, addSmoke, allHitRoad, hurt, prevX, prevY;
function EnemyCar () {
super();
dirId = 0;
__set__life(1);
Common.randomStop(body);
dw = 24;
dh = 27;
checkHitWid = dw + 100;
checkHitHei = dh + 100;
init();
}
function dpHitRoad(dp, dx, dy) {
if (hitRoad(dx, dy)) {
if (dx > 0) {
dp.x--;
} else {
dp.x++;
}
return(true);
}
return(false);
}
function run() {
var _local2 = new flash.geom.Point();
dpHitRoad(_local2, -dw, -checkHitHei);
dpHitRoad(_local2, dw, -checkHitHei);
dpHitRoad(_local2, -checkHitWid, -dh);
dpHitRoad(_local2, checkHitWid, -dh);
if (_local2.x > 0) {
dirId = 1;
} else if (_local2.x < 0) {
dirId = -1;
} else {
dirId = 0;
}
mov(dirId, -1);
}
function mov(dx, dy) {
if (dx == 0) {
v.x = v.x * 0.8;
} else {
v.x = v.x + (dx * 3);
}
if ((v.x > vxMax) || (v.x < (-vxMax))) {
v.x = v.x * 0.8;
}
if (dy == 0) {
v.y = v.y * 0.99;
} else {
v.y = v.y + (dy * 0.9);
}
if ((v.y > vyMax) || (v.y < (-vyMax))) {
v.y = v.y * 0.8;
}
_x = _x + v.x;
_y = _y + v.y;
var _local2 = new flash.geom.Point();
localToGlobal(_local2);
Global.game.road._parent.globalToLocal(_local2);
if (_local2.y > 600) {
removeMovieClip();
return(undefined);
}
setBody(dx * 10, dy * 10);
setHat();
addSmoke();
var _local3 = allHitRoad(true);
if (_local3.length > 0) {
hurt(_local3);
}
prevX = _x;
prevY = _y;
}
static var vxMax = 15;
static var vyMax = 5;
}
Symbol 698 MovieClip [__Packages.effect.HitFlame] Frame 0
class effect.HitFlame extends basic.Mc
{
var _rotation, vy, vx, removeMovieClip;
function HitFlame () {
super();
_rotation = Math.atan2(vy, vx) * Common.a2r;
Common.forEach(Common.getAllChildren(this), function (dot) {
dot.vx = (record.Recorder.getData(random(10) / 10) * 5) + 5;
dot.vy = (record.Recorder.getData(random(10) / 10) - 0.5) * 5;
dot.vAlpha = record.Recorder.getData(random(10)) + 10;
});
Global.addGameRun(this, "run");
}
function run() {
var _local2 = Common.getAllChildren(this);
if (_local2.length == 0) {
removeMovieClip();
} else {
Common.forEach(_local2, function (dot) {
dot._x = dot._x + dot.vx;
dot._y = dot._y + dot.vy;
dot._alpha = dot._alpha - dot.vAlpha;
if (dot._alpha < 10) {
dot.swapDepths(0);
dot.removeMovieClip();
}
});
}
}
}
Symbol 699 MovieClip [__Packages.deathRally.BlackLine] Frame 0
class deathRally.BlackLine extends basic.Mc
{
var lineAlpha, createEmptyMovieClip, car, removeMovieClip, globalToLocal;
function BlackLine () {
super();
lineAlpha = 100;
var _local3 = 0;
while (_local3 <= 1) {
createEmptyMovieClip("effect" + _local3, _local3);
this["effect" + _local3].clear();
var _local4 = getPointById(_local3);
this["effect" + _local3].moveTo(_local4.x, _local4.y);
_local3++;
}
Global.addGameRun(this, "run");
}
function run() {
if ((lineAlpha > 5) && (car.isHurting)) {
addBlackDots();
} else if ((--delayTime) <= 0) {
removeMovieClip();
}
}
function addBlackDots() {
lineAlpha = lineAlpha * 0.9;
addBlackDot(0);
addBlackDot(1);
}
function getPointById(id) {
var _local2 = new flash.geom.Point(((id - 0.5) * 2) * car.dw, car.dh);
car.body.localToGlobal(_local2);
globalToLocal(_local2);
return(_local2);
}
function addBlackDot(id) {
var _local2 = getPointById(id);
this["effect" + id].lineStyle(2, 0, lineAlpha);
this["effect" + id].lineTo(_local2.x, _local2.y);
}
var delayTime = 60;
}
Symbol 700 MovieClip [__Packages.deathRally.RoadPiece] Frame 0
class deathRally.RoadPiece extends basic.Mc
{
var gotoAndStop, type, posArr, _currentframe, xyArr;
function RoadPiece () {
super();
gotoAndStop(type);
posArr = posArrs[_currentframe - 1];
xyArr = xyArrs[_currentframe - 1];
}
function getRanXy() {
return(xyArr[record.Recorder.getData(random(xyArr.length))]);
}
static var posArrs = [[[0, 1]], [[0, 1, 3, 5], [0, 2, 4, 5]], [[0, 1, 2, 3, 4]], [[0, 1, 2, 3, 4]], [[0, 1, 3, 5], [0, 5], [0, 2, 4]], [[0, 1, 5, 7], [0, 2, 3, 4, 6, 7]], [[0, 1, 3, 5, 6], [0, 2, 3, 4, 6]], [[0, 1, 3, 5], [0, 2, 4, 5]], [[0, 1, 3, 5, 7], [0, 2, 4, 6, 7], [3, 4]], [[0, 1, 2, 3, 4]], [[0, 1, 2, 3, 4]], [[0, 1, 2, 4, 6, 7, 8, 10, 12, 13], [1, 3, 5, 6], [7, 9, 11, 12]], [[0, 1, 2, 4, 6, 7], [1, 3, 5, 6]], [[0, 1, 2, 3]], [[0, 1, 2, 3]], [[0, 1, 2, 3, 4]], [[0, 1, 2, 3, 4, 5]], [[0, 1, 2, 3]], [[0, 1, 2, 4, 6], [2, 3, 5, 6]], [[0, 1]], [[0, 1]], [[0, 1]]];
static var xyArrs = [[[239.9, -44]], [[131.3, -144.85], [323.75, -140.45]], [[239.9, -44]], [[239.9, -44]], [[239.9, -44], [80.15, -124.65], [408.55, -124.65]], [[239.9, -44], [110.75, -165.4]], [[239.9, -44], [171, -142.55], [409.7, -285.2]], [[119.5, -154.85], [338.25, -163.4]], [[78.95, -154.05], [403.05, -173.95]], [[239.9, -44]], [[285.9, -44], [385.9, -381.45]], [[279.9, -44], [125.45, -178.45], [345.3, -205.7]], [[199.9, -44], [122.4, -396.95], [334.9, -406.55]], [[312.15, -55.9], [84.6, -427.4]], [[157.85, -52.35]], [[239.9, -44]], [[239.9, -44], [327.3, -441.5]], [[281.9, -44]], [[167.85, -44]], [[239.9, -44]], [[239.9, -44]], [[239.9, -44]]];
}
Symbol 701 MovieClip [__Packages.deathRally.RoadView] Frame 0
class deathRally.RoadView extends basic.Mc
{
var _rotation;
function RoadView () {
super();
Common.randomStop(this);
_rotation = -Global.game.roadContainer._rotation;
}
}
Symbol 702 MovieClip [__Packages.deathRally.HitHeroItem] Frame 0
class deathRally.HitHeroItem extends basic.Mc
{
var hitTest, localToGlobal, onHit, swapDepths, removeMovieClip;
function HitHeroItem () {
super();
Global.addGameRun(this, "run");
}
function run() {
if (Global.game.hero.__get__flying()) {
return(undefined);
}
if (hitTest(Global.game.hero)) {
var _local2 = new flash.geom.Point();
localToGlobal(_local2);
Global.game.globalToLocal(_local2);
onHit(_local2.x, _local2.y);
Global.delGameRun(this, "run");
swapDepths(0);
removeMovieClip();
}
}
}
Symbol 703 MovieClip [__Packages.deathRally.Coin] Frame 0
class deathRally.Coin extends deathRally.HitHeroItem
{
var onHit;
function Coin () {
super();
onHit = function (x, y) {
Global.game.addCoinScore(x, y);
Global.main.playSound("SndCoin");
};
}
}
Symbol 704 MovieClip [__Packages.effect.ScorePopUp] Frame 0
class effect.ScorePopUp extends basic.Mc
{
var score, body;
function ScorePopUp () {
super();
body.txt.text = score;
}
}
Symbol 705 MovieClip [__Packages.deathRally.PowerUp] Frame 0
class deathRally.PowerUp extends deathRally.HitHeroItem
{
var onHit;
function PowerUp () {
super();
Common.randomStop(this);
onHit = function (x, y) {
Global.game.addScore(100, x, y);
switch (this._currentframe) {
case 1 :
Global.game.hero.__set__life(Global.game.hero.totalLife);
Global.main.playSound("SndLife");
break;
case 2 :
Global.game.hero.showShield();
Global.main.playSound("SndShield");
break;
case 3 :
Global.game.hero.fly();
Global.main.playSound("SndWing");
}
};
}
}
Symbol 706 MovieClip [__Packages.effect.SimpleFade] Frame 0
class effect.SimpleFade extends effect.FadeEffect
{
var gotoAndPlay, gotoAndStop;
function SimpleFade () {
super();
}
function fadeShow() {
gotoAndPlay("fadeShow");
}
function fadeHide() {
gotoAndPlay("fadeHide");
}
function show() {
gotoAndStop("show");
}
function hide() {
gotoAndStop("hide");
}
}
Symbol 34 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
};
Symbol 34 MovieClip Frame 146
stop();
_root.play();
Symbol 35 MovieClip [record.Recorder] Frame 1
#initclip 155
Object.registerClass("record.Recorder", record.Recorder);
#endinitclip
Symbol 86 MovieClip [deathRally.AnimalNeck] Frame 1
#initclip 84
Object.registerClass("deathRally.AnimalNeck", deathRally.AnimalNeck);
#endinitclip
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 6
stop();
Symbol 109 MovieClip [deathRally.Hero] Frame 1
#initclip 85
Object.registerClass("deathRally.Hero", deathRally.Hero);
#endinitclip
Symbol 120 MovieClip [FWG.BtnGo] Frame 1
#initclip 86
Object.registerClass("FWG.BtnGo", FWG.Btn);
#endinitclip
Symbol 121 MovieClip [deathRally.Road] Frame 1
#initclip 87
Object.registerClass("deathRally.Road", deathRally.Road);
#endinitclip
btnGo._press = function () {
btnGo.swapDepths(0);
btnGo.removeMovieClip();
Global.pause = false;
};
if (record.Recorder.action == "playing") {
btnGo._press();
}
Symbol 123 MovieClip [deathRally.RoadContainer] Frame 1
#initclip 88
Object.registerClass("deathRally.RoadContainer", deathRally.RoadContainer);
#endinitclip
Symbol 130 MovieClip [deathRally.SmallMap] Frame 1
#initclip 89
Object.registerClass("deathRally.SmallMap", deathRally.SmallMap);
#endinitclip
Symbol 131 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 20
stop();
Symbol 131 MovieClip Frame 30
stop();
Symbol 131 MovieClip Frame 40
stop();
Symbol 131 MovieClip Frame 50
stop();
Symbol 131 MovieClip Frame 60
stop();
Symbol 131 MovieClip Frame 70
stop();
Symbol 131 MovieClip Frame 80
stop();
Symbol 132 MovieClip [deathRally.Game] Frame 1
#initclip 90
Object.registerClass("deathRally.Game", deathRally.Game);
#endinitclip
Symbol 142 MovieClip [deathRally.LifeBar] Frame 1
#initclip 91
Object.registerClass("deathRally.LifeBar", deathRally.LifeBar);
#endinitclip
Symbol 153 MovieClip Frame 1
gotoAndStop(Global.gameInterface.heroId);
Symbol 157 MovieClip [FWG.BtnS] Frame 1
#initclip 92
Object.registerClass("FWG.BtnS", FWG.BtnS);
#endinitclip
Symbol 161 MovieClip [FWG.BtnM] Frame 1
#initclip 93
Object.registerClass("FWG.BtnM", FWG.BtnM);
#endinitclip
Symbol 163 MovieClip [FWG.BtnQ] Frame 1
#initclip 94
Object.registerClass("FWG.BtnQ", FWG.Btn);
#endinitclip
Symbol 164 MovieClip [FWG._3Btn] Frame 1
#initclip 95
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 170 MovieClip [FWG.BtnMenu2] Frame 1
#initclip 96
Object.registerClass("FWG.BtnMenu2", FWG.BtnMenu);
#endinitclip
Symbol 176 MovieClip Frame 1
stop();
Symbol 177 MovieClip [FWG.GamePad] Frame 1
#initclip 97
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
init();
Symbol 179 MovieClip [FWG.HitRec] Frame 1
#initclip 98
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 183 MovieClip [FWG.BtnOK] Frame 1
#initclip 99
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 185 MovieClip [FWG.BtnQ0] Frame 1
#initclip 100
Object.registerClass("FWG.BtnQ0", FWG.BtnQ0);
#endinitclip
Symbol 187 MovieClip [FWG.BtnQ1] Frame 1
#initclip 101
Object.registerClass("FWG.BtnQ1", FWG.BtnQ1);
#endinitclip
Symbol 189 MovieClip [FWG.BtnQ2] Frame 1
#initclip 102
Object.registerClass("FWG.BtnQ2", FWG.BtnQ2);
#endinitclip
Symbol 191 MovieClip [FWG.BtnQ3] Frame 1
#initclip 103
Object.registerClass("FWG.BtnQ3", FWG.BtnQ3);
#endinitclip
Symbol 192 MovieClip [FWG.QualitySetting] Frame 1
#initclip 104
Object.registerClass("FWG.QualitySetting", FWG.QualitySetting);
#endinitclip
Symbol 194 MovieClip [FWG.BtnYes] Frame 1
#initclip 105
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 196 MovieClip [FWG.BtnNo] Frame 1
#initclip 106
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 198 MovieClip [ui.Alert] Frame 1
#initclip 107
Object.registerClass("ui.Alert", ui.Alert);
#endinitclip
Symbol 199 MovieClip [FWG.PageGame] Frame 1
#initclip 108
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
_quality = "MEDIUM";
Symbol 200 MovieClip [record.Replayer] Frame 1
#initclip 109
Object.registerClass("record.Replayer", record.Replayer);
#endinitclip
Symbol 200 MovieClip [record.Replayer] Frame 2
init();
Symbol 202 MovieClip [FWG.BtnMog] Frame 1
#initclip 110
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 204 MovieClip [FWG.BtnDg] Frame 1
#initclip 111
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 206 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 112
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 208 MovieClip [FWG.BtnPa] Frame 1
#initclip 113
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 210 MovieClip [FWG.BtnSs] Frame 1
#initclip 114
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 212 MovieClip [FWG.BtnMenu] Frame 1
#initclip 115
Object.registerClass("FWG.BtnMenu", FWG.BtnMenu);
#endinitclip
Symbol 219 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 116
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 225 MovieClip [FWG.BtnX] Frame 1
#initclip 117
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 228 MovieClip [FWG.BtnVh] Frame 1
#initclip 118
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 230 MovieClip [FWG.SubmitScore] Frame 1
#initclip 119
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 231 MovieClip [FWG.PageGameOver] Frame 1
#initclip 120
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
_quality = "HIGH";
Symbol 231 MovieClip [FWG.PageGameOver] Frame 2
_quality = "HIGH";
Symbol 260 MovieClip [FWG.BtnSkip] Frame 1
#initclip 121
Object.registerClass("FWG.BtnSkip", FWG.BtnSkip);
#endinitclip
Symbol 262 MovieClip [FWG.BtnBack] Frame 1
#initclip 122
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 264 MovieClip [FWG.BtnNext] Frame 1
#initclip 123
Object.registerClass("FWG.BtnNext", FWG.Btn);
#endinitclip
Symbol 266 MovieClip [FWG.BtnPlay] Frame 1
#initclip 124
Object.registerClass("FWG.BtnPlay", FWG.BtnPlay);
#endinitclip
Symbol 270 MovieClip [FWG.Instructions] Frame 1
#initclip 125
Object.registerClass("FWG.Instructions", FWG.Instructions);
#endinitclip
Symbol 271 MovieClip [FWG.PageInst] Frame 1
#initclip 126
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
_quality = "HIGH";
Symbol 298 MovieClip Frame 1
btn.onPress = function () {
_parent.gotoAndPlay("f");
};
Symbol 308 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 127
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 310 MovieClip [FWG.BtnCredits] Frame 1
#initclip 128
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 312 MovieClip [FWG.Logo] Frame 1
#initclip 129
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Symbol 318 MovieClip [FWG.BtnClose] Frame 1
#initclip 130
Object.registerClass("FWG.BtnClose", FWG.Btn);
#endinitclip
Symbol 322 MovieClip [FWG.MusicCredits] Frame 1
#initclip 131
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 325 MovieClip [FWG.BtnPg] Frame 1
#initclip 132
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 327 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 133
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 329 MovieClip [FWG.PageMenu] Frame 1
#initclip 134
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
if (Global.gameInterface.firstGotoMenu) {
gotoAndStop(this._totalframes);
} else {
Global.gameInterface.firstGotoMenu = true;
}
_quality = "HIGH";
Symbol 329 MovieClip [FWG.PageMenu] Frame 158
stop();
Symbol 329 MovieClip [FWG.PageMenu] Frame 201
stop();
Symbol 392 MovieClip [FWG.PageOptions] Frame 1
#initclip 135
Object.registerClass("FWG.PageOptions", FWG.PageOptions);
#endinitclip
_quality = "HIGH";
Symbol 396 MovieClip [ui.Alt] Frame 1
#initclip 136
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
Symbol 398 MovieClip [FWG.BtnNs] Frame 1
#initclip 137
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 420 MovieClip [deathRally.CarExp] Frame 1
#initclip 138
Object.registerClass("deathRally.CarExp", deathRally.CarExp);
#endinitclip
Symbol 431 MovieClip [deathRally.CarDie] Frame 1
#initclip 139
Object.registerClass("deathRally.CarDie", deathRally.CarDie);
#endinitclip
Symbol 431 MovieClip [deathRally.CarDie] Frame 60
stop();
this.removeMovieClip();
Symbol 435 MovieClip [deathRally.Smoke] Frame 21
stop();
this.removeMovieClip();
Symbol 448 MovieClip [deathRally.EnemyCar] Frame 1
#initclip 140
Object.registerClass("deathRally.EnemyCar", deathRally.EnemyCar);
#endinitclip
Symbol 451 MovieClip [effect.HitFlame] Frame 1
#initclip 141
Object.registerClass("effect.HitFlame", effect.HitFlame);
#endinitclip
Symbol 452 MovieClip [deathRally.BlackLine] Frame 1
#initclip 142
Object.registerClass("deathRally.BlackLine", deathRally.BlackLine);
#endinitclip
Symbol 496 MovieClip Frame 1
if (Global.game.roadContainer.rotaT < 0) {
this._xscale = -100;
} else {
this._xscale = 100;
}
Symbol 499 MovieClip [deathRally.RoadPiece] Frame 1
#initclip 143
Object.registerClass("deathRally.RoadPiece", deathRally.RoadPiece);
#endinitclip
Symbol 522 MovieClip [deathRally.HitShape] Frame 1
#initclip 144
Object.registerClass("deathRally.HitShape", deathRally.RoadPiece);
#endinitclip
Symbol 535 MovieClip [deathRally.RoadView] Frame 1
#initclip 145
Object.registerClass("deathRally.RoadView", deathRally.RoadView);
#endinitclip
Symbol 538 MovieClip Frame 1
Global.game.road.setViewVisible(this, "\u68652");
Symbol 541 MovieClip Frame 1
Global.game.road.setViewVisible(this, "\u6865");
Symbol 544 MovieClip Frame 1
Global.game.road.setViewVisible(this, "\u62F1");
Symbol 545 MovieClip [deathRally.TopPiece] Frame 1
#initclip 146
Object.registerClass("deathRally.TopPiece", deathRally.RoadPiece);
#endinitclip
Symbol 549 MovieClip [deathRally.Coin] Frame 1
#initclip 147
Object.registerClass("deathRally.Coin", deathRally.Coin);
#endinitclip
Symbol 550 MovieClip [deathRally.Coins] Frame 1
#initclip 148
Object.registerClass("deathRally.Coins", deathRally.RoadPiece);
#endinitclip
Symbol 554 MovieClip [effect.ScorePopUp] Frame 1
#initclip 149
Object.registerClass("effect.ScorePopUp", effect.ScorePopUp);
#endinitclip
Symbol 554 MovieClip [effect.ScorePopUp] Frame 15
stop();
this.removeMovieClip();
Symbol 559 MovieClip [deathRally.PowerUp] Frame 1
#initclip 150
Object.registerClass("deathRally.PowerUp", deathRally.PowerUp);
#endinitclip
Symbol 604 MovieClip [deathRally.SmallMapPiece] Frame 1
#initclip 151
Object.registerClass("deathRally.SmallMapPiece", deathRally.RoadPiece);
#endinitclip
Symbol 613 MovieClip Frame 1
stop();
Symbol 614 MovieClip [FWG.MainContainer] Frame 1
#initclip 152
Object.registerClass("FWG.MainContainer", FWG.MainContainer);
#endinitclip
Symbol 624 MovieClip [effect.SimpleFade] Frame 1
#initclip 153
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 624 MovieClip [effect.SimpleFade] Frame 18
onHide();
Symbol 624 MovieClip [effect.SimpleFade] Frame 36
onShow();
Symbol 625 MovieClip [FWG.Main] Frame 1
#initclip 154
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip