Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("showmenu", "fasle");
MochiAd.showPreGameAd({id:"cd8c9e04fe3a2a39", res:"650x500"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Frame 7
stop();
Symbol 2 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com");
};
Symbol 5 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 6 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 6 MovieClip Frame 25
function flash_loading(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = flash_loading(getTimer(), 800, 100);
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Instance of Symbol 5 MovieClip in Symbol 6 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
autoSize = "center";
bBmp = false;
}
Instance of Symbol 5 MovieClip "mLoading" in Symbol 6 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
autoSize = "center";
bBmp = false;
}
Symbol 352 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
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.play();
}};
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;
if (!load(options)) {
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.play();
}};
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;
if (!load(options)) {
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.allowDomain("*");
System.security.allowDomain(_local1);
}
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;
_local6.connect(_local16);
_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();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
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;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
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 353 MovieClip [__Packages.Global] Frame 0
class Global
{
static var mainPause, pause, testBar, main, game;
function Global () {
}
static function runAll() {
if (mainPause) {
updateTestBar();
return(undefined);
}
var _local3 = runArr.length;
var _local2 = 0;
while (_local2 < _local3) {
var _local1 = runArr[_local2];
if (_local1.obj[_local1.runF] == undefined) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
} else if (pause && (_local1.pauseAble)) {
} else if ((++_local1.intervalNum) >= _local1.interval) {
_local1.intervalNum = 0;
_local1.obj[_local1.runF](--_local1.times);
if (_local1.times <= 0) {
runArr.splice(_local2, 1);
_local2--;
_local3--;
}
}
_local2++;
}
updateTestBar();
}
static function addRun(obj, runF, interval, times, notPauseAble) {
delRun(obj, runF);
if (interval > 0) {
} else {
interval = 1;
}
if (times > 0) {
} else {
times = Infinity;
}
var _local1;
if (notPauseAble) {
_local1 = false;
} else {
_local1 = true;
}
runArr.push({obj:obj, runF:runF, intervalNum:0, interval:interval, times:times, pauseAble:_local1});
}
static function delRun(obj, runF) {
var _local3 = runArr.length;
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = runArr[_local1];
if ((obj == _local2.obj) && (runF == _local2.runF)) {
runArr.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
static function updateTestBar() {
if (testBar._name == undefined) {
return(undefined);
}
var _local1 = "";
_local1 = _local1 + (("main=" + main) + newline);
_local1 = _local1 + (("game=" + game) + newline);
_local1 = _local1 + (("pause=" + pause) + newline);
_local1 = _local1 + (("runArr.length=" + runArr.length) + newline);
testBar.showMsg(_local1);
}
static function setMainEnabled(value) {
if (value) {
delete main.onPress;
} else {
main.onPress = function () {
};
main.enabled = false;
}
}
static var gameInterface = new Object();
static var runArr = new Array();
var initObj = (_root.onEnterFrame = function () {
runAll();
});
}
Symbol 354 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends MovieClip
{
var _parent, gameName, stageWid, stageHei, totalStage, sndBg, playerInfo, keySetting, isFirstPlay, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, stageSave, qualitySetting, snd_mc, __musicOn, __soundOn, isWin;
function BasicMain (_gameName, _stageWid, _stageHei, _totalStage, hasKeySetting) {
super();
Global.main = this;
_parent.stop();
gameName = _gameName;
stageWid = _stageWid;
stageHei = _stageHei;
totalStage = _totalStage;
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);
Global.addRun(this, "gotoMenu", 2, 1, true);
}
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 () {
this.getURL("http://www.freeworldgroup.com/score/index.asp?game=" + Global.main.gameName, "_blank");
};
break;
case "Download Games" :
btn._press = function () {
this.getURL("http://www.ifungames.com", "_blank");
};
break;
case "More Online Games" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
break;
case "Add Games to Your Site" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
break;
case "Copyright 2008 freeworldgroup.com" :
btn._press = function () {
this.getURL("http://www.freeworldgroup.com", "_blank");
};
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 () {
trace(Global.main);
trace("score=" + Global.main.__get__score());
trace(Global.main.__get__score() <= 0);
if (Global.main.__get__score() <= 0) {
ui.Alt.show("Your score is 0 !");
ui.Alt.hideDelay(30);
} 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.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 selectPlay(_stageNum) {
stageNum = (_stageNum);
currentScore = (0);
var _local2 = stageSave.getScore(stageNum - 1);
if (isNaN(_local2) || (_local2 < 0)) {
_local2 = 0;
}
score = (_local2);
gotoGame();
}
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) {
_local2 = (snd_mc[soundId] = new Sound(Common.addMcToTop(snd_mc)));
_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;
var _local2 = stageSave.getCurrentScore(stageNum);
if (_local2 <= currentScore) {
stageSave.setScore(stageNum, currentScore);
}
if (stageNum >= totalStage) {
win();
} else {
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);
gotoGame();
}
function playAgain() {
gotoOptions();
}
function isIllegalUserName(name) {
return(playerInfo.isIllegalName(name));
}
}
Symbol 355 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 {
trace(saveName + " \u7B2C\u4E00\u6B21\u8BBE\u5B9A");
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 356 MovieClip [__Packages.Common] Frame 0
class Common
{
static var tempArr;
function Common () {
}
static function getRGB(mc) {
return(new Color(mc).getRGB());
}
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, obj, fName) {
var _local3 = arr.length;
var _local1 = 0;
while (_local1 < _local3) {
obj[fName](arr[_local1], _local1, arr);
_local1++;
}
}
static function sortOn(arr, varName) {
arr.sort(function (item1, item2) {
return(((item1[varName] < item2[varName]) ? -1 : 1));
});
}
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 _local3 = (_local7 + "[") + _local4;
var _local6 = arr.length;
var _local1 = 0;
while (_local1 < _local6) {
_local3 = _local3 + ((arrToStr(arr[_local1], depth + 1) + ",") + _local4);
_local1++;
}
if (_local4 == "") {
if (arr.length == 0) {
return("[]");
}
return(_local3.substr(0, _local3.length - 1) + "]");
}
return(((_local3.substr(0, _local3.length - 2) + newline) + _local7) + "]");
}
if (arr.constructor == String) {
return(("\"" + arr) + "\"");
}
return(arr);
}
static function reverseStr(str) {
var _local1 = str.split("");
_local1.reverse();
return(_local1.join(""));
}
static function arrIndexOf(arr, item) {
var _local2 = arr.length;
var _local1 = 0;
while (_local1 < _local2) {
if (arr[_local1] == item) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function getMap(w, h, initValue) {
var _local3 = new Array(h);
var _local2 = 0;
while (_local2 < h) {
_local3[_local2] = new Array(w);
var _local1 = 0;
while (_local1 < w) {
_local3[_local2][_local1] = initValue;
_local1++;
}
_local2++;
}
return(_local3);
}
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 forEachChild(mc, obj, fName, recursion) {
var _local2 = getAllChildren(mc, recursion);
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
obj[fName](_local2[_local1]);
_local1++;
}
}
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);
sortOn(_local1, varName);
return(_local1);
}
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 selectTxt(txt) {
Selection.setFocus(txt);
Selection.setSelection(0, txt.text.length);
}
static function searchMap(map, seed, obj, fName) {
var _local16 = map[0].length;
var _local15 = map.length;
var _local7 = new Array(_local15);
var _local1 = 0;
while (_local1 < _local15) {
_local7[_local1] = new Array(_local16);
_local1++;
}
var _local10;
var _local12 = seed.length;
var _local4 = 0;
while (_local4 < _local12) {
_local7[seed[_local4][1]][seed[_local4][0]] = true;
obj[fName](map[seed[_local4][1]][seed[_local4][0]]);
_local4++;
}
while (_local12 = seed.length , _local12 > 0) {
_local10 = new Array();
_local4 = 0;
while (_local4 < _local12) {
var _local9 = seed[_local4][0];
var _local8 = seed[_local4][1];
var _local3 = 0;
while (_local3 < 4) {
var _local5 = dirArr[_local3];
var _local2 = _local9 + _local5[0];
_local1 = _local8 + _local5[1];
if ((!_local7[_local1][_local2]) && (obj[fName](map[_local1][_local2]))) {
_local7[_local1][_local2] = true;
_local10.push([_local2, _local1]);
}
_local3++;
}
_local4++;
}
seed = _local10.slice();
}
}
static function getBmdHitRect(bg, obj) {
var _local2 = getContainBmd(bg, obj, 10, 10);
_root.attachBitmap(_local2, 0);
return(_local2.getColorBoundsRect(4294967295, 4278190080));
}
static function getContainBmd(bg, obj, bm1, bm2) {
var _local1 = obj.getBounds(obj);
var _local3 = new flash.geom.Rectangle(_local1.xMin, _local1.yMin, _local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin);
var _local4 = new flash.display.BitmapData(_local3.width, _local3.height, true, 0);
var _local6 = bg.transform.concatenatedMatrix;
var _local2 = new flash.geom.Matrix(1, 0, 0, 1, -_local3.x, -_local3.y);
_local4.draw(obj, _local2, null, bm1);
_local2.tx = _local2.tx * -1;
_local2.ty = _local2.ty * -1;
var _local7 = obj.transform.concatenatedMatrix;
_local2.concat(_local7);
_local2.invert();
_local6.concat(_local2);
_local4.draw(bg, _local6, null, bm2);
return(_local4);
}
static function addMcToTop(mc, id, initObj) {
var _local3 = mc.getNextHighestDepth();
var _local2 = mc.attachMovie(id, id + _local3, _local3, initObj);
if (_local2) {
return(_local2);
}
_local2 = mc.createEmptyMovieClip("mc" + _local3, _local3);
for (var _local4 in initObj) {
_local2[_local4] = initObj[_local4];
}
return(_local2);
}
static function removeFixMc(mc) {
mc.swapDepths(mc._parent.getNextHighestDepth());
mc.removeMovieClip();
}
static function removeAll(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].removeMovieClip();
}
}
}
static function localToLocal(p, mc1, mc2) {
mc1.localToGlobal(p);
mc2.globalToLocal(p);
}
static function randomLine(mc, x1, y1, x2, y2, d) {
trace("Common.randomLine \u672A\u6D4B\u8BD5");
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 drawCircle(mc, x, y, r) {
var _local4 = 0.414213562373095 * r;
var _local5 = 0.707106781186547 * r;
mc.moveTo(x + r, y);
mc.curveTo(r + x, _local4 + y, _local5 + x, _local5 + y);
mc.curveTo(_local4 + x, r + y, x, r + y);
mc.curveTo((-_local4) + x, r + y, (-_local5) + x, _local5 + y);
mc.curveTo((-r) + x, _local4 + y, (-r) + x, y);
mc.curveTo((-r) + x, (-_local4) + y, (-_local5) + x, (-_local5) + y);
mc.curveTo((-_local4) + x, (-r) + y, x, (-r) + y);
mc.curveTo(_local4 + x, (-r) + y, _local5 + x, (-_local5) + y);
mc.curveTo(r + x, (-_local4) + y, r + x, y);
}
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 function drawGrid(mc, w, h, d) {
var _local3 = 0;
while (_local3 <= w) {
mc.moveTo(_local3 * d, 0);
mc.lineTo(_local3 * d, h * d);
_local3++;
}
var _local2 = 0;
while (_local2 <= h) {
mc.moveTo(0, _local2 * d);
mc.lineTo(w * d, _local2 * d);
_local2++;
}
}
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);
static var dirArr = [[-1, 0], [0, -1], [1, 0], [0, 1]];
static var mulDirArr = [[-1, 0], [-1, -1], [0, -1], [1, -1], [1, 0], [1, 1], [0, 1], [-1, 1], [-1, 0]];
}
Symbol 357 MovieClip [__Packages.record.Recorder] Frame 0
class record.Recorder extends MovieClip
{
static var recorder, keyDownArr, keyDownArr2, mouseArrow, __keyDown, __keyUp, __mouseDown, __mouseUp, __mouseMove, onReplayFinish, totalData, output;
var ctrlMouseMove;
function Recorder () {
super();
recorder = this;
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.addRun(this, "run");
}
function run() {
if ((mouseP.x != _root._xmouse) || (mouseP.y != _root._ymouse)) {
ctrlMouseMove(_root._xmouse, _root._ymouse);
}
var _local6 = ctrlObj["$" + frameId];
if (_local6) {
var _local7 = _local6.length;
var _local5 = 0;
while (_local5 < _local7) {
var _local3 = _local6[_local5];
switch (_local3.type) {
case MOUSEEFFECT :
var _local4 = mouseEffectArr[_local3.data];
if (action == "playing") {
mouseArrow.gotoAndStop(_local4.mouseF);
}
_local4.mc[_local4.fName]();
break;
case KEYDOWN :
keyDownArr[_local3.data] = true;
__keyDown(_local3.data);
break;
case KEYUP :
keyDownArr[_local3.data] = false;
__keyUp(_local3.data);
break;
case MOUSEDOWN :
__mouseDown(_local3.data);
break;
case MOUSEUP :
__mouseUp(_local3.data);
break;
case MOUSEMOVE :
mouseP.x = _local3.data[0];
mouseP.y = _local3.data[1];
if (action == "playing") {
mouseArrow._x = mouseP.x;
mouseArrow._y = mouseP.y;
}
__mouseMove(_local3.data);
}
_local5++;
}
}
frameId++;
if ((action == "playing") && (frameId > totalFrame)) {
frameId = totalFrame;
Global.pause = true;
onReplayFinish();
}
showMsg();
}
static function setMouseEffect(mc, fName, mc2, fName2) {
var _local4 = mouseEffectArr.length;
mouseEffectArr.push({mc:mc2, fName:fName2, mouseF:fName});
if (action == "playing") {
return(undefined);
}
switch (fName) {
case "onRollOver" :
mc.record_mouseEffect_onRollOver = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRollOver);
};
break;
case "onRollOut" :
mc.record_mouseEffect_onRollOut = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRollOut);
};
break;
case "onPress" :
mc.record_mouseEffect_onPress = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onPress);
};
break;
case "onRelease" :
mc.record_mouseEffect_onRelease = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onRelease);
};
break;
case "onReleaseOutside" :
mc.record_mouseEffect_onReleaseOutside = _local4;
mc[fName] = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEEFFECT, this.record_mouseEffect_onReleaseOutside);
};
}
}
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 (action == "playing") {
return;
}
if (__mouseDown) {
recorder.onMouseDown = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEDOWN, [_root._xmouse, _root._ymouse]);
};
} else {
recorder.onMouseDown = null;
}
//return(mouseDown);
}
static function get mouseUp() {
return(__mouseUp);
}
static function set mouseUp(_mouseUp) {
__mouseUp = _mouseUp;
if (action == "playing") {
return;
}
if (__mouseUp) {
recorder.onMouseUp = function () {
record.Recorder.addCtrl(record.Recorder.MOUSEUP, [_root._xmouse, _root._ymouse]);
};
} else {
recorder.onMouseUp = null;
}
//return(mouseUp);
}
static function get mouseMove() {
return(__mouseMove);
}
static function set mouseMove(_mouseMove) {
__mouseMove = _mouseMove;
if (action == "playing") {
return;
}
if (__mouseMove) {
recorder.ctrlMouseMove = function (mouseX, mouseY) {
record.Recorder.addCtrl(record.Recorder.MOUSEMOVE, [mouseX, mouseY]);
};
} else {
recorder.ctrlMouseMove = 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();
mouseEffectArr = new Array();
action = "";
}
static function replay(dataObj) {
if (action == "playing") {
} else {
if (dataObj) {
totalFrame = dataObj.totalFrame;
totalData = dataObj.totalData;
dataArr = dataObj.dataArr;
ctrlObj = dataObj.ctrlObj;
} else {
totalFrame = frameId;
totalData = dataId;
}
action = "playing";
}
frameId = 0;
dataId = 0;
}
static function showMsg() {
var _local1 = "";
_local1 = _local1 + (("recorder=" + recorder) + newline);
_local1 = _local1 + (("output=" + output) + newline);
_local1 = _local1 + (("action=" + action) + newline);
_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 + (((("mouseP:(" + mouseP.x) + ",") + mouseP.y) + ")\n");
var _local2 = 0;
for (var _local3 in ctrlObj) {
_local2++;
}
_local1 = _local1 + (("totalCtrl=" + _local2) + newline);
_local1 = _local1 + (("totalMouseEffect=" + mouseEffectArr.length) + newline);
output.__set__msg(_local1);
}
static function getData(data) {
if (action == "playing") {
data = dataArr[dataId++];
} else {
dataId++;
dataArr.push(data);
}
return(data);
}
static function outputData() {
var _local2 = "{";
_local2 = _local2 + (("\ttotalFrame:" + frameId) + ",");
_local2 = _local2 + (("\ttotalData:" + dataId) + ",");
_local2 = _local2 + (("\tdataArr:" + Common.arrToStr(dataArr)) + ",");
var _local1 = "\tctrlObj:{\n";
for (var _local3 in ctrlObj) {
_local1 = _local1 + (((("\t\t" + _local3) + ":") + Common.arrToStr(ctrlObj[_local3])) + ",\n");
}
_local2 = _local2 + (_local1.substr(0, _local1.length - 2) + "\n\t}");
_local2 = _local2 + "}";
output.outputData(_local2);
}
static function showMouse() {
Mouse.show();
if (action == "playing") {
mouseArrow._visible = true;
}
}
static function hideMouse() {
if (action == "playing") {
Mouse.show();
mouseArrow._visible = false;
} else {
Mouse.hide();
}
}
static var action = "";
static var frameId = 0;
static var totalFrame = 0;
static var dataArr = new Array();
static var dataId = 0;
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 MOUSEEFFECT = 5;
static var mouseP = new Object();
static var mouseEffectArr = new Array();
}
Symbol 358 MovieClip [__Packages.record.Output] Frame 0
class record.Output extends MovieClip
{
var onKeyDown, msgTxt, __get__msg, outputTxt;
function Output () {
super();
msg = ("");
record.Recorder.output = this;
Key.addListener(this);
onKeyDown = function () {
if (Key.getCode() == 112) {
record.Recorder.outputData();
}
};
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(__get__msg());
}
function outputData(data) {
outputTxt.text = data;
Common.selectTxt(outputTxt);
}
}
Symbol 359 MovieClip [__Packages.record.MouseArrow] Frame 0
class record.MouseArrow extends MovieClip
{
var stop;
function MouseArrow () {
super();
stop();
record.Recorder.mouseArrow = this;
}
}
Symbol 360 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:") + Common.arrToStr(data)) + "}");
}
}
Symbol 361 MovieClip [__Packages.FWG.PlayerInfo] Frame 0
class FWG.PlayerInfo extends FWG.LocalSetting
{
function PlayerInfo () {
super("FWGPlayerInfo");
}
function isIllegalName(name) {
return((name == "") || (name == "MrNoName"));
}
var dataObj = {playerName:"MrNoName"};
}
Symbol 362 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 363 MovieClip [__Packages.FWG.StageSave] Frame 0
class FWG.StageSave extends FWG.LocalSetting
{
function StageSave () {
super(Global.main.gameName + "StageSave");
}
function getCurrentScore(id) {
var _local2 = dataObj["$" + id].currentScore;
if (isNaN(_local2)) {
return(-1);
}
return(_local2);
}
function getScore(stageNum_1) {
var _local3 = 0;
var _local2 = 1;
while (_local2 <= stageNum_1) {
_local3 = _local3 + dataObj["$" + _local2].currentScore;
_local2++;
}
return(_local3);
}
function setScore(stageNum, currentScore) {
dataObj["$" + stageNum] = {currentScore:currentScore};
}
var dataObj = {};
}
Symbol 364 MovieClip [__Packages.FWG.SubmitScore] Frame 0
class FWG.SubmitScore extends MovieClip
{
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() {
trace("nameTxtPos \u672A\u5B9A\u4E49");
Common.selectTxt(nameTxt);
if (Global.main.isIllegalUserName(nameTxt.text)) {
ui.Alt.show("Your Name, please", nameTxtPos);
ui.Alt.hideDelay(30);
return(undefined);
}
submit();
}
function init() {
nameTxt.text = Global.main.playerInfo.dataObj.playerName;
scoreTxt.text = String(Global.main.__get__score());
Common.selectTxt(nameTxt);
trace((("playerName=" + nameTxt.text) + ",score=") + scoreTxt.text);
send_var = new LoadVars();
send_var.game = Global.main.gameName;
}
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.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", _local2, "POST");
gotoAndStop(2);
Global.main.btnSs._visible = false;
}
}
Symbol 365 MovieClip [__Packages.ui.SBtn] Frame 0
class ui.SBtn extends MovieClip
{
var filters0, filters, greyFilters, __selectAble, btn, rollOver, _rollOver, rollOut, _rollOut, press, _press, release, _release, __selected, gotoAndStop, onPress, useHandCursor;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
__selectAble = true;
btn.stop();
btn.sbtn = this;
btn.onRollOver = function () {
this.gotoAndStop(2);
this.sbtn._onRollOver();
};
btn.onRollOut = function () {
this.gotoAndStop(1);
this.sbtn._onRollOut();
};
btn.onPress = function () {
this.gotoAndStop(3);
this.sbtn._onPress();
};
btn.onRelease = function () {
this.gotoAndStop(2);
this.sbtn._onRelease();
};
}
function _onRollOver() {
if (selectAble) {
rollOver();
_rollOver();
}
}
function _onRollOut() {
if (selectAble) {
rollOut();
_rollOut();
}
}
function _onPress() {
if (selectAble) {
press();
_press();
}
}
function _onRelease() {
if (selectAble) {
release();
_release();
}
}
function get selected() {
return(__selected);
}
function set selected(_selected) {
__selected = _selected;
if (__selected) {
btn.enabled = false;
gotoAndStop(2);
} else {
btn.enabled = true;
gotoAndStop(1);
}
//return(selected);
}
function get selectAble() {
return(__selectAble);
}
function set selectAble(_selectAble) {
__selectAble = _selectAble;
if (__selectAble) {
delete onPress;
btn.enabled = true;
btn.useHandCursor = true;
filters = filters0;
} else {
btn.enabled = false;
onPress = function () {
this.errorPress();
};
useHandCursor = false;
filters = greyFilters;
}
//return(selectAble);
}
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]);
}
Symbol 366 MovieClip [__Packages.FWG.Btn] Frame 0
class FWG.Btn extends ui.SBtn
{
var __label;
function Btn () {
super();
}
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 367 MovieClip [__Packages.ui.Alt] Frame 0
class ui.Alt extends MovieClip
{
static var alt;
var _visible, msgTxt, bg, _parent, _x, _y;
function Alt () {
super();
alt = this;
_visible = false;
msgTxt.autoSize = "center";
}
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) {
Global.addRun(alt, "hide_", delayTime, 1, true);
}
function set msg(_msg) {
msgTxt.text = _msg;
//return(msg);
}
function get msg() {
return(msgTxt.text);
}
}
Symbol 368 MovieClip [__Packages.effect.AlphaFadeSp] Frame 0
class effect.AlphaFadeSp extends MovieClip
{
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.addRun(this, "showRun", 1, 5, true);
}
function fadeHide() {
Global.addRun(this, "hideRun", 1, 5, true);
}
function showRun(num) {
_alpha = (5 - num) * 20;
if (num == 0) {
show();
onShow();
}
}
function hideRun(num) {
_alpha = num * 20;
if (num == 0) {
hide();
onHide();
}
}
}
Symbol 369 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 370 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 show() {
super.show();
quality = (_quality);
}
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 371 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 372 MovieClip [__Packages.effect.FadeEffect] Frame 0
class effect.FadeEffect extends MovieClip
{
function FadeEffect () {
super();
Global.main.fadeEffect = this;
}
function fadeShow() {
}
function fadeHide() {
}
function show() {
}
function hide() {
}
function fadeRun() {
}
}
Symbol 373 MovieClip [__Packages.FWG.MainContainer] Frame 0
class FWG.MainContainer extends MovieClip
{
var page, attachMovie;
function MainContainer () {
super();
Global.main.mainContainer = this;
}
function putIn(mcId) {
page = attachMovie(mcId, "page", 0);
}
}
Symbol 374 MovieClip [__Packages.FWG.BasicGamePad] Frame 0
class FWG.BasicGamePad extends MovieClip
{
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 375 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var btnReset, timeBar, bonusY, bonusArea, outputTxt;
function GamePad () {
super();
clearBonus();
btnReset._press = function () {
Global.main.gamePad.clearBonus();
Global.game.reset();
};
}
function init() {
super.init();
timeBar.reset();
timeBar.__set__totalTime(1800);
timeBar.start();
timeBar.onTimeUp = function () {
Global.main.gamePad.timeup_mc.gotoAndPlay(2);
Global.game.prevLose();
};
}
function clearBonus() {
bonusY = 0;
Common.removeAll(bonusArea);
}
function showBonus(score) {
Common.addMcToTop(bonusArea, "bonusTxtMc", {_y:bonusY, score:score});
bonusY = bonusY - 20;
}
function showMsg(msg) {
outputTxt.text = msg;
}
}
Symbol 376 MovieClip [__Packages.ui.TimeBar] Frame 0
class ui.TimeBar extends MovieClip
{
var onReset, time, onTimeUp, onTimer, __totalTime;
function TimeBar () {
super();
}
function start() {
Global.addRun(this, "run");
}
function stop() {
Global.delRun(this, "run");
}
function reset() {
totalTime = (totalTime);
stop();
onReset();
}
function run() {
if ((--time) <= 0) {
time = 0;
stop();
onTimeUp();
}
onTimer(time, __totalTime);
}
function get totalTime() {
return(__totalTime);
}
function set totalTime(_totalTime) {
time = (__totalTime = _totalTime);
//return(totalTime);
}
function timeUp() {
stop();
onTimeUp();
}
}
Symbol 377 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 378 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
var jumpSndId;
function Main () {
super("lillyhop", 650, 500, 30);
jumpSndId = -1;
}
function playSingleSnd() {
Global.gameInterface.strSnd.currMusic = effect.StrSnd.gameMusic;
if ((++jumpSndId) >= effect.StrSnd.gameMusic.length) {
jumpSndId = 0;
}
Global.gameInterface.strSnd.playSingleSnd(jumpSndId);
}
}
Symbol 379 MovieClip [__Packages.effect.StrSnd] Frame 0
class effect.StrSnd extends MovieClip
{
var sndId, currMusic, interval;
function StrSnd () {
super();
Global.gameInterface.strSnd = this;
}
function playMainMusic() {
playSound(mainMusic);
}
function playLoseMusic() {
playSound(loseMusic, 3);
}
function playSound(music, _interval) {
sndId = 0;
currMusic = music;
if (_interval > 0) {
interval = _interval;
} else {
interval = 10;
}
Global.addRun(this, "playSoundRun", interval, music.length, true);
}
function stopSound() {
Global.delRun(this, "playSoundRun");
}
function playSoundRun() {
var _local2 = currMusic[sndId];
trace("Snd" + _local2);
if (_local2 > 0) {
Global.main.playSound("Snd" + _local2);
}
sndId++;
}
function playSingleSnd(_sndId) {
Global.main.playSound("Snd" + currMusic[_sndId]);
}
static var mainMusic = [1, 1, 5, 5, 6, 6, 5, 0, 4, 4, 3, 3, 2, 2, 1, 0];
static var loseMusic = [5, 0, 0, 3, 0, 5, 0, 4, 3, 2, 1];
static var gameMusic = [1, 1, 5, 5, 6, 6, 5, 4, 4, 3, 3, 2, 2, 1];
}
Symbol 380 MovieClip [__Packages.FWG.BasicGame] Frame 0
class FWG.BasicGame extends MovieClip
{
function BasicGame () {
super();
Global.game = this;
}
function stageClear() {
Global.main.stageClear();
}
function win() {
Global.main.win();
}
function lose() {
Global.main.lose();
}
}
Symbol 381 MovieClip [__Packages.pzs.Game] Frame 0
class pzs.Game extends FWG.BasicGame
{
var pz, effectArea, gotoAndPlay;
function Game () {
super();
}
function init() {
pz.init();
}
function addComboScore(dScore, comboNum) {
Global.main.gamePad.showBonus(dScore);
if (comboNum > 0) {
addEffect("effect.ScorePopUp", {_x:pz.car._x, _y:pz.car._y - 40, score:"Combo " + comboNum});
}
}
function addEffect(id, initObj) {
Common.addMcToTop(effectArea, id, initObj);
}
function prevLose() {
Global.pause = true;
Global.setMainEnabled(false);
pz.car.gotoAndPlay(3);
}
function stageClear(score) {
Global.main.addScore(Math.round(score + (Global.main.gamePad.timeBar.time * 0.1)));
super.stageClear();
}
function reset() {
gotoAndPlay(2);
}
}
Symbol 382 MovieClip [__Packages.pzs.old.OneLineDraw] Frame 0
class pzs.old.OneLineDraw extends MovieClip
{
var stationArea, currentStation, drawArea, sArr, totalMainStation, prevScore, id, totalLine, linkedObj, car, comboTime, comboNum, dScore;
function OneLineDraw () {
super();
Global.game.pz = this;
Global.pause = false;
record.Recorder.reset();
if (Global.main.pageId == "FWG.PageGame") {
record.Recorder.__set__mouseMove(null);
stationArea.gotoAndStop(Global.main.__get__stageNum());
} else {
stationArea.gotoAndStop(31);
record.Recorder.replay({totalFrame:189, totalData:0, dataArr:[], ctrlObj:{$188:[{type:4, data:[478, 257]}], $187:[{type:4, data:[475, 247]}], $179:[{type:5, data:17}], $176:[{type:4, data:[475, 246]}], $175:[{type:4, data:[473, 246]}], $174:[{type:4, data:[470, 246]}], $173:[{type:4, data:[467, 245]}], $172:[{type:5, data:16}, {type:5, data:15}, {type:4, data:[463, 242]}], $171:[{type:4, data:[460, 242]}], $170:[{type:5, data:15}, {type:4, data:[458, 240]}], $169:[{type:4, data:[449, 233]}], $168:[{type:4, data:[439, 223]}], $167:[{type:4, data:[421, 208]}], $166:[{type:4, data:[376, 175]}], $165:[{type:4, data:[352, 160]}], $164:[{type:4, data:[336, 152]}], $163:[{type:4, data:[333, 152]}], $159:[{type:5, data:11}], $155:[{type:4, data:[333, 153]}], $154:[{type:4, data:[334, 155]}], $153:[{type:4, data:[336, 160]}], $152:[{type:5, data:9}, {type:4, data:[336, 164]}], $151:[{type:4, data:[336, 169]}], $150:[{type:4, data:[336, 175]}], $149:[{type:4, data:[336, 180]}], $148:[{type:4, data:[327, 188]}], $147:[{type:4, data:[304, 201]}], $146:[{type:4, data:[252, 221]}], $145:[{type:4, data:[216, 234]}], $144:[{type:4, data:[191, 245]}], $139:[{type:5, data:2}], $131:[{type:4, data:[190, 247]}], $130:[{type:4, data:[191, 247]}], $129:[{type:4, data:[192, 247]}], $128:[{type:4, data:[193, 247]}], $127:[{type:4, data:[195, 249]}], $126:[{type:5, data:0}, {type:4, data:[201, 251]}], $125:[{type:4, data:[221, 253]}], $124:[{type:4, data:[254, 254]}], $123:[{type:4, data:[289, 254]}], $122:[{type:4, data:[309, 254]}], $121:[{type:4, data:[322, 251]}], $116:[{type:5, data:14}], $112:[{type:4, data:[324, 251]}], $111:[{type:4, data:[324, 252]}], $110:[{type:4, data:[324, 253]}], $109:[{type:4, data:[331, 255]}], $108:[{type:5, data:12}, {type:4, data:[347, 255]}], $107:[{type:4, data:[372, 255]}], $106:[{type:4, data:[379, 256]}], $105:[{type:4, data:[383, 256]}], $104:[{type:4, data:[393, 255]}], $103:[{type:4, data:[408, 255]}], $102:[{type:4, data:[442, 254]}], $101:[{type:4, data:[459, 248]}], $97:[{type:4, data:[460, 248]}], $96:[{type:4, data:[461, 250]}], $95:[{type:4, data:[470, 254]}], $94:[{type:4, data:[472, 255]}], $93:[{type:4, data:[473, 257]}], $90:[{type:5, data:17}], $88:[{type:4, data:[474, 257]}], $87:[{type:4, data:[474, 259]}], $86:[{type:5, data:15}, {type:4, data:[474, 261]}], $85:[{type:4, data:[474, 265]}], $84:[{type:4, data:[474, 267]}], $83:[{type:4, data:[472, 272]}], $82:[{type:4, data:[458, 281]}], $81:[{type:4, data:[445, 287]}], $80:[{type:4, data:[434, 293]}], $77:[{type:4, data:[433, 293]}], $76:[{type:4, data:[431, 294]}], $75:[{type:4, data:[405, 316]}], $74:[{type:4, data:[372, 339]}], $73:[{type:4, data:[348, 351]}], $72:[{type:4, data:[336, 356]}], $66:[{type:4, data:[330, 356]}], $64:[{type:5, data:8}], $59:[{type:4, data:[331, 356]}], $57:[{type:4, data:[332, 356]}], $56:[{type:4, data:[332, 357]}], $53:[{type:5, data:6}, {type:4, data:[332, 358]}], $52:[{type:4, data:[334, 359]}], $51:[{type:4, data:[335, 361]}], $50:[{type:4, data:[335, 363]}], $49:[{type:4, data:[335, 364]}], $47:[{type:4, data:[335, 366]}], $46:[{type:4, data:[335, 369]}], $45:[{type:4, data:[326, 369]}], $44:[{type:4, data:[309, 369]}], $43:[{type:4, data:[284, 363]}], $42:[{type:4, data:[255, 342]}], $41:[{type:4, data:[232, 316]}], $40:[{type:4, data:[212, 293]}], $39:[{type:4, data:[189, 266]}], $38:[{type:4, data:[180, 257]}], $32:[{type:5, data:2}], $24:[{type:4, data:[179, 256]}], $23:[{type:4, data:[179, 258]}], $22:[{type:4, data:[179, 259]}], $21:[{type:4, data:[180, 260]}], $20:[{type:4, data:[180, 262]}], $19:[{type:4, data:[180, 263]}], $18:[{type:5, data:0}, {type:4, data:[181, 265]}], $17:[{type:4, data:[181, 268]}], $16:[{type:4, data:[184, 274]}], $15:[{type:4, data:[186, 284]}], $14:[{type:4, data:[192, 299]}], $13:[{type:4, data:[200, 316]}], $12:[{type:4, data:[209, 332]}], $11:[{type:4, data:[219, 353]}], $10:[{type:4, data:[232, 369]}], $9:[{type:4, data:[245, 378]}], $8:[{type:4, data:[280, 395]}], $7:[{type:4, data:[323, 421]}], $6:[{type:4, data:[366, 443]}], $5:[{type:4, data:[394, 456]}], $4:[{type:4, data:[417, 462]}], $3:[{type:4, data:[423, 466]}], $0:[{type:4, data:[425, 468]}]}});
}
}
function init() {
currentStation = null;
drawArea.clear();
drawArea.lineStyle(3, 16777215);
sArr = new Array();
totalMainStation = 0;
prevScore = 0;
while (stationArea["s" + (++totalMainStation)]) {
}
id = 0;
totalLine = 0;
linkedObj = new Object();
var _local6 = 0;
while (_local6 < totalMainStation) {
var _local7 = stationArea["s" + _local6];
initStation(_local7);
var _local3 = _local6 + 1;
while (_local3 < totalMainStation) {
var _local4 = stationArea["s" + _local3];
initStation(_local4);
var _local5 = 0;
var _local2;
while (_local2 = stationArea[(((("s" + _local6) + "_") + _local3) + "_") + _local5] , _local2 || (_local2 = stationArea[(((("s" + _local3) + "_") + _local6) + "_") + _local5])) {
_local7.sArr.push(_local2);
_local4.sArr.push(_local2);
_local2.sArr.push(_local7);
_local2.sArr.push(_local4);
initStation(_local2);
createLinkedB(_local2, _local7);
createLinkedB(_local2, _local4);
totalLine = totalLine + 2;
_local5++;
}
_local3++;
}
_local6++;
}
Global.main.gamePad.showMsg("Select a lilly pad to start.");
car.onMov = function () {
Global.game.pz.drawArea.lineTo(this._x, this._y);
Global.game.pz.currentStation.effect();
};
car.onMovFinished = function () {
Global.game.pz.movFinished();
};
car.onJumpMov = function () {
trace("car=" + this);
};
car.onJumpFinished = function () {
Global.game.pz.currentStation.effect();
Global.game.pz.drawArea.moveTo(this._x, this._y);
Global.main.gamePad.showMsg("Select next lilly pad to move to.");
Global.game.pz.enabledAll(true);
};
}
function movFinished() {
if ((getTimer() - comboTime) <= 1000) {
comboNum++;
dScore = dScore + 10;
} else {
comboNum = 0;
dScore = 10;
}
comboTime = getTimer();
prevScore = prevScore + dScore;
Global.game.addComboScore(dScore, comboNum);
checkWin();
}
function createLinkedB(s1, s2) {
if (s1.id < s2.id) {
linkedObj[(("$" + s1.id) + "_") + s2.id] = false;
}
linkedObj[(("$" + s2.id) + "_") + s1.id] = false;
}
function isLinked(s1, s2) {
if (s1.id < s2.id) {
return(linkedObj[(("$" + s1.id) + "_") + s2.id]);
}
return(linkedObj[(("$" + s2.id) + "_") + s1.id]);
}
function initStation(s) {
s.id = id;
sArr.push(s);
record.Recorder.setMouseEffect(s, "onRollOver", s, "nextFrame");
record.Recorder.setMouseEffect(s, "onRollOut", s, "prevFrame");
record.Recorder.setMouseEffect(s, "onPress", s, "_press");
s._press = function () {
this.prevFrame();
Global.game.pz.select(this);
};
id++;
}
function select(s) {
enabledAll(false);
if (currentStation) {
if (s.id < currentStation.id) {
linkedObj[(("$" + s.id) + "_") + currentStation.id] = true;
} else {
linkedObj[(("$" + currentStation.id) + "_") + s.id] = true;
}
currentStation = s;
car.movTo(currentStation);
} else {
comboTime = getTimer();
dScore = 10;
currentStation = s;
car.jumpTo(currentStation);
}
}
function checkWin() {
if ((--totalLine) <= 0) {
if (record.Recorder.action == "playing") {
Global.addRun(Global.game, "reset", 30, 1, true);
} else {
Global.game.stageClear(prevScore);
}
} else {
enabledAll(true);
}
}
function enabledAll(value) {
var _local4 = sArr.length;
var _local3 = 0;
while (_local3 < _local4) {
var _local2 = sArr[_local3];
if (_local2.canLinkTo(currentStation) && (!isLinked(_local2, currentStation))) {
_local2.enabled = value;
} else {
_local2.enabled = false;
}
_local3++;
}
}
}
Symbol 383 MovieClip [__Packages.pzs.old.Car] Frame 0
class pzs.old.Car extends MovieClip
{
var gotoAndStop, sTween, obj3d, _x, _xscale;
function Car () {
super();
gotoAndStop(1);
sTween = new effect.STween(this);
sTween.onMov = function (car) {
car.onMov();
};
sTween.onTween = function (car) {
car.gotoAndStop(1);
car.onMovFinished();
};
obj3d = new effect.Obj3d(this);
obj3d.onMov = function (car) {
car.onJumpMov();
};
obj3d.onHitGround = function (car) {
car.gotoAndStop(1);
car.onJumpFinished();
return(true);
};
}
function jumpTo(s) {
obj3d.jumpTo(s._x, s._y);
}
function movTo(s) {
var _local3 = s._x - _x;
if (_local3 < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
gotoAndStop(2);
sTween.movTo(s._x, s._y);
}
function fallFinish() {
Global.setMainEnabled(true);
Global.game.lose();
}
}
Symbol 384 MovieClip [__Packages.effect.Obj3d] Frame 0
class effect.Obj3d
{
var mc, z, vx, vy, vz, u, x, y, onMov, onHitGround;
function Obj3d (_mc, _vx, _vy, _vz, _u, _z) {
mc = _mc;
if (isNaN(_z)) {
_z = 0;
}
z = _z;
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 jumpTo(x1, y1, _vz) {
x = mc._y + (z * 0.2);
y = mc._x;
var _local4 = y1;
var _local3 = x1;
var _local8 = 0;
var _local7 = _local4 - x;
var _local6 = _local3 - y;
if (isNaN(_vz)) {
_vz = 100;
}
vz = _vz;
var _local2 = (-2 * vz) / g;
vx = _local7 / _local2;
vy = _local6 / _local2;
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
onMov();
vx = vx * u;
vy = vy * u;
x = x + vx;
y = y + vy;
z = z + (vz + (g / 2));
vz = vz + g;
mc._x = y;
mc._y = x - (z * 0.2);
if (z <= 0) {
if (onHitGround(mc) || (isSlow)) {
Global.delRun(this, "run");
return(undefined);
}
z = 0;
vz = vz * -0.6;
}
}
function get isSlow() {
return(((((vx * vx) + (vy * vy)) + (vz * vz)) + (z * z)) < 5);
}
static var g = -10;
}
Symbol 385 MovieClip [__Packages.effect.STween] Frame 0
class effect.STween
{
var mc, u, minD, xt, yt, onMov, onTween;
function STween (_mc, _xt, _yt, _u, _minD) {
mc = _mc;
if (isNaN(_u)) {
_u = 0.5;
}
u = _u;
if (isNaN(_minD)) {
_minD = 1;
}
minD = _minD;
if (isNaN(_xt) || (isNaN(_yt))) {
} else {
movTo(_xt, _yt);
}
}
function movTo(_xt, _yt) {
xt = _xt;
yt = _yt;
Global.addRun(this, "run");
}
function run() {
if (mc._name == undefined) {
Global.delRun(this, "run");
return(undefined);
}
if (Global.pause) {
return(undefined);
}
var _local2 = new flash.geom.Point(xt - mc._x, yt - mc._y);
if (_local2.length < minD) {
Global.delRun(this, "run");
mc._x = xt;
mc._y = yt;
onMov(mc);
onTween(mc);
} else {
mc._x = mc._x + (_local2.x * u);
mc._y = mc._y + (_local2.y * u);
onMov(mc);
}
}
}
Symbol 386 MovieClip [__Packages.pzs.old.Station] Frame 0
class pzs.old.Station extends MovieClip
{
var stop, sArr, body;
function Station () {
super();
stop();
sArr = new Array();
}
function canLinkTo(s) {
return(Common.arrIndexOf(sArr, s) >= 0);
}
function effect() {
body.gotoAndPlay(2);
}
}
Symbol 387 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 388 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 389 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 390 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 391 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 392 MovieClip [__Packages.FWG.Logo] Frame 0
class FWG.Logo extends ui.SBtn
{
var _press;
function Logo () {
super();
_press = function () {
this.getURL("http://www.freeworldgroup.com/", "_blank");
};
}
}
Symbol 393 MovieClip [__Packages.FWG.BtnCopyright] Frame 0
class FWG.BtnCopyright extends FWG.Btn
{
var __set__label;
function BtnCopyright () {
super();
__set__label("Copyright 2008 freeworldgroup.com");
}
}
Symbol 394 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 395 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends MovieClip
{
var onPress, useHandCursor;
function HitRec () {
super();
onPress = function () {
};
useHandCursor = false;
}
}
Symbol 396 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends MovieClip
{
function PageMenu () {
super();
}
}
Symbol 397 MovieClip [__Packages.effect.ScorePopUp] Frame 0
class effect.ScorePopUp extends MovieClip
{
var score, body;
function ScorePopUp () {
super();
body.txt.text = score;
}
}
Symbol 398 MovieClip [__Packages.FWG.BtnQ0] Frame 0
class FWG.BtnQ0 extends FWG.Btn
{
var __set__label;
function BtnQ0 () {
super();
__set__label("LOW");
}
}
Symbol 399 MovieClip [__Packages.FWG.BtnQ1] Frame 0
class FWG.BtnQ1 extends FWG.Btn
{
var __set__label;
function BtnQ1 () {
super();
__set__label("MEDIUM");
}
}
Symbol 400 MovieClip [__Packages.FWG.BtnQ2] Frame 0
class FWG.BtnQ2 extends FWG.Btn
{
var __set__label;
function BtnQ2 () {
super();
__set__label("HIGH");
}
}
Symbol 401 MovieClip [__Packages.FWG.BtnQ3] Frame 0
class FWG.BtnQ3 extends FWG.Btn
{
var __set__label;
function BtnQ3 () {
super();
__set__label("BEST");
}
}
Symbol 402 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 403 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label;
function BtnNs () {
super();
__set__label("Next Stage");
}
}
Symbol 404 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 405 MovieClip [__Packages.FWG.BtnPlay] Frame 0
class FWG.BtnPlay extends FWG.Btn
{
var __set__label;
function BtnPlay () {
super();
__set__label("Play");
}
}
Symbol 406 MovieClip [__Packages.FWG.BtnSkip] Frame 0
class FWG.BtnSkip extends FWG.Btn
{
var __set__label;
function BtnSkip () {
super();
__set__label("Skip");
}
}
Symbol 407 MovieClip [__Packages.FWG.PageGameOver] Frame 0
class FWG.PageGameOver extends MovieClip
{
var scoreTxt, gotoAndStop;
function PageGameOver () {
super();
scoreTxt.text = Global.main.score;
trace(scoreTxt.text);
trace("score=" + Global.main.__get__score());
if (Global.main.isWin) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
Symbol 408 MovieClip [__Packages.FWG._3Btn] Frame 0
class FWG._3Btn extends MovieClip
{
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);
this.gotoAndStop(2);
} else {
ui.Alt.show("Music Off");
Global.main.__set__musicOn(true);
this.gotoAndStop(1);
}
ui.Alt.hideDelay(30);
};
btnM._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__musicOn()) {
btnM.gotoAndStop(1);
} else {
btnM.gotoAndStop(2);
}
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);
this.gotoAndStop(2);
} else {
ui.Alt.show("Sound Off");
Global.main.__set__soundOn(true);
this.gotoAndStop(1);
}
ui.Alt.hideDelay(30);
};
btnS._rollOut = function () {
ui.Alt.hide();
};
if (Global.main.__get__soundOn()) {
btnS.gotoAndStop(1);
} else {
btnS.gotoAndStop(2);
}
}
}
Symbol 409 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends MovieClip
{
function PageGame () {
super();
}
}
Symbol 410 MovieClip [__Packages.FWG.BtnLevel] Frame 0
class FWG.BtnLevel extends FWG.Btn
{
var __set__selectAble, errorPress, scoreTxt, __get__score, __id, levelTxt, levelImg;
function BtnLevel () {
super();
}
function set score(_score) {
if (_score < 0) {
_score = 0;
__set__selectAble(false);
errorPress = function () {
ui.Alt.show("Can't play yet!");
ui.Alt.hideDelay(30);
};
}
scoreTxt.text = "Score:" + _score;
//return(__get__score());
}
function get id() {
return(__id);
}
function set id(_id) {
__id = _id;
levelTxt.text = "Level " + __id;
levelImg.gotoAndStop(_id);
//return(id);
}
}
Symbol 411 MovieClip [__Packages.FWG.StageSelecter] Frame 0
class FWG.StageSelecter extends MovieClip
{
function StageSelecter () {
super();
Global.main.stageSave = new FWG.StageSave();
}
function init() {
var _local5;
var _local3;
var _local4;
var _local2 = 1;
while (_local2 <= Global.main.totalStage) {
_local4 = Global.main.stageSave.getCurrentScore(_local2);
_local3 = this["btn" + _local2];
_local3.__set__id(_local2);
if ((_local4 < 0) && (!_local5)) {
_local5 = true;
_local3.__set__score(0);
} else {
_local3.__set__score(_local4);
}
_local3._press = function () {
Global.main.selectPlay(this.id);
};
_local2++;
}
}
}
Symbol 412 MovieClip [__Packages.FWG.PageOptions] Frame 0
class FWG.PageOptions extends MovieClip
{
function PageOptions () {
super();
}
}
Symbol 413 MovieClip [__Packages.FWG.Instructions] Frame 0
class FWG.Instructions extends MovieClip
{
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 414 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends MovieClip
{
function PageInst () {
super();
}
}
Symbol 415 MovieClip [__Packages.FWG.PageStageClear] Frame 0
class FWG.PageStageClear extends MovieClip
{
var scoreTxt;
function PageStageClear () {
super();
scoreTxt.text = Global.main.score;
}
}
Symbol 416 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 417 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 9 MovieClip Frame 1
function isIn(domainName) {
return(((isInUrlFront(domainName) || (isInUrlFront("http://" + domainName))) || (isInUrlFront("http://www." + domainName))) || (isInUrlFront("www." + domainName)));
}
function isInUrlFront(str) {
var _local1 = _url;
_local1.toLowerCase();
str.toLowerCase();
return(_local1.indexOf(str) == 0);
}
this._visible = false;
return(undefined);
Symbol 33 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 33 MovieClip Frame 146
stop();
_root.play();
Symbol 57 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 124
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 59 MovieClip [FWG.BtnDg] Frame 1
#initclip 67
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 61 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 68
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 63 MovieClip [FWG.BtnMog] Frame 1
#initclip 69
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 65 MovieClip [FWG.BtnPg] Frame 1
#initclip 70
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 67 MovieClip [FWG.BtnVh] Frame 1
#initclip 71
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 71 MovieClip [FWG.Logo] Frame 1
#initclip 72
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Symbol 77 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 73
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 83 MovieClip [FWG.BtnCredits] Frame 1
#initclip 74
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 84 MovieClip Frame 1
btnPtopf._press = function () {
getURL ("http://www.freeworldgroup.com/games6/gameindex/puzzle-freak.htm", "_blank");
};
Symbol 87 MovieClip [FWG.HitRec] Frame 1
#initclip 75
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 105 MovieClip [FWG.BtnBack] Frame 1
#initclip 76
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 110 MovieClip [FWG.MusicCredits] Frame 1
#initclip 77
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 111 MovieClip [FWG.PageMenu] Frame 1
#initclip 78
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
Symbol 114 MovieClip [effect.ScorePopUp] Frame 1
#initclip 79
Object.registerClass("effect.ScorePopUp", effect.ScorePopUp);
#endinitclip
Symbol 114 MovieClip [effect.ScorePopUp] Frame 15
stop();
this.removeMovieClip();
Symbol 116 MovieClip Frame 1
txt.text = "+" + _parent.score;
Symbol 117 MovieClip [bonusTxtMc] Frame 5
stop();
Symbol 121 MovieClip [FWG.BtnOK] Frame 1
#initclip 80
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 124 MovieClip [FWG.BtnQ0] Frame 1
#initclip 81
Object.registerClass("FWG.BtnQ0", FWG.BtnQ0);
#endinitclip
Symbol 127 MovieClip [FWG.BtnQ1] Frame 1
#initclip 82
Object.registerClass("FWG.BtnQ1", FWG.BtnQ1);
#endinitclip
Symbol 130 MovieClip [FWG.BtnQ2] Frame 1
#initclip 83
Object.registerClass("FWG.BtnQ2", FWG.BtnQ2);
#endinitclip
Symbol 133 MovieClip [FWG.BtnQ3] Frame 1
#initclip 84
Object.registerClass("FWG.BtnQ3", FWG.BtnQ3);
#endinitclip
Symbol 136 MovieClip [FWG.QualitySetting] Frame 1
#initclip 85
Object.registerClass("FWG.QualitySetting", FWG.QualitySetting);
#endinitclip
Symbol 138 MovieClip [FWG.BtnYes] Frame 1
#initclip 86
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 140 MovieClip [FWG.BtnNo] Frame 1
#initclip 87
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 142 MovieClip [ui.Alert] Frame 1
#initclip 88
Object.registerClass("ui.Alert", ui.Alert);
#endinitclip
Symbol 147 MovieClip [FWG.BtnX] Frame 1
#initclip 89
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 149 MovieClip [FWG.BtnMenu] Frame 1
#initclip 90
Object.registerClass("FWG.BtnMenu", FWG.BtnMenu);
#endinitclip
Symbol 151 MovieClip [FWG.BtnNext] Frame 1
#initclip 91
Object.registerClass("FWG.BtnNext", FWG.Btn);
#endinitclip
Symbol 153 MovieClip [FWG.BtnNs] Frame 1
#initclip 92
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 155 MovieClip [FWG.BtnPa] Frame 1
#initclip 93
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 157 MovieClip [FWG.BtnPlay] Frame 1
#initclip 94
Object.registerClass("FWG.BtnPlay", FWG.BtnPlay);
#endinitclip
Symbol 159 MovieClip [FWG.BtnReset] Frame 1
#initclip 95
Object.registerClass("FWG.BtnReset", FWG.Btn);
#endinitclip
Symbol 161 MovieClip [FWG.BtnSkip] Frame 1
#initclip 96
Object.registerClass("FWG.BtnSkip", FWG.BtnSkip);
#endinitclip
Symbol 163 MovieClip [FWG.BtnSs] Frame 1
#initclip 97
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 165 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 98
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 180 MovieClip Frame 1
gotoAndPlay (169);
Symbol 180 MovieClip Frame 170
stop();
_parent.gotoAndStop(3);
Symbol 180 MovieClip Frame 206
stop();
Symbol 188 MovieClip [FWG.SubmitScore] Frame 1
#initclip 99
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 191 MovieClip [FWG.PageGameOver] Frame 1
#initclip 100
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
Symbol 191 MovieClip [FWG.PageGameOver] Frame 2
movie.gotoAndPlay("lose");
scoreTxt.text = Global.main.score;
Symbol 191 MovieClip [FWG.PageGameOver] Frame 3
scoreTxt.text = Global.main.score;
Symbol 192 MovieClip [record.Recorder] Frame 1
#initclip 101
Object.registerClass("record.Recorder", record.Recorder);
#endinitclip
Symbol 215 MovieClip Frame 1
stop();
Symbol 216 MovieClip [pzs.old.Station] Frame 1
#initclip 102
Object.registerClass("pzs.old.Station", pzs.old.Station);
#endinitclip
Symbol 260 MovieClip [pzs.old.Car] Frame 1
#initclip 103
Object.registerClass("pzs.old.Car", pzs.old.Car);
#endinitclip
Symbol 260 MovieClip [pzs.old.Car] Frame 43
stop();
fallFinish();
Symbol 273 MovieClip [pzs.old.OneLineDraw] Frame 1
#initclip 104
Object.registerClass("pzs.old.OneLineDraw", pzs.old.OneLineDraw);
#endinitclip
Symbol 274 MovieClip [pzs.Game] Frame 1
#initclip 105
Object.registerClass("pzs.Game", pzs.Game);
#endinitclip
stop();
init();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 28
stop();
Symbol 289 MovieClip [ui.TimeBar] Frame 1
#initclip 106
Object.registerClass("ui.TimeBar", ui.TimeBar);
#endinitclip
var xMax = mask._x;
onTimer = function (time, totalTime) {
if (time == 0) {
mask._x = -1000;
} else {
mask._x = mask._x + ((((1 - ((totalTime - time) / totalTime)) * xMax) - mask._x) * 0.5);
}
};
onReset = function () {
mask._x = xMax;
};
Symbol 295 MovieClip [FWG.BtnM] Frame 1
#initclip 107
Object.registerClass("FWG.BtnM", FWG.Btn);
#endinitclip
Symbol 298 MovieClip [FWG.BtnQ] Frame 1
#initclip 108
Object.registerClass("FWG.BtnQ", FWG.Btn);
#endinitclip
Symbol 301 MovieClip [FWG.BtnS] Frame 1
#initclip 109
Object.registerClass("FWG.BtnS", FWG.Btn);
#endinitclip
Symbol 302 MovieClip [FWG._3Btn] Frame 1
#initclip 110
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 303 MovieClip [FWG.GamePad] Frame 1
#initclip 111
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
this.init();
Symbol 304 MovieClip [FWG.PageGame] Frame 1
#initclip 112
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
Symbol 309 MovieClip [FWG.BtnLevel] Frame 1
#initclip 113
Object.registerClass("FWG.BtnLevel", FWG.BtnLevel);
#endinitclip
this.cacheAsBitmap = true;
Symbol 310 MovieClip [FWG.StageSelecter] Frame 1
#initclip 114
Object.registerClass("FWG.StageSelecter", FWG.StageSelecter);
#endinitclip
init();
Symbol 314 MovieClip [FWG.PageOptions] Frame 1
#initclip 115
Object.registerClass("FWG.PageOptions", FWG.PageOptions);
#endinitclip
Symbol 324 MovieClip [record.MouseArrow] Frame 1
#initclip 116
Object.registerClass("record.MouseArrow", record.MouseArrow);
#endinitclip
Symbol 325 MovieClip [FWG.Instructions] Frame 1
#initclip 117
Object.registerClass("FWG.Instructions", FWG.Instructions);
#endinitclip
Symbol 326 MovieClip [FWG.PageInst] Frame 1
#initclip 118
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
Symbol 339 MovieClip [FWG.PageStageClear] Frame 1
#initclip 119
Object.registerClass("FWG.PageStageClear", FWG.PageStageClear);
#endinitclip
Symbol 342 MovieClip Frame 1
stop();
Symbol 343 MovieClip [FWG.MainContainer] Frame 1
#initclip 120
Object.registerClass("FWG.MainContainer", FWG.MainContainer);
#endinitclip
Symbol 349 MovieClip [ui.Alt] Frame 1
#initclip 121
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
bottom.setMask(msgTxt);
Symbol 350 MovieClip [effect.SimpleFade] Frame 1
#initclip 122
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 350 MovieClip [effect.SimpleFade] Frame 10
onHide();
Symbol 350 MovieClip [effect.SimpleFade] Frame 20
onShow();
Symbol 351 MovieClip [FWG.Main] Frame 1
#initclip 123
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip