Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreGameAd({id:"7159b7c65ea4c62f", res:"480x500"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("Loading");
}
Instance of Symbol 57 MovieClip in Frame 5
//component parameters
onClipEvent (construct) {
_game_name = "teddy";
score_var = "_root.game.score";
}
Symbol 2 MovieClip Frame 1
onPress = function () {
FWGURL();
};
this.cacheAsBitmap = true;
Symbol 5 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local5 = int((_local4 / _local3) * 100);
num_txt.text = _local5 + "%";
if (_local4 == _local3) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 9 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 9 MovieClip Frame 39
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = Math.round(SFM.linearCycle(getTimer(), 1000, 100));
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 791 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 792 MovieClip [__Packages.Fade] Frame 0
class Fade
{
function Fade () {
}
static function start() {
var _local4 = Stage.width;
var _local5 = Stage.height;
var bmpRoot = (new flash.display.BitmapData(_local4, _local5, false, 0));
bmpRoot.draw(_root);
var _local3 = _root.createEmptyMovieClip("mClip_mask", _root.getNextHighestDepth());
var mClip_bmp = _root.createEmptyMovieClip("mClip_bmp", _root.getNextHighestDepth());
mClip_bmp.attachBitmap(bmpRoot, 0);
_local3.bmpRoot = bmpRoot;
_local3.mClip_bmp = mClip_bmp;
_local3.nTime = 0;
_local3.nT = 20;
_local3.ready = function () {
this.mClip_bmp.setMask(this);
Fade.enabledFor(true);
};
_local3.finish = function () {
this.mClip_bmp.removeMovieClip();
this.bmpRoot.dispose();
Fade.enabledFor(false);
this.removeMovieClip();
};
switch (random(4)) {
case 0 :
_local3.nRdm = random(2);
createClip("m_", _local3, 0, 0);
createClip("m_", _local3, 0, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 50 - Fade.nolinearCycle(this.nTime, this.nT, 50);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
} else {
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
delete this.onEnterFrame;
}
};
break;
case 1 :
_local3.nRdm = random(3);
_local3.nRdm_2 = random(4);
createClip("m_", _local3, 1, 0, {_x:5, _y:5});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Fade.nolinearCycle(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._xscale = 150;
this.m_0._yscale = this.nTemp;
break;
case 1 :
this.m_0._xscale = this.nTemp;
this.m_0._yscale = 150;
break;
case 2 :
this.m_0._xscale = (this.m_0._yscale = this.nTemp);
}
if (this.nRdm_2 == 3) {
this.m_0._rotation = 180 - Fade.nolinearCycle(this.nTime, this.nT, 180);
} else if (this.nRdm_2 == 2) {
this.m_0._rotation = Fade.nolinearCycle(this.nTime, this.nT, 180);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
delete this.onEnterFrame;
}
};
break;
case 2 :
_local3.nRdm = random(5);
createClip("m_", _local3, 2, 0);
createClip("m_", _local3, 2, 1, {_x:10, _y:10, _rotation:180});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Fade.nolinearCycle(this.nTime, this.nT, 100);
switch (this.nRdm) {
case 0 :
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
break;
case 1 :
this.m_0._xscale = (this.m_1._yscale = this.nTemp);
break;
case 2 :
this.m_0._yscale = (this.m_1._xscale = this.nTemp);
break;
case 3 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
break;
case 4 :
this.m_0._xscale = (this.m_1._xscale = this.nTemp);
this.m_0._yscale = (this.m_1._yscale = this.nTemp);
}
if (this.nTime == (this.nT / 2)) {
this.finish();
delete this.onEnterFrame;
}
};
break;
case 3 :
_local3.nRdm = random(2);
createClip("m_", _local3, 2, 0);
createClip("m_", _local3, 2, 1, {_x:10, _y:10, _rotation:180});
createClip("m_", _local3, 2, 2, {_x:0, _y:10, _rotation:-90});
createClip("m_", _local3, 2, 3, {_x:10, _y:0, _rotation:90});
_local3.onEnterFrame = function () {
if (this.nTime == 0) {
this.ready();
}
this.nTime++;
this.nTemp = 100 - Fade.nolinearCycle(this.nTime, this.nT, 100);
if (this.nRdm > 0) {
this.m_0._yscale = (this.m_1._yscale = (this.m_2._yscale = (this.m_3._yscale = this.nTemp)));
} else {
this.m_0._xscale = (this.m_1._xscale = (this.m_2._xscale = (this.m_3._xscale = this.nTemp)));
}
if (this.nTime == (this.nT / 2)) {
this.finish();
delete this.onEnterFrame;
}
};
break;
}
(_local3._width = _local4);
(_local3._height = _local5);
}
static function enabledFor(_b, _m, _nDepth) {
(_m == undefined) && (_m = _root);
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
if (_b) {
_m.createEmptyMovieClip("mEnabled", _nDepth);
_m.mEnabled.enabled = false;
_m.mEnabled.hitArea = _root;
_m.mEnabled.onPress = function () {
};
updateAfterEvent();
} else {
_m.mEnabled.removeMovieClip();
updateAfterEvent();
}
}
static function createClip(_s, _m, _nType, _nDepth, _ob) {
(_nDepth == undefined) && (_nDepth = _m.getNextHighestDepth());
(_nType == undefined) && (_nType = 0);
_m.createEmptyMovieClip(_s + _nDepth, _nDepth);
_m[_s + _nDepth].beginFill(16711680);
switch (_nType) {
case 0 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(10, 10);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
case 1 :
_m[_s + _nDepth].moveTo(-5, -5);
_m[_s + _nDepth].lineTo(-5, 5);
_m[_s + _nDepth].lineTo(5, 5);
_m[_s + _nDepth].lineTo(5, -5);
_m[_s + _nDepth].lineTo(-5, -5);
break;
case 2 :
_m[_s + _nDepth].lineTo(10, 0);
_m[_s + _nDepth].lineTo(0, 10);
_m[_s + _nDepth].lineTo(0, 0);
break;
}
_m[_s + _nDepth].endFill();
for (var _local5 in _ob) {
_m[_s + _nDepth][_local5] = _ob[_local5];
}
return(_m[_s + _nDepth]);
}
static 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);
}
}
Symbol 793 MovieClip [__Packages.manage.SoundManage] Frame 0
class manage.SoundManage
{
var isMusicPlay, isSoundPlay;
function SoundManage () {
_root.createEmptyMovieClip("mysound_mc", _root.getNextHighestDepth());
_root.createEmptyMovieClip("mymusic_mc", _root.getNextHighestDepth());
soundArray[0] = new Array();
soundArray[1] = new Array();
soundArray[2] = new Array();
musicArray[0] = new Array();
musicArray[1] = new Array();
musicArray[2] = new Array();
addMusic("main_s");
if (isMusicPlay == undefined) {
isMusicPlay = true;
playMusic("main_s", 999999);
}
if (isSoundPlay == undefined) {
isSoundPlay = true;
}
}
function addSound() {
switch (arguments.length) {
case 1 :
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
soundArray[1].push(_local4);
soundArray[2].push(100);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
soundArray[0].push(arguments[0]);
_root.mysound_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mysound_mc.getNextHighestDepth());
_local4 = new Sound(_root.mysound_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
soundArray[1].push(_local4);
soundArray[2].push(arguments[1]);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
}
}
function addMusic() {
switch (arguments.length) {
case 1 :
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
var _local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
musicArray[1].push(_local4);
musicArray[2].push(100);
trace((("\u52A0\u5165\u97F3\u4E50\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
musicArray[0].push(arguments[0]);
_root.mymusic_mc.createEmptyMovieClip(arguments[0] + "_sound", _root.mymusic_mc.getNextHighestDepth());
_local4 = new Sound(_root.mymusic_mc[arguments[0] + "_sound"]);
_local4.attachSound(arguments[0]);
_local4.setVolume(arguments[1]);
musicArray[1].push(_local4);
musicArray[2].push(arguments[1]);
trace((("\u52A0\u5165\u97F3\u6548\uFF1A" + arguments[0]) + "\u97F3\u91CF\u4E3A\uFF1A") + _local4.getVolume());
}
}
function stopSound() {
isSoundPlay = false;
var _local2 = 0;
while (_local2 <= soundArray[1].length) {
soundArray[1][_local2].setVolume(0);
_local2++;
}
}
function stopMusic() {
isMusicPlay = false;
var _local2 = 0;
while (_local2 <= musicArray[1].length) {
musicArray[1][_local2].setVolume(0);
_local2++;
}
}
function returnSound() {
isSoundPlay = true;
var _local2 = 0;
while (_local2 < soundArray[1].length) {
soundArray[1][_local2].setVolume(soundArray[2][_local2]);
_local2++;
}
}
function returnMusic() {
isMusicPlay = true;
var _local2 = 0;
while (_local2 < musicArray[1].length) {
musicArray[1][_local2].setVolume(musicArray[2][_local2]);
_local2++;
}
}
function setSoundVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < soundArray[1].length) {
soundArray[2][_local3] = arguments[0];
soundArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[2][_local3] = arguments[1];
soundArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
function setMusicVol() {
switch (arguments.length) {
case 1 :
if (arguments[0] > 100) {
arguments[0] = 100;
} else if (arguments[0] < 0) {
arguments[0] = 0;
}
var _local3 = 0;
while (_local3 < musicArray[1].length) {
musicArray[2][_local3] = arguments[0];
musicArray[1][_local3].setVolume(arguments[0]);
_local3++;
}
break;
case 2 :
if (arguments[1] > 100) {
arguments[1] = 100;
} else if (arguments[1] < 0) {
arguments[1] = 0;
}
_local3 = 0;
for(;;){
if (_local3 >= musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[2][_local3] = arguments[1];
musicArray[1][_local3].setVolume(arguments[1]);
break;
}
_local3++;
};
}
}
function playSound() {
if (isSoundPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, 1);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= soundArray[0].length) {
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].start(0, arguments[1]);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[0].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].setVolume(arguments[2]);
soundArray[1][_local3].start(0, arguments[1]);
trace((("\u64AD\u653E\u97F3\u6548\uFF1A" + soundArray[1][_local3]) + " \u97F3\u91CF\u4E3A\uFF1A") + soundArray[1][_local3].getVolume());
soundArray[1][_local3].setVolume(soundArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function playMusic() {
if (isMusicPlay == true) {
switch (arguments.length) {
case 1 :
var _local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, 1);
trace("\u64AD\u653E\u97F3\u6548\uFF1A" + musicArray[1][_local3]);
break;
}
_local3++;
}
break;
case 2 :
_local3 = 0;
while (_local3 <= musicArray[0].length) {
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].start(0, arguments[1]);
trace("\u64AD\u653E\u97F3\u4E50\uFF1A" + musicArray[1][_local3]);
break;
}
_local3++;
}
break;
case 3 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[0].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].setVolume(arguments[2]);
musicArray[1][_local3].start(0, arguments[1]);
trace((("\u64AD\u653E\u97F3\u6548\uFF1A" + musicArray[1][_local3]) + " \u97F3\u91CF\u4E3A\uFF1A") + musicArray[1][_local3].getVolume());
musicArray[1][_local3].setVolume(musicArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
function isTrueStopSound() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= soundArray[1].length) {
soundArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > soundArray[1].length) {
break;
}
if (soundArray[0][_local3] == arguments[0]) {
soundArray[1][_local3].stop();
}
_local3++;
};
}
}
function isTrueStopMusic() {
switch (arguments.length) {
case 0 :
var _local3 = 0;
while (_local3 <= musicArray[1].length) {
musicArray[1][_local3].stop();
_local3++;
}
break;
case 1 :
_local3 = 0;
for(;;){
if (_local3 > musicArray[1].length) {
break;
}
if (musicArray[0][_local3] == arguments[0]) {
musicArray[1][_local3].stop();
}
_local3++;
};
}
}
function clearSoundAndMusic() {
for (var _local3 in _root.mymusic_mc) {
removeMovieClip(_root.mymusic_mc[_local3]);
}
for (var _local3 in _root.mysound_mc) {
removeMovieClip(_root.mysound_mc[_local3]);
}
removeMovieClip(_root.mysound_mc);
removeMovieClip(_root.mymusic_mc);
soundArray = null;
musicArray = null;
delete soundArray;
delete musicArray;
}
var soundArray = new Array();
var musicArray = new Array();
}
Symbol 794 MovieClip [__Packages.manage.CommonManage] Frame 0
class manage.CommonManage
{
function CommonManage () {
}
static function gray(_m, _b) {
if (_b) {
var _local1 = _m.filters;
_local1.push(new flash.filters.ColorMatrixFilter([0.308600038290024, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000022649765, 0, 0, 0.308600008487701, 0.609399974346161, 0.0820000246167183, 0, 0, 0, 0, 0, 1, 0]));
_m.filters = _local1;
} else {
_m.filters = [];
}
}
}
Symbol 795 MovieClip [__Packages.Father] Frame 0
class Father extends MovieClip
{
function Father () {
super();
}
function onEnterFrame() {
if (_root.game.isGameOver == false) {
if (_root.game.isPause == false) {
run();
}
}
}
function run() {
}
}
Symbol 796 MovieClip [__Packages.building.Building] Frame 0
class building.Building extends Father
{
function Building () {
super();
}
function run() {
}
function Buliding() {
}
function remove() {
}
}
Symbol 797 MovieClip [__Packages.building.Wall] Frame 0
class building.Wall extends building.Building
{
var removeMovieClip;
function Wall () {
super();
}
function boooBuild() {
}
function remove() {
removeMovieClip();
}
}
Symbol 798 MovieClip [__Packages.building.PlayerStoneWall] Frame 0
class building.PlayerStoneWall extends building.Wall
{
var myType, myXState, myYState, isCanBooo, gotoAndStop;
function PlayerStoneWall () {
super();
myType = 2;
myXState = 2;
myYState = 2;
isCanBooo = true;
}
function boooBuild() {
remove();
}
function remove() {
gotoAndStop(2);
}
}
Symbol 799 MovieClip [__Packages.computer.Computer] Frame 0
class computer.Computer extends Father
{
var myTimer, depthNo, isRun, fangxiang, _name, _visible, mc1, mc2, mc3, mc4, seat, _x, _y, swapDepths, build1, build2, build3, build4, gotoAndStop, runTime, speed;
function Computer () {
super();
myTimer = depthNo;
isRun = false;
fangxiang = random(4) + 1;
setNowDepth();
getNowSeat(0, 0);
manage.GameManage.nowLevelComputerArray.push(_name);
}
function run() {
myTimer++;
if (myTimer >= 8) {
if (_visible == true) {
if (!_root.game.hit_mc.hitTest(this)) {
_visible = false;
}
} else if (_visible == false) {
if (_root.game.hit_mc.hitTest(this)) {
_visible = true;
}
}
myTimer = 0;
}
if (_visible == true) {
runOne();
findPlayer();
}
}
function findPlayer() {
}
function runOne() {
}
function resetFangxiang() {
setFangxiang(random(4) + 1);
}
function setFangxiang(no) {
fangxiang = no;
}
function getNowSeat(xno, yno) {
_root.game.map_mc.comSetArray_mc[mc1] = undefined;
_root.game.map_mc.comSetArray_mc[mc2] = undefined;
_root.game.map_mc.comSetArray_mc[mc3] = undefined;
_root.game.map_mc.comSetArray_mc[mc4] = undefined;
seat = manage.DepthManage.getSeat((_x - 12) + (xno * 24), (_y - 12) + (yno * 24));
mc1 = _root.game.createOneComSet("emptyWall", seat.x, seat.y)._name;
mc2 = _root.game.createOneComSet("emptyWall", seat.x + 1, seat.y)._name;
mc3 = _root.game.createOneComSet("emptyWall", seat.x, seat.y + 1)._name;
mc4 = _root.game.createOneComSet("emptyWall", seat.x + 1, seat.y + 1)._name;
}
function setNowDepth() {
swapDepths((((seat.y + 1) * 1000) + 600) + depthNo);
}
function moveRight() {
setFangxiang(1);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
if (build1.isPass != undefined) {
build1 = undefined;
}
if (build2.isPass != undefined) {
build2 = undefined;
}
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goRight();
return(undefined);
}
if (build1 == undefined) {
if ((build2.myXState == 0) || (build2.myXState == 1)) {
if (build2.isUse == false) {
build2.remove();
}
goRight();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (build2 == undefined) {
if ((build1.myXState == 0) || (build1.myXState == 1)) {
if (build1.isUse == false) {
build1.remove();
}
goRight();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (((build1.myXState == 0) || (build1.myXState == -1)) && ((build2.myXState == 0) || (build2.myXState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goRight();
return(undefined);
}
resetFangxiang();
return(undefined);
}
resetFangxiang();
return(undefined);
}
function moveLeft() {
setFangxiang(2);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
if (build1.isPass != undefined) {
build1 = undefined;
}
if (build2.isPass != undefined) {
build2 = undefined;
}
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goLeft();
return(undefined);
}
if (build1 == undefined) {
if ((build2.myXState == 0) || (build2.myXState == -1)) {
if (build2.isUse == false) {
build2.remove();
}
goLeft();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (build2 == undefined) {
if ((build1.myXState == 0) || (build1.myXState == -1)) {
if (build1.isUse == false) {
build1.remove();
}
goLeft();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (((build1.myXState == 0) || (build1.myXState == -1)) && ((build2.myXState == 0) || (build2.myXState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goLeft();
return(undefined);
}
resetFangxiang();
return(undefined);
}
resetFangxiang();
return(undefined);
}
function moveUp() {
setFangxiang(3);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
if (build1.isPass != undefined) {
build1 = undefined;
}
if (build2.isPass != undefined) {
build2 = undefined;
}
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goUp();
return(undefined);
}
if (build1 == undefined) {
if ((build2.myYState == 0) || (build2.myYState == 1)) {
if (build2.isUse == false) {
build2.remove();
}
goUp();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (build2 == undefined) {
if ((build1.myYState == 0) || (build1.myYState == 1)) {
if (build1.isUse == false) {
build1.remove();
}
goUp();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (((build1.myYState == 0) || (build1.myYState == -1)) && ((build2.myYState == 0) || (build2.myYState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goUp();
return(undefined);
}
resetFangxiang();
return(undefined);
}
resetFangxiang();
return(undefined);
}
function moveDown() {
setFangxiang(4);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
if (build1.isPass != undefined) {
build1 = undefined;
}
if (build2.isPass != undefined) {
build2 = undefined;
}
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goDown();
return(undefined);
}
if (build1 == undefined) {
if ((build2.myYState == 0) || (build2.myYState == -1)) {
if (build2.isUse == false) {
build2.remove();
}
goDown();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (build2 == undefined) {
if ((build1.myYState == 0) || (build1.myYState == -1)) {
if (build1.isUse == false) {
build1.remove();
}
goDown();
return(undefined);
}
resetFangxiang();
return(undefined);
}
if (((build1.myYState == 0) || (build1.myYState == -1)) && ((build2.myYState == 0) || (build2.myYState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goDown();
return(undefined);
}
resetFangxiang();
return(undefined);
}
resetFangxiang();
return(undefined);
}
function goRight() {
gotoAndStop(fangxiang);
getNowSeat(1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x + this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goLeft() {
gotoAndStop(fangxiang);
getNowSeat(-1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x - this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goUp() {
gotoAndStop(fangxiang);
getNowSeat(0, -1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y - this.speed;
if (this.runTime == 0) {
this.setNowDepth();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goDown() {
gotoAndStop(fangxiang);
getNowSeat(0, 1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y + this.speed;
if (this.runTime == 0) {
this.setNowDepth();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function fireStar() {
trace("a ?");
}
}
Symbol 800 MovieClip [__Packages.manage.GameManage] Frame 0
class manage.GameManage extends MovieClip
{
var levelVO, life, runTime, isGameOver, isPause, keyManage, frameManage, score, levelMax, level, level_l, intervalID, prevLevelScore, comNo, thisMapW, thisMapH, gotoAndStop, money;
function GameManage () {
super();
levelVO = new LevelVO();
trace("GameManage.rootX = " + rootX);
trace("GameManage.rootY = " + rootY);
}
function init() {
life = 6;
runTime = 0;
isGameOver = false;
isPause = false;
keyManage = null;
frameManage = null;
score = 0;
levelMax = 12;
if (level == undefined) {
level = 0;
}
level_l = 1;
keyManage = new manage.KeyManage();
frameManage = new manage.FrameManage();
nextLevel();
trace("\u521D\u59CB\u5316GAME\u5BF9\u8C61\uFF01");
}
function kissDoor() {
isPause = true;
if (level >= levelMax) {
win();
return(undefined);
}
_root.game.map_mc.buildArray_mc.player_mc.xiong_mc.gotoAndStop(4);
_root.game.soundManage.playSound("jiguang_s");
}
function nextGameTime() {
runTime--;
if (runTime <= 0) {
clearInterval(intervalID);
youDie();
}
}
function youDie() {
isPause = true;
clearInterval(intervalID);
if (life > 0) {
life--;
_root.game.map_mc.buildArray_mc.player_mc.gotoAndStop(5);
} else {
gameOver();
}
}
function onEnterFrame() {
frameManage.nextPoint();
if (isGameOver == false) {
if (isPause == false) {
if (frameManage.isOK(2)) {
keyManage.detectKeys();
}
}
}
}
function nextLevel() {
_root.game.nextLevel_mc.gotoAndStop(1);
isPause = false;
addNextLevelScore();
prevLevelScore = score;
level = level + 1;
level_l = 1;
trace("this.level=" + level);
runTime = levelTimerArray[level];
if (intervalID == undefined) {
clearInterval(intervalID);
intervalID = setInterval(this, "nextGameTime", 1000);
} else {
clearInterval(intervalID);
intervalID = setInterval(this, "nextGameTime", 1000);
}
trace("this.levelVO.dataObj.level=" + levelVO.dataObj.level);
trace("this.level=" + level);
if ((levelVO.dataObj.level < level) || (levelVO.dataObj.level == undefined)) {
levelVO.dataObj.level = level;
trace("\u6539\u53D8\u4E86\uFF01this.levelVO.dataObj.level");
}
comNo = 0;
clearAll();
if (level > levelMax) {
win();
return(undefined);
}
_root.game.map_mc.groundArray_mc.gotoAndStop(level);
createPlayer();
createLevelBulid();
trace(("\u8FDB\u5165\u7B2C " + level) + " \u5173\uFF01");
}
function resetGame() {
isPause = false;
score = prevLevelScore;
_root.game.level = _root.game.level - 1;
_root.game.nextLevel();
}
function createComputer() {
for (var _local2 in computerArray[level]) {
createOneComputer(computerArray[level][_local2][2], computerArray[level][_local2][0], computerArray[level][_local2][1]);
}
}
function createPlayer() {
_root.game.map_mc.buildArray_mc.attachMovie("player", "player_mc", (playerArray[level][1] * 1000) + 800, {_x:(playerArray[level][0] * 24) + 24, _y:(playerArray[level][1] * 24) + 24});
keyManage.setPlayer(_root.game.map_mc.buildArray_mc.player_mc);
}
function createPowreUp(str, ox, oy, thisType) {
_root.game.map_mc.buildArray_mc.attachMovie(str, ((("qiang" + ox) + "_") + oy) + "_mc", (oy * 1000) + ox, {_x:ox * 24, _y:oy * 24, moneyType:thisType});
}
function createOneComputer(str, ox, oy, no) {
_root.game.map_mc.buildArray_mc.attachMovie(str, ((("computer" + ox) + "_") + oy) + "_mc", ((oy * 1000) + no) + 600, {_x:(ox * 24) + 24, _y:(oy * 24) + 24, depthNo:no, seat:{x:ox, y:oy}});
}
function createOneRiver(str, ox, oy) {
return(_root.game.map_mc.buildArray_mc.attachMovie(str, ((("qiang" + ox) + "_") + oy) + "_mc", (oy * 30) + ox, {_x:ox * 24, _y:oy * 24, seat:{x:ox, y:oy}}));
}
function createOneBuilding(str, ox, oy, up) {
return(_root.game.map_mc.buildArray_mc.attachMovie(str, ((("qiang" + ox) + "_") + oy) + "_mc", (oy * 1000) + ox, {_x:ox * 24, _y:oy * 24, powerup:up, seat:{x:ox, y:oy}}));
}
function createBian(str, ox, oy) {
return(_root.game.map_mc.buildArray_mc.attachMovie(str, ((("qiang" + ox) + "_") + oy) + "_mc", (oy * 1000) + ox, {_x:ox * 24, _y:oy * 24, isBian:true, seat:{x:ox, y:oy}}));
}
function createOneComSet(str, ox, oy) {
return((_root.game.map_mc.comSetArray_mc[((("qiang" + ox) + "_") + oy) + "_mc"] = new building.EmptyWall(((("qiang" + ox) + "_") + oy) + "_mc")));
}
function createLevelBulid() {
trace("\u521B\u5EFA\u65B0\u7684\u5173\u53E3\uFF01");
var _local4 = 1;
while (_local4 <= levelXYArray[level][0]) {
var _local3 = 1;
while (_local3 <= levelXYArray[level][1]) {
var _local2 = buildArray[level][_local3 - 1][_local4 - 1];
if ((_local2 >= 20) && (_local2 < 40)) {
createOneBuilding("commonWall" + (random(3) + 1), _local4, _local3, _local2 - 20);
} else if (_local2 == 11) {
createOneBuilding("strongWall", _local4, _local3);
} else if (_local2 == 12) {
createOneRiver("boatWall", _local4, _local3);
} else if (_local2 == 14) {
createOneBuilding("restoreWall", _local4, _local3);
} else if (_local2 == 15) {
createOneBuilding("whenWall", _local4, _local3);
} else if (((((_local2 == 60) || (_local2 == 62)) || (_local2 == 64)) || (_local2 == 66)) || (_local2 == 68)) {
createOneBuilding("switchWall", _local4, _local3, _local2);
} else if (((((_local2 == 61) || (_local2 == 63)) || (_local2 == 65)) || (_local2 == 67)) || (_local2 == 69)) {
createOneBuilding("caseWall", _local4, _local3, _local2);
} else if (_local2 == 71) {
createOneComputer("commonCom", _local4, _local3, comNo++);
} else if (_local2 == 72) {
createOneComputer("hunterCom", _local4, _local3, comNo++);
} else if (_local2 == 73) {
createOneComputer("throughCom", _local4, _local3, comNo++);
} else if (_local2 == 75) {
createOneComputer("eatCom", _local4, _local3, comNo++);
}
if ((_local2 >= 40) && (_local2 < 60)) {
createOneBuilding("selectWall", _local4, _local3, _local2 - 40);
} else if (_local2 == 99) {
createOneComputer("door", _local4, _local3);
}
_local3++;
}
_local4++;
}
var _local5 = levelXYArray[level][0];
var _local6 = levelXYArray[level][1];
_local4 = 0;
while (_local4 <= (_local5 + 1)) {
createBian("bian", _local4, 0);
createBian("bian", _local4, _local6 + 1);
_local4++;
}
_local4 = 1;
while (_local4 <= _local6) {
createBian("bian", 0, _local4);
createBian("bian", _local5 + 1, _local4);
_local4++;
}
thisMapW = (_local5 + 2) * oneSize;
thisMapH = (_local6 + 2) * oneSize;
}
function addNextLevelScore() {
}
function clearAll() {
nowLevelComputerArray.splice(0);
selectWallArray.splice(0);
switchWallSetArray[1].splice(0);
switchWallSetArray[2].splice(0);
switchWallSetArray[3].splice(0);
switchWallSetArray[4].splice(0);
switchWallSetArray[5].splice(0);
for (var _local2 in _root.game.map_mc.buildArray_mc) {
_root.game.map_mc.buildArray_mc[_local2].removeMovieClip();
}
for (var _local2 in _root.game.map_mc.groundArray_mc) {
_root.game.map_mc.groundArray_mc[_local2].removeMovieClip();
}
for (var _local2 in _root.game.map_mc.groundArray_mc) {
_root.game.map_mc.groundArray_mc[_local2].removeMovieClip();
}
for (var _local2 in _root.game.map_mc.skyArray_mc) {
_root.game.map_mc.skyArray_mc[_local2].removeMovieClip();
}
for (var _local2 in _root.game.map_mc.comSetArray_mc) {
if (_root.game.map_mc.comSetArray_mc[_local2] instanceof MovieClip) {
_root.game.map_mc.comSetArray_mc[_local2].removeMovieClip();
} else {
_root.game.map_mc.comSetArray_mc[_local2] = undefined;
}
}
_root.game.map_mc._x = 0;
_root.game.map_mc._y = 0;
}
function getLevel() {
return(level);
}
function win() {
trace("\u80DC\u5229\u4E86\uFF01");
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("win");
}
function gameOver() {
trace("gameover");
isGameOver = true;
runTime = 0;
Fade.start();
gotoAndStop("gameover");
}
function isAllOver() {
}
function addScore(no) {
if (!isNaN(no)) {
score = score + no;
if (score < 0) {
score = 0;
} else {
score = int(score);
}
flashUpdateScore(no);
}
}
function reduceScore(no) {
addScore(no * -1);
}
function setScore(no) {
score = no;
}
function clearScore() {
score = 0;
}
function flashUpdateScore(no) {
}
function addMoney(no) {
if (!isNaN(no)) {
money = money + no;
if (money < 0) {
money = 0;
} else {
money = int(money);
}
flashUpdateMoney(no);
}
}
function reduceMoney(no) {
addMoney(no * -1);
}
function flashUpdateMoney(no) {
}
function clearMoney() {
money = 0;
}
static var rootX = 480;
static var rootY = 500;
static var oneSize = 24;
static var nowLevelComputerArray = new Array();
static var selectWallArray = new Array();
static var boatWallArray = new Array();
static var computerArray = new Array("commonCom");
static var buildArray1 = new Array(new Array(43, 42, 0, 0, 0, 0, 0, 0, 22, 36, 0, 0, 0, 0, 0, 0, 40, 41), new Array(42, 42, 0, 0, 0, 0, 0, 0, 22, 22, 0, 0, 0, 0, 0, 0, 40, 40), new Array(0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0), new Array(0, 0, 0, 21, 21, 0, 0, 11, 71, 0, 11, 0, 0, 23, 21, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 0, 0, 0, 0), new Array(0, 22, 22, 0, 71, 0, 0, 0, 99, 0, 0, 0, 0, 0, 0, 21, 21, 0), new Array(0, 22, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 0), new Array(0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 21, 21, 0, 0, 11, 0, 0, 11, 0, 0, 21, 22, 0, 0, 0), new Array(0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 22, 21, 0, 0, 0), new Array(41, 41, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 41, 41), new Array(42, 41, 0, 0, 0, 0, 0, 0, 22, 22, 0, 0, 0, 0, 0, 0, 41, 42));
static var buildArray2 = new Array(new Array(23, 21, 0, 0, 0, 0, 0, 0, 22, 22, 0, 0, 0, 0, 0, 0, 22, 23), new Array(21, 21, 0, 0, 0, 0, 0, 0, 21, 21, 0, 0, 0, 0, 0, 0, 22, 22), new Array(0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0), new Array(0, 0, 11, 22, 21, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, 11, 0, 0), new Array(0, 0, 0, 21, 20, 0, 11, 11, 11, 11, 11, 11, 0, 20, 21, 0, 0, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 11, 0, 20, 0, 0, 0, 0, 20, 0, 11, 0, 0, 0, 0), new Array(21, 21, 0, 0, 11, 20, 40, 20, 0, 0, 20, 40, 20, 11, 0, 0, 20, 23), new Array(23, 21, 0, 0, 11, 0, 20, 0, 0, 0, 0, 20, 0, 11, 0, 0, 20, 23), new Array(71, 0, 0, 0, 0, 11, 0, 0, 11, 11, 0, 0, 11, 0, 0, 0, 71, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 99, 0, 0, 11, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 22, 24, 11, 0, 11, 0, 0, 11, 0, 11, 20, 21, 0, 0, 0), new Array(0, 0, 11, 36, 25, 0, 11, 0, 45, 45, 0, 11, 0, 21, 22, 11, 0, 0), new Array(0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0), new Array(22, 20, 0, 0, 0, 0, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 21, 23), new Array(24, 22, 0, 0, 0, 0, 0, 0, 22, 22, 0, 0, 0, 0, 0, 0, 23, 22));
static var buildArray3 = new Array(new Array(22, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21), new Array(20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21), new Array(0, 0, 0, 21, 11, 40, 40, 11, 21, 0, 0, 11, 11, 0, 0, 21, 11, 15, 15, 11, 21, 0, 0, 0), new Array(0, 0, 0, 20, 42, 24, 24, 42, 20, 0, 0, 0, 11, 0, 0, 20, 41, 22, 22, 41, 20, 0, 0, 0), new Array(0, 0, 0, 21, 41, 24, 24, 41, 21, 0, 0, 11, 0, 0, 0, 21, 41, 22, 36, 41, 21, 0, 0, 0), new Array(0, 0, 0, 20, 11, 41, 41, 11, 20, 0, 0, 0, 11, 0, 0, 20, 11, 43, 42, 11, 20, 0, 0, 0), new Array(0, 0, 0, 21, 20, 20, 20, 20, 21, 0, 0, 11, 0, 0, 0, 22, 22, 22, 22, 22, 22, 0, 0, 0), new Array(73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(21, 20, 0, 11, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 20), new Array(21, 20, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 0, 11, 11, 0, 11, 20), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 0, 0, 11, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 22, 20, 22, 20, 22, 20, 0, 0, 0, 11, 0, 0, 21, 20, 22, 22, 20, 21, 0, 0, 0), new Array(0, 0, 0, 20, 11, 42, 42, 11, 22, 0, 0, 11, 0, 0, 0, 20, 11, 46, 46, 11, 20, 0, 0, 0), new Array(0, 0, 0, 22, 42, 45, 44, 42, 20, 0, 0, 0, 11, 0, 0, 21, 42, 99, 0, 42, 21, 0, 0, 0), new Array(0, 0, 0, 20, 42, 44, 45, 42, 22, 0, 0, 11, 0, 0, 0, 20, 41, 0, 0, 41, 20, 0, 0, 0), new Array(0, 0, 0, 22, 11, 40, 40, 11, 20, 0, 0, 11, 11, 0, 0, 21, 11, 40, 40, 11, 21, 0, 0, 0), new Array(21, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21), new Array(22, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 25));
static var buildArray4 = new Array(new Array(0, 0, 0, 0, 0, 0, 11, 71, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 71, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 21, 21, 21, 0, 0, 20, 0, 0, 21, 22, 23, 22, 21, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 21, 21, 21, 0, 0, 11, 0, 0, 21, 22, 23, 22, 21, 0, 0), new Array(0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 20, 20, 11, 11, 11), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(11, 11, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 11, 20, 20), new Array(0, 11, 0, 0, 20, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0), new Array(0, 11, 0, 0, 20, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0), new Array(11, 11, 41, 41, 11, 11, 11, 0, 0, 0, 11, 0, 0, 11, 11, 11, 0, 0, 11, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 11, 26, 23, 22, 21, 11, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 11, 0, 0, 11, 38, 36, 22, 21, 11, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 26, 23, 22, 21, 11, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11, 11, 0, 0, 11, 0, 0), new Array(0, 0, 42, 42, 42, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 42, 46, 42, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 42, 42, 42, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0), new Array(0, 71, 0, 0, 0, 0, 0, 11, 21, 22, 21, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 21, 22, 21, 11, 0, 46, 58, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 45, 46, 0, 11, 11, 11, 11, 11, 11, 20, 20), new Array(11, 11, 11, 0, 0, 11, 11, 11, 11, 0, 0, 11, 0, 0, 0, 0, 11, 71, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 99, 0, 0, 0, 25, 24, 0, 11, 0, 0, 11, 0, 0, 0, 0, 20, 0, 0, 24, 25, 24, 0, 0), new Array(0, 0, 0, 0, 0, 24, 25, 0, 11, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0));
static var buildArray5 = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 21, 21, 21, 0), new Array(0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 20, 22, 24, 24, 22, 20, 0, 0, 0, 0, 0, 20, 0, 0, 21, 48, 21, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 21, 21, 21, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 44, 46, 11, 0, 0, 0, 0, 0, 0), new Array(20, 20, 11, 11, 11, 20, 20, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 45, 44, 11, 20, 20, 11, 11, 11, 11), new Array(0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 71, 0, 11, 0, 42, 0, 0, 11, 0, 0, 0, 0, 71, 0), new Array(0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 41, 0, 41, 0, 11, 0, 0, 0, 0, 0, 0), new Array(11, 11, 15, 15, 11, 11, 11, 11, 11, 0, 0, 22, 21, 22, 0, 0, 11, 0, 40, 0, 11, 0, 0, 0, 45, 46, 0, 0), new Array(0, 0, 0, 0, 0, 0, 71, 0, 11, 0, 0, 21, 22, 21, 0, 0, 11, 12, 12, 12, 11, 0, 0, 0, 46, 45, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 25, 0, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 43, 45, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 24, 0, 24, 11, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 45, 43, 0, 0, 0, 11, 11, 11, 11, 20, 20, 11, 11, 11, 0, 23, 0, 11, 11, 11, 11, 11, 11, 37, 23), new Array(75, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 39, 0, 22, 0, 0, 0, 0, 0, 11, 24, 24), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 11, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11), new Array(0, 0, 0, 0, 21, 21, 21, 21, 11, 0, 0, 11, 11, 11, 20, 20, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0), new Array(11, 11, 11, 11, 11, 12, 12, 12, 11, 0, 0, 11, 0, 0, 0, 0, 0, 71, 0, 11, 43, 45, 11, 0, 0, 0, 0, 0), new Array(20, 21, 21, 22, 22, 23, 23, 23, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 45, 43, 11, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 22, 25, 22, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 40, 73, 0, 0, 99, 0, 11, 0, 0), new Array(0, 0, 21, 25, 23, 22, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 24, 36, 23, 22, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 22), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 23));
static var buildArray6 = new Array(new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 22, 22, 0, 0), new Array(0, 0, 0, 60, 0, 0, 11, 0, 0, 11, 99, 0, 0, 0, 0, 0, 11, 55, 49, 11, 0, 22, 22, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 24, 24, 65, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 65, 0, 0, 0, 0, 0), new Array(61, 61, 11, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 11, 65, 65, 11, 0, 0, 11, 11, 11, 11, 20, 20), new Array(0, 0, 11, 71, 0, 11, 0, 0, 0, 0, 11, 71, 0, 11, 0, 0, 11, 0, 0, 11, 26, 36, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 27, 26, 11, 0, 0), new Array(0, 0, 11, 65, 65, 11, 0, 0, 0, 0, 11, 63, 63, 11, 0, 0, 11, 15, 15, 11, 15, 15, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 11, 0, 0, 20, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 63, 0, 0, 11, 0, 0, 20, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 20, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 27, 27, 40, 0, 0, 20, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 64, 28, 40, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 11, 20, 20, 11, 11, 11, 11, 11, 11, 65, 65, 11, 11, 11, 11, 11, 11, 11, 20, 20, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0, 20, 0, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 11, 0, 0), new Array(20, 20, 11, 11, 11, 11, 11, 0, 0, 0, 28, 11, 11, 11, 62, 0, 0, 0, 11, 11, 11, 11, 11, 20, 20), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 25, 11, 11, 11, 25, 0, 0, 0, 11, 0, 0, 0, 0, 71, 0), new Array(0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0), new Array(0, 0, 25, 24, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0, 54, 45, 0, 0), new Array(0, 0, 24, 25, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 45, 47, 0, 0), new Array(0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0));
static var buildArray7 = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 14, 0, 14, 0, 14, 0, 14, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 14, 48, 14, 49, 14, 49, 14, 48, 14, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0), new Array(0, 0, 0, 14, 0, 14, 0, 14, 0, 14, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0), new Array(20, 20, 11, 20, 20, 11, 20, 20, 11, 20, 20, 11, 20, 20, 11, 11, 11, 11, 11, 11, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 72, 0, 11, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 14, 0, 0, 23, 14, 26, 0, 0, 11, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 14, 11, 14, 0, 0, 11, 55, 43, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 24, 14, 25, 0, 0, 11, 45, 44, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 40, 99, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 40, 40, 11, 11, 11, 11, 11, 11, 0, 0, 40, 0, 0, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 71, 0, 11, 11, 11, 11, 11, 11, 0, 0), new Array(0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 26, 38, 0, 0, 0, 0, 0), new Array(24, 38, 11, 14, 14, 11, 20, 20, 11, 11, 0, 0, 11, 11, 11, 0, 0, 11, 28, 27, 0, 0, 0, 0, 0), new Array(25, 26, 11, 0, 0, 20, 0, 0, 24, 11, 0, 0, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11), new Array(11, 11, 11, 0, 0, 20, 0, 0, 24, 11, 0, 0, 0, 0, 11, 0, 0, 44, 25, 0, 14, 0, 14, 0, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0, 0, 0, 0, 45, 26, 14, 0, 14, 0, 14, 0), new Array(0, 25, 14, 24, 0, 11, 0, 0, 15, 0, 0, 11, 0, 0, 0, 0, 0, 44, 23, 0, 14, 0, 14, 0, 0), new Array(0, 14, 11, 14, 0, 11, 0, 0, 15, 0, 0, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 14), new Array(0, 24, 14, 25, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0, 0), new Array(0, 0, 0, 0, 0, 11, 26, 26, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(26, 25, 24, 23, 22, 11, 11, 11, 11, 0, 0, 14, 14, 14, 14, 14, 24, 24, 14, 14, 14, 14, 14, 0, 0), new Array(0, 0, 0, 0, 0, 71, 0, 11, 0, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 14, 14, 14, 0, 0, 11, 14, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11), new Array(0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 36), new Array(0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24));
static var buildArray8 = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 24, 27, 28, 29), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 55, 24, 50, 27), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 25, 26, 29, 30), new Array(11, 11, 11, 15, 15, 11, 11, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 11, 11, 0, 0, 11, 11, 11, 11, 11), new Array(0, 0, 11, 48, 48, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0), new Array(0, 0, 11, 49, 49, 11, 0, 46, 60, 0, 11, 0, 0, 11, 0, 38, 24, 0, 11, 0, 0, 11, 0, 28, 36, 0), new Array(0, 0, 11, 12, 12, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0), new Array(0, 11, 11, 63, 63, 11, 11, 0, 0, 11, 11, 0, 0, 11, 11, 0, 0, 11, 11, 0, 0, 11, 11, 0, 0, 11), new Array(0, 11, 0, 0, 0, 0, 11, 71, 0, 11, 0, 0, 0, 0, 11, 71, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11), new Array(0, 11, 0, 99, 0, 0, 11, 0, 0, 11, 0, 11, 11, 0, 11, 0, 0, 11, 0, 25, 25, 0, 11, 0, 0, 11), new Array(0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 59, 57, 0, 11, 0, 0, 11, 0, 26, 26, 0, 11, 0, 0, 11), new Array(0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0, 11), new Array(0, 11, 11, 11, 11, 11, 11, 0, 0, 11, 11, 14, 14, 11, 11, 0, 0, 11, 11, 14, 14, 11, 11, 0, 0, 11), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 26, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 14, 23, 14, 38, 14, 25, 14, 23, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 26), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 26, 0, 0, 0, 0, 25, 0, 0, 26), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 47, 49, 11, 11, 11, 11, 11, 11, 11, 11, 11), new Array(11, 11, 11, 11, 61, 61, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0), new Array(12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 11, 0, 0, 44, 44, 45, 26, 72, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 71, 0, 11, 0, 0, 73, 0, 0, 0, 11, 0, 0, 44, 29, 46, 27, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 44, 62, 47, 27, 0, 0), new Array(0, 0, 46, 46, 0, 0, 45, 47, 0, 0, 0, 0, 0, 26, 25, 0, 0, 0, 0, 0, 44, 29, 46, 27, 0, 0), new Array(0, 0, 46, 46, 0, 0, 47, 45, 0, 0, 0, 0, 0, 25, 26, 0, 0, 0, 0, 0, 44, 44, 45, 26, 0, 0), new Array(75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0));
static var buildArray9 = new Array(new Array(0, 0, 22, 22, 22, 22, 0, 0, 11, 46, 0, 0, 0, 0, 0, 0, 44, 11, 0, 0, 45, 44, 43, 42, 0, 0), new Array(0, 22, 0, 0, 0, 0, 22, 0, 11, 0, 45, 0, 0, 0, 0, 44, 0, 11, 0, 46, 0, 0, 0, 66, 41, 0), new Array(22, 0, 0, 0, 0, 0, 0, 22, 11, 0, 0, 45, 0, 0, 44, 0, 0, 11, 47, 0, 0, 0, 0, 0, 0, 46), new Array(23, 0, 0, 0, 0, 0, 0, 23, 40, 71, 0, 0, 45, 44, 0, 0, 0, 40, 48, 0, 0, 73, 0, 0, 0, 40), new Array(23, 0, 0, 0, 0, 0, 0, 23, 40, 0, 0, 0, 46, 39, 0, 0, 0, 40, 49, 0, 0, 0, 0, 0, 0, 49), new Array(23, 0, 0, 0, 0, 0, 0, 23, 11, 0, 0, 46, 0, 0, 47, 0, 0, 11, 40, 0, 0, 0, 0, 0, 0, 48), new Array(0, 24, 0, 0, 0, 0, 24, 0, 11, 0, 46, 0, 0, 0, 0, 48, 0, 11, 0, 42, 0, 0, 0, 0, 47, 0), new Array(0, 0, 24, 21, 21, 24, 0, 0, 11, 46, 0, 0, 68, 0, 0, 0, 41, 11, 0, 0, 43, 44, 45, 46, 0, 0), new Array(11, 11, 11, 14, 14, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 40, 40), new Array(28, 0, 0, 0, 0, 0, 0, 27, 11, 30, 50, 48, 50, 50, 48, 50, 30, 11, 21, 0, 0, 0, 0, 0, 0, 23), new Array(0, 22, 22, 0, 0, 23, 23, 0, 11, 50, 30, 50, 48, 48, 50, 30, 50, 11, 0, 48, 48, 0, 0, 45, 45, 0), new Array(0, 22, 22, 0, 0, 23, 23, 0, 11, 49, 47, 11, 11, 11, 11, 47, 49, 11, 0, 48, 48, 0, 0, 45, 45, 0), new Array(0, 0, 0, 47, 47, 0, 0, 0, 11, 47, 49, 11, 99, 0, 11, 49, 47, 11, 71, 0, 0, 27, 27, 71, 0, 0), new Array(0, 0, 0, 47, 47, 0, 0, 0, 11, 49, 47, 11, 0, 0, 11, 47, 49, 11, 0, 0, 0, 36, 28, 0, 0, 0), new Array(0, 24, 24, 0, 0, 25, 25, 0, 11, 47, 49, 11, 65, 69, 11, 49, 47, 11, 0, 46, 46, 0, 0, 47, 47, 0), new Array(0, 24, 24, 0, 0, 25, 25, 0, 11, 48, 28, 48, 67, 65, 48, 28, 48, 11, 0, 46, 46, 0, 0, 47, 47, 0), new Array(29, 0, 0, 0, 0, 0, 0, 26, 11, 28, 48, 48, 63, 61, 48, 48, 28, 11, 24, 0, 0, 0, 0, 0, 0, 25), new Array(11, 20, 20, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 14, 11, 11, 11, 11, 11, 11, 11, 14, 14, 11, 11, 11), new Array(0, 0, 0, 0, 0, 0, 71, 0, 11, 62, 0, 0, 0, 0, 0, 0, 29, 11, 24, 0, 0, 0, 0, 0, 14, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 72, 0, 11, 0, 0, 0, 0, 0, 14, 64, 14), new Array(0, 0, 25, 25, 25, 25, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 14, 0), new Array(0, 0, 25, 48, 47, 20, 0, 0, 11, 0, 0, 0, 25, 27, 0, 0, 0, 14, 0, 0, 0, 11, 11, 0, 0, 0), new Array(0, 0, 25, 47, 48, 25, 0, 0, 11, 0, 0, 0, 28, 25, 0, 0, 0, 14, 0, 0, 0, 11, 11, 0, 0, 0), new Array(0, 0, 25, 25, 25, 25, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 71, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 15, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 60, 11, 30, 0, 0, 0, 0, 0, 0, 34, 11, 0, 0, 0, 0, 0, 0, 0, 31));
static var buildArray10 = new Array(new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 20, 20, 11, 11, 11, 11, 20, 20, 11, 11, 11, 0, 0), new Array(0, 0, 0, 0, 0, 11, 11, 11, 11, 11, 11, 11, 0, 0, 11, 0, 0, 11, 71, 0, 11, 0, 0, 0, 0, 11, 0, 0), new Array(14, 14, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 11, 0, 0), new Array(0, 0, 0, 71, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 29, 28, 11, 0, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0, 11, 29, 29, 11, 0, 0, 11, 73, 0, 28, 29, 11, 0, 0), new Array(0, 0, 30, 0, 0, 11, 0, 0, 11, 71, 0, 11, 0, 0, 11, 27, 27, 11, 0, 0, 11, 0, 0, 11, 11, 11, 0, 0), new Array(0, 0, 36, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0, 11, 49, 59, 11, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 58, 48, 11, 0, 22, 22, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 24, 24, 0), new Array(11, 11, 11, 11, 11, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0, 0, 0, 0, 14, 0, 26, 26, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 71, 0, 11, 0, 0, 0, 0, 0, 14, 0, 28, 28, 0), new Array(0, 0, 0, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 54, 47, 0), new Array(0, 28, 26, 24, 0, 11, 24, 24, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 71, 0, 11, 0, 47, 59, 0), new Array(0, 28, 48, 24, 0, 11, 26, 26, 11, 0, 0, 11, 71, 0, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 11), new Array(0, 30, 50, 24, 0, 14, 28, 28, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 48, 48, 11, 0, 0, 11, 47, 48, 50, 51), new Array(0, 30, 50, 24, 0, 14, 30, 30, 11, 0, 0, 11, 11, 11, 11, 0, 0, 11, 50, 50, 11, 0, 0, 11, 47, 48, 50, 51), new Array(0, 28, 48, 24, 0, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 11, 0, 0, 0, 0), new Array(0, 28, 26, 24, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 0), new Array(0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 0, 0, 0, 11, 11, 11, 11, 0, 0, 11, 0, 0, 11, 0, 0, 11, 11, 11, 11, 0, 0, 11, 52, 0, 0, 0));
static var buildArray11 = new Array(new Array(0, 0, 61, 0, 0, 67, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 34), new Array(0, 0, 61, 0, 0, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 30), new Array(0, 0, 61, 0, 0, 67, 67, 67, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67), new Array(0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 0, 0, 0, 0), new Array(0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 61, 75, 0, 45, 45, 45, 44, 59, 44, 46, 47, 47, 46, 44, 44, 44, 45, 45, 45, 0, 0, 65, 65, 65), new Array(0, 0, 61, 0, 0, 45, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 45, 0, 0, 65, 72, 0), new Array(0, 0, 61, 0, 0, 45, 11, 0, 0, 14, 50, 30, 0, 0, 0, 0, 0, 0, 0, 11, 45, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 0, 0, 0, 14, 50, 30, 0, 0, 15, 0, 0, 0, 11, 44, 0, 0, 64, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 0, 0, 0, 0, 14, 51, 31, 0, 0, 0, 0, 14, 11, 44, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 0, 15, 0, 0, 0, 14, 52, 32, 0, 0, 14, 50, 11, 44, 0, 0, 65, 0, 0), new Array(0, 0, 60, 0, 0, 46, 11, 0, 0, 0, 32, 11, 51, 49, 11, 0, 14, 50, 30, 11, 46, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 47, 11, 0, 0, 31, 52, 53, 99, 0, 50, 14, 51, 30, 0, 14, 47, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 47, 11, 0, 30, 51, 14, 51, 0, 0, 52, 52, 31, 0, 0, 14, 47, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 46, 11, 30, 50, 14, 0, 11, 51, 50, 11, 32, 0, 0, 0, 11, 46, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 50, 14, 0, 0, 32, 52, 14, 0, 0, 0, 15, 0, 11, 44, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 14, 0, 0, 0, 0, 31, 51, 14, 0, 73, 0, 0, 11, 44, 0, 0, 65, 0, 0), new Array(0, 0, 61, 0, 0, 44, 11, 0, 0, 0, 15, 0, 0, 30, 50, 14, 0, 0, 0, 11, 44, 0, 0, 65, 0, 0), new Array(65, 67, 65, 0, 0, 45, 11, 0, 0, 0, 0, 0, 0, 0, 30, 50, 14, 0, 0, 11, 45, 0, 0, 65, 0, 0), new Array(63, 36, 63, 0, 0, 45, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 45, 0, 0, 65, 0, 0), new Array(65, 67, 65, 0, 0, 45, 45, 45, 44, 44, 44, 46, 47, 47, 46, 44, 44, 44, 45, 45, 45, 0, 0, 65, 0, 0), new Array(0, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 75, 0, 65, 0, 0), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0), new Array(63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 62, 63, 63, 0, 0, 65, 0, 0), new Array(29, 30, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 65, 30, 29), new Array(39, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, 0, 0, 65, 29, 38));
static var buildArray12 = new Array(new Array(0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 29, 60), new Array(0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 34, 29), new Array(14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 14, 14, 14), new Array(0, 0, 47, 47, 47, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 50, 31, 50, 0, 0, 0, 0), new Array(0, 0, 44, 11, 11, 11, 11, 11, 11, 40, 0, 0, 25, 25, 0, 0, 0, 50, 33, 15, 33, 50, 0, 0, 0), new Array(0, 0, 44, 48, 11, 53, 51, 49, 40, 40, 0, 0, 25, 25, 0, 0, 52, 31, 15, 68, 15, 31, 52, 0, 0), new Array(0, 0, 0, 48, 11, 53, 51, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 33, 15, 33, 50, 0, 0, 0), new Array(0, 0, 0, 48, 11, 11, 11, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 31, 50, 0, 0, 0, 0), new Array(0, 0, 0, 48, 11, 50, 50, 50, 47, 47, 47, 47, 0, 47, 47, 47, 47, 0, 0, 52, 0, 0, 0, 0, 0), new Array(0, 0, 49, 40, 11, 48, 48, 0, 47, 11, 11, 51, 53, 51, 11, 11, 47, 0, 0, 0, 0, 0, 0, 0, 0), new Array(0, 0, 49, 11, 11, 11, 48, 0, 47, 48, 11, 40, 11, 40, 11, 48, 47, 0, 0, 0, 0, 0, 0, 0, 0), new Array(63, 63, 49, 48, 48, 48, 48, 0, 0, 48, 11, 40, 11, 40, 11, 48, 0, 0, 0, 0, 0, 0, 0, 61, 61), new Array(72, 0, 63, 0, 0, 0, 0, 0, 0, 48, 11, 40, 11, 40, 11, 48, 0, 0, 0, 0, 0, 0, 61, 71, 0), new Array(0, 0, 63, 0, 0, 0, 0, 0, 0, 48, 11, 40, 11, 40, 11, 48, 0, 50, 50, 50, 51, 52, 61, 0, 0), new Array(63, 63, 0, 0, 0, 0, 0, 0, 0, 48, 11, 40, 11, 40, 11, 48, 49, 50, 11, 11, 11, 52, 52, 61, 61), new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 40, 11, 40, 11, 49, 48, 49, 11, 40, 40, 40, 11, 52, 0, 0), new Array(0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 49, 49, 49, 49, 49, 0, 48, 11, 40, 40, 40, 53, 0, 0, 0), new Array(0, 0, 0, 0, 50, 32, 50, 0, 0, 0, 0, 0, 0, 0, 73, 0, 48, 11, 40, 11, 11, 53, 52, 0, 0), new Array(0, 0, 0, 50, 32, 15, 32, 50, 0, 0, 0, 0, 0, 0, 0, 0, 48, 11, 40, 40, 40, 11, 52, 0, 0), new Array(0, 0, 52, 32, 15, 66, 15, 32, 52, 0, 0, 0, 0, 0, 0, 0, 49, 11, 40, 40, 40, 11, 52, 0, 0), new Array(0, 0, 0, 50, 32, 15, 32, 50, 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, 11, 11, 11, 52, 52, 0, 0), new Array(0, 0, 0, 0, 50, 32, 50, 0, 0, 65, 65, 0, 0, 0, 67, 69, 0, 50, 50, 50, 51, 52, 0, 0, 0), new Array(14, 14, 14, 0, 0, 52, 0, 0, 65, 32, 33, 65, 0, 69, 99, 0, 67, 0, 0, 0, 0, 0, 14, 14, 14), new Array(31, 38, 14, 0, 0, 0, 0, 0, 65, 33, 36, 65, 0, 67, 0, 0, 69, 0, 0, 0, 0, 0, 14, 39, 29), new Array(64, 31, 14, 0, 0, 0, 0, 0, 0, 65, 65, 0, 0, 0, 69, 67, 0, 0, 0, 0, 0, 0, 14, 29, 62));
static var switchWallSetArray = new Array(null, new Array(), new Array(), new Array(), new Array(), new Array());
static var buildArray = new Array(null, buildArray1, buildArray2, buildArray3, buildArray4, buildArray5, buildArray6, buildArray7, buildArray8, buildArray9, buildArray10, buildArray11, buildArray12);
static var playerArray = new Array(null, new Array(4, 1), new Array(9, 3), new Array(6, 1), new Array(1, 1), new Array(1, 1), new Array(1, 1), new Array(1, 1), new Array(4, 1), new Array(4, 4), new Array(1, 1), new Array(1, 1), new Array(1, 1));
static var levelXYArray = new Array(null, new Array(18, 16), new Array(18, 16), new Array(24, 20), new Array(24, 28), new Array(28, 24), new Array(25, 25), new Array(25, 30), new Array(26, 26), new Array(26, 26), new Array(28, 22), new Array(26, 26), new Array(25, 25));
static var levelTimerArray = new Array(0, 180, 200, 300, 350, 500, 600, 700, 700, 800, 850, 900, 1000);
static var levelScoreArray = new Array(0, 800, 1600, 2300, 3500, 4800, 5500, 6800, 8000, 10000);
}
Symbol 801 MovieClip [__Packages.LocalSetting] Frame 0
class LocalSetting
{
var lso, dataObj;
function LocalSetting (saveName) {
saveName = saveName + "_as2";
lso = SharedObject.getLocal(saveName, "/");
if (lso.data.dataObj) {
dataObj = cloneObj(lso.data.dataObj);
} else {
trace(saveName + " \u7B2C\u4E00\u6B21\u8BBE\u5B9A");
lso.data.defaultDataObj = cloneObj(dataObj);
}
lso.data.dataObj = dataObj;
}
function getDefault() {
return(lso.data.defaultDataObj);
}
function setDefault() {
lso.data.dataObj = (dataObj = cloneObj(lso.data.defaultDataObj));
}
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");
}
}
Symbol 802 MovieClip [__Packages.LevelVO] Frame 0
class LevelVO extends LocalSetting
{
function LevelVO () {
super("Teddy_in_the_Bush_LevelVO");
}
var dataObj = {level:0};
}
Symbol 803 MovieClip [__Packages.manage.KeyManage] Frame 0
class manage.KeyManage
{
var p90, isRun, player;
function KeyManage () {
p90 = 0;
isRun = false;
}
function setPlayer(player) {
this.player = null;
this.player = player;
trace(("\u628A " + this.player) + " \u8BBE\u4E3A\u952E\u76D8\u63A7\u5236\u5BF9\u8C61\u3002");
}
function getPlayer() {
return(player);
}
function huan() {
}
function detectKeys() {
if (player.isRun == false) {
if (Key.isDown(39)) {
player.moveRight();
isRun = true;
player.xiong_mc.xiong_mc.play();
} else if (Key.isDown(37)) {
player.moveLeft();
isRun = true;
player.xiong_mc.xiong_mc.play();
} else if (Key.isDown(38)) {
player.moveUp();
isRun = true;
player.xiong_mc.xiong_mc.play();
} else if (Key.isDown(40)) {
player.moveDown();
isRun = true;
player.xiong_mc.xiong_mc.play();
} else {
player.xiong_mc.xiong_mc.stop();
}
}
if (p90 > 0) {
p90--;
}
if (Key.isDown(90)) {
if (p90 <= 0) {
player.changeNowWall();
p90 = 5;
}
}
}
}
Symbol 804 MovieClip [__Packages.manage.FrameManage] Frame 0
class manage.FrameManage
{
var point2, point4, point8, point12, point24;
function FrameManage () {
point2 = 1;
point4 = 1;
point8 = 1;
point12 = 1;
point24 = 1;
}
function nextPoint() {
point2++;
point4++;
point8++;
point12++;
point24++;
nextMax();
}
function isOK(no) {
if (this["point" + no] == no) {
return(true);
}
return(false);
}
function addPoint() {
}
function nextMax() {
if (point2 > 2) {
point2 = 1;
}
if (point4 > 4) {
point4 = 1;
}
if (point8 > 8) {
point8 = 1;
}
if (point12 > 12) {
point12 = 1;
}
if (point24 > 24) {
point24 = 1;
}
}
}
Symbol 805 MovieClip [__Packages.building.EmptyWall] Frame 0
class building.EmptyWall
{
var _name, myType, myXState, myYState, isCanBooo;
function EmptyWall (str) {
_name = str;
myType = 0;
myXState = 2;
myYState = 2;
isCanBooo = false;
}
}
Symbol 806 MovieClip [__Packages.manage.DepthManage] Frame 0
class manage.DepthManage
{
function DepthManage () {
}
static function getThisDepth(obj) {
return(int((obj._y * 650) + obj._x));
}
static function getPlayerDepth() {
}
static function getSeat(mcX, mcY) {
return({x:Math.floor(mcX / manage.GameManage.oneSize), y:Math.floor(mcY / manage.GameManage.oneSize)});
}
}
Symbol 807 MovieClip [__Packages.computer.HunterCom] Frame 0
class computer.HunterCom extends computer.Computer
{
var speed, isRun, build1, build2, gotoAndStop, fangxiang, runTime, runOne, setFangxiang, p, b1, seat, b2, moveUp, moveDown, moveRight, moveLeft;
function HunterCom () {
super();
if (_root.game.level > 8) {
speed = 4;
} else {
speed = 3;
}
}
function findPlayer() {
if (_root.game.frameManage.isOK(4)) {
if (isRun == false) {
fireStar();
}
}
}
function resetFangxiang() {
if ((build1.isPlayerWall == true) || (build2.isPlayerWall == true)) {
gotoAndStop(fangxiang);
isRun = true;
runTime = 40;
runOne = function () {
this.runTime--;
if (this.runTime == 20) {
this.body_mc.gotoAndStop(2);
this.eating();
}
if (this.runTime == 0) {
this.body_mc.gotoAndStop(1);
this.isRun = false;
this.runOne = function () {
};
}
};
}
setFangxiang(random(4) + 1);
}
function eating() {
if (build1.isPlayerWall == true) {
_root.game.soundManage.playSound("chai_s");
build1.remove();
}
if (build2.isPlayerWall == true) {
_root.game.soundManage.playSound("chai_s");
build2.remove();
}
}
function fireStar() {
p = _root.game.map_mc.buildArray_mc.player_mc;
switch (fangxiang) {
case 1 :
var _local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveRight();
break;
case 2 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveLeft();
break;
case 3 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveUp();
break;
case 4 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveDown();
}
}
}
Symbol 808 MovieClip [__Packages.computer.EatCom] Frame 0
class computer.EatCom extends computer.Computer
{
var speed, isRun, p, fangxiang, b1, seat, b2, build1, build2, gotoAndStop, body_mc, runTime, runOne, setFangxiang, swapDepths, depthNo, build3, build4, getNowSeat;
function EatCom () {
super();
speed = 2;
}
function findPlayer() {
if (_root.game.frameManage.isOK(4)) {
if (isRun == false) {
fireStar();
}
}
}
function fireStar() {
p = _root.game.map_mc.buildArray_mc.player_mc;
switch (fangxiang) {
case 1 :
var _local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveUp();
return(undefined);
}
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveDown();
return(undefined);
}
break;
}
_local3++;
}
moveRight();
break;
case 2 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveUp();
return(undefined);
}
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveDown();
return(undefined);
}
break;
}
_local3++;
}
moveLeft();
break;
case 3 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveLeft();
return(undefined);
}
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveRight();
return(undefined);
}
break;
}
_local3++;
}
moveUp();
break;
case 4 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveLeft();
return(undefined);
}
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
} else {
if ((b1.isPlayerWall == true) || (b2.isPlayerWall == true)) {
moveRight();
return(undefined);
}
break;
}
_local3++;
}
moveDown();
}
}
function resetFangxiang() {
if ((build1.isPlayerWall == true) || (build2.isPlayerWall == true)) {
gotoAndStop(fangxiang);
body_mc.gotoAndStop(2);
isRun = true;
runTime = 30;
runOne = function () {
this.runTime--;
if (this.runTime == 20) {
this.eating();
}
if (this.runTime == 0) {
this.isRun = false;
this.body_mc.gotoAndStop(1);
this.runOne = function () {
};
}
};
}
setFangxiang(random(4) + 1);
}
function setNowDepth() {
swapDepths(((seat.y * 1000) + 600) + depthNo);
}
function eating() {
if (build1.isPlayerWall == true) {
_root.game.soundManage.playSound("chai_s");
build1.remove();
}
if (build2.isPlayerWall == true) {
_root.game.soundManage.playSound("chai_s");
build2.remove();
}
}
function moveRight() {
setFangxiang(1);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goRight();
} else if (build1 == undefined) {
if ((build2.myXState == 0) || (build2.myXState == 1)) {
if (build2.isUse == false) {
build2.remove();
}
goRight();
} else {
resetFangxiang();
}
} else if (build2 == undefined) {
if ((build1.myXState == 0) || (build1.myXState == 1)) {
if (build1.isUse == false) {
build1.remove();
}
goRight();
} else {
resetFangxiang();
}
} else if (((build1.myXState == 0) || (build1.myXState == -1)) && ((build2.myXState == 0) || (build2.myXState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goRight();
} else {
resetFangxiang();
}
} else {
resetFangxiang();
}
}
function moveLeft() {
setFangxiang(2);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goLeft();
} else if (build1 == undefined) {
if ((build2.myXState == 0) || (build2.myXState == -1)) {
if (build2.isUse == false) {
build2.remove();
}
goLeft();
} else {
resetFangxiang();
}
} else if (build2 == undefined) {
if ((build1.myXState == 0) || (build1.myXState == -1)) {
if (build1.isUse == false) {
build1.remove();
}
goLeft();
} else {
resetFangxiang();
}
} else if (((build1.myXState == 0) || (build1.myXState == -1)) && ((build2.myXState == 0) || (build2.myXState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goLeft();
} else {
resetFangxiang();
}
} else {
resetFangxiang();
}
}
function moveUp() {
setFangxiang(3);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goUp();
} else if (build1 == undefined) {
if ((build2.myYState == 0) || (build2.myYState == 1)) {
if (build2.isUse == false) {
build2.remove();
}
goUp();
} else {
resetFangxiang();
}
} else if (build2 == undefined) {
if ((build1.myYState == 0) || (build1.myYState == 1)) {
if (build1.isUse == false) {
build1.remove();
}
goUp();
} else {
resetFangxiang();
}
} else if (((build1.myYState == 0) || (build1.myYState == -1)) && ((build2.myYState == 0) || (build2.myYState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goUp();
} else {
resetFangxiang();
}
} else {
resetFangxiang();
}
}
function moveDown() {
setFangxiang(4);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
if ((build3 == undefined) && (build4 == undefined)) {
if ((build1 == undefined) && (build2 == undefined)) {
goDown();
} else if (build1 == undefined) {
if ((build2.myYState == 0) || (build2.myYState == -1)) {
if (build2.isUse == false) {
build2.remove();
}
goDown();
} else {
resetFangxiang();
}
} else if (build2 == undefined) {
if ((build1.myYState == 0) || (build1.myYState == -1)) {
if (build1.isUse == false) {
build1.remove();
}
goDown();
} else {
resetFangxiang();
}
} else if (((build1.myYState == 0) || (build1.myYState == -1)) && ((build2.myYState == 0) || (build2.myYState == -1))) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goDown();
} else {
resetFangxiang();
}
} else {
resetFangxiang();
}
}
function goRight() {
gotoAndStop(fangxiang);
getNowSeat(1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x + this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goLeft() {
gotoAndStop(fangxiang);
getNowSeat(-1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x - this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goUp() {
gotoAndStop(fangxiang);
getNowSeat(0, -1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y - this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goDown() {
gotoAndStop(fangxiang);
getNowSeat(0, 1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y + this.speed;
if (this.runTime == 0) {
this.isRun = false;
this.runOne = function () {
};
}
};
}
}
Symbol 809 MovieClip [__Packages.computer.ThroughCom] Frame 0
class computer.ThroughCom extends computer.Computer
{
var speed, isRun, p, fangxiang, b1, seat, b2, setFangxiang, build1, build2, build3, build4, resetFangxiang, gotoAndStop, getNowSeat, runTime, runOne, setNowDepth;
function ThroughCom () {
super();
speed = 1;
}
function findPlayer() {
if (_root.game.frameManage.isOK(4)) {
if (isRun == false) {
fireStar();
}
}
}
function fireStar() {
p = _root.game.map_mc.buildArray_mc.player_mc;
switch (fangxiang) {
case 1 :
var _local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveRight();
break;
case 2 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveLeft();
break;
case 3 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveUp();
break;
case 4 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveDown();
}
}
function moveRight() {
setFangxiang(1);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
if ((((build3 == undefined) && (build4 == undefined)) && (build1.isBian != true)) && (build2.isBian != true)) {
if (build2.isUse == false) {
build2.remove();
}
if (build1.isUse == false) {
build1.remove();
}
goRight();
} else {
resetFangxiang();
}
}
function moveLeft() {
setFangxiang(2);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
if ((((build3 == undefined) && (build4 == undefined)) && (build1.isBian != true)) && (build2.isBian != true)) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goLeft();
} else {
resetFangxiang();
}
}
function moveUp() {
setFangxiang(3);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
if ((((build3 == undefined) && (build4 == undefined)) && (build1.isBian != true)) && (build2.isBian != true)) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goUp();
} else {
resetFangxiang();
}
}
function moveDown() {
setFangxiang(4);
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
if ((((build3 == undefined) && (build4 == undefined)) && (build1.isBian != true)) && (build2.isBian != true)) {
if (build1.isUse == false) {
build1.remove();
}
if (build2.isUse == false) {
build2.remove();
}
goDown();
} else {
resetFangxiang();
}
}
function goRight() {
gotoAndStop(fangxiang);
getNowSeat(1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x + this.speed;
if (this.runTime == 0) {
this.randomFangxiang();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goLeft() {
gotoAndStop(fangxiang);
getNowSeat(-1, 0);
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._x = this._x - this.speed;
if (this.runTime == 0) {
this.randomFangxiang();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goUp() {
gotoAndStop(fangxiang);
getNowSeat(0, -1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y - this.speed;
if (this.runTime == 0) {
this.randomFangxiang();
this.setNowDepth();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function goDown() {
gotoAndStop(fangxiang);
getNowSeat(0, 1);
setNowDepth();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
runOne = function () {
this.runTime--;
this._y = this._y + this.speed;
if (this.runTime == 0) {
this.randomFangxiang();
this.setNowDepth();
this.isRun = false;
this.runOne = function () {
};
}
};
}
function randomFangxiang() {
if (random(13) == 0) {
resetFangxiang();
}
}
}
Symbol 810 MovieClip [__Packages.building.CaseWall] Frame 0
class building.CaseWall extends building.Wall
{
var isFire, myCaseObj, myType, powerup, myXState, myYState, isCanBooo, _name, body_mc;
function CaseWall () {
super();
isFire = true;
myCaseObj = new Array();
myType = powerup;
myXState = 2;
myYState = 2;
isCanBooo = false;
findSwitch();
}
function findSwitch() {
switch (myType) {
case 61 :
manage.GameManage.switchWallSetArray[1].push(_name);
break;
case 63 :
manage.GameManage.switchWallSetArray[2].push(_name);
break;
case 65 :
manage.GameManage.switchWallSetArray[3].push(_name);
break;
case 67 :
manage.GameManage.switchWallSetArray[4].push(_name);
break;
case 69 :
manage.GameManage.switchWallSetArray[5].push(_name);
}
}
function remove() {
myXState = 0;
myYState = 0;
isFire = false;
body_mc.play();
}
function boooBuild() {
}
}
Symbol 811 MovieClip [__Packages.building.SwitchWall] Frame 0
class building.SwitchWall extends building.Wall
{
var myCaseObj, myType, powerup, myXState, myYState, isCanBooo, body_mc;
function SwitchWall () {
super();
myCaseObj = new Array();
myType = powerup;
trace("\u4F10\u4EEC this.myType=" + myType);
myXState = 2;
myYState = 2;
isCanBooo = true;
}
function remove() {
body_mc.play();
}
function boooBuild() {
switch (myType) {
case 60 :
myCaseObj = manage.GameManage.switchWallSetArray[1];
break;
case 62 :
myCaseObj = manage.GameManage.switchWallSetArray[2];
break;
case 64 :
myCaseObj = manage.GameManage.switchWallSetArray[3];
break;
case 66 :
myCaseObj = manage.GameManage.switchWallSetArray[4];
break;
case 68 :
myCaseObj = manage.GameManage.switchWallSetArray[5];
}
var _local3 = 0;
while (_local3 < myCaseObj.length) {
_root.game.map_mc.buildArray_mc[myCaseObj[_local3]].remove();
_local3++;
}
remove();
}
}
Symbol 812 MovieClip [__Packages.building.BoatWall] Frame 0
class building.BoatWall extends building.Wall
{
var isPass, myType, myXState, myYState, isCanBooo, _name;
function BoatWall () {
super();
isPass = false;
myType = 12;
myXState = 2;
myYState = 2;
isCanBooo = false;
manage.GameManage.boatWallArray.push(_name);
}
function boooBuild() {
}
function remove() {
}
}
Symbol 813 MovieClip [__Packages.building.WhenWall] Frame 0
class building.WhenWall extends building.Wall
{
var isOpen, whenTimer, myType, myXState, myYState, isCanBooo, gotoAndStop, hit_mc, seat;
function WhenWall () {
super();
isOpen = false;
whenTimer = 100;
myType = 15;
myXState = 2;
myYState = 2;
isCanBooo = false;
}
function run() {
if (isOpen == false) {
whenTimer--;
if (whenTimer <= 0) {
gotoAndStop(2);
myXState = 0;
myYState = 0;
isOpen = true;
whenTimer = 100;
}
} else {
whenTimer--;
if (whenTimer <= 0) {
if (hit_mc.hitTest(_root.game.map_mc.buildArray_mc.player_mc.hit_mc) || (_root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + seat.y) + "_mc"] != undefined)) {
} else {
gotoAndStop(1);
myXState = 2;
myYState = 2;
isOpen = false;
whenTimer = 100;
}
}
}
}
function boooBuild() {
}
}
Symbol 814 MovieClip [__Packages.building.RestoreWall] Frame 0
class building.RestoreWall extends building.Wall
{
var restoreTimer, myType, myXState, myYState, isCanBooo, gotoAndStop, run;
function RestoreWall () {
super();
restoreTimer = 140;
myType = 14;
myXState = 2;
myYState = 2;
isCanBooo = true;
}
function boooBuild() {
gotoAndStop(2);
myXState = 0;
myYState = 0;
isCanBooo = false;
run = function () {
this.restoreTimer--;
if (this.restoreTimer <= 0) {
if (this.hit_mc.hitTest(_root.game.map_mc.buildArray_mc.player_mc.hit_mc)) {
} else {
this.isCanBooo = true;
this.restoreTimer = 140;
this.gotoAndStop(1);
this.myXState = 2;
this.myYState = 2;
this.run = null;
}
}
};
}
}
Symbol 815 MovieClip [__Packages.powerup.PowerUp] Frame 0
class powerup.PowerUp extends building.Building
{
var myType, myXState, myYState, isUse, isCanBooo, _y, _x, removeMovieClip;
function PowerUp () {
super();
myType = 100;
myXState = 0;
myYState = 0;
isUse = false;
isCanBooo = false;
}
function booo() {
}
function viewHappy() {
_root.game.map_mc.skyArray_mc.attachMovie("powerup-guang", ("powerup-guang" + _root.game.map_mc.skyArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.skyArray_mc.getNextHighestDepth(), {_x:_x + 12, _y:_y + 12});
}
function remove() {
removeMovieClip();
}
}
Symbol 816 MovieClip [__Packages.powerup.PowerMoney] Frame 0
class powerup.PowerMoney extends powerup.PowerUp
{
var gotoAndStop, moneyType, _y, _x, isUse, remove;
function PowerMoney () {
super();
setImage();
}
function setImage() {
gotoAndStop(moneyType);
}
function booo() {
_root.game.soundManage.playSound("money_s");
var _local3 = getScore();
_root.game.addScore(_local3);
_root.game.map_mc.skyArray_mc.attachMovie("addScore", ("addScore" + _root.game.map_mc.skyArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.skyArray_mc.getNextHighestDepth(), {_x:_x + 12, _y:_y + 12, no:_local3});
isUse = true;
remove();
}
function getScore() {
switch (moneyType) {
case 1 :
return(20);
case 2 :
return(35);
case 3 :
return(50);
case 4 :
return(70);
case 5 :
return(80);
case 6 :
return(110);
case 7 :
return(140);
case 8 :
return(160);
case 9 :
return(200);
case 10 :
return(240);
case 11 :
return(280);
case 12 :
return(350);
case 13 :
return(500);
}
}
}
Symbol 817 MovieClip [__Packages.building.StrongWall] Frame 0
class building.StrongWall extends building.Wall
{
var myType, myXState, myYState, isCanBooo, isBian, isStrong;
function StrongWall () {
super();
myType = 11;
myXState = 2;
myYState = 2;
isCanBooo = false;
if (isBian != true) {
isStrong = true;
}
}
function boooBuild() {
}
}
Symbol 818 MovieClip [__Packages.computer.CommonCom] Frame 0
class computer.CommonCom extends computer.Computer
{
var speed, myTimer, isRun, p, fangxiang, b1, seat, b2, moveUp, moveDown, moveRight, moveLeft;
function CommonCom () {
super();
if (_root.game.level > 8) {
speed = 3;
} else {
speed = 2;
}
}
function findPlayer() {
if ((myTimer % 4) == 0) {
if (isRun == false) {
fireStar();
}
}
}
function fireStar() {
p = _root.game.map_mc.buildArray_mc.player_mc;
switch (fangxiang) {
case 1 :
var _local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveRight();
break;
case 2 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == 1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == 1))) {
if ((p.seat.y + 1) == (seat.y - _local3)) {
if (p.seat.x == seat.x) {
moveUp();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveUp();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveUp();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + _local3)) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + _local3)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myYState == 0)) || (b1.myYState == -1)) && (((b2 == undefined) || (b2.myYState == 0)) || (b2.myYState == -1))) {
if (p.seat.y == (seat.y + _local3)) {
if (p.seat.x == seat.x) {
moveDown();
return(undefined);
}
if (p.seat.x == (seat.x + 1)) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == seat.x) {
moveDown();
return(undefined);
}
if ((p.seat.x + 1) == (seat.x + 1)) {
moveDown();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveLeft();
break;
case 3 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveUp();
break;
case 4 :
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == -1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == -1))) {
if ((p.seat.x + 1) == (seat.x - _local3)) {
if (p.seat.y == seat.y) {
moveLeft();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveLeft();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveLeft();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
_local3 = 1;
while (_local3 <= 8) {
b1 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + seat.y) + "_mc"];
b2 = _root.game.map_mc.buildArray_mc[((("qiang" + ((seat.x + 1) + _local3)) + "_") + (seat.y + 1)) + "_mc"];
if (b1.isPass != undefined) {
b1 = undefined;
}
if (b2.isPass != undefined) {
b2 = undefined;
}
if ((((b1 == undefined) || (b1.myXState == 0)) || (b1.myXState == 1)) && (((b2 == undefined) || (b2.myXState == 0)) || (b2.myXState == 1))) {
if (p.seat.x == ((seat.x + 1) + _local3)) {
if (p.seat.y == seat.y) {
moveRight();
return(undefined);
}
if (p.seat.y == (seat.y + 1)) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == seat.y) {
moveRight();
return(undefined);
}
if ((p.seat.y + 1) == (seat.y + 1)) {
moveRight();
return(undefined);
}
}
} else {
break;
}
_local3++;
}
moveDown();
}
}
}
Symbol 819 MovieClip [__Packages.building.PlayerWall] Frame 0
class building.PlayerWall extends building.Wall
{
var isPlayerWall, runTimer, myType, myXState, myYState, isCanBooo, gotoAndStop;
function PlayerWall () {
super();
isPlayerWall = true;
runTimer = _root.game.map_mc.buildArray_mc.player_mc.wallTimeMax;
myType = 1;
myXState = 2;
myYState = 2;
isCanBooo = true;
}
function boooBuild() {
remove();
}
function run() {
runTimer--;
if (runTimer == 0) {
remove();
}
}
function remove() {
gotoAndStop(2);
}
}
Symbol 820 MovieClip [__Packages.building.CommonWall] Frame 0
class building.CommonWall extends building.Wall
{
var myType, myXState, myYState, isCanBooo, seat, powerup, swapDepths, _parent, body_mc;
function CommonWall () {
super();
myType = 20;
myXState = 2;
myYState = 2;
isCanBooo = true;
}
function boooBuild() {
var _local3 = new Object();
_local3.x = seat.x;
_local3.y = seat.y;
var _local4 = powerup;
swapDepths(_parent.getNextHighestDepth());
remove();
if ((_local4 > 0) && (_local4 < 13)) {
_root.game.createPowreUp("PowerHoney", _local3.x, _local3.y, _local4);
} else if (_local4 == 14) {
_root.game.createPowreUp("powerWallTime", _local3.x, _local3.y);
} else if (_local4 == 15) {
_root.game.createPowreUp("powerSpeed", _local3.x, _local3.y);
} else if (_local4 == 16) {
_root.game.createPowreUp("powerHammer", _local3.x, _local3.y);
} else if (_local4 == 17) {
_root.game.createPowreUp("powerBoat", _local3.x, _local3.y);
} else if (_local4 == 18) {
_root.game.createPowreUp("powerPower", _local3.x, _local3.y);
} else if (_local4 == 19) {
_root.game.createPowreUp("powerStoneWall", _local3.x, _local3.y);
}
}
function remove() {
_root.game.addScore(_root.game.level);
body_mc.play();
}
}
Symbol 821 MovieClip [__Packages.building.SelectWall] Frame 0
class building.SelectWall extends building.Wall
{
var isSelect, myType, myXState, myYState, isCanBooo, _name, seat, powerup, swapDepths, _parent, body_mc;
function SelectWall () {
super();
isSelect = true;
myType = 40;
myXState = 2;
myYState = 2;
isCanBooo = false;
manage.GameManage.selectWallArray.push(_name);
}
function boooBuild() {
if (_root.game.map_mc.buildArray_mc.player_mc.isHammer == true) {
var _local3 = new Object();
_local3.x = seat.x;
_local3.y = seat.y;
var _local4 = powerup;
swapDepths(_parent.getNextHighestDepth());
remove();
if ((_local4 > 0) && (_local4 < 14)) {
_root.game.createPowreUp("powerMoney", _local3.x, _local3.y, _local4);
} else if (_local4 == 14) {
_root.game.createPowreUp("powerWallTime", _local3.x, _local3.y);
} else if (_local4 == 15) {
_root.game.createPowreUp("powerSpeed", _local3.x, _local3.y);
} else if (_local4 == 16) {
_root.game.createPowreUp("powerHammer", _local3.x, _local3.y);
} else if (_local4 == 17) {
_root.game.createPowreUp("powerBoat", _local3.x, _local3.y);
} else if (_local4 == 18) {
_root.game.createPowreUp("powerPower", _local3.x, _local3.y);
} else if (_local4 == 19) {
_root.game.createPowreUp("powerStoneWall", _local3.x, _local3.y);
}
}
}
function remove() {
isSelect = false;
_root.game.addScore(_root.game.level * 2);
body_mc.play();
}
}
Symbol 822 MovieClip [__Packages.powerup.PowerSpeed] Frame 0
class powerup.PowerSpeed extends powerup.PowerUp
{
var isUse, viewHappy, remove;
function PowerSpeed () {
super();
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.popupPowerup_mc.myType = 3;
_root.game.popupPowerup_mc.gotoAndPlay(2);
_root.game.map_mc.buildArray_mc.player_mc.speed = 8;
_root.game.viewArray_mc.attachMovie("powerup-guang", ("powerup-guang" + _root.game.viewArray_mc.getNextHighestDepth()) + "_mc", _root.game.viewArray_mc.getNextHighestDepth(), {_x:_root.game.powerup_speed_mc._x + 12, _y:_root.game.powerup_speed_mc._y + 12});
_root.game.powerup_speed_mc.gotoAndStop(1);
isUse = true;
viewHappy();
remove();
}
}
Symbol 823 MovieClip [__Packages.powerup.PowerStoneWall] Frame 0
class powerup.PowerStoneWall extends powerup.PowerUp
{
var power, isUse, viewHappy, remove;
function PowerStoneWall () {
super();
power = 4;
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.map_mc.buildArray_mc.player_mc.addStoneWall(power);
isUse = true;
viewHappy();
remove();
}
}
Symbol 824 MovieClip [__Packages.powerup.PowerWallTime] Frame 0
class powerup.PowerWallTime extends powerup.PowerUp
{
var power, isUse, viewHappy, remove;
function PowerWallTime () {
super();
power = 5;
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.popupPowerup_mc.myType = 2;
_root.game.popupPowerup_mc.gotoAndPlay(2);
_root.game.map_mc.buildArray_mc.player_mc.wallTimeMax = _root.game.map_mc.buildArray_mc.player_mc.wallTimeMax + 100;
_root.game.viewArray_mc.attachMovie("powerup-guang", ("powerup-guang" + _root.game.viewArray_mc.getNextHighestDepth()) + "_mc", _root.game.viewArray_mc.getNextHighestDepth(), {_x:_root.game.powerup_time_mc._x + 12, _y:_root.game.powerup_time_mc._y + 12});
_root.game.powerup_time_mc.gotoAndStop(1);
isUse = true;
viewHappy();
remove();
}
}
Symbol 825 MovieClip [__Packages.powerup.PowerPower] Frame 0
class powerup.PowerPower extends powerup.PowerUp
{
var power, isUse, viewHappy, remove;
function PowerPower () {
super();
power = 5;
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.map_mc.buildArray_mc.player_mc.addPower(power);
isUse = true;
viewHappy();
remove();
}
}
Symbol 826 MovieClip [__Packages.powerup.PowerBoat] Frame 0
class powerup.PowerBoat extends powerup.PowerUp
{
var isUse, viewHappy, remove;
function PowerBoat () {
super();
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.popupPowerup_mc.myType = 4;
_root.game.popupPowerup_mc.gotoAndPlay(2);
_root.game.map_mc.buildArray_mc.player_mc.isBoat = true;
_root.game.viewArray_mc.attachMovie("powerup-guang", ("powerup-guang" + _root.game.viewArray_mc.getNextHighestDepth()) + "_mc", _root.game.viewArray_mc.getNextHighestDepth(), {_x:_root.game.powerup_boat_mc._x + 12, _y:_root.game.powerup_boat_mc._y + 12});
_root.game.powerup_boat_mc.gotoAndStop(1);
var _local3 = 0;
while (_local3 < manage.GameManage.boatWallArray.length) {
_root.game.map_mc.buildArray_mc[manage.GameManage.boatWallArray[_local3]].isPass = true;
_local3++;
}
isUse = true;
viewHappy();
remove();
}
}
Symbol 827 MovieClip [__Packages.powerup.PowerHammer] Frame 0
class powerup.PowerHammer extends powerup.PowerUp
{
var isUse, viewHappy, remove;
function PowerHammer () {
super();
}
function booo() {
_root.game.soundManage.playSound("powerup_s");
_root.game.popupPowerup_mc.myType = 1;
_root.game.popupPowerup_mc.gotoAndPlay(2);
_root.game.map_mc.buildArray_mc.player_mc.isHammer = true;
_root.game.viewArray_mc.attachMovie("powerup-guang", ("powerup-guang" + _root.game.viewArray_mc.getNextHighestDepth()) + "_mc", _root.game.viewArray_mc.getNextHighestDepth(), {_x:_root.game.powerup_hammer_mc._x + 12, _y:_root.game.powerup_hammer_mc._y + 12});
_root.game.powerup_hammer_mc.gotoAndStop(1);
var _local3 = 0;
while (_local3 < manage.GameManage.selectWallArray.length) {
_root.game.map_mc.buildArray_mc[manage.GameManage.selectWallArray[_local3]].isCanBooo = true;
_local3++;
}
isUse = true;
viewHappy();
remove();
}
}
Symbol 828 MovieClip [__Packages.Player] Frame 0
class Player extends Father
{
var footNo, myTimer, nowWall, stoneWallNo, power, isHammer, isBoat, isBuild, speed, isRun, xiong_mc, runTime, swapDepths, seat, _x, _y, fangxiang, gotoAndStop, build1, build2, build3, build4, hit_mc;
function Player () {
super();
footNo = 1;
myTimer = 0;
nowWall = 1;
stoneWallNo = 6;
power = powerMax;
_root.game.life = _root.game.life;
_root.game.power = power;
_root.game.powerStone = stoneWallNo;
_root.game.power_mc.gotoAndStop(power + 1);
_root.game.powerup_speed_mc.gotoAndStop(2);
_root.game.powerup_time_mc.gotoAndStop(2);
_root.game.powerup_hammer_mc.gotoAndStop(2);
_root.game.powerup_boat_mc.gotoAndStop(2);
_root.game.wallView_mc.gotoAndStop(1);
isHammer = false;
isBoat = false;
isBuild = false;
setFangxiang(4);
speed = 6;
isRun = false;
getNowSeat(0, 0);
setNowDepth();
}
function addStoneWall(no) {
stoneWallNo = stoneWallNo + no;
_root.game.powerStone = stoneWallNo;
}
function addPower(no) {
power = power + no;
if (power > powerMax) {
power = powerMax;
}
_root.game.power = power;
_root.game.power_mc.gotoAndStop(power + 1);
}
function reducePower(p) {
if (nowWall == 2) {
stoneWallNo = stoneWallNo - p;
_root.game.powerStone = stoneWallNo;
} else {
power = power - p;
_root.game.power = power;
_root.game.power_mc.gotoAndStop(power + 1);
}
}
function changeNowWall() {
if (nowWall == 1) {
nowWall = 2;
_root.game.wallView_mc.gotoAndStop(2);
} else if (nowWall == 2) {
nowWall = 1;
_root.game.wallView_mc.gotoAndStop(1);
}
}
function run() {
myTimer++;
if (myTimer == 5) {
isComputerHit();
myTimer = 0;
}
runOne();
}
function runOne() {
}
function buildWall(str, xx, yy) {
xiong_mc.gotoAndStop(2);
_root.game.soundManage.playSound("build_s");
createBuilding = function () {
_root.game.createOneBuilding(str, xx, yy);
};
createBuilding();
runTime = 10;
isRun = true;
runOne = function () {
this.runTime--;
if (this.runTime == 0) {
this.xiong_mc.gotoAndStop(1);
this.isRun = false;
this.runOne = function () {
};
}
};
}
function createBuilding() {
}
function addBuildWall(str, xx, yy) {
var onYYY = createBuilding;
createBuilding = function () {
onYYY();
_root.game.createOneBuilding(str, xx, yy);
};
}
function returnWallStr() {
switch (nowWall) {
case 1 :
return("playerWall");
case 2 :
return("playerStoneWall");
}
}
function setNowDepth() {
swapDepths(((seat.y + 1) * 1000) + 800);
}
function getNowSeat(xno, yno) {
seat = manage.DepthManage.getSeat((_x - 12) + (xno * 24), (_y - 12) + (yno * 24));
}
function setFangxiang(no) {
fangxiang = no;
gotoAndStop(fangxiang);
}
function reduceWallView() {
_root.game.soundManage.playSound("chai_s");
if (isHammer == false) {
xiong_mc.gotoAndStop(2);
} else {
xiong_mc.gotoAndStop(3);
}
runTime = 10;
isRun = true;
runOne = function () {
this.runTime--;
if (this.runTime == 0) {
this.xiong_mc.gotoAndStop(1);
this.isRun = false;
this.runOne = function () {
};
}
};
}
function pressSpaces() {
if (isRun == false) {
switch (fangxiang) {
case 1 :
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
if ((((build1 == undefined) && (build2 == undefined)) && (build3 == undefined)) && (build4 == undefined)) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 2, seat.y);
reducePower(1);
}
if (powerEnough(1)) {
if (isRun == true) {
_root.game.createOneBuilding(returnWallStr(), seat.x + 2, seat.y + 1);
} else {
buildWall(returnWallStr(), seat.x + 2, seat.y + 1);
}
reducePower(1);
}
} else if ((build1 == undefined) && (build3 == undefined)) {
if (build4 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 2, seat.y);
reducePower(1);
}
} else if (build2.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 2, seat.y);
reducePower(1);
}
} else if (build2.isCanBooo == true) {
reduceWallView();
build2.boooBuild();
}
} else if ((build2 == undefined) && (build4 == undefined)) {
if (build3 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 2, seat.y + 1);
reducePower(1);
}
} else if (build1.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 2, seat.y + 1);
reducePower(1);
}
} else {
reduceWallView();
build1.boooBuild();
}
} else if ((build3 != undefined) && (build4 != undefined)) {
} else {
if ((build1.isCanBooo == true) || (build2.isCanBooo == true)) {
reduceWallView();
}
build1.boooBuild();
build2.boooBuild();
}
break;
case 2 :
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
if ((((build1 == undefined) && (build2 == undefined)) && (build3 == undefined)) && (build4 == undefined)) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x - 1, seat.y);
reducePower(1);
}
if (powerEnough(1)) {
if (isRun == true) {
_root.game.createOneBuilding(returnWallStr(), seat.x - 1, seat.y + 1);
} else {
buildWall(returnWallStr(), seat.x - 1, seat.y + 1);
}
reducePower(1);
}
} else if ((build1 == undefined) && (build3 == undefined)) {
if (build4 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x - 1, seat.y);
reducePower(1);
}
} else if (build2.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x - 1, seat.y);
reducePower(1);
}
} else {
reduceWallView();
build2.boooBuild();
}
} else if ((build2 == undefined) && (build4 == undefined)) {
if (build3 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x - 1, seat.y + 1);
reducePower(1);
}
} else if (build1.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x - 1, seat.y + 1);
reducePower(1);
}
} else {
reduceWallView();
build1.boooBuild();
}
} else if ((build3 != undefined) && (build4 != undefined)) {
} else {
if ((build1.isCanBooo == true) || (build2.isCanBooo == true)) {
reduceWallView();
}
build1.boooBuild();
build2.boooBuild();
}
break;
case 3 :
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
if ((((build1 == undefined) && (build2 == undefined)) && (build3 == undefined)) && (build4 == undefined)) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y - 1);
reducePower(1);
}
if (powerEnough(1)) {
if (isRun == true) {
_root.game.createOneBuilding(returnWallStr(), seat.x + 1, seat.y - 1);
} else {
buildWall(returnWallStr(), seat.x + 1, seat.y - 1);
}
reducePower(1);
}
} else if ((build1 == undefined) && (build3 == undefined)) {
if (build4 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y - 1);
reducePower(1);
}
} else if (build2.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y - 1);
reducePower(1);
}
} else {
reduceWallView();
build2.boooBuild();
}
} else if ((build2 == undefined) && (build4 == undefined)) {
if (build3 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 1, seat.y - 1);
reducePower(1);
}
} else if (build1.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 1, seat.y - 1);
reducePower(1);
}
} else {
reduceWallView();
build1.boooBuild();
}
} else if ((build3 != undefined) && (build4 != undefined)) {
} else {
if ((build1.isCanBooo == true) || (build2.isCanBooo == true)) {
reduceWallView();
}
build1.boooBuild();
build2.boooBuild();
}
break;
case 4 :
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
build3 = _root.game.map_mc.comSetArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build4 = _root.game.map_mc.comSetArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
if ((((build1 == undefined) && (build2 == undefined)) && (build3 == undefined)) && (build4 == undefined)) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y + 2);
reducePower(1);
}
if (powerEnough(1)) {
if (isRun == true) {
_root.game.createOneBuilding(returnWallStr(), seat.x + 1, seat.y + 2);
} else {
buildWall(returnWallStr(), seat.x + 1, seat.y + 2);
}
reducePower(1);
}
} else if ((build1 == undefined) && (build3 == undefined)) {
if (build4 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y + 2);
reducePower(1);
}
} else if (build2.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x, seat.y + 2);
reducePower(1);
}
} else {
reduceWallView();
build2.boooBuild();
}
} else if ((build2 == undefined) && (build4 == undefined)) {
if (build4 != undefined) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 1, seat.y + 2);
reducePower(1);
}
} else if (build1.isCanBooo == false) {
if (powerEnough(1)) {
buildWall(returnWallStr(), seat.x + 1, seat.y + 2);
reducePower(1);
}
} else {
reduceWallView();
build1.boooBuild();
}
} else if ((build3 != undefined) && (build4 != undefined)) {
} else {
if ((build1.isCanBooo == true) || (build2.isCanBooo == true)) {
reduceWallView();
}
build1.boooBuild();
build2.boooBuild();
}
}
} else {
isBuild = true;
}
if (((build1.isSelect == true) || (build2.isSelect == true)) && (isHammer == false)) {
_root.game.isSelect_mc.gotoAndPlay(2);
}
if ((build1.isFire == true) || (build2.isFire == true)) {
_root.game.isFire_mc.gotoAndPlay(2);
}
if ((build1.isStrong == true) || (build2.isStrong == true)) {
_root.game.isStrong_mc.gotoAndPlay(2);
}
}
function powerEnough(no) {
if (nowWall == 1) {
if (power >= no) {
return(true);
}
trace("power\u4E0D\u591F\u4E86\uFF01");
return(false);
}
if (nowWall == 2) {
if (stoneWallNo > 0) {
if (power >= no) {
return(true);
}
trace("power\u4E0D\u591F\u4E86\uFF01");
return(false);
}
trace(" \u7816 \u4E0D\u591F\u4E86\uFF01");
return(false);
}
}
function moveRight() {
if (fangxiang == 1) {
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 2)) + "_") + (seat.y + 1)) + "_mc"];
if ((build1 == undefined) && (build2 == undefined)) {
goRight();
} else if (build1 == undefined) {
if (((build2.myXState == 0) || (build2.myXState == 1)) || (build2.isPass == true)) {
goRight();
}
} else if (build2 == undefined) {
if (((build1.myXState == 0) || (build1.myXState == 1)) || (build1.isPass == true)) {
goRight();
}
} else if ((((build1.myXState == 0) || (build1.myXState == -1)) || (build1.isPass == true)) && (((build2.myXState == 0) || (build2.myXState == -1)) || (build2.isPass == true))) {
goRight();
}
} else {
setFangxiang(1);
}
}
function moveLeft() {
if (fangxiang == 2) {
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + seat.y) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x - 1)) + "_") + (seat.y + 1)) + "_mc"];
if ((build1 == undefined) && (build2 == undefined)) {
goLeft();
} else if (build1 == undefined) {
if (((build2.myXState == 0) || (build2.myXState == -1)) || (build2.isPass == true)) {
goLeft();
}
} else if (build2 == undefined) {
if (((build1.myXState == 0) || (build1.myXState == -1)) || (build1.isPass == true)) {
goLeft();
}
} else if ((((build1.myXState == 0) || (build1.myXState == -1)) || (build1.isPass == true)) && (((build2.myXState == 0) || (build2.myXState == -1)) || (build2.isPass == true))) {
goLeft();
}
} else {
setFangxiang(2);
}
}
function moveUp() {
if (fangxiang == 3) {
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y - 1)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y - 1)) + "_mc"];
if ((build1 == undefined) && (build2 == undefined)) {
goUp();
} else if (build1 == undefined) {
if (((build2.myYState == 0) || (build2.myYState == 1)) || (build2.isPass == true)) {
goUp();
}
} else if (build2 == undefined) {
if (((build1.myYState == 0) || (build1.myYState == 1)) || (build1.isPass == true)) {
goUp();
}
} else if ((((build1.myYState == 0) || (build1.myYState == -1)) || (build1.isPass == true)) && (((build2.myYState == 0) || (build2.myYState == -1)) || (build2.isPass == true))) {
goUp();
}
} else {
setFangxiang(3);
}
}
function moveDown() {
if (fangxiang == 4) {
build1 = _root.game.map_mc.buildArray_mc[((("qiang" + seat.x) + "_") + (seat.y + 2)) + "_mc"];
build2 = _root.game.map_mc.buildArray_mc[((("qiang" + (seat.x + 1)) + "_") + (seat.y + 2)) + "_mc"];
if ((build1 == undefined) && (build2 == undefined)) {
goDown();
} else if (build1 == undefined) {
if (((build2.myYState == 0) || (build2.myYState == -1)) || (build2.isPass == true)) {
goDown();
}
} else if (build2 == undefined) {
if (((build1.myYState == 0) || (build1.myYState == -1)) || (build1.isPass == true)) {
goDown();
}
} else if ((((build1.myYState == 0) || (build1.myYState == -1)) || (build1.isPass == true)) && (((build2.myYState == 0) || (build2.myYState == -1)) || (build2.isPass == true))) {
goDown();
}
} else {
setFangxiang(4);
}
}
function goRight() {
isPowerUpBooo();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
getNowSeat(1, 0);
runOne = function () {
this.runTime--;
this._x = this._x + this.speed;
this.toRightMoveMap();
if (this.runTime == 0) {
if (this.footNo == 1) {
_root.game.map_mc.footArray_mc.attachMovie("foot_s", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x - 12, _y:this._y + 8, _xscale:-100});
this.footNo = 2;
} else {
_root.game.map_mc.footArray_mc.attachMovie("foot_s", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x - 12, _y:this._y + 16, _xscale:-100});
this.footNo = 1;
}
this.isRun = false;
this.runOne = function () {
};
if (this.isBuild == true) {
this.isBuild = false;
this.pressSpaces();
}
}
};
}
function goLeft() {
isPowerUpBooo();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
getNowSeat(-1, 0);
runOne = function () {
this.runTime--;
this._x = this._x - this.speed;
this.toLeftMoveMap();
if (this.runTime == 0) {
if (this.footNo == 1) {
_root.game.map_mc.footArray_mc.attachMovie("foot_s", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x + 12, _y:this._y + 8});
this.footNo = 2;
} else {
_root.game.map_mc.footArray_mc.attachMovie("foot_s", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x + 12, _y:this._y + 16});
this.footNo = 1;
}
this.isRun = false;
this.runOne = function () {
};
if (this.isBuild == true) {
this.isBuild = false;
this.pressSpaces();
}
}
};
}
function goUp() {
isPowerUpBooo();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
getNowSeat(0, -1);
setNowDepth();
runOne = function () {
this.runTime--;
this._y = this._y - this.speed;
this.toUpMoveMap();
if (this.runTime == 0) {
if (this.footNo == 1) {
_root.game.map_mc.footArray_mc.attachMovie("foot_h", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x - 12, _y:this._y + 12, _yscale:-100});
this.footNo = 2;
} else {
_root.game.map_mc.footArray_mc.attachMovie("foot_h", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x + 12, _y:this._y + 12, _yscale:-100});
this.footNo = 1;
}
this.isRun = false;
this.runOne = function () {
};
if (this.isBuild == true) {
this.isBuild = false;
this.pressSpaces();
}
}
};
}
function goDown() {
isPowerUpBooo();
runTime = manage.GameManage.oneSize / speed;
isRun = true;
getNowSeat(0, 1);
setNowDepth();
runOne = function () {
this.runTime--;
this._y = this._y + this.speed;
this.toDownMoveMap();
if (this.runTime == 0) {
if (this.footNo == 1) {
_root.game.map_mc.footArray_mc.attachMovie("foot_h", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x - 12, _y:this._y - 12});
this.footNo = 2;
} else {
_root.game.map_mc.footArray_mc.attachMovie("foot_h", ("foot_h" + _root.game.map_mc.footArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.footArray_mc.getNextHighestDepth(), {_x:this._x + 12, _y:this._y - 12});
this.footNo = 1;
}
this.isRun = false;
this.runOne = function () {
};
if (this.isBuild == true) {
this.isBuild = false;
this.pressSpaces();
}
}
};
}
function isPowerUpBooo() {
if (build1.isUse == false) {
build1.booo();
}
if (build2.isUse == false) {
build2.booo();
}
}
function isComputerHit() {
var _local3 = 0;
while (_local3 < manage.GameManage.nowLevelComputerArray.length) {
if (hit_mc.hitTest(_root.game.map_mc.buildArray_mc[manage.GameManage.nowLevelComputerArray[_local3]].hit_mc)) {
die();
}
_local3++;
}
}
function die() {
trace("\u6B7B\u4E86\uFF01");
_root.game.youDie();
}
function toRightMoveMap() {
if (_root.game.map_mc._x > ((_root.game.thisMapW - manage.GameManage.rootX) * -1)) {
if (ExtMath.to_global(_root.game.map_mc.buildArray_mc, this).x > 240) {
_root.game.map_mc._x = _root.game.map_mc._x - speed;
}
}
}
function toLeftMoveMap() {
if (_root.game.map_mc._x < 0) {
if (ExtMath.to_global(_root.game.map_mc.buildArray_mc, this).x < 240) {
_root.game.map_mc._x = _root.game.map_mc._x + speed;
}
}
}
function toUpMoveMap() {
if (_root.game.map_mc._y < 0) {
if (ExtMath.to_global(_root.game.map_mc.buildArray_mc, this).y < 240) {
_root.game.map_mc._y = _root.game.map_mc._y + speed;
}
}
}
function toDownMoveMap() {
if (_root.game.map_mc._y > (((_root.game.thisMapH - manage.GameManage.rootY) * -1) - 65)) {
if (ExtMath.to_global(_root.game.map_mc.buildArray_mc, this).y > 240) {
_root.game.map_mc._y = _root.game.map_mc._y - speed;
}
}
}
function moveReturnX() {
}
function moveReturnY() {
}
var wallTimeMax = 250;
static var powerMax = 24;
}
Symbol 829 MovieClip [__Packages.ExtMath] Frame 0
class ExtMath extends Math
{
function ExtMath () {
super();
}
static function distance(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function distance2(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return((_local2 * _local2) + (_local1 * _local1));
}
static function degreesToRadians(angle) {
return(angle * 0.017453);
}
static function radiansToDegrees(radian) {
return(radian * 57.29578);
}
static function sinD(angle) {
return(Math.sin((angle * 3.141593) / 180));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.29578);
}
static function cosD(angle) {
return(Math.cos((angle * 3.141593) / 180));
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.29578);
}
static function tanD(angle) {
return(Math.tan((angle * 3.141593) / 180));
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.29578);
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function fixAngle(angle) {
var _local1 = angle % 360;
return((((_local1 % 360) < 0) ? (_local1 + 360) : (_local1)));
}
static function to_global(father_mc, target_mc) {
var _local1 = {x:target_mc._x, y:target_mc._y};
father_mc.localToGlobal(_local1);
return(_local1);
}
static function to_local(target, target_x, target_y) {
var _local1 = {x:target_x, y:target_y};
target.globalToLocal(_local1);
return(_local1);
}
static function coordinateConvert(mc1, mc2, x, y) {
var _local2 = new Object({x:((x != undefined) ? (x) : 0), y:((y != undefined) ? (y) : 0)});
mc1.localToGlobal(_local2);
if ((mc2 != undefined) && (mc2 != _root)) {
mc2.globalToLocal(_local2);
}
return(_local2);
}
static function countDistance(mcX1, mcY1, mcX2, mcY2) {
return(Math.sqrt((Math.abs(mcX2 - mcX1) * Math.abs(mcX2 - mcX1)) + (Math.abs(mcY2 - mcY1) * Math.abs(mcY2 - mcY1))));
}
static function countMoveLen(obj1, obj2, len) {
var _local3 = angleOfLine(obj1.x, obj1.y, obj2.x, obj2.y);
return(flash.geom.Point.polar(len, (angleOfLine(obj1.x, obj1.y, obj2.x, obj2.y) * Math.PI) / 180));
}
}
Symbol 830 MovieClip [__Packages.Door] Frame 0
class Door extends Father
{
var myTimer, seat, swapDepths, _x, _y, hit_mc;
function Door () {
super();
myTimer = 2;
getNowSeat();
setNowDepth();
_root.game.createOneComSet("emptyWall", seat.x, seat.y);
_root.game.createOneComSet("emptyWall", seat.x + 1, seat.y);
_root.game.createOneComSet("emptyWall", seat.x, seat.y + 1);
_root.game.createOneComSet("emptyWall", seat.x + 1, seat.y + 1);
}
function setNowDepth() {
swapDepths(((seat.y + 1) * 1000) + 490);
}
function getNowSeat() {
seat = manage.DepthManage.getSeat(_x - 12, _y - 12);
}
function run() {
myTimer++;
if (myTimer >= 10) {
if (_root.game.map_mc.buildArray_mc.player_mc.hit_mc.hitTest(hit_mc)) {
trace("\u8FC7\u5173\uFF01");
_root.game.kissDoor();
}
myTimer = 0;
}
}
}
Symbol 831 MovieClip [__Packages.powerup.PowerHoney] Frame 0
class powerup.PowerHoney extends powerup.PowerUp
{
var gotoAndStop, moneyType, _y, _x, isUse, remove;
function PowerHoney () {
super();
setImage();
}
function setImage() {
gotoAndStop(moneyType);
}
function booo() {
_root.game.soundManage.playSound("money_s");
var _local3 = getScore();
_root.game.addScore(_local3);
_root.game.map_mc.skyArray_mc.attachMovie("addScore", ("addScore" + _root.game.map_mc.skyArray_mc.getNextHighestDepth()) + "_mc", _root.game.map_mc.skyArray_mc.getNextHighestDepth(), {_x:_x + 12, _y:_y + 12, no:_local3});
isUse = true;
remove();
}
function getScore() {
switch (moneyType) {
case 1 :
return(20);
case 2 :
return(30);
case 3 :
return(40);
case 4 :
return(50);
case 5 :
return(70);
case 6 :
return(90);
case 7 :
return(100);
case 8 :
return(120);
case 9 :
return(150);
case 10 :
return(170);
case 11 :
return(200);
case 12 :
return(300);
case 13 :
return(400);
}
}
}
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 145
Fade.start();
_root.gotoAndStop("game");
Symbol 37 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 43 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 53 Button
on (release) {
viewHighscore();
}
Symbol 57 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 57 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Symbol 61 MovieClip [addScore] Frame 1
scoreView_mc.no = this.no;
Symbol 61 MovieClip [addScore] Frame 9
this.removeMovieClip();
Symbol 91 MovieClip [powerHoney] Frame 1
#initclip 70
Object.registerClass("powerHoney", powerup.PowerHoney);
#endinitclip
stop();
Symbol 91 MovieClip [powerHoney] Frame 2
stop();
Symbol 91 MovieClip [powerHoney] Frame 3
stop();
Symbol 91 MovieClip [powerHoney] Frame 4
stop();
Symbol 91 MovieClip [powerHoney] Frame 5
stop();
Symbol 91 MovieClip [powerHoney] Frame 6
stop();
Symbol 91 MovieClip [powerHoney] Frame 7
stop();
Symbol 91 MovieClip [powerHoney] Frame 8
stop();
Symbol 91 MovieClip [powerHoney] Frame 9
stop();
Symbol 91 MovieClip [powerHoney] Frame 10
stop();
Symbol 91 MovieClip [powerHoney] Frame 11
stop();
Symbol 91 MovieClip [powerHoney] Frame 12
stop();
Symbol 91 MovieClip [powerHoney] Frame 13
stop();
Symbol 98 MovieClip Frame 9
stop();
Symbol 101 MovieClip Frame 7
this._parent.removeMovieClip();
Symbol 102 MovieClip [playerStoneWall] Frame 1
#initclip 42
Object.registerClass("playerStoneWall", building.PlayerStoneWall);
#endinitclip
stop();
Symbol 102 MovieClip [playerStoneWall] Frame 2
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 147 MovieClip [hunterCom] Frame 1
#initclip 43
Object.registerClass("hunterCom", computer.HunterCom);
#endinitclip
stop();
Symbol 147 MovieClip [hunterCom] Frame 2
stop();
Symbol 147 MovieClip [hunterCom] Frame 3
stop();
Symbol 147 MovieClip [hunterCom] Frame 4
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 30
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 177 MovieClip Frame 30
stop();
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
stop();
Symbol 179 MovieClip [eatCom] Frame 1
#initclip 44
Object.registerClass("eatCom", computer.EatCom);
#endinitclip
stop();
Symbol 179 MovieClip [eatCom] Frame 2
stop();
Symbol 179 MovieClip [eatCom] Frame 3
stop();
Symbol 179 MovieClip [eatCom] Frame 4
stop();
Symbol 206 MovieClip [throughCom] Frame 1
#initclip 45
Object.registerClass("throughCom", computer.ThroughCom);
#endinitclip
stop();
Symbol 206 MovieClip [throughCom] Frame 2
stop();
Symbol 206 MovieClip [throughCom] Frame 3
stop();
Symbol 206 MovieClip [throughCom] Frame 4
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 11
stop();
Symbol 222 MovieClip [caseWall] Frame 1
#initclip 46
Object.registerClass("caseWall", building.CaseWall);
#endinitclip
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 8
this._parent.removeMovieClip();
Symbol 228 MovieClip [switchWall] Frame 1
#initclip 47
Object.registerClass("switchWall", building.SwitchWall);
#endinitclip
stop();
Symbol 234 MovieClip [boatWall] Frame 1
#initclip 48
Object.registerClass("boatWall", building.BoatWall);
#endinitclip
Symbol 247 MovieClip Frame 6
stop();
Symbol 248 MovieClip Frame 6
stop();
Symbol 249 MovieClip [whenWall] Frame 1
#initclip 49
Object.registerClass("whenWall", building.WhenWall);
#endinitclip
stop();
Symbol 249 MovieClip [whenWall] Frame 2
stop();
Symbol 259 MovieClip Frame 9
stop();
Symbol 261 MovieClip Frame 9
stop();
Symbol 262 MovieClip [restoreWall] Frame 1
#initclip 50
Object.registerClass("restoreWall", building.RestoreWall);
#endinitclip
stop();
Symbol 262 MovieClip [restoreWall] Frame 2
stop();
Symbol 289 MovieClip [powerMoney] Frame 1
#initclip 51
Object.registerClass("powerMoney", powerup.PowerMoney);
#endinitclip
stop();
Symbol 289 MovieClip [powerMoney] Frame 2
stop();
Symbol 289 MovieClip [powerMoney] Frame 3
stop();
Symbol 289 MovieClip [powerMoney] Frame 4
stop();
Symbol 289 MovieClip [powerMoney] Frame 5
stop();
Symbol 289 MovieClip [powerMoney] Frame 6
stop();
Symbol 289 MovieClip [powerMoney] Frame 7
stop();
Symbol 289 MovieClip [powerMoney] Frame 8
stop();
Symbol 289 MovieClip [powerMoney] Frame 9
stop();
Symbol 289 MovieClip [powerMoney] Frame 10
stop();
Symbol 289 MovieClip [powerMoney] Frame 11
stop();
Symbol 289 MovieClip [powerMoney] Frame 12
stop();
Symbol 289 MovieClip [powerMoney] Frame 13
stop();
Symbol 293 MovieClip [strongWall] Frame 1
#initclip 52
Object.registerClass("strongWall", building.StrongWall);
#endinitclip
Symbol 294 MovieClip [emptyWall] Frame 1
#initclip 53
Object.registerClass("emptyWall", building.EmptyWall);
#endinitclip
Symbol 313 MovieClip [commonCom] Frame 1
#initclip 54
Object.registerClass("commonCom", computer.CommonCom);
#endinitclip
stop();
Symbol 313 MovieClip [commonCom] Frame 2
stop();
Symbol 313 MovieClip [commonCom] Frame 3
stop();
Symbol 313 MovieClip [commonCom] Frame 4
stop();
Symbol 320 MovieClip Frame 9
stop();
Symbol 321 MovieClip Frame 7
this._parent.removeMovieClip();
Symbol 322 MovieClip [playerWall] Frame 1
#initclip 55
Object.registerClass("playerWall", building.PlayerWall);
#endinitclip
stop();
Symbol 322 MovieClip [playerWall] Frame 2
stop();
Symbol 335 MovieClip [bian] Frame 1
#initclip 56
Object.registerClass("bian", building.StrongWall);
#endinitclip
stop();
this.gotoAndStop(random(6) + 1);
Symbol 335 MovieClip [bian] Frame 2
stop();
Symbol 335 MovieClip [bian] Frame 3
stop();
Symbol 335 MovieClip [bian] Frame 4
stop();
Symbol 335 MovieClip [bian] Frame 5
stop();
Symbol 335 MovieClip [bian] Frame 6
stop();
Symbol 372 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Symbol 373 Button
on (release) {
gotoAndStop (2);
}
Symbol 375 Button
on (release) {
_root.game.startgame();
}
Symbol 377 Button
on (release) {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
Symbol 379 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 381 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 383 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 385 Button
on (release) {
viewHighscore();
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 2
stop();
Symbol 390 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 393 Button
on (release) {
Fade.start();
gotoAndStop ("credits");
}
Symbol 437 Button
on (release) {
_root.game.isPause = false;
Fade.start();
_root.game.gotoAndStop("mainmenu");
}
Symbol 439 Button
on (release) {
this.nextFrame();
}
Symbol 440 Button
on (release) {
Fade.start();
_root.game.gotoAndStop("selectlevel");
}
Symbol 471 Button
on (release) {
this.prevFrame();
}
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 8
this._parent.removeMovieClip();
Symbol 484 MovieClip [commonWall3] Frame 1
#initclip 57
Object.registerClass("commonWall3", building.CommonWall);
#endinitclip
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 8
this._parent.removeMovieClip();
Symbol 492 MovieClip [commonWall2] Frame 1
#initclip 58
Object.registerClass("commonWall2", building.CommonWall);
#endinitclip
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 8
this._parent.removeMovieClip();
Symbol 500 MovieClip [commonWall1] Frame 1
#initclip 59
Object.registerClass("commonWall1", building.CommonWall);
#endinitclip
Symbol 505 MovieClip Frame 1
stop();
Symbol 505 MovieClip Frame 8
this._parent.removeMovieClip();
Symbol 506 MovieClip [selectWall] Frame 1
#initclip 60
Object.registerClass("selectWall", building.SelectWall);
#endinitclip
Symbol 511 MovieClip [powerSpeed] Frame 1
#initclip 61
Object.registerClass("powerSpeed", powerup.PowerSpeed);
#endinitclip
Symbol 514 MovieClip [powerStoneWall] Frame 1
#initclip 62
Object.registerClass("powerStoneWall", powerup.PowerStoneWall);
#endinitclip
Symbol 517 MovieClip [powerWallTime] Frame 1
#initclip 63
Object.registerClass("powerWallTime", powerup.PowerWallTime);
#endinitclip
Symbol 520 MovieClip [powerPower] Frame 1
#initclip 64
Object.registerClass("powerPower", powerup.PowerPower);
#endinitclip
Symbol 523 MovieClip [powerBoat] Frame 1
#initclip 65
Object.registerClass("powerBoat", powerup.PowerBoat);
#endinitclip
Symbol 526 MovieClip [powerHammer] Frame 1
#initclip 66
Object.registerClass("powerHammer", powerup.PowerHammer);
#endinitclip
Symbol 572 MovieClip Frame 7
stop();
Symbol 583 MovieClip Frame 1
stop();
Symbol 583 MovieClip Frame 2
stop();
Symbol 583 MovieClip Frame 3
stop();
Symbol 583 MovieClip Frame 4
stop();
Symbol 583 MovieClip Frame 5
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 1
stop();
Symbol 612 MovieClip Frame 2
stop();
Symbol 612 MovieClip Frame 3
stop();
Symbol 612 MovieClip Frame 4
stop();
Symbol 612 MovieClip Frame 5
stop();
Symbol 612 MovieClip Frame 6
stop();
Symbol 612 MovieClip Frame 7
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 622 Button
on (release) {
if (_root.game.return_mc._visible == false) {
_root.game.return_mc._visible = true;
_root.game.isPause = true;
} else {
_root.game.return_mc._visible = false;
_root.game.isPause = false;
}
}
Symbol 649 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
stop();
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 2
stop();
Symbol 655 Button
on (release) {
if (_root.game.life > 0) {
this.score = this.prevLevelScore;
_root.game.life--;
_root.game.level = _root.game.level - 1;
_root.game.nextLevel();
}
}
Symbol 679 MovieClip Frame 1
function viewQ() {
switch (_root._quality) {
case "LOW" :
qView_mc.b1_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "MEDIUM" :
qView_mc.b2_mc._visible = true;
qView_mc.b1_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "HIGH" :
qView_mc.b3_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b1_mc._visible = false;
qView_mc.b4_mc._visible = false;
break;
case "BEST" :
qView_mc.b4_mc._visible = true;
qView_mc.b2_mc._visible = false;
qView_mc.b3_mc._visible = false;
qView_mc.b1_mc._visible = false;
}
}
qView_mc._visible = false;
if (_root.game.soundManage.isMusicPlay == true) {
notmusic_mc._visible = false;
}
if (_root.game.soundManage.isSoundPlay == true) {
notsound_mc._visible = false;
}
music_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u4E50\u6309\u94AE\uFF01");
if (_root.game.soundManage.isMusicPlay == true) {
_root.game.soundManage.stopMusic();
_root.game.soundManage.isMusicPlay = false;
notmusic_mc._visible = true;
} else {
_root.game.soundManage.returnMusic();
_root.game.soundManage.isMusicPlay = true;
notmusic_mc._visible = false;
}
};
sound_btn.onRelease = function () {
trace("\u4F60\u70B9\u51FB\u4E86\u97F3\u6548\u6309\u94AE\uFF01");
if (_root.game.soundManage.isSoundPlay == true) {
_root.game.soundManage.soundManage.stopSound();
_root.game.soundManage.isSoundPlay = false;
notsound_mc._visible = true;
} else {
_root.game.soundManage.soundManage.returnSound();
_root.game.soundManage.isSoundPlay = true;
notsound_mc._visible = false;
}
};
q_btn.onRelease = function () {
if (qView_mc._visible == false) {
qView_mc._visible = true;
qView_mc.onEnterFrame = function () {
if (!this.hit_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
this._visible = false;
this.onEnterFrame = null;
}
};
viewQ();
} else {
qView_mc._visible = false;
}
};
qView_mc.b1_btn.onRelease = function () {
_root._quality = "LOW";
viewQ();
};
qView_mc.b2_btn.onRelease = function () {
_root._quality = "MEDIUM";
viewQ();
};
qView_mc.b3_btn.onRelease = function () {
_root._quality = "HIGH";
viewQ();
};
qView_mc.b4_btn.onRelease = function () {
_root._quality = "BEST";
viewQ();
};
Symbol 683 MovieClip Frame 1
stop();
Symbol 683 MovieClip Frame 62
stop();
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 62
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 2
stop();
Symbol 694 MovieClip Frame 3
stop();
Symbol 694 MovieClip Frame 4
stop();
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 10
zi_mc.gotoAndStop(this.myType);
Symbol 695 MovieClip Frame 41
stop();
Symbol 699 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 62
stop();
Symbol 702 Button
on (release) {
_root.game.isPause = false;
this._visible = false;
}
Symbol 706 MovieClip Frame 1
this.useHandCursor = false;
Symbol 709 Button
on (release) {
_root.game.nextLevel();
}
Symbol 713 Button
on (release) {
_root.game.score = _root.game.prevLevelScore;
_root.game.level = _root.game.level - 1;
_root.game.nextLevel();
}
Symbol 719 MovieClip Frame 1
stop();
_root.game.isDie = false;
Symbol 719 MovieClip Frame 2
stop();
nowscore = _root.game.score;
Instance of Symbol 706 MovieClip in Symbol 719 MovieClip Frame 2
on (release) {
}
Instance of Symbol 57 MovieClip in Symbol 719 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_game_name = "teddy";
score_var = "_root.game.score";
}
Symbol 719 MovieClip Frame 3
stop();
nowscore = _root.game.score;
_root.game.isDie = true;
Symbol 719 MovieClip Frame 4
stop();
nowscore = _root.game.score;
_root.game.isDie = true;
Symbol 739 MovieClip [game] Frame 1
#initclip 67
Object.registerClass("game", manage.GameManage);
#endinitclip
function startgame() {
if (_root.game.isIn == true) {
Fade.start();
_root.game.gotoAndStop("selectlevel");
} else {
Fade.start();
_root.game.gotoAndStop("Instructions");
}
}
_root.game = this;
stop();
clearInterval(this.intervalID);
if (_root.game.soundManage == undefined) {
var soundManage = (new manage.SoundManage());
_root.game.soundManage.addSound("money_s");
_root.game.soundManage.addSound("powerup_s");
_root.game.soundManage.addSound("build_s", 40);
_root.game.soundManage.addSound("chai_s", 20);
_root.game.soundManage.addSound("jiguang_s", 40);
}
var isPopup;
var isIn;
Instance of Symbol 391 MovieClip in Symbol 739 MovieClip [game] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 739 MovieClip [game] Frame 2
stop();
isIn = true;
Symbol 739 MovieClip [game] Frame 3
stop();
var tempLevel = this.levelVO.dataObj.level;
trace("tempLevel=" + tempLevel);
if (tempLevel == 0) {
l1_mc.gotoAndStop(2);
l1_btn.i = 1;
l1_btn.onRelease = function () {
_root.game.level = 0;
Fade.start();
_root.game.gotoAndStop("gamestart");
};
var i = 2;
while (i <= 12) {
manage.CommonManage.gray(this[("l" + i) + "_btn"], true);
i++;
}
} else {
var i = 1;
while (i <= 12) {
if (i <= tempLevel) {
this[("l" + i) + "_mc"].gotoAndStop(i + 1);
this[("l" + i) + "_btn"].i = i;
this[("l" + i) + "_btn"].onRelease = function () {
_root.game.level = this.i - 1;
Fade.start();
_root.game.gotoAndStop("gamestart");
};
} else {
manage.CommonManage.gray(this[("l" + i) + "_btn"], true);
}
i++;
}
}
Symbol 739 MovieClip [game] Frame 4
stop();
this.init();
_root._quality = "MEDIUM";
return_mc._visible = false;
var isSpaceUp = true;
var isDie = false;
if (_root.game.myListener == undefined) {
trace("\u6DFB\u52A0\u76D1\u542C\u5BF9\u8C61");
_root.game.myListener = new Object();
_root.game.myListener.onKeyUp = function () {
if (_root.game.isGameOver == false) {
if (Key.getCode(32)) {
this.isSpaceUp = true;
}
}
};
_root.game.myListener.onKeyDown = function () {
if (_root.game.isGameOver == false) {
if (_root.game.isPause == false) {
if (Key.isDown(32)) {
if (this.isSpaceUp == true) {
this.isSpaceUp = false;
_root.game.map_mc.buildArray_mc.player_mc.pressSpaces();
}
}
} else if (Key.isDown(32)) {
if (_root.game.isDie == true) {
_root.game.score = _root.game.prevLevelScore;
_root.game.level = _root.game.level - 1;
_root.game.nextLevel();
}
}
}
};
Key.addListener(_root.game.myListener);
}
Symbol 739 MovieClip [game] Frame 5
stop();
Instance of Symbol 57 MovieClip in Symbol 739 MovieClip [game] Frame 5
//component parameters
onClipEvent (construct) {
_game_name = "teddy";
score_var = "_root.game.score";
}
Symbol 739 MovieClip [game] Frame 6
stop();
Instance of Symbol 57 MovieClip in Symbol 739 MovieClip [game] Frame 6
//component parameters
onClipEvent (construct) {
_game_name = "teddy";
score_var = "_root.game.score";
}
Symbol 739 MovieClip [game] Frame 7
stop();
Symbol 743 MovieClip [powerup-guang] Frame 16
this.removeMovieClip();
Symbol 747 MovieClip [foot_h] Frame 19
this.removeMovieClip();
Symbol 751 MovieClip [foot_s] Frame 19
this.removeMovieClip();
Symbol 764 MovieClip Frame 6
_root.game.nextLevel_mc.gotoAndStop(2);
stop();
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
stop();
Symbol 765 MovieClip Frame 3
stop();
Symbol 765 MovieClip Frame 4
stop();
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 2
stop();
Symbol 766 MovieClip Frame 3
stop();
Symbol 766 MovieClip Frame 4
stop();
Symbol 773 MovieClip Frame 6
_root.game.nextLevel_mc.gotoAndStop(2);
stop();
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
stop();
Symbol 774 MovieClip Frame 3
stop();
Symbol 774 MovieClip Frame 4
stop();
Symbol 776 MovieClip Frame 6
_root.game.nextLevel_mc.gotoAndStop(2);
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 777 MovieClip Frame 2
stop();
Symbol 777 MovieClip Frame 3
stop();
Symbol 777 MovieClip Frame 4
stop();
Symbol 782 MovieClip Frame 20
if (_root.game.runTime <= 0) {
_root.game.nextLevel_mc.gotoAndStop(4);
} else {
_root.game.nextLevel_mc.gotoAndStop(3);
}
Symbol 783 MovieClip [player] Frame 1
#initclip 68
Object.registerClass("player", Player);
#endinitclip
stop();
Symbol 783 MovieClip [player] Frame 2
stop();
Symbol 783 MovieClip [player] Frame 3
stop();
Symbol 783 MovieClip [player] Frame 4
stop();
Symbol 783 MovieClip [player] Frame 5
stop();
Symbol 784 MovieClip [door] Frame 1
#initclip 69
Object.registerClass("door", Door);
#endinitclip
Symbol 790 MovieClip Frame 1
stop();