Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreGameAd({id:"2e7334966f16e7dc", res:"650x500"});
Frame 4
_root._quality = "MEDIUM";
Symbol 2 MovieClip [Logo] Frame 1
onPress = function () {
Common.FWGURL();
};
this.cacheAsBitmap = true;
Symbol 5 MovieClip Frame 1
function replace() {
if (sVariable.length != 0) {
tTxt.variable = sVariable;
}
if (bCustom) {
for (var _local1 in ob) {
if (ob[_local1] != undefined) {
tTxt[_local1] = ob[_local1];
}
}
}
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;
}
tTxt.textColor = nColor;
}
var sTemp = typeof(eval (sTxt));
if (sTemp == "function") {
sTxt = eval (sTxt)();
} else if ((sTemp == "string") || (sTemp == "number")) {
sTxt = eval (sTxt);
} else {
sTxt = String(sTxt);
}
var sVariable;
var autoSize;
var nColor;
var bCustom;
replace();
Symbol 6 MovieClip Frame 1
_root.stop();
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
mLogo._alpha = 0;
mLoading._alpha = 0;
mNum._alpha = 0;
var rate = "";
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
if (_local3 == all) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
delete this.onEnterFrame;
} else if (mLogo._alpha < 100) {
mLogo._alpha = mLogo._alpha + 5;
} else {
mLogo._alpha = 100;
mNum._alpha = 100;
mLoading._alpha = Common.nolinearCycle(getTimer(), 800, 100);
}
};
Instance of Symbol 5 MovieClip "mLoading" in Symbol 6 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
nColor = 16777215 /* 0xFFFFFF */;
autoSize = "center";
bCustom = false;
ob = {};
ob.type = "input";
ob.maxChars = 6;
ob.restrict = "^ ";
ob.selectable = true;
ob.border = true;
ob.borderColor = "0xffffff";
ob.background = true;
ob.backgroundColor = "0x000000";
ob.html = false;
}
Instance of Symbol 5 MovieClip "mNum" in Symbol 6 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
nColor = 16777215 /* 0xFFFFFF */;
autoSize = "center";
bCustom = false;
ob = {};
ob.type = "input";
ob.maxChars = 6;
ob.restrict = "^ ";
ob.selectable = true;
ob.border = true;
ob.borderColor = "0xffffff";
ob.background = true;
ob.backgroundColor = "0x000000";
ob.html = false;
}
Symbol 396 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 397 MovieClip [__Packages.Common] Frame 0
class Common
{
static var tempArr;
function Common () {
}
static function VIEWSCORE() {
}
static function FWGURL() {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
static function ADDGAME() {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
static function DOWNLOAD() {
getURL ("http://www.ifungames.com", "_blank");
}
static function nolinearCycle(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
static function linearCycle(x, T, r) {
var _local1 = T / 2;
if ((x % T) > _local1) {
return((1 - ((x % _local1) / _local1)) * r);
}
if ((x % T) < _local1) {
return(((x % _local1) / _local1) * r);
}
return(r);
}
static function setRGB(mc, color) {
new Color(mc).setRGB(color);
}
static function setRGBOffset(mc, color, modeNum) {
trace("Common.setRGBOffset \u672A\u6D4B\u8BD5");
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) {
trace("Common.disorder \u672A\u6D4B\u8BD5");
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) {
trace("Common.getSum \u672A\u6D4B\u8BD5");
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 forEachChild(mc, f, recursion) {
var _local2 = getAllChildren(mc, recursion);
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
f(_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) {
trace("Common.getAllChildrenByOrder \u672A\u6D4B\u8BD5");
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) {
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 selectTxt(txt) {
trace("Common.selectTxt \u672A\u6D4B\u8BD5");
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 function searchMap(map, seed, f) {
var _local15 = map[0].length;
var _local14 = map.length;
var _local7 = new Array(_local14);
var _local1 = 0;
while (_local1 < _local14) {
_local7[_local1] = new Array(_local15);
_local1++;
}
var _local10;
var _local12 = seed.length;
var _local4 = 0;
while (_local4 < _local12) {
_local7[seed[_local4][1]][seed[_local4][0]] = true;
f(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]) && (f(map[_local1][_local2]))) {
_local7[_local1][_local2] = true;
_local10.push([_local2, _local1]);
}
_local3++;
}
_local4++;
}
seed = _local10.slice();
}
}
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]];
}
Symbol 398 MovieClip [__Packages.basic.Mc] Frame 0
class basic.Mc extends MovieClip
{
function Mc () {
super();
}
}
Symbol 399 MovieClip [__Packages.record.Recorder] Frame 0
class record.Recorder extends basic.Mc
{
static var recorder, keyDownArr, keyDownArr2, __keyDown, __keyUp, __mouseDown, __mouseUp, __mouseMove, onReplayFinish, totalData, output;
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.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(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 save(id) {
}
static function read(id) {
}
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 function outputData() {
trace("dataObj={");
trace(("\ttotalFrame:" + frameId) + ",");
trace(("\ttotalData:" + dataId) + ",");
trace(("\tdataArr:" + Common.arrToStr(dataArr)) + ",");
var _local1 = "\tctrlObj:{\n";
for (var _local2 in ctrlObj) {
_local1 = _local1 + (((("\t\t" + _local2) + ":") + Common.arrToStr(ctrlObj[_local2])) + ",\n");
}
_local1 = _local1.substr(0, _local1.length - 2) + "\n\t}";
trace(_local1);
trace("}");
}
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 saveNames = ["totalFrame", "totalData", "totalCtrl", "dataArr", "ctrlObj"];
}
Symbol 400 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 401 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());// not popped
trace("replayer=" + this);
Global.pause = false;
}
}
Symbol 402 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) {
trace(("bmd: " + bmd) + " \u4E0D\u5B58\u5728\u6216\u5DF2\u7ECF\u88AB\u5220\u9664");
}
}
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 403 MovieClip [__Packages.FWG.BasicMain] Frame 0
class FWG.BasicMain extends basic.Mc
{
var _parent, gameName, stageWid, stageHei, totalStage, sndBg, playerInfo, keySetting, isFirstPlay, stageData, __currentScore, gamePad, __score, __stageNum, pageId, fadeEffect, stageSave, qualitySetting, snd_mc, __musicOn, __soundOn, isWin, effectArea;
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);
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 () {
(this.getURL("http://www.freeworldgroup.com/score/index.asp?game=" + Global.main.gameName, "_blank"));// not popped
};
break;
case "Download Games" :
btn._press = function () {
(this.getURL("http://www.ifungames.com", "_blank"));// not popped
};
break;
case "More Online Games" :
btn._press = function () {
(this.getURL("http://www.freeworldgroup.com", "_blank"));// not popped
};
break;
case "Add Games to Your Site" :
btn._press = function () {
(this.getURL("http://www.freeworldgroup.com/koalafiles.htm", "_blank"));// not popped
};
break;
case "Copyright 2007 freeworldgroup.com" :
btn._press = function () {
(this.getURL("http://www.freeworldgroup.com", "_blank"));// not popped
};
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("score=" + Global.main.__get__score());
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 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) {
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();
var _local2 = stageSave.getCurrentScore(stageNum);
if (_local2 <= currentScore) {
stageSave.setScore(stageNum, currentScore, score);
}
if (stageNum > 17) {
fadeTo("FWG.PageGameOver");
} 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);
stageData.update();
gotoGame();
}
function playAgain() {
stageData.resetGameData();
gotoOptions();
}
function addEffect(id, initObj) {
var _local2 = effectArea.getNextHighestDepth();
effectArea.attachMovie(id, "effect" + _local2, _local2, initObj);
}
}
Symbol 404 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 405 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 406 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 407 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(id) {
var _local2 = dataObj["$" + id].score;
if (isNaN(_local2)) {
return(-1);
}
return(_local2);
}
function setScore(id, currentScore, score) {
var _local2 = (dataObj["$" + id] = new Object());
_local2.currentScore = currentScore;
_local2.score = score;
}
var dataObj = {};
}
Symbol 408 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() {
trace("submit score 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 hideAlt() {
ui.Alt.hide();
}
function show() {
_visible = true;
init();
}
function hide() {
_visible = false;
(gotoAndStop(1));// not popped
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));// not popped
Global.main.btnSs._visible = false;
}
}
Symbol 409 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, __errorPress;
function SBtn () {
super();
filters0 = filters.slice();
greyFilters = filters.concat([greyFilter]);
rollOverFilters = 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) {
btn.enabled = false;
filters = filters0.concat(redGlowFilter);
} else {
btn.enabled = true;
filters = filters0;
}
//return(selected);
}
function get selectAble() {
return(__selectAble);
}
function set selectAble(_selectAble) {
__selectAble = _selectAble;
if (__selectAble) {
btn.enabled = true;
btn.useHandCursor = true;
filters = filters0;
} else {
if (!errorPress) {
btn.enabled = false;
}
filters = greyFilters;
btn.useHandCursor = false;
}
//return(selectAble);
}
function get errorPress() {
return(__errorPress);
}
function set errorPress(_errorPress) {
__errorPress = _errorPress;
btn.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 410 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() {
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 411 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;
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) {
trace("delayTime=" + 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 412 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 413 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 414 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 415 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 416 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 417 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 418 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 419 MovieClip [__Packages.FWG.GamePad] Frame 0
class FWG.GamePad extends FWG.BasicGamePad
{
var youfail_pad, btnReset, numClock, stageNumTxt, __get__stageNum, currentScoreTxt, __get__currentScore, scoreTxt, __get__score;
function GamePad () {
super();
Global.main.gamePad = this;
youfail_pad._visible = false;
}
function init() {
stageNum = (Global.main.stageNum);
currentScore = (Global.main.currentScore);
score = (Global.main.score);
btnReset._press = function () {
Global.game.reset();
};
numClock.__set__totalTime(120);
numClock.start();
numClock.onTimeUp = function () {
Global.main.gamePad.showYouFail();
};
}
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());
}
function showYouFail() {
Global.pause = true;
youfail_pad.scoreTxt.text = Global.main.score;
youfail_pad._visible = true;
}
}
Symbol 420 MovieClip [__Packages.xmasCorner.PowerUpStack] Frame 0
class xmasCorner.PowerUpStack extends basic.Mc
{
static var stack;
function PowerUpStack () {
super();
var _local3 = 0;
while (_local3 < 4) {
this["item" + _local3].gotoAndStop("blank");
_local3++;
}
var _local4 = totalBlockArr[Global.main.__get__stageNum() - 1];
stack = new Array(_local4);
_local3 = 0;
while (_local3 < _local4) {
stack[_local3] = xmasCorner.PowerUp.ADDBLOCK;
_local3++;
}
_local3 = 0;
while (_local3 < 4) {
if (_local3 < _local4) {
this["item" + _local3].gotoAndStop(stack[_local3]);
} else {
this["item" + _local3].gotoAndStop(stack[_local3]);
}
_local3++;
}
}
function addPowerUp(powerUp) {
this["item" + stack.length].gotoAndStop(powerUp.type);
stack.push(powerUp.type);
}
function getPowerUp() {
this["item" + (stack.length - 1)].gotoAndStop("blank");
return(String(stack.pop()));
}
static var totalBlockArr = [1, 1, 3, 2, 2, 2, 3, 1, 3, 3, 3, 3, 3, 0, 0, 1, 0, 3];
}
Symbol 421 MovieClip [__Packages.xmasCorner.Obj] Frame 0
class xmasCorner.Obj extends basic.Mc
{
function Obj () {
super();
}
}
Symbol 422 MovieClip [__Packages.xmasCorner.PowerUp] Frame 0
class xmasCorner.PowerUp extends xmasCorner.Obj
{
function PowerUp () {
super();
}
static var PAUSE = "\u5B9A\u65F6";
static var ADDBLOCK = "\u52A0\u7816";
static var ADDBOMB = "\u52A0\u5F39";
var isPowerUp = true;
}
Symbol 423 MovieClip [__Packages.xmasCorner.PauseClock] Frame 0
class xmasCorner.PauseClock extends basic.Mc
{
var gotoAndPlay;
function PauseClock () {
super();
}
function start() {
trace("start");
(gotoAndPlay(2));// not popped
}
function onTimeUp() {
xmasCorner.Char.__set__pause(false);
}
}
Symbol 424 MovieClip [__Packages.xmasCorner.MovObj] Frame 0
class xmasCorner.MovObj extends xmasCorner.Obj
{
var isMoving, dirX, x0, dirY, y0, xt, yt, _x, _y, onStep, onMovTo, removeMovieClip;
function MovObj () {
super();
isMoving = false;
}
function movTo() {
var _local4 = x0 + dirX;
var _local3 = y0 + dirY;
var _local2 = Global.game.tileArea.map[_local3][_local4];
if (_local2 instanceof xmasCorner.Hole) {
_local2.empty = false;
} else if (_local2 == null) {
Global.game.tileArea.map[_local3][_local4] = this;
}
if (Global.game.tileArea.map[y0][x0] == this) {
Global.game.tileArea.map[y0][x0] = null;
}
xt = _local4;
yt = _local3;
isMoving = true;
mov();
}
function mov() {
_x = _x + (dirX * v);
_y = _y + (dirY * v);
xmasCorner.TileArea.setDepth(this);
if (isIntXy()) {
x0 = xt;
y0 = yt;
checkFallInHole();
isMoving = false;
onStep();
onMovTo();
}
}
function checkFallInHole() {
var _local2 = Global.game.tileArea.map[y0][x0];
if (_local2 instanceof xmasCorner.Hole) {
_local2.fallChar(this);
if (this instanceof xmasCorner.Char) {
Global.main.gamePad.showYouFail();
}
removeMovieClip();
}
}
function dirWalkAble(dx, dy) {
return(Global.game.tileArea.walkAble(x0 + dx, y0 + dy));
}
function dirPushAble(dx, dy) {
return(Global.game.tileArea.pushAble(x0 + dx, y0 + dy, dx, dy) && (Global.game.tileArea.walkAble(x0 + (2 * dx), y0 + (2 * dy))));
}
function isIntXy() {
return(((_x % xmasCorner.TileArea.d) == 0) && ((_y % xmasCorner.TileArea.d) == 0));
}
static var v = 5;
}
Symbol 425 MovieClip [__Packages.xmasCorner.Hole] Frame 0
class xmasCorner.Hole extends xmasCorner.Obj
{
var empty, charId, char_fall, x0, y0;
function Hole () {
super();
empty = true;
}
function fallChar(char) {
if (char._name == "hero") {
charId = 1;
} else if (char instanceof xmasCorner.Char) {
charId = 2;
} else {
charId = 3;
}
char_fall.play();
char_fall.onFall = function () {
this._parent.setNull();
};
}
function setNull() {
Global.game.tileArea.map[y0][x0] = null;
}
}
Symbol 426 MovieClip [__Packages.xmasCorner.TileArea] Frame 0
class xmasCorner.TileArea extends basic.Mc
{
var chars, gotoAndStop, map, testMap_mc, getNextHighestDepth, attachMovie;
function TileArea () {
super();
trace("this=" + this);
chars = new Array();
Global.game.tileArea = this;
(gotoAndStop(Global.main.__get__stageNum() + 1));// not popped
}
function init() {
Global.gameInterface.win = false;
map = new Array(w);
var _local3 = 0;
while (_local3 < w) {
map[_local3] = new Array(w);
var _local2 = 0;
while (_local2 < w) {
map[_local3][_local2] = null;
_local2++;
}
_local3++;
}
Common.forEachChild(this, adjustPos);
testMap_mc.swapDepths(getNextHighestDepth());
}
function adjustPos(mc) {
var _local2 = getXy(mc._x, mc._y);
mc.x0 = _local2.x;
mc.y0 = _local2.y;
mc._x = _local2.x * d;
mc._y = _local2.y * d;
if (!(mc instanceof xmasCorner.Hole)) {
setDepth(mc);
}
if (mc instanceof xmasCorner.Tile) {
mc.gotoAndStop(((_local2.x + _local2.y) % 2) + 1);
mc._name = (("t" + _local2.y) + "_") + _local2.x;
}
if (mc instanceof xmasCorner.Obj) {
Global.game.tileArea.map[_local2.y][_local2.x] = mc;
}
}
static function setDepth(mc) {
mc.swapDepths(((Math.round(mc._y + 1) * w) * d) - mc._x);
}
static function getXy(x, y) {
return(new flash.geom.Point(Math.round(x / d), Math.round(y / d)));
}
function walkAble(x, y) {
var _local2 = map[y][x];
return((_local2 == null) || ((_local2 instanceof xmasCorner.Hole) && (_local2.empty)));
}
function pushAble(x, y, dirX, dirY) {
var _local2 = map[y][x];
if (_local2 instanceof xmasCorner.PushBlock) {
if (_local2.isMoving) {
return(false);
}
return(walkAble(x + dirX, y + dirY));
}
return(false);
}
function addObj(charId, x, y) {
var _local4 = getNextHighestDepth();
var _local2 = attachMovie(charId, (("t" + y) + "_") + x, _local4, {_x:x, _y:y});
var _local3 = getXy(x, y);
_local2.x0 = _local3.x;
_local2.y0 = _local3.y;
map[_local3.y][_local3.x] = _local2;
setDepth(_local2);
return(_local2);
}
function checkWin() {
var _local6 = chars.length;
var _local5 = 0;
var _local3 = 0;
while (_local3 < _local6) {
var _local4 = chars[_local3];
if (_local4._name != "hero") {
if (_local4.movAble) {
return(undefined);
}
_local5++;
}
_local3++;
}
var totalChar2 = 0;
Common.searchMap(map, [[chars[0].x0, chars[0].y0]], function (char) {
if ((char instanceof xmasCorner.Char) && (char._name != "hero")) {
totalChar2++;
return(true);
}
return(false);
});
trace((("total1=" + _local5) + ",total2=") + totalChar2);
if (_local5 == totalChar2) {
Global.gameInterface.win = true;
Global.game.hero.checkStageClear();
} else if (_root.Word == undefined) {
_root.attachMovie("Word", "Word", _root.getNextHighestDepth(), {nTime:100, sTxt:"You must group all\nthe presents together", _x:640, _y:450});
trace("\u63D0\u793A:\u8981\u5728\u4E00\u8D77");
}
}
function removeObj(x, y) {
if ((((x == 0) || (x == (w - 1))) || (y == 0)) || (y == (w - 1))) {
return(undefined);
}
var _local2 = map[y][x];
if (_local2 instanceof xmasCorner.Char) {
Global.main.gamePad.showYouFail();
}
_local2.removeMovieClip();
map[y][x] = null;
}
static var d = 40;
static var d2 = d / 2;
static var w = 12;
}
Symbol 427 MovieClip [__Packages.xmasCorner.Tile] Frame 0
class xmasCorner.Tile extends xmasCorner.Obj
{
var cacheAsBitmap;
function Tile () {
super();
cacheAsBitmap = true;
}
}
Symbol 428 MovieClip [__Packages.xmasCorner.PushBlock] Frame 0
class xmasCorner.PushBlock extends xmasCorner.MovObj
{
var onMovTo;
function PushBlock () {
super();
onMovTo = function () {
Global.delGameRun(this, "mov");
};
}
function movTo() {
super.movTo();
Global.addGameRun(this, "mov");
}
function toString() {
return("PushBlock");
}
}
Symbol 429 MovieClip [__Packages.xmasCorner.Char] Frame 0
class xmasCorner.Char extends xmasCorner.MovObj
{
static var __pause;
var bodyPlayDelayTime, gotoAndStop, body, onMovTo, delayTime, movAble, onStep, isIntXy, _name, dirX, dirY, _y, _x, x0, y0, isMoving, dirWalkAble, movTo, dirPushAble, prevUsePowerUp;
function Char () {
super();
__pause = false;
Global.game.tileArea.chars.push(this);
bodyPlayDelayTime = 0;
(gotoAndStop(4));// not popped
body.stop();
if (isHero) {
Global.game.hero = this;
record.Recorder.__set__keyDown(function (keyCode) {
if (keyCode == Global.game.hero.powerUpKey) {
Global.game.hero.usePowerUp();
}
});
Global.addGameRun(this, "run2");
onMovTo = function () {
if (this.checkStageClear()) {
} else {
this.getPowerUp();
}
};
} else {
delayTime = 0;
movAble = false;
Global.addGameRun(this, "run1");
}
onStep = function () {
this.addStep();
};
}
function checkStageClear() {
if (!isIntXy()) {
return(undefined);
}
if (Global.gameInterface.win) {
Global.pause = true;
trace("step=" + Global.main.movStep);
trace("time=" + Global.main.gamePad.numClock.__get__time());
var _local2 = (50 * Global.main.__get__stageNum()) - Global.main.movStep;
if (_local2 < 0) {
_local2 = 0;
}
var _local3 = Global.main.gamePad.numClock.__get__time();
Global.main.addScore((_local2 * 2) + (_local3 * 5));
Global.main.movStep = 0;
Global.game.stageClear();
return(true);
}
return(false);
}
function get isHero() {
return(_name == "hero");
}
function addStep() {
var _local3 = Global.game.tileArea.mStep.getNextHighestDepth();
var _local4;
var _local5;
var _local2;
if (dirX == 0) {
_local2 = 0;
if (dirY > 0) {
_local4 = -100;
} else {
_local4 = 100;
}
} else {
_local5 = 100;
if (dirX > 0) {
_local2 = 90;
} else {
_local2 = -90;
}
}
_local2 = _local2 + (random(8) - 4);
if (isHero) {
Global.main.movStep++;
Global.game.tileArea.mStep.attachMovie("mStep", "mStep" + _local3, _local3, {_xscale:_local5, _yscale:_local4, _rotation:_local2, _x:_x, _y:_y});
} else {
Global.game.tileArea.mStep.attachMovie("mStep_2", "mStep" + _local3, _local3, {_xscale:_local5, _yscale:_local4, _rotation:_local2, _x:_x, _y:_y});
}
}
function mov() {
super.mov();
if (dirX < 0) {
gotoAndStop(1);
} else if (dirX > 0) {
gotoAndStop(3);
} else if (dirY < 0) {
gotoAndStop(2);
} else if (dirY > 0) {
gotoAndStop(4);
}
body.stop();
playBody();
}
function pushBlock() {
var _local2 = Global.game.tileArea.map[y0 + dirY][x0 + dirX];
_local2.dirX = dirX;
_local2.dirY = dirY;
_local2.movTo();
}
function stand() {
gotoAndStop(5);
}
function playBody() {
if ((--bodyPlayDelayTime) <= 0) {
bodyPlayDelayTime = 0;
if (body._currentframe == body._totalframes) {
body.gotoAndStop(1);
} else {
body.gotoAndStop(body._currentframe + 3);
}
}
}
function run1() {
if (delayTime >= 0) {
delayTime--;
return(undefined);
}
if (movAble) {
if (isMoving) {
mov();
} else {
if (pause) {
return(undefined);
}
if (dirWalkAble(dirX, dirY)) {
movTo();
} else if (dirPushAble(dirX, dirY)) {
pushBlock();
movTo();
} else {
getMovDir(Global.game.tileArea.map[y0 + dirY][x0 + dirX] == Global.game.hero);
}
}
} else {
delayTime = 1;
getMovDir();
}
}
function run2() {
if (isMoving) {
mov();
} else {
if (prevUsePowerUp) {
prevUsePowerUp = false;
usePowerUp();
}
dirX = 0;
dirY = 0;
if (Key.isDown(leftKey1) || (Key.isDown(leftKey2))) {
dirX = -1;
} else if (Key.isDown(rightKey1) || (Key.isDown(rightKey2))) {
dirX = 1;
} else if (Key.isDown(upKey1) || (Key.isDown(upKey2))) {
dirY = -1;
} else if (Key.isDown(downKey1) || (Key.isDown(downKey2))) {
dirY = 1;
}
if ((dirX == 0) && (dirY == 0)) {
stand();
} else if (dirWalkAble(dirX, dirY)) {
movTo();
} else if (dirPushAble(dirX, dirY)) {
pushBlock();
movTo();
} else if (Global.game.tileArea.map[y0 + dirY][x0 + dirX] instanceof xmasCorner.PowerUp) {
movTo();
}
}
}
function getMovDir(hitHero) {
var _local4 = new Array();
var _local2;
var _local3 = 0;
while (_local3 < 4) {
_local2 = Common.dirArr[_local3];
if (dirWalkAble(_local2[0], _local2[1]) || (dirPushAble(_local2[0], _local2[1]))) {
_local4.push(_local2);
}
_local3++;
}
var _local5 = _local4.length;
if (_local5 == 0) {
movAble = false;
if (Global.gameInterface.win) {
return(undefined);
}
Global.game.tileArea.checkWin();
} else {
if (((_local5 > 1) && (hitHero)) && (Global.game.tileArea.map[y0 + dirY][x0 + dirX] == Global.game.hero)) {
_local3 = 0;
while (_local3 < _local5) {
_local2 = _local4[_local3];
if ((_local2[0] == (-dirX)) && (_local2[1] == (-dirY))) {
_local4.splice(_local3, 1);
_local5--;
break;
}
_local3++;
}
}
_local2 = _local4[record.Recorder.getData(random(_local5))];
dirX = _local2[0];
dirY = _local2[1];
movAble = true;
}
}
static function get pause() {
return(__pause);
}
static function set pause(_pause) {
__pause = _pause;
if (__pause) {
Global.main.gamePad.clock.start();
}
//return(pause);
}
function getPowerUp() {
var _local2 = Global.game.tileArea.map[y0][x0];
if (_local2.isPowerUp) {
Global.main.gamePad.powerUpStack.addPowerUp(_local2);
Global.game.tileArea.map[y0][x0] = null;
if (_local2.type == xmasCorner.PowerUp.PAUSE) {
usePowerUp();
}
_local2.removeMovieClip();
}
}
function usePowerUp() {
if (Global.pause) {
return(undefined);
}
if (isIntXy()) {
switch (Global.main.gamePad.powerUpStack.getPowerUp()) {
case xmasCorner.PowerUp.PAUSE :
pause = (true);
break;
case xmasCorner.PowerUp.ADDBLOCK :
Global.game.tileArea.addObj("xmasCorner.Block", _x, _y);
break;
case xmasCorner.PowerUp.ADDBOMB :
Global.game.tileArea.addObj("xmasCorner.Bomb", _x, _y);
}
} else {
prevUsePowerUp = true;
}
}
var leftKey1 = 65;
var upKey1 = 87;
var rightKey1 = 68;
var downKey1 = 83;
var leftKey2 = 37;
var upKey2 = 38;
var rightKey2 = 39;
var downKey2 = 40;
var powerUpKey = 32;
}
Symbol 430 MovieClip [__Packages.ui.NumClock] Frame 0
class ui.NumClock extends basic.Mc
{
var delayTime, onTimeUp, __time, txt, __totalTime;
function NumClock () {
super();
}
function start() {
delayTime = 30;
Global.addGameRun(this, "run");
}
function stop() {
Global.delGameRun(this, "run");
}
function run() {
if ((--delayTime) <= 0) {
delayTime = 30;
if (time = ((time-1)) <= 0) {
timeUp();
}
}
}
function timeUp() {
(stop());// not popped
onTimeUp();
}
function get time() {
return(__time);
}
function set time(_time) {
txt.text = numToTime((__time = _time));
//return(time);
}
function get totalTime() {
return(__totalTime);
}
function set totalTime(_totalTime) {
time = ((__totalTime = _totalTime));
//return(totalTime);
}
function numToTime(num) {
var _local2 = num % 60;
var _local3 = (num - _local2) / 60;
var _local1 = "";
if (_local3 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + (_local3 + ":");
if (_local2 < 10) {
_local1 = _local1 + "0";
}
_local1 = _local1 + _local2;
return(_local1);
}
}
Symbol 431 MovieClip [__Packages.FWG.StageData] Frame 0
class FWG.StageData
{
var varNameList, dataObj0, prevDataObj, dataObj;
function StageData (_varNameList) {
trace("stageData\u521D\u59CB\u5316");
varNameList = _varNameList;
dataObj0 = new Object();
prevDataObj = new Object();
dataObj = new Object();
allCopyMain();
}
function addVars(_varNameList) {
trace("stageData\u6DFB\u52A0\u9879");
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() {
trace("stageData\u5B58\u50A8\u6E38\u620F\u6570\u636E");
copyMain(prevDataObj);
copyMain(dataObj);
traceDataObj();
}
function restartStage() {
trace("stageData\u91CD\u8BBE\u4E3A\u4E0A\u4E00\u5173\u6570\u636E");
initByObj(prevDataObj);
traceDataObj();
}
function resetGameData() {
trace("stageData\u91CD\u8BBE\u4E3A\u6E38\u620F\u5F00\u59CB\u65F6\u7684\u6570\u636E");
initByObj(dataObj0);
traceDataObj();
}
function traceDataObj() {
trace(("stagedata.dataObj=" + Common.objToStr(dataObj)) + "\n--------------------------------------");
}
}
Symbol 432 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 433 MovieClip [__Packages.FWG.Main] Frame 0
class FWG.Main extends FWG.BasicMain
{
var movStep, stageData;
function Main () {
super("xmascorner", 650, 500, 18);
movStep = 0;
stageData.addVars(["movStep"]);
}
}
Symbol 434 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 435 MovieClip [__Packages.xmasCorner.Game] Frame 0
class xmasCorner.Game extends FWG.BasicGame
{
var _parent;
function Game () {
super();
Global.pause = false;
}
function reset() {
_parent.play();
}
}
Symbol 436 MovieClip [__Packages.TestBmd] Frame 0
class TestBmd extends flash.display.BitmapData
{
function TestBmd () {
super();
}
}
Symbol 437 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;
trace(obj.dataArr);
}
function read(id) {
return(dataObj["$" + id]);
}
var dataObj = {};
}
Symbol 438 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 439 MovieClip [__Packages.xmasCorner.PowerUp3] Frame 0
class xmasCorner.PowerUp3 extends xmasCorner.PowerUp
{
var type;
function PowerUp3 () {
super();
type = xmasCorner.PowerUp.ADDBOMB;
}
}
Symbol 440 MovieClip [__Packages.xmasCorner.PowerUp1] Frame 0
class xmasCorner.PowerUp1 extends xmasCorner.PowerUp
{
var type;
function PowerUp1 () {
super();
type = xmasCorner.PowerUp.PAUSE;
}
}
Symbol 441 MovieClip [__Packages.FWG.BtnM] Frame 0
class FWG.BtnM extends FWG.Btn
{
var redCircle;
function BtnM () {
super();
redCircle._visible = false;
}
}
Symbol 442 MovieClip [__Packages.FWG.BtnS] Frame 0
class FWG.BtnS extends FWG.Btn
{
var redCircle;
function BtnS () {
super();
redCircle._visible = false;
}
}
Symbol 443 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 444 MovieClip [__Packages.FWG.BtnMenu] Frame 0
class FWG.BtnMenu extends FWG.Btn
{
var __set__label;
function BtnMenu () {
super();
__set__label("Menu");
}
}
Symbol 445 MovieClip [__Packages.FWG.HitRec] Frame 0
class FWG.HitRec extends basic.Mc
{
var onPress, useHandCursor;
function HitRec () {
super();
onPress = function () {
};
useHandCursor = false;
}
}
Symbol 446 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 447 MovieClip [__Packages.FWG.BtnDg] Frame 0
class FWG.BtnDg extends FWG.Btn
{
var __set__label;
function BtnDg () {
super();
__set__label("Download Games");
}
}
Symbol 448 MovieClip [__Packages.FWG.BtnMog] Frame 0
class FWG.BtnMog extends FWG.Btn
{
var __set__label;
function BtnMog () {
super();
__set__label("More Online Games");
}
}
Symbol 449 MovieClip [__Packages.FWG.BtnVh] Frame 0
class FWG.BtnVh extends FWG.Btn
{
var __set__label;
function BtnVh () {
super();
__set__label("View Highscores");
}
}
Symbol 450 MovieClip [__Packages.FWG.BtnQ0] Frame 0
class FWG.BtnQ0 extends FWG.Btn
{
var __set__label;
function BtnQ0 () {
super();
__set__label("LOW");
}
}
Symbol 451 MovieClip [__Packages.FWG.BtnQ1] Frame 0
class FWG.BtnQ1 extends FWG.Btn
{
var __set__label;
function BtnQ1 () {
super();
__set__label("MEDIUM");
}
}
Symbol 452 MovieClip [__Packages.FWG.BtnQ2] Frame 0
class FWG.BtnQ2 extends FWG.Btn
{
var __set__label;
function BtnQ2 () {
super();
__set__label("HIGH");
}
}
Symbol 453 MovieClip [__Packages.FWG.BtnQ3] Frame 0
class FWG.BtnQ3 extends FWG.Btn
{
var __set__label;
function BtnQ3 () {
super();
__set__label("BEST");
}
}
Symbol 454 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"));// not popped
};
}
}
Symbol 455 MovieClip [__Packages.FWG.PageGame] Frame 0
class FWG.PageGame extends basic.Mc
{
function PageGame () {
super();
}
}
Symbol 456 MovieClip [__Packages.FWG.BtnPa] Frame 0
class FWG.BtnPa extends FWG.Btn
{
var __set__label;
function BtnPa () {
super();
__set__label("Play Again");
}
}
Symbol 457 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));// not popped
} else {
(gotoAndStop(2));// not popped
}
}
}
Symbol 458 MovieClip [__Packages.FWG.BtnSkip] Frame 0
class FWG.BtnSkip extends FWG.Btn
{
var __set__label;
function BtnSkip () {
super();
__set__label("Skip");
}
}
Symbol 459 MovieClip [__Packages.FWG.BtnPlay] Frame 0
class FWG.BtnPlay extends FWG.Btn
{
var __set__label;
function BtnPlay () {
super();
__set__label("Play");
}
}
Symbol 460 MovieClip [__Packages.FWG.Instructions] Frame 0
class FWG.Instructions extends basic.Mc
{
var stop, btnNext, btnBack, _totalframes, _currentframe, btnPlay, btnSkip;
function Instructions () {
super();
(stop());// not popped
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 461 MovieClip [__Packages.FWG.PageInst] Frame 0
class FWG.PageInst extends basic.Mc
{
function PageInst () {
super();
}
}
Symbol 462 MovieClip [__Packages.FWG.BtnInstructions] Frame 0
class FWG.BtnInstructions extends FWG.Btn
{
var __set__label;
function BtnInstructions () {
super();
__set__label("Instructions");
}
}
Symbol 463 MovieClip [__Packages.FWG.BtnPg] Frame 0
class FWG.BtnPg extends FWG.Btn
{
var __set__label;
function BtnPg () {
super();
__set__label("Play Game");
}
}
Symbol 464 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 465 MovieClip [__Packages.FWG.BtnCredits] Frame 0
class FWG.BtnCredits extends FWG.Btn
{
var __set__label;
function BtnCredits () {
super();
__set__label("Credits");
}
}
Symbol 466 MovieClip [__Packages.FWG.PageMenu] Frame 0
class FWG.PageMenu extends basic.Mc
{
function PageMenu () {
super();
}
}
Symbol 467 MovieClip [__Packages.FWG.BtnLevel] Frame 0
class FWG.BtnLevel extends FWG.Btn
{
var __get__selectAble, levelImg2, swapDepths, _parent, __set__selectAble, __set__errorPress, scoreTxt, hitArea, levelImg, __get__score, __id, levelTxt;
function BtnLevel () {
super();
}
function rollOver() {
super.rollOver();
if (__get__selectAble()) {
levelImg2.play();
swapDepths(_parent.getNextHighestDepth());
}
}
function rollOut() {
super.rollOut();
if (__get__selectAble()) {
levelImg2.gotoAndStop(1);
}
}
function press() {
super.press();
if (__get__selectAble()) {
levelImg2.gotoAndStop(1);
}
}
function set score(_score) {
if (_score < 0) {
_score = 0;
__set__selectAble(false);
__set__errorPress(function () {
ui.Alt.show("Not available!");
ui.Alt.hideDelay(1500);
});
}
scoreTxt.text = _score;
hitArea = levelImg;
//return(__get__score());
}
function get id() {
return(__id);
}
function set id(_id) {
__id = _id;
levelTxt.text = "Level " + __id;
levelImg.gotoAndStop(_id);
//return(id);
}
}
Symbol 468 MovieClip [__Packages.FWG.StageSelecter] Frame 0
class FWG.StageSelecter extends basic.Mc
{
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 469 MovieClip [__Packages.FWG.PageOptions] Frame 0
class FWG.PageOptions extends basic.Mc
{
function PageOptions () {
super();
}
}
Symbol 470 MovieClip [__Packages.xmasCorner.Bomb] Frame 0
class xmasCorner.Bomb extends xmasCorner.Obj
{
var x0, y0;
function Bomb () {
super();
}
function onExp() {
Global.main.playSound("SndExp");
var _local2 = 0;
while (_local2 < 4) {
var _local3 = Common.dirArr[_local2];
Global.game.tileArea.removeObj(x0 + _local3[0], y0 + _local3[1]);
_local2++;
}
Global.game.tileArea.map[y0][x0] = null;
}
}
Symbol 471 MovieClip [__Packages.xmasCorner.Block] Frame 0
class xmasCorner.Block extends xmasCorner.Obj
{
function Block () {
super();
}
}
Symbol 472 MovieClip [__Packages.FWG.BtnNs] Frame 0
class FWG.BtnNs extends FWG.Btn
{
var __set__label;
function BtnNs () {
super();
__set__label("Next Stage");
}
}
Symbol 473 MovieClip [__Packages.FWG.PageStageClear] Frame 0
class FWG.PageStageClear extends basic.Mc
{
var scoreTxt;
function PageStageClear () {
super();
scoreTxt.text = Global.main.score;
}
}
Symbol 474 MovieClip [__Packages.effect.SimpleFade] Frame 0
class effect.SimpleFade extends effect.FadeEffect
{
var gotoAndPlay, gotoAndStop;
function SimpleFade () {
super();
}
function fadeShow() {
(gotoAndPlay("fadeShow"));// not popped
}
function fadeHide() {
(gotoAndPlay("fadeHide"));// not popped
}
function show() {
(gotoAndStop("show"));// not popped
}
function hide() {
(gotoAndStop("hide"));// not popped
}
}
Symbol 30 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
Common.FWGURL();
};
Symbol 30 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_root.nextFrame();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 32 MovieClip Frame 1
onPress = function () {
};
enabled = false;
Symbol 36 MovieClip [FWG.BtnBack] Frame 1
#initclip 146
Object.registerClass("FWG.BtnBack", FWG.Btn);
#endinitclip
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 45 MovieClip in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 50 MovieClip [FWG.MusicCredits] Frame 1
#initclip 80
Object.registerClass("FWG.MusicCredits", FWG.MusicCredits);
#endinitclip
Symbol 51 MovieClip [record.Recorder] Frame 1
#initclip 81
Object.registerClass("record.Recorder", record.Recorder);
#endinitclip
Symbol 70 MovieClip [xmasCorner.Tile] Frame 1
#initclip 82
Object.registerClass("xmasCorner.Tile", xmasCorner.Tile);
#endinitclip
Symbol 80 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
var tc = (random(5) + 1);
m.m.m1.gotoAndStop(tc);
m.m.m2.gotoAndStop(tc);
Symbol 88 MovieClip [xmasCorner.Gift] Frame 1
#initclip 83
Object.registerClass("xmasCorner.Gift", xmasCorner.Char);
#endinitclip
Symbol 115 MovieClip [xmasCorner.Hero] Frame 1
#initclip 84
Object.registerClass("xmasCorner.Hero", xmasCorner.Char);
#endinitclip
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
trace(_parent.charId);
body.gotoAndStop(_parent.charId);
Symbol 122 MovieClip Frame 10
stop();
onFall();
Symbol 123 MovieClip [xmasCorner.Hole] Frame 1
#initclip 85
Object.registerClass("xmasCorner.Hole", xmasCorner.Hole);
#endinitclip
Symbol 124 MovieClip [xmasCorner.PushBlock] Frame 1
#initclip 86
Object.registerClass("xmasCorner.PushBlock", xmasCorner.PushBlock);
#endinitclip
Symbol 133 MovieClip [xmasCorner.PowerUp3] Frame 1
#initclip 87
Object.registerClass("xmasCorner.PowerUp3", xmasCorner.PowerUp3);
#endinitclip
Symbol 136 MovieClip [xmasCorner.PowerUp1] Frame 1
#initclip 88
Object.registerClass("xmasCorner.PowerUp1", xmasCorner.PowerUp1);
#endinitclip
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 1
#initclip 89
Object.registerClass("xmasCorner.TileArea", xmasCorner.TileArea);
#endinitclip
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 2
hero._accProps = new Object();
hero._accProps.name = "hero";
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 3
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 4
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 5
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 6
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 7
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 8
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 9
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 10
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 11
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 12
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 13
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 14
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 15
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 16
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 17
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 18
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 19
init();
Symbol 137 MovieClip [xmasCorner.TileArea] Frame 26
init();
Symbol 138 MovieClip [xmasCorner.Game] Frame 1
#initclip 90
Object.registerClass("xmasCorner.Game", xmasCorner.Game);
#endinitclip
Symbol 145 MovieClip [FWG.BtnM] Frame 1
#initclip 91
Object.registerClass("FWG.BtnM", FWG.BtnM);
#endinitclip
Symbol 147 MovieClip [FWG.BtnS] Frame 1
#initclip 92
Object.registerClass("FWG.BtnS", FWG.BtnS);
#endinitclip
Symbol 150 MovieClip [FWG.BtnQ] Frame 1
#initclip 93
Object.registerClass("FWG.BtnQ", FWG.Btn);
#endinitclip
Symbol 151 MovieClip [FWG._3Btn] Frame 1
#initclip 94
Object.registerClass("FWG._3Btn", FWG._3Btn);
#endinitclip
Symbol 154 MovieClip [FWG.BtnReset] Frame 1
#initclip 95
Object.registerClass("FWG.BtnReset", FWG.Btn);
#endinitclip
Symbol 157 MovieClip [FWG.BtnMenu] Frame 1
#initclip 96
Object.registerClass("FWG.BtnMenu", FWG.BtnMenu);
#endinitclip
Symbol 160 MovieClip [xmasCorner.PauseClock] Frame 1
#initclip 97
Object.registerClass("xmasCorner.PauseClock", xmasCorner.PauseClock);
#endinitclip
stop();
Symbol 160 MovieClip [xmasCorner.PauseClock] Frame 149
onTimeUp();
Symbol 162 MovieClip [ui.NumClock] Frame 1
#initclip 98
Object.registerClass("ui.NumClock", ui.NumClock);
#endinitclip
Symbol 166 MovieClip [xmasCorner.PowerUpStack] Frame 1
#initclip 99
Object.registerClass("xmasCorner.PowerUpStack", xmasCorner.PowerUpStack);
#endinitclip
Symbol 168 MovieClip [FWG.HitRec] Frame 1
#initclip 100
Object.registerClass("FWG.HitRec", FWG.HitRec);
#endinitclip
Symbol 174 MovieClip [FWG.BtnSs] Frame 1
#initclip 101
Object.registerClass("FWG.BtnSs", FWG.BtnSs);
#endinitclip
Symbol 177 MovieClip [FWG.BtnAgtys] Frame 1
#initclip 102
Object.registerClass("FWG.BtnAgtys", FWG.BtnAgtys);
#endinitclip
Symbol 180 MovieClip [FWG.BtnDg] Frame 1
#initclip 103
Object.registerClass("FWG.BtnDg", FWG.BtnDg);
#endinitclip
Symbol 183 MovieClip [FWG.BtnMog] Frame 1
#initclip 104
Object.registerClass("FWG.BtnMog", FWG.BtnMog);
#endinitclip
Symbol 186 MovieClip Frame 1
btnReset.onPress = function () {
this._parent._parent.btnReset._press();
};
Symbol 188 MovieClip [FWG.BtnX] Frame 1
#initclip 105
Object.registerClass("FWG.BtnX", FWG.Btn);
#endinitclip
Symbol 197 MovieClip [FWG.BtnSubmit] Frame 1
#initclip 106
Object.registerClass("FWG.BtnSubmit", FWG.Btn);
#endinitclip
Symbol 201 MovieClip [FWG.BtnVh] Frame 1
#initclip 107
Object.registerClass("FWG.BtnVh", FWG.BtnVh);
#endinitclip
Symbol 203 MovieClip [FWG.SubmitScore] Frame 1
#initclip 108
Object.registerClass("FWG.SubmitScore", FWG.SubmitScore);
#endinitclip
Symbol 204 MovieClip [FWG.GamePad] Frame 1
#initclip 109
Object.registerClass("FWG.GamePad", FWG.GamePad);
#endinitclip
init();
Symbol 208 MovieClip [FWG.BtnOK] Frame 1
#initclip 110
Object.registerClass("FWG.BtnOK", FWG.Btn);
#endinitclip
Symbol 211 MovieClip [FWG.BtnQ0] Frame 1
#initclip 111
Object.registerClass("FWG.BtnQ0", FWG.BtnQ0);
#endinitclip
Symbol 214 MovieClip [FWG.BtnQ1] Frame 1
#initclip 112
Object.registerClass("FWG.BtnQ1", FWG.BtnQ1);
#endinitclip
Symbol 217 MovieClip [FWG.BtnQ2] Frame 1
#initclip 113
Object.registerClass("FWG.BtnQ2", FWG.BtnQ2);
#endinitclip
Symbol 220 MovieClip [FWG.BtnQ3] Frame 1
#initclip 114
Object.registerClass("FWG.BtnQ3", FWG.BtnQ3);
#endinitclip
Symbol 221 MovieClip [FWG.QualitySetting] Frame 1
#initclip 115
Object.registerClass("FWG.QualitySetting", FWG.QualitySetting);
#endinitclip
Symbol 223 MovieClip [FWG.Logo] Frame 1
#initclip 116
Object.registerClass("FWG.Logo", FWG.Logo);
#endinitclip
Symbol 227 MovieClip [FWG.BtnYes] Frame 1
#initclip 117
Object.registerClass("FWG.BtnYes", FWG.Btn);
#endinitclip
Symbol 230 MovieClip [FWG.BtnNo] Frame 1
#initclip 118
Object.registerClass("FWG.BtnNo", FWG.Btn);
#endinitclip
Symbol 231 MovieClip [ui.Alert] Frame 1
#initclip 119
Object.registerClass("ui.Alert", ui.Alert);
#endinitclip
Symbol 232 MovieClip [FWG.PageGame] Frame 1
#initclip 120
Object.registerClass("FWG.PageGame", FWG.PageGame);
#endinitclip
Symbol 232 MovieClip [FWG.PageGame] Frame 5
stop();
Global.pause = false;
Symbol 232 MovieClip [FWG.PageGame] Frame 6
Global.pause = true;
Symbol 241 MovieClip [FWG.BtnPa] Frame 1
#initclip 121
Object.registerClass("FWG.BtnPa", FWG.BtnPa);
#endinitclip
Symbol 242 MovieClip [FWG.PageGameOver] Frame 1
#initclip 122
Object.registerClass("FWG.PageGameOver", FWG.PageGameOver);
#endinitclip
Symbol 260 MovieClip [FWG.BtnSkip] Frame 1
#initclip 123
Object.registerClass("FWG.BtnSkip", FWG.BtnSkip);
#endinitclip
Symbol 263 MovieClip [FWG.BtnNext] Frame 1
#initclip 124
Object.registerClass("FWG.BtnNext", FWG.Btn);
#endinitclip
Symbol 266 MovieClip [FWG.BtnPlay] Frame 1
#initclip 125
Object.registerClass("FWG.BtnPlay", FWG.BtnPlay);
#endinitclip
Symbol 280 MovieClip [FWG.Instructions] Frame 1
#initclip 126
Object.registerClass("FWG.Instructions", FWG.Instructions);
#endinitclip
Symbol 281 MovieClip [FWG.PageInst] Frame 1
#initclip 127
Object.registerClass("FWG.PageInst", FWG.PageInst);
#endinitclip
Symbol 291 MovieClip [FWG.BtnInstructions] Frame 1
#initclip 128
Object.registerClass("FWG.BtnInstructions", FWG.BtnInstructions);
#endinitclip
Symbol 294 MovieClip [FWG.BtnPg] Frame 1
#initclip 129
Object.registerClass("FWG.BtnPg", FWG.BtnPg);
#endinitclip
Symbol 296 Button
on (press) {
play();
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 10
stop();
Symbol 303 MovieClip [FWG.BtnCopyright] Frame 1
#initclip 130
Object.registerClass("FWG.BtnCopyright", FWG.BtnCopyright);
#endinitclip
Symbol 308 MovieClip [FWG.BtnCredits] Frame 1
#initclip 131
Object.registerClass("FWG.BtnCredits", FWG.BtnCredits);
#endinitclip
Symbol 313 MovieClip [FWG.PageMenu] Frame 1
#initclip 132
Object.registerClass("FWG.PageMenu", FWG.PageMenu);
#endinitclip
Symbol 355 MovieClip Frame 1
stop();
Instance of Symbol 354 MovieClip in Symbol 355 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_parent._parent.levelImg._currentframe);
}
Symbol 356 MovieClip [FWG.BtnLevel] Frame 1
#initclip 133
Object.registerClass("FWG.BtnLevel", FWG.BtnLevel);
#endinitclip
Symbol 357 MovieClip [FWG.StageSelecter] Frame 1
#initclip 134
Object.registerClass("FWG.StageSelecter", FWG.StageSelecter);
#endinitclip
init();
Symbol 358 MovieClip [FWG.PageOptions] Frame 1
#initclip 135
Object.registerClass("FWG.PageOptions", FWG.PageOptions);
#endinitclip
Symbol 362 MovieClip [ui.Alt] Frame 1
#initclip 136
Object.registerClass("ui.Alt", ui.Alt);
#endinitclip
Symbol 368 MovieClip [xmasCorner.Bomb] Frame 1
#initclip 137
Object.registerClass("xmasCorner.Bomb", xmasCorner.Bomb);
#endinitclip
Symbol 368 MovieClip [xmasCorner.Bomb] Frame 90
onExp();
Symbol 368 MovieClip [xmasCorner.Bomb] Frame 103
this.removeMovieClip();
Symbol 369 MovieClip [xmasCorner.Block] Frame 1
#initclip 138
Object.registerClass("xmasCorner.Block", xmasCorner.Block);
#endinitclip
Symbol 376 MovieClip [FWG.BtnNs] Frame 1
#initclip 139
Object.registerClass("FWG.BtnNs", FWG.BtnNs);
#endinitclip
Symbol 377 MovieClip [FWG.PageStageClear] Frame 1
#initclip 140
Object.registerClass("FWG.PageStageClear", FWG.PageStageClear);
#endinitclip
Symbol 378 MovieClip [Word] Frame 1
var sTxt;
var nTime;
if (nTime == undefined) {
nTime = 30;
}
onEnterFrame = function () {
if (nTime == 0) {
play();
delete onEnterFrame;
} else {
nTime--;
}
};
Instance of Symbol 5 MovieClip in Symbol 378 MovieClip [Word] Frame 1
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.sTxt";
nColor = 16777215 /* 0xFFFFFF */;
autoSize = "right";
bCustom = true;
ob = {};
ob.multiline = false;
ob.type = "dynamic";
ob.maxChars = "";
ob.restrict = "";
ob.selectable = false;
ob.border = true;
ob.borderColor = "0xffffff";
ob.background = true;
ob.backgroundColor = "0x000000";
ob.html = false;
}
Symbol 378 MovieClip [Word] Frame 11
stop();
Symbol 378 MovieClip [Word] Frame 21
rtFun();
this.removeMovieClip();
Symbol 380 MovieClip [mStep] Frame 1
_alpha = 75;
Symbol 380 MovieClip [mStep] Frame 10
_alpha = 50;
Symbol 380 MovieClip [mStep] Frame 20
_alpha = 25;
Symbol 380 MovieClip [mStep] Frame 30
this.removeMovieClip();
Symbol 382 MovieClip [mStep_2] Frame 1
_alpha = 75;
Symbol 382 MovieClip [mStep_2] Frame 10
_alpha = 50;
Symbol 382 MovieClip [mStep_2] Frame 20
_alpha = 25;
Symbol 382 MovieClip [mStep_2] Frame 30
this.removeMovieClip();
Symbol 385 MovieClip Frame 1
stop();
Symbol 386 MovieClip [FWG.MainContainer] Frame 1
#initclip 141
Object.registerClass("FWG.MainContainer", FWG.MainContainer);
#endinitclip
Symbol 388 MovieClip [effect.SimpleFade] Frame 1
#initclip 142
Object.registerClass("effect.SimpleFade", effect.SimpleFade);
#endinitclip
stop();
Symbol 388 MovieClip [effect.SimpleFade] Frame 10
onHide();
Symbol 388 MovieClip [effect.SimpleFade] Frame 20
onShow();
Symbol 389 MovieClip [FWG.Main] Frame 1
#initclip 143
Object.registerClass("FWG.Main", FWG.Main);
#endinitclip
Symbol 391 MovieClip [testBar_BtnPause] Frame 1
#initclip 144
Object.registerClass("testBar_BtnPause", FWG.Btn);
#endinitclip
Symbol 393 MovieClip [record.Output] Frame 1
#initclip 145
Object.registerClass("record.Output", record.Output);
#endinitclip
Symbol 395 MovieClip Frame 1
function clearMsg() {
txt.text = "";
}
function showMsg(msg) {
txt.text = msg;
}
Global.testBar = this;
mask.onPress = function () {
if (this._alpha > 50) {
this._alpha = 0;
} else {
this._alpha = 100;
}
};
btnPause.onPress = function () {
Global.pause = !Global.pause;
};