Frame 1
MochiAd.showPreGameAd({id:"5c00a8556d4a0bf2", res:"800x600", background:6845841, color:788068, outline:12695210, no_bg:true});
Instance of Symbol 28 MovieClip in Frame 2
//component parameters
onClipEvent (construct) {
bOpen = false;
}
Frame 3
_global.ctn = mCtn;
stop();
Symbol 4 MovieClip Frame 1
onPress = function () {
Global.FWGURL();
};
this.cacheAsBitmap = true;
Symbol 6 MovieClip Frame 1
function flash_loading(x, T, A) {
var _local1 = (Math.PI / T) * x;
return(A * Math.sin(_local1));
}
_root.stop();
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
mLogo._alpha = 0;
mLoading._alpha = 0;
var sDownload = "";
onEnterFrame = function () {
var _local2 = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_local2 == 100) {
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
if (mLogo._alpha < 100) {
mLogo._alpha = mLogo._alpha + 5;
} else {
mLogo._alpha = 100;
sDownload = _local2 + " %";
mLoading._alpha = Math.abs(flash_loading(getTimer(), 800, 100));
}
};
Symbol 1187 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
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();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
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_failed();
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 = options.ad_loaded;
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) {
options.ad_failed();
_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();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
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_failed();
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 = options.ad_loaded;
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) {
options.ad_failed();
_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) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 1188 MovieClip [__Packages.prop.trees] Frame 0
class prop.trees extends MovieClip
{
var btn, runSta, hasFruit;
function trees () {
super();
btn.enabled = false;
runSta = "rest";
hasFruit = false;
}
function fruitOver() {
btn.enabled = true;
_global.scene.treeOver = true;
}
function treeGrowAniPlay() {
if (runSta != "dead") {
_global.scene.fruitTreeAni.gotoAndPlay("grow");
}
}
function fruitPlay() {
if (!hasFruit) {
_global.scene.fruit.gotoAndPlay(2);
hasFruit = true;
}
}
function fireTrees() {
_global.scene.fruitTreeAni.gotoAndPlay("fire");
}
}
Symbol 1189 MovieClip [__Packages.prop.et] Frame 0
class prop.et extends MovieClip
{
var runSta;
function et () {
super();
runSta = "hide";
}
}
Symbol 1190 MovieClip [__Packages.prop.man] Frame 0
class prop.man extends MovieClip
{
var runSta, _visible;
function man () {
super();
runSta = "hide";
_visible = false;
}
}
Symbol 1191 MovieClip [__Packages.prop.ufoAni] Frame 0
class prop.ufoAni extends MovieClip
{
var cnt, cntMax, onEnterFrame, play;
function ufoAni () {
super();
cnt = 0;
cntMax = 200;
}
function startAni() {
onEnterFrame = OEF;
}
function OEF() {
if (cnt < cntMax) {
cnt++;
} else {
play();
onEnterFrame = null;
}
}
function dropProps() {
_global.scene.pwStone._visible = true;
_global.scene.arkShape._visible = true;
_global.scene.manAni._visible = true;
}
}
Symbol 1192 MovieClip [__Packages.prop.pot] Frame 0
class prop.pot extends MovieClip
{
var runSta, steam, steamBtn, gotoAndPlay;
function pot () {
super();
runSta = "none";
}
function steamOn() {
steam._visible = true;
steamBtn._visible = true;
_global.ctn.sndCtrl.playSound("snd_steam");
}
function disapear() {
gotoAndPlay("disapear");
}
}
Symbol 1193 MovieClip [__Packages.prop.cloud] Frame 0
class prop.cloud extends MovieClip
{
var runSta, switchOn, eleQtt, eleQttMax, waterQtt, waterQttMax, moveDrct, moveBoundary, moveSpeed, tarXTask, pwOk, onEnterFrame, tarX, ctt, rope, _x, _y;
function cloud () {
super();
runSta = "rest";
switchOn = false;
eleQtt = 0;
eleQttMax = 1000;
waterQtt = 0;
waterQttMax = 1500;
moveDrct = "left";
moveBoundary = new Array(200, 700);
moveSpeed = 2;
setOEF(true);
tarXTask = "none";
pwOk = false;
}
function setOEF(p) {
if (p) {
onEnterFrame = OEF;
} else {
onEnterFrame = null;
}
}
function setTask(pTask, pX) {
tarXTask = pTask;
tarX = pX;
runSta = "moveToP";
}
function disapear() {
runSta = "disapear";
}
function setChargeOver() {
ctt.gotoAndStop("fullPower");
rope.gotoAndStop("off");
runSta = "rest";
switchOn = false;
tarXTask = "none";
_global.scene.cloudPw = true;
}
function setMetalPotOver() {
ctt.gotoAndStop("rest");
rope.gotoAndStop("on");
runSta = "moveSelf";
switchOn = true;
tarXTask = "none";
_global.scene.metalPot = true;
_global.scene.cloudPw = false;
}
function setFullWater() {
_global.scene.pot.steamBtn.enabled = false;
_global.scene.doorBtn.enabled = true;
_global.scene.doorBtn._y = _global.scene.steamBtn._y;
_global.scene.steamBtn.unloadMovie();
_global.scene.fullWater = true;
rope.gotoAndStop("off");
runSta = "rest";
switchOn = false;
tarXTask = "none";
}
function setRainOver() {
_global.scene.rainOver = true;
_global.scene.stepBtn.enabled = true;
ctt.gotoAndStop("rest");
rope.gotoAndStop("on");
runSta = "moveSelf";
switchOn = true;
tarXTask = "none";
}
function cutTreesOver() {
ctt.gotoAndStop("rest");
rope.gotoAndStop("off");
runSta = "rest";
switchOn = false;
tarXTask = "none";
_global.scene.cloudPw = "usedByTrees";
_global.scene.trees.runSta = "dead";
}
function OEF() {
switch (runSta) {
case "rest" :
break;
case "moveSelf" :
moveStep();
break;
case "moveToP" :
moveToStep();
break;
case "disapear" :
disapearStep();
}
}
function moveStep() {
switch (moveDrct) {
case "left" :
if (_x > moveBoundary[0]) {
_x = _x - moveSpeed;
} else {
moveDrct = "right";
}
break;
case "right" :
if (_x < moveBoundary[1]) {
_x = _x + moveSpeed;
} else {
moveDrct = "left";
}
}
}
function moveToStep() {
var _local2 = tarX - _x;
if (Math.abs(_local2) > moveSpeed) {
if (_local2 > 0) {
_x = _x + (1.5 * moveSpeed);
} else {
_x = _x - (1.5 * moveSpeed);
}
} else {
_x = tarX;
doTask();
}
}
function doTask() {
switch (tarXTask) {
case "chargePower" :
_global.scene.plugAni.setAni(["play", "extend"]);
runSta = "chargePower";
break;
case "chargeWater" :
trace("doTask chargeWater");
_global.ctn.sndCtrl.playSound("snd_breath");
ctt.gotoAndStop("collectingWater");
runSta = "collectingWater";
break;
case "cutStone" :
ctt.gotoAndStop("cutting");
runSta = "cutting";
break;
case "raining" :
runSta = "raining";
ctt.gotoAndStop("raining");
_global.scene.rainAni._visible = true;
_global.scene.rainAni.play();
break;
case "cutTrees" :
runSta = "cutTrees";
ctt.gotoAndStop("cutTrees");
}
}
function ropePrs() {
switchOn = !switchOn;
if (switchOn) {
activeMove();
} else {
disableMove();
}
}
function activeMove() {
if (tarXTask == "none") {
runSta = "moveSelf";
} else if (Math.abs(_x - tarX) < moveSpeed) {
switch (tarXTask) {
case "chargePower" :
break;
case "chargeWater" :
break;
case "cutStone" :
break;
case "raining" :
}
} else {
runSta = "moveSelf";
}
}
function disableMove() {
runSta = "rest";
}
function disapearStep() {
ropePrs = null;
if (_y > -150) {
_y = _y - moveSpeed;
} else {
runSta = "gameWin";
setOEF(false);
}
}
}
Symbol 1194 MovieClip [__Packages.prop.pz1] Frame 0
class prop.pz1 extends MovieClip
{
var cq, rq, usedTimes, usedTimesMax, clockwise, shapeSqc1, shapeSqc2, firstDrct, answerR, answerC, aAgl, aBtnNum, _parent, _visible, unloadMovie;
function pz1 () {
super();
cq = 3;
rq = 3;
usedTimes = 0;
usedTimesMax = 2;
clockwise = true;
shapeSqc1 = new Array();
shapeSqc1.push({shape:"square", ranNum:0});
shapeSqc1.push({shape:"triangle", ranNum:0});
shapeSqc1.push({shape:"circle", ranNum:0});
shapeSqc2 = new Array();
shapeSqc2.push({shape:"square", ranNum:0});
shapeSqc2.push({shape:"star", ranNum:0});
shapeSqc2.push({shape:"circle", ranNum:0});
resetMe();
}
function resetMe() {
var _local8 = 0;
while (_local8 < rq) {
var _local2 = 0;
while (_local2 < cq) {
this[(("r" + _local8) + "c") + _local2].gotoAndStop("normal");
this[(("r" + _local8) + "c") + _local2].ctt2._x = (this[(("r" + _local8) + "c") + _local2].ctt2._y = 0);
_local2++;
}
_local8++;
}
_local8 = 0;
while (_local8 < 4) {
this["btn" + _local8].ctt2._x = (this["btn" + _local8].ctt2._y = 0);
this["btn" + _local8].onPress = btnPrsW;
_local8++;
}
var _local12 = false;
clockwise = (((1 * Math.random()) > 0.5) ? true : false);
firstDrct = Math.floor(4 * Math.random());
answerR = Math.floor(rq * Math.random());
answerC = Math.floor(cq * Math.random());
this[(("r" + answerR) + "c") + answerC].gotoAndStop("tar");
_local8 = 0;
while (_local8 < rq) {
shapeSqc1[_local8].ranNum = 1 * Math.random();
shapeSqc2[_local8].ranNum = 1 * Math.random();
_local8++;
}
shapeSqc1.sortOn("ranNum", Array.NUMERIC);
shapeSqc2.sortOn("ranNum", Array.NUMERIC);
_local8 = 0;
while (_local8 < rq) {
if ((answerR != _local8) && (!_local12)) {
_local12 = true;
var _local11 = Math.floor(cq * Math.random());
this[(("r" + _local8) + "c") + _local11].gotoAndStop("mask");
}
var _local10 = normalDeg((firstDrct + _local8) * 90);
if (answerR == _local8) {
aAgl = _local10;
}
var _local13 = Math.sin((_local10 * Math.PI) / 180);
var _local14 = Math.cos((_local10 * Math.PI) / 180);
_local13 = ((Math.abs(_local13) < 0.0001) ? 0 : (_local13));
_local14 = ((Math.abs(_local14) < 0.0001) ? 0 : (_local14));
var _local2 = 0;
while (_local2 < cq) {
this[(("r" + _local8) + "c") + _local2].ctt1.gotoAndStop(shapeSqc1[_local8].shape);
this[(("r" + _local8) + "c") + _local2].ctt2.gotoAndStop(shapeSqc2[_local8].shape);
this[(("r" + _local8) + "c") + _local2].ctt2._x = this[(("r" + _local8) + "c") + _local2].ctt2._x + ((20 * _local2) * _local14);
this[(("r" + _local8) + "c") + _local2].ctt2._y = this[(("r" + _local8) + "c") + _local2].ctt2._y + ((20 * _local2) * _local13);
_local2++;
}
_local8++;
}
_local8 = 0;
while (_local8 < 4) {
this["btn" + _local8].ctt1.gotoAndStop(shapeSqc1[answerR].shape);
this["btn" + _local8].ctt2.gotoAndStop(shapeSqc2[answerR].shape);
_local8++;
}
var _local3 = new Array();
_local8 = 0;
while (_local8 < 4) {
var _local6 = false;
while (!_local6) {
var _local9 = normalDeg(Math.floor(Math.random() * 4) * 90);
var _local7 = 1 + Math.floor(Math.random() * 2);
var _local4 = false;
var _local5 = false;
if ((_local9 == aAgl) && (_local7 == answerC)) {
_local5 = true;
}
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].aglWrong == _local9) && (_local3[_local2].cWrong == _local7)) {
_local4 = true;
}
_local2++;
}
if ((!_local4) && (!_local5)) {
_local3.push({aglWrong:_local9, cWrong:_local7});
_local6 = true;
}
}
var _local13 = Math.sin((_local9 * Math.PI) / 180);
var _local14 = Math.cos((_local9 * Math.PI) / 180);
_local13 = ((Math.abs(_local13) < 0.0001) ? 0 : (_local13));
_local14 = ((Math.abs(_local14) < 0.0001) ? 0 : (_local14));
this["btn" + _local8].ctt2._x = this["btn" + _local8].ctt2._x + ((20 * _local7) * _local14);
this["btn" + _local8].ctt2._y = this["btn" + _local8].ctt2._y + ((20 * _local7) * _local13);
_local8++;
}
aBtnNum = Math.floor(4 * Math.random());
var _local13 = Math.sin((aAgl * Math.PI) / 180);
var _local14 = Math.cos((aAgl * Math.PI) / 180);
_local13 = ((Math.abs(_local13) < 0.0001) ? 0 : (_local13));
_local14 = ((Math.abs(_local14) < 0.0001) ? 0 : (_local14));
this["btn" + aBtnNum].ctt2._x = (20 * answerC) * _local14;
this["btn" + aBtnNum].ctt2._y = (20 * answerC) * _local13;
this["btn" + aBtnNum].onPress = btnPrsR;
}
function normalDeg(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
function btnPrsW() {
_parent.prsWrong();
}
function btnPrsR() {
_parent.prsRight();
}
function prsWrong() {
usedTimes++;
if (usedTimes > 2) {
_global.scene.pwSource.gotoAndStop("broken");
_visible = false;
}
_global.ctn.sndCtrl.playSound("snd_pzWrong");
_visible = false;
}
function prsRight() {
trace("choose right");
_global.ctn.sndCtrl.playSound("snd_pzRight");
_global.scene.pwSource.coverAni.play();
if (!_global.scene.pzScoreOver) {
_global.scene.pzScoreOver = true;
_global.ctn.game.addScore(300, 500, 0, 60);
_global.ctn.game.addScore(45, Math.round(100 * (1 - (usedTimes / usedTimesMax))), 0, 60);
}
unloadMovie();
}
}
Symbol 1195 MovieClip [__Packages.prop.fireDisk] Frame 0
class prop.fireDisk extends MovieClip
{
var labelAry, tarLabel, tarFrame, onEnterFrame, _currentframe, _totalframes, gotoAndStop, nextFrame, _parent;
function fireDisk () {
super();
labelAry = new Array();
labelAry.push({lb:"s1", frm:10});
labelAry.push({lb:"s2", frm:20});
labelAry.push({lb:"s3", frm:30});
labelAry.push({lb:"s4", frm:40});
labelAry.push({lb:"s5", frm:50});
labelAry.push({lb:"s6", frm:60});
}
function startAni(p) {
tarLabel = p;
var _local2 = 0;
while (_local2 < labelAry.length) {
if (labelAry[_local2].lb == tarLabel) {
tarFrame = labelAry[_local2].frm;
break;
}
_local2++;
}
setOEF(true);
}
function setOEF(p) {
if (p) {
onEnterFrame = OEF;
} else {
onEnterFrame = null;
}
}
function OEF() {
if (_currentframe != tarFrame) {
if (_currentframe == _totalframes) {
gotoAndStop(2);
} else {
nextFrame();
}
} else {
_parent.aniOver();
setOEF(false);
}
}
}
Symbol 1196 MovieClip [__Packages.prop.pz3] Frame 0
class prop.pz3 extends MovieClip
{
var disk1, disk2, turnMax, turnCnt, overCnt, frm1, frm2, _visible;
function pz3 () {
super();
disk1.stop();
disk2.stop();
turnMax = 1 + Math.ceil(Math.random() * 3);
trace("turnMax " + turnMax);
turnCnt = 0;
}
function btnPrs() {
overCnt = 0;
_global.ctn.sndCtrl.playSound("snd_stoneSpin");
if (turnCnt < turnMax) {
turnCnt++;
frm1 = "s" + Math.ceil(Math.random() * 6);
frm2 = "s" + Math.ceil(Math.random() * 6);
disk1.startAni(frm1);
disk2.startAni(frm2);
} else {
frm1 = "s6";
frm2 = "s6";
disk1.startAni(frm1);
disk2.startAni(frm2);
}
}
function aniOver() {
if ((_global.scene.pot.runSta != "steamPot") && (_global.scene.fireSeed.runSta == "hide")) {
turnCnt = 0;
if (_visible) {
_global.ctn.sndCtrl.playSound("snd_pzWrong");
}
_visible = false;
} else {
overCnt++;
if (overCnt >= 2) {
trace("both of the ani over");
if ((frm1 == "s6") && (frm2 == "s6")) {
trace("check is ok");
if ((_global.scene.pot.runSta == "steamPot") && (_global.scene.fireSeed.runSta == "fire")) {
_global.ctn.sndCtrl.playSound("snd_pzRight");
_global.scene.stoneDoorAni.spinAni.spinAniCtt.play();
_global.scene.fireSeed.stop();
_global.scene.steamBtn.unloadMovie();
_visible = false;
if (!_global.scene.pzFireScoreOver) {
_global.scene.pzFireScoreOver = true;
_global.ctn.game.addScore(214, 214, 40, 60);
_global.ctn.game.addScore(124, Math.round(412 * (1 - (turnCnt / turnMax))), 40, 60);
}
} else {
_global.ctn.sndCtrl.playSound("snd_pzWrong");
_visible = false;
}
}
}
}
}
}
Symbol 1197 MovieClip [__Packages.prop.pz2] Frame 0
class prop.pz2 extends MovieClip
{
var rq, cq, rStart, rAgl, c1Img, c2Img, c3Img, usedTimes, usedTimesMax, clockwise, answerR, answerC, aBtnNum, _parent, _visible, unloadMovie;
function pz2 () {
super();
rq = (cq = 3);
rStart = new Array();
rAgl = new Array();
c1Img = new Array();
c2Img = new Array();
c3Img = new Array();
usedTimes = 0;
usedTimesMax = 2;
resetMe();
}
function resetMe() {
init();
clockwise = (((Math.random() * 1) > 0.5) ? true : false);
answerR = Math.floor(Math.random() * 3);
answerC = Math.floor(Math.random() * 3);
var _local7 = false;
var _local2 = 0;
while (_local2 < rq) {
rStart[_local2] = Math.floor(Math.random() * 4);
rAgl[_local2] = normalDeg(45 * Math.floor(Math.random() * 8));
c1Img[_local2] = Math.ceil(Math.random() * 3);
c2Img[_local2] = Math.ceil(Math.random() * 3);
c3Img[_local2] = Math.ceil(Math.random() * 3);
if ((answerR != _local2) && (!_local7)) {
_local7 = true;
var _local6 = Math.floor(cq * Math.random());
this[(("r" + _local2) + "c") + _local6].gotoAndStop("mask");
}
var _local3 = 0;
while (_local3 < cq) {
var _local4 = (_local3 + rStart[_local2]) % 4;
this[(("r" + _local2) + "c") + _local3]["ctt3_" + _local4]._visible = true;
this[(("r" + _local2) + "c") + _local3]["ctt3_" + _local4].gotoAndStop(c3Img[_local2]);
this[(("r" + _local2) + "c") + _local3].ctt1.gotoAndStop(c1Img[_local2]);
this[(("r" + _local2) + "c") + _local3].ctt2.gotoAndStop(c2Img[_local2]);
switch (_local3) {
case 0 :
this[(("r" + _local2) + "c") + _local3].ctt1._rotation = rAgl[_local2];
break;
case 1 :
this[(("r" + _local2) + "c") + _local3].ctt1._rotation = normalDeg(rAgl[_local2] + 180);
break;
case 2 :
var _local5 = (clockwise ? 1 : -1);
this[(("r" + _local2) + "c") + _local3].ctt1._rotation = normalDeg((rAgl[_local2] + 180) + (_local5 * 45));
}
_local3++;
}
_local2++;
}
this[(("r" + answerR) + "c") + answerC].gotoAndStop("tar");
setBtns();
}
function setBtns() {
aBtnNum = Math.floor(Math.random() * 4);
var _local4 = rAgl[answerR];
var rAgl;
switch (answerC) {
case 0 :
rAgl = _local4;
break;
case 1 :
rAgl = normalDeg(_local4 + 180);
break;
case 2 :
var _local5 = (clockwise ? 1 : -1);
rAgl = normalDeg((_local4 + 180) + (_local5 * 45));
}
var _local2 = 0;
while (_local2 < 4) {
if (_local2 == aBtnNum) {
this["btn" + _local2].onPress = btnPrsR;
this["btn" + _local2].ctt1._rotation = rAgl;
this["btn" + _local2].ctt1.gotoAndStop(c1Img[answerR]);
this["btn" + _local2].ctt2.gotoAndStop(c2Img[answerR]);
var _local3 = 0;
while (_local3 < 4) {
this["btn" + _local2]["ctt3_" + ((answerC + rStart[answerR]) % 4)]._visible = true;
this["btn" + _local2]["ctt3_" + _local3].gotoAndStop(c3Img[answerR]);
_local3++;
}
} else {
this["btn" + _local2].onPress = btnPrsW;
this["btn" + _local2].ctt1._rotation = normalDeg((rAgl + 45) + (45 * _local2));
this["btn" + _local2].ctt1.gotoAndStop(c1Img[answerR]);
this["btn" + _local2].ctt2.gotoAndStop(c2Img[answerR]);
var _local3 = 0;
while (_local3 < 4) {
this["btn" + _local2]["ctt3_" + (((answerC + rStart[answerR]) + _local2) % 4)]._visible = true;
this["btn" + _local2]["ctt3_" + _local3].gotoAndStop(c3Img[answerR]);
_local3++;
}
}
_local2++;
}
}
function init() {
var _local4 = 0;
while (_local4 < rq) {
var _local3 = 0;
while (_local3 < cq) {
this[(("r" + _local4) + "c") + _local3].gotoAndStop("normal");
this[(("r" + _local4) + "c") + _local3]._alpha = 100;
var _local2 = 0;
while (_local2 < 4) {
this[(("r" + _local4) + "c") + _local3]["ctt3_" + _local2]._visible = false;
_local2++;
}
_local3++;
}
_local4++;
}
_local4 = 0;
while (_local4 < 4) {
var _local3 = 0;
while (_local3 < 4) {
this["btn" + _local4]["ctt3_" + _local3]._visible = false;
_local3++;
}
_local4++;
}
}
function normalDeg(r) {
if (r >= 180) {
r = r - 360;
}
if (r <= -180) {
r = r + 360;
}
return(r);
}
function btnPrsW() {
_parent.prsWrong();
}
function btnPrsR() {
_parent.prsRight();
}
function prsWrong() {
usedTimes++;
if (usedTimes > 2) {
_global.scene.arkShape.gotoAndStop("broken");
_visible = false;
}
_global.ctn.sndCtrl.playSound("snd_pzWrong");
_visible = false;
}
function prsRight() {
_global.scene.arkShape.gotoAndPlay("win");
_global.ctn.sndCtrl.playSound("snd_pzRight");
if (!_global.scene.pzArkScoreOver) {
_global.scene.pzArkScoreOver = true;
_global.ctn.game.addScore(300, 500, 137, 60);
_global.ctn.game.addScore(124, Math.round(412 * (1 - (usedTimes / usedTimesMax))), 137, 65);
}
unloadMovie();
}
}
Symbol 1198 MovieClip [__Packages.stateBar.toolsBar] Frame 0
class stateBar.toolsBar extends MovieClip
{
var soundIsStop, musicIsStop, qltPanel, sndPath, confirmToMenu, attachMovie, getNextHighestDepth;
function toolsBar () {
super();
soundIsStop._visible = false;
musicIsStop._visible = false;
qltPanel._visible = false;
}
function setQlt(p_qlt) {
_global.ctn._quality = p_qlt;
}
function setSndPath(p_sndPath) {
sndPath = p_sndPath;
}
function stopSound() {
if (soundIsStop._visible == false) {
soundIsStop._visible = true;
sndPath.stopSound();
} else {
soundIsStop._visible = false;
sndPath.returnSound();
}
}
function stopMusic() {
if (musicIsStop._visible == false) {
musicIsStop._visible = true;
sndPath.stopMusic();
} else {
musicIsStop._visible = false;
sndPath.returnMusic();
}
}
function menuBtnEvt() {
confirmToMenu = attachMovie("confirmToMenu", "confirmToMenu", getNextHighestDepth());
}
function activateQltPanel() {
qltPanel._visible = true;
qltPanel.setLight(_global.ctn._quality);
}
function isStopVisible() {
if (sndPath.isSoundPlay == true) {
soundIsStop._visible = false;
} else {
soundIsStop._visible = true;
}
if (sndPath.isMusicPlay == true) {
musicIsStop._visible = false;
} else {
musicIsStop._visible = true;
}
}
}
Symbol 1199 MovieClip [__Packages.clock.ClockDisplay] Frame 0
class clock.ClockDisplay extends MovieClip
{
var dat, mTxt;
function ClockDisplay () {
super();
dat = new Array();
dat = [0, 0, 0];
}
function setDat(pDat) {
dat = pDat;
return(undefined);
}
function timeOtpt() {
var _local3 = ((dat[1] > 9) ? (dat[1]) : ("0" + String(dat[1])));
var _local2 = ((dat[2] > 9) ? (dat[2]) : ("0" + String(dat[2])));
mTxt.text = (("TIME: " + _local3) + ":") + _local2;
return(undefined);
}
function refreshTime(pDat) {
setDat(pDat);
timeOtpt();
}
}
Symbol 1200 MovieClip [__Packages.levelCtn.LevelCtn] Frame 0
class levelCtn.LevelCtn extends MovieClip
{
var crtLevel, clockCtt, levelCtt, scoreStr, levelNum, attachMovie, getNextHighestDepth;
function LevelCtn () {
super();
_global.score = (_global.resetScore = 0);
crtLevel = 1;
loadLevel(crtLevel);
_global.gameClock.setCtt(clockCtt);
}
function loadLevel() {
levelCtt.attachMovie("level" + crtLevel, "gameLevel", 0);
levelCtt.tabChildren = false;
_global.score = _global.resetScore;
scoreStr.text = "SCORE: " + _global.score;
levelNum.text = "LEVEL: " + crtLevel;
_global.resetTime = [0, 0, 0];
_global.gameClock.setTime(_global.resetTime);
_global.gameClock.startClock();
}
function clearDat() {
_global.gameDat.clear();
}
function lose() {
_global.gameClock.stopClock();
_global.resetScore = Math.round(_global.resetScore * 0.7);
attachMovie("lose", "lose", getNextHighestDepth());
}
function levelComplete() {
_global.gameClock.stopClock();
_global.resetScore = _global.score;
attachMovie("levelComplete", "levelComplete", getNextHighestDepth());
}
function addScore(basicScore, addScore, basicTime, delay) {
var _local4 = _global.gameClock.getTime();
var _local6 = ((_local4[0] * 3600) + (_local4[1] * 60)) + _local4[2];
if (_local6 > basicTime) {
var _local3 = Math.abs(_local6 - basicTime);
if (_local3 < delay) {
var _local5 = 1 - (_local3 / delay);
trace(" percentage " + _local5);
var _local7 = Math.round(addScore * _local5);
trace("score2 : " + _local7);
} else {
var _local10 = _local3 - delay;
var _local7 = -Math.round(_local10 / 2);
if (Math.abs(_local7) > basicScore) {
_local7 = (-basicScore) + Math.round(15 * Math.random());
}
}
} else {
var _local7 = addScore;
}
_global.score = (_global.score + basicScore) + _local7;
scoreStr.text = "Score: " + _global.score;
}
}
Symbol 1201 MovieClip [__Packages.mainContainer.MainContainer] Frame 0
class mainContainer.MainContainer extends MovieClip
{
var sndCtrl, attachMovie, getNextHighestDepth;
function MainContainer () {
super();
_global.gameClock = new clock.Clock();
_global.resetTime = new Array(0, 0, 0);
_global.score = 0;
_global.resetScore = 0;
loadMV("mainPage");
sndCtrl = new soundManage.SoundManage();
}
function loadMV(MV) {
attachMovie(MV, MV, 0);
}
function lose() {
attachMovie("lose", "lose", getNextHighestDepth());
}
}
Symbol 1202 MovieClip [__Packages.soundManage.SoundManage] Frame 0
class soundManage.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", 9999);
}
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);
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]);
}
}
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);
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]);
}
}
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 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);
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]);
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]);
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);
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]);
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]);
musicArray[1][_local3].setVolume(musicArray[2][_local3]);
break;
}
_local3++;
};
}
}
}
var soundArray = new Array();
var musicArray = new Array();
}
Symbol 1203 MovieClip [__Packages.clock.Clock] Frame 0
class clock.Clock
{
var dat, isRun, cttMc, intervalId;
function Clock () {
dat = new Array();
dat = [0, 0, 0];
isRun = false;
}
function setCtt(p_cttMc) {
cttMc = p_cttMc;
}
function executeCallback() {
dat[2]++;
if (dat[2] == modulo) {
dat[2] = 0;
dat[1]++;
if (dat[1] == modulo) {
dat[1] = 0;
dat[0]++;
}
}
if (dat[0] >= hourMax) {
if (dat[1] >= minuteMax) {
if (dat[2] >= secondMax) {
stopClock();
_global.ctn.timeOut();
}
}
}
cttMc.refreshTime(dat);
}
function reStartClock() {
stopClock();
var _local2 = 0;
while (_local2 < dat.length) {
dat[_local2] = 0;
_local2++;
}
startClock();
}
function startClock() {
if (isRun == false) {
isRun = true;
cttMc.refreshTime(dat);
intervalId = setInterval(this, "executeCallback", duration);
return(undefined);
}
return(undefined);
}
function stopClock() {
isRun = false;
clearInterval(intervalId);
return(undefined);
}
function getTime() {
return(dat.concat());
}
function setTime(pAry) {
dat = pAry.concat();
cttMc.refreshTime(dat);
}
static var duration = 1000;
static var modulo = 60;
static var hourMax = 10;
static var minuteMax = 0;
static var secondMax = 0;
}
Symbol 1204 MovieClip [__Packages.prop.plug] Frame 0
class prop.plug extends MovieClip
{
var runSta, aniType, onEnterFrame, _visible, _parent, _currentframe, nextFrame, prevFrame;
function plug () {
super();
runSta = "rest";
aniType = "none";
setOEF(true);
}
function setOEF(p) {
if (p) {
onEnterFrame = OEF;
} else {
onEnterFrame = null;
}
}
function setAni(p) {
switch (aniType) {
case "none" :
_visible = true;
runSta = p[0];
aniType = p[1];
break;
case "charge" :
runSta = p[0];
aniType = p[1];
_parent.cloud.setChargeOver();
}
}
function OEF() {
if (!(runSta === "play")) {
} else {
playAni();
}
}
function playAni() {
_global.ctn.sndCtrl.playSound("snd_plugInOff");
switch (aniType) {
case "extend" :
if (_currentframe < 73) {
nextFrame();
} else {
_parent.cloud.ctt.gotoAndStop("charging");
runSta = "charge";
aniType = "none";
}
break;
case "shorten" :
if (_currentframe > 1) {
prevFrame();
} else {
_parent.cloud.setChargeOver();
runSta = "rest";
aniType = "none";
_visible = false;
}
}
}
}
Symbol 28 MovieClip Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
if (bOpen) {
_root.stop();
onPress = function () {
Global.FWGURL();
};
} else {
this._visible = false;
}
Symbol 28 MovieClip Frame 114
stop();
onEnterFrame = function () {
if (_alpha <= 0) {
_parent.play();
delete onEnterFrame;
} else {
_alpha = (_alpha - 5);
}
};
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 50 Button
on (release) {
_global.ctn.loadMV("mainPage");
}
Symbol 52 Button
on (press) {
_global.ctn.game.clearDat();
}
Symbol 53 MovieClip [levelList] Frame 1
_global.gameDat = SharedObject.getLocal("pirateRace", "/");
if (!_global.gameDat.data.levelNum) {
_global.gameDat.data.levelNum = 1;
_global.gameDat.flush();
}
i = 1;
while (i <= 12) {
if (i <= _global.gameDat.data.levelNum) {
this["btn" + i].gotoAndStop("ok");
this["btn" + i].onPress = function () {
_global.ctn.game.crtLevel = Number(this._name.substr(3, 2));
_global.ctn.game.loadLevel();
_global.ctn.game.levelList.removeMovieClip();
};
this["btn" + i].useHandCursor = true;
} else {
this["btn" + i].gotoAndStop("no");
this["btn" + i].onPress = null;
this["btn" + i].useHandCursor = false;
}
this["btn" + i].ctt.gotoAndStop(i);
this["btn" + i].num.text = "LEVEL: " + i;
i++;
}
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 147 MovieClip Frame 1
_global.scene.pwSource.disapear();
_global.scene.cloud.disapear();
_global.scene.pot.disapear();
_global.scene.stoneDoorAni.disapear();
stop();
Instance of Symbol 155 MovieClip in Symbol 156 MovieClip Frame 1
on (press) {
if (_global.scene.manAni.runSta == "digOver") {
_global.scene.manAni.play();
}
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 200
_global.scene.stoneDoorAni.play();
stop();
Symbol 282 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 283 Button
on (release) {
viewHighscore();
}
Symbol 284 Button
on (release) {
_global.ctn.loadMV("mainPage");
}
Symbol 285 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 294 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 24
stop();
Symbol 310 Button
on (press) {
gotoAndStop ("over");
}
Symbol 314 Button
on (release) {
viewHighscore();
}
Symbol 316 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 316 MovieClip Frame 3
function sendData() {
if (name_txt.text == "") {
tellEnterFrame.gotoAndPlay("shake");
return(undefined);
}
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");
};
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 317 MovieClip Frame 374
totalScore.text = "SCORE: " + _global.score;
Symbol 317 MovieClip Frame 375
totalScore.text = "SCORE: " + _global.score;
Symbol 317 MovieClip Frame 379
stop();
Instance of Symbol 316 MovieClip in Symbol 317 MovieClip Frame 379
//component parameters
onClipEvent (construct) {
_game_name = "the_life_ark";
score_var = "_global.score";
}
Symbol 320 MovieClip Frame 1
ctt._visible = false;
Symbol 327 Button
on (release) {
_global.ctn.game.addScore(300, 300, 10, 5);
}
Symbol 328 Button
on (release) {
trace("press lose");
trace("----- " + _global.ctn.game);
_global.ctn.game.lose();
}
Symbol 329 Button
on (release) {
_global.ctn.game.crtLevel = 3;
_global.ctn.game.levelComplete();
}
Symbol 330 Button
on (release) {
_global.ctn.sndCtrl.playSound("sndDog");
}
Symbol 333 Button
on (release) {
_global.ctn.game.crtLevel = 4;
_global.ctn.game.levelComplete();
}
Symbol 336 Button
on (release) {
_global.gameClock.stopClock();
_global.ctn.loadMV("win");
}
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("snd_waterShort");
Symbol 390 MovieClip Frame 1
stop();
Instance of Symbol 357 MovieClip "btn" in Symbol 390 MovieClip Frame 1
on (press) {
if ((_global.scene.cloud.runSta == "rest") && (Math.abs(_global.scene.cloud._x - _parent._x) < 50)) {
trace("should call cloud's setTask methods");
if (_global.scene.fullWater) {
trace("setTask raining");
_global.scene.cloud.setTask("raining", _parent._x);
}
}
_parent.waterEff.play();
}
Symbol 390 MovieClip Frame 50
_global.ctn.sndCtrl.playSound("snd_landGreen");
Symbol 390 MovieClip Frame 79
_global.ctn.sndCtrl.playSound("snd_treeGrow");
_global.ctn.sndCtrl.playSound("snd_water");
Symbol 390 MovieClip Frame 95
_global.ctn.sndCtrl.playSound("snd_treeGrow");
Symbol 390 MovieClip Frame 109
_global.ctn.sndCtrl.playSound("snd_treeGrow");
if (!_global.scene.riverScoreOver) {
_global.scene.riverScoreOver = true;
_global.ctn.game.addScore(354, 478, 63, 60);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 63, 60);
}
Symbol 390 MovieClip Frame 151
_global.ctn.sndCtrl.playSound("snd_landGreen");
Symbol 390 MovieClip Frame 159
_global.scene.trees.treeGrowAniPlay();
Symbol 390 MovieClip Frame 203
_global.ctn.sndCtrl.playSound("snd_treeGrow");
Symbol 390 MovieClip Frame 256
_global.ctn.sndCtrl.playSound("snd_water");
Symbol 390 MovieClip Frame 272
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 278
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 287
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 295
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 303
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 310
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 319
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 326
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 333
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 390 MovieClip Frame 339
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
_global.ctn.sndCtrl.playSound("snd_water");
Symbol 390 MovieClip Frame 390
if (_global.scene.et.runSta == "hide") {
_global.scene.et.gotoAndStop("hideReady");
}
_global.scene.cloud.setRainOver();
if (!_global.scene.landGreenScoreOver) {
_global.scene.landGreenScoreOver = true;
_global.ctn.game.addScore(354, 478, 70, 60);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 70, 60);
}
_global.scene.leavesCtrl.leafType = "green";
stop();
Instance of Symbol 389 MovieClip in Symbol 390 MovieClip Frame 390
on (press) {
trace("press riverBtn,man runSta : " + _global.scene.manAni.runSta);
if (_global.scene.manAni.runSta == "stand") {
_global.scene.manAni.play();
}
}
Instance of Symbol 357 MovieClip in Symbol 390 MovieClip Frame 390
on (press) {
_parent.waterEff.play();
}
Symbol 405 MovieClip Frame 1
stop();
Instance of Symbol 357 MovieClip in Symbol 405 MovieClip Frame 1
on (press) {
if ((_global.scene.cloudPw == true) && (Math.abs(_global.scene.cloud._x - 400) < 50)) {
_global.scene.cloud.setTask("cutTrees", 400);
}
_parent.gotoAndPlay("dryShake");
}
Symbol 405 MovieClip Frame 16
_global.ctn.sndCtrl.playSound("snd_treeGrow");
Symbol 405 MovieClip Frame 30
_global.ctn.sndCtrl.playSound("snd_treeGrow");
Symbol 405 MovieClip Frame 45
stop();
Instance of Symbol 357 MovieClip in Symbol 405 MovieClip Frame 45
on (press) {
if (_global.scene.trees.hasFruit == false) {
_global.scene.trees.fruitPlay();
}
}
Symbol 405 MovieClip Frame 46
_global.ctn.sndCtrl.playSound("snd_burning");
Symbol 405 MovieClip Frame 86
_global.scene.cloud.cutTreesOver();
stop();
Symbol 405 MovieClip Frame 96
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 405 MovieClip Frame 102
this.gotoAndStop(1);
Symbol 417 MovieClip Frame 1
stop();
ref.unloadMovie();
Symbol 417 MovieClip Frame 23
if (_global.scene.highTree.runSta == "rest") {
_global.scene.highTree.play();
_global.scene.highTree.runSta = "growing";
}
stop();
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 2
_parent.btn.unloadMovie();
Symbol 439 MovieClip Frame 16
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
Symbol 439 MovieClip Frame 85
_parent.nextFrame();
Symbol 443 MovieClip Frame 40
stop();
Symbol 444 MovieClip Frame 1
function disapear() {
this.gotoAndStop("disapear");
}
stop();
Instance of Symbol 357 MovieClip "btn" in Symbol 444 MovieClip Frame 1
on (press) {
_global.ctn.sndCtrl.playSound("snd_pzApear");
_global.scene.pz1._visible = true;
_global.scene.pz1.resetMe();
}
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
_parent.coverAni.gotoAndPlay("shake");
}
Symbol 444 MovieClip Frame 2
stop();
Instance of Symbol 357 MovieClip "btn" in Symbol 444 MovieClip Frame 2
on (press) {
if (((_global.scene.cloud.runSta == "rest") && (Math.abs(_global.scene.cloud._x - _parent._x) < 50)) && (_global.scene.plugAni.runSta == "rest")) {
trace("should call cloud's setTask methods");
if (!_global.scene.cloudPw) {
_global.scene.cloud.setTask("chargePower", _parent._x);
}
}
if (_global.scene.plugAni.runSta == "charge") {
trace("plug sta is charge");
if (!_global.scene.cloudPw) {
if (_global.scene.cloud.pwOk) {
_global.scene.cloud.ctt.gotoAndStop("fullPower");
_global.scene.plugAni.setAni(["play", "shorten"]);
if (!_global.scene.pwChargeScoreOver) {
_global.scene.pwChargeScoreOver = true;
_global.ctn.game.addScore(354, 478, 25, 60);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 25, 60);
}
}
}
}
}
Symbol 444 MovieClip Frame 3
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
stop();
Instance of Symbol 357 MovieClip "btn" in Symbol 444 MovieClip Frame 3
on (press) {
}
Symbol 529 MovieClip [plugAni] Frame 1
#initclip 33
Object.registerClass("plugAni", prop.plug);
#endinitclip
stop();
Symbol 529 MovieClip [plugAni] Frame 73
if (!_global.scene.plugScoreOver) {
_global.scene.plugScoreOver = true;
_global.ctn.game.addScore(254, 478, 15, 60);
_global.ctn.game.addScore(20, Math.round(30 * Math.random()), 15, 60);
}
stop();
Symbol 529 MovieClip [plugAni] Frame 74
_global.ctn.sndCtrl.playSound("snd_burning");
Symbol 529 MovieClip [plugAni] Frame 124
stop();
Symbol 544 MovieClip Frame 1
stop();
Instance of Symbol 357 MovieClip in Symbol 544 MovieClip Frame 1
on (press) {
trace("pot runSta: " + _global.scene.pot.runSta);
if (_global.scene.pot.runSta == "pwPot") {
_global.scene.pot.play();
}
if (_global.scene.pot.runSta == "watering") {
_parent.play();
_global.scene.pot.gotoAndPlay("back");
}
}
Symbol 544 MovieClip Frame 10
_global.ctn.sndCtrl.playSound("snd_arkShapeToShip");
if (!_global.scene.arkChagneScoreOver) {
_global.scene.arkChagneScoreOver = true;
_global.ctn.game.addScore(354, 324, 136, 120);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 136, 120);
}
Symbol 544 MovieClip Frame 73
stop();
Instance of Symbol 357 MovieClip in Symbol 544 MovieClip Frame 73
on (press) {
_global.scene.pz2._visible = true;
_global.ctn.sndCtrl.playSound("snd_pzApear");
_global.scene.pz2.resetMe();
}
Symbol 544 MovieClip Frame 74
_global.scene.pwSource.disapear();
_global.scene.cloud.disapear();
_global.scene.pot.disapear();
_global.scene.stoneDoorAni.disapear();
_global.ctn.sndCtrl.playSound("snd_stoneSpin");
if (!_global.scene.pzArkScoreOver) {
_global.scene.pzArkScoreOver = true;
_global.ctn.game.addScore(354, 478, 137, 120);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 137, 120);
}
Symbol 544 MovieClip Frame 181
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 544 MovieClip Frame 193
_global.gameClock.stopClock();
_global.ctn.loadMV("win");
stop();
Symbol 544 MovieClip Frame 194
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
Symbol 554 MovieClip Frame 1
this.runSta = "rest";
stop();
Instance of Symbol 357 MovieClip in Symbol 554 MovieClip Frame 1
on (press) {
if (_global.scene.et.runSta == "stand") {
_global.scene.et.gotoAndPlay("eatIvy");
}
if (_global.scene.manAni.runSta == "stand") {
_global.scene.manAni.gotoAndPlay("eatIvy");
}
_parent.gotoAndPlay("shake");
}
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_rollOver");
}
Symbol 554 MovieClip Frame 13
_global.ctn.sndCtrl.playSound("snd_treeGrow");
Symbol 554 MovieClip Frame 57
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 74
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 88
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 100
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 103
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 106
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 109
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 112
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 115
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 118
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 121
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 124
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 127
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 130
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 133
_global.ctn.sndCtrl.playSound("snd_flowerGrass");
Symbol 554 MovieClip Frame 159
stop();
Instance of Symbol 357 MovieClip in Symbol 554 MovieClip Frame 159
on (press) {
if (_global.scene.manAni.runSta == "digOver") {
_global.scene.manAni.play();
}
}
Symbol 554 MovieClip Frame 160
this.runSta = "eatAni";
_global.ctn.sndCtrl.playSound("snd_eatFruit");
Symbol 554 MovieClip Frame 165
this.runSta = "die";
stop();
Symbol 554 MovieClip Frame 172
this.gotoAndStop(1);
Symbol 555 MovieClip [trees] Frame 1
#initclip 19
Object.registerClass("trees", prop.trees);
#endinitclip
Instance of Symbol 357 MovieClip "btn" in Symbol 555 MovieClip [trees] Frame 1
on (press) {
trace("trees btn press ,et sta: " + _global.scene.et.runSta);
if (_global.scene.et.runSta == "stand") {
_global.scene.et.gotoAndPlay("gotoFruit");
}
}
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 7
_global.ctn.sndCtrl.playSound("snd_fruit");
if (!_global.scene.fruitScoreOver) {
_global.scene.fruitScoreOver = true;
_global.ctn.game.addScore(354, 478, 63, 60);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 63, 60);
}
Symbol 558 MovieClip Frame 23
_global.scene.trees.fruitOver();
stop();
Symbol 558 MovieClip Frame 24
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
Symbol 577 MovieClip Frame 102
_global.scene.stoneDoorAni.play();
stop();
Symbol 583 MovieClip Frame 1
function disapear() {
this.gotoAndPlay("disapear");
}
stop();
Symbol 583 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("snd_stoneSpin");
Symbol 583 MovieClip Frame 76
this.canfire = "ok";
stop();
Symbol 583 MovieClip Frame 77
_global.scene.fireSeed.unloadMovie();
if (!_global.scene.fireOnScoreOver) {
_global.scene.fireOnScoreOver = true;
_global.ctn.game.addScore(354, 478, 45, 60);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 45, 60);
}
Symbol 583 MovieClip Frame 121
_global.ctn.sndCtrl.playSound("snd_burning");
Symbol 583 MovieClip Frame 250
stop();
_global.scene.pot.steamOn();
Instance of Symbol 357 MovieClip in Symbol 583 MovieClip Frame 250
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_burning");
}
Symbol 583 MovieClip Frame 268
_global.ctn.sndCtrl.playSound("snd_stoneSpin");
Symbol 583 MovieClip Frame 285
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("snd_rain");
if (!_global.scene.rainScoreOver) {
_global.scene.rainScoreOver = true;
_global.ctn.game.addScore(354, 478, 60, 60);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 60, 60);
}
Symbol 589 MovieClip Frame 45
_global.scene.lake.gotoAndPlay("extend");
_global.ctn.sndCtrl.playSound("snd_water");
Symbol 589 MovieClip Frame 172
stop();
Symbol 591 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 1
_global.ctn.sndCtrl.playSound("snd_etSignal");
Symbol 647 MovieClip [ET] Frame 1
#initclip 20
Object.registerClass("ET", prop.et);
#endinitclip
stop();
Instance of Symbol 357 MovieClip in Symbol 647 MovieClip [ET] Frame 1
on (press) {
if (_global.scene.lake._currentframe == 1) {
_parent.gotoAndPlay("dieType1");
}
}
on (rollOver) {
if (_parent.eye._currentframe == 1) {
_parent.eye.play();
_global.ctn.sndCtrl.playSound("snd_etRollOver");
_global.ctn.sndCtrl.playSound("snd_etRollOver");
}
}
Symbol 647 MovieClip [ET] Frame 2
stop();
Instance of Symbol 357 MovieClip in Symbol 647 MovieClip [ET] Frame 2
on (press) {
_parent.play();
}
Symbol 647 MovieClip [ET] Frame 4
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 41
this.runSta = "stand";
stop();
Symbol 647 MovieClip [ET] Frame 42
this.runSta = "gotoFruit";
Symbol 647 MovieClip [ET] Frame 44
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 137
_global.scene.fruit.gotoAndStop("eatOver");
if (!_global.scene.getFruitScoreOver) {
_global.scene.getFruitScoreOver = true;
_global.ctn.game.addScore(354, 478, 75, 60);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 75, 60);
}
Symbol 647 MovieClip [ET] Frame 171
_global.ctn.sndCtrl.playSound("snd_eatFruit");
Symbol 647 MovieClip [ET] Frame 228
_global.ctn.sndCtrl.playSound("snd_eatFruit");
Symbol 647 MovieClip [ET] Frame 271
_global.ctn.sndCtrl.playSound("snd_eatFruit");
Symbol 647 MovieClip [ET] Frame 350
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 368
_global.ctn.sndCtrl.playSound("snd_etChange");
Symbol 647 MovieClip [ET] Frame 408
_global.ctn.sndCtrl.playSound("snd_etChange");
Symbol 647 MovieClip [ET] Frame 444
_global.ctn.sndCtrl.playSound("snd_etChange");
Symbol 647 MovieClip [ET] Frame 488
_global.ctn.sndCtrl.playSound("snd_etChange");
Symbol 647 MovieClip [ET] Frame 528
_global.ctn.sndCtrl.playSound("snd_etChange");
Symbol 647 MovieClip [ET] Frame 579
Symbol 647 MovieClip [ET] Frame 588
this.runSta = "eating";
stop();
Instance of Symbol 357 MovieClip in Symbol 647 MovieClip [ET] Frame 588
on (press) {
_parent.nextFrame();
}
Symbol 647 MovieClip [ET] Frame 589
this.runSta = "big";
_global.scene.ufoAni.startAni();
if (!_global.scene.signalScoreOver) {
_global.scene.signalScoreOver = true;
_global.ctn.game.addScore(147, 214, 90, 60);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 90, 60);
}
stop();
Symbol 647 MovieClip [ET] Frame 590
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 726
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 647 MovieClip [ET] Frame 731
this.runSta = "dieType1";
stop();
Symbol 647 MovieClip [ET] Frame 732
this.runSta = "eatingIvy";
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 803
_global.scene.highTree.gotoAndPlay("die");
Symbol 647 MovieClip [ET] Frame 918
this.gotoAndStop("stand");
Symbol 647 MovieClip [ET] Frame 919
this.runSta = "gettingDown";
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 1028
this.runSta = "down";
_global.ctn.sndCtrl.playSound("snd_hitLand");
stop();
Instance of Symbol 357 MovieClip in Symbol 647 MovieClip [ET] Frame 1028
on (press) {
_parent.play();
}
Symbol 647 MovieClip [ET] Frame 1029
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 1052
this.gotoAndStop("down");
Symbol 647 MovieClip [ET] Frame 1053
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 647 MovieClip [ET] Frame 1101
stop();
Symbol 671 MovieClip [manAni] Frame 1
#initclip 21
Object.registerClass("manAni", prop.man);
#endinitclip
Symbol 671 MovieClip [manAni] Frame 2
stop();
Instance of Symbol 357 MovieClip in Symbol 671 MovieClip [manAni] Frame 2
on (press) {
trace("press man ,ufoOver: " + _global.scene.ufoOver);
if (_global.scene.ufoOver) {
_parent.play();
}
}
Symbol 671 MovieClip [manAni] Frame 3
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 671 MovieClip [manAni] Frame 44
this.runSta = "stand";
stop();
Symbol 671 MovieClip [manAni] Frame 45
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 671 MovieClip [manAni] Frame 75
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
Symbol 671 MovieClip [manAni] Frame 91
this.runSta = "digOver";
_global.scene.lake2.play();
if (!_global.scene.digScoreOver) {
_global.scene.digScoreOver = true;
_global.ctn.game.addScore(214, 285, 120, 100);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 120, 100);
}
stop();
Symbol 671 MovieClip [manAni] Frame 215
_global.scene.pwStone.unloadMovie();
_global.ctn.sndCtrl.playSound("snd_act");
if (!_global.scene.getPwStoneScoreOver) {
_global.scene.getPwStoneScoreOver = true;
_global.ctn.game.addScore(354, 478, 128, 120);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 128, 120);
}
Instance of Symbol 667 MovieClip "pwStone" in Symbol 671 MovieClip [manAni] Frame 215
on (press) {
}
Instance of Symbol 668 MovieClip "pwStone" in Symbol 671 MovieClip [manAni] Frame 219
on (press) {
}
Symbol 671 MovieClip [manAni] Frame 242
this.runSta = "pwStone";
stop();
Instance of Symbol 668 MovieClip "pwStone" in Symbol 671 MovieClip [manAni] Frame 495
on (press) {
}
Instance of Symbol 667 MovieClip "pwStone" in Symbol 671 MovieClip [manAni] Frame 496
on (press) {
}
Instance of Symbol 669 MovieClip "pwStone" in Symbol 671 MovieClip [manAni] Frame 519
on (press) {
}
Symbol 671 MovieClip [manAni] Frame 522
_global.scene.pot.gotoAndPlay("change");
_global.ctn.sndCtrl.playSound("snd_hitLand");
if (!_global.scene.throwScoreOver) {
_global.scene.throwScoreOver = true;
_global.ctn.game.addScore(354, 478, 135, 100);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 135, 100);
}
stop();
Symbol 671 MovieClip [manAni] Frame 523
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 671 MovieClip [manAni] Frame 556
_global.scene.highTree.gotoAndPlay("die");
Symbol 671 MovieClip [manAni] Frame 608
this.gotoAndStop("stand");
Symbol 671 MovieClip [manAni] Frame 609
this.runSta = "gettingDown";
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 671 MovieClip [manAni] Frame 716
this.runSta = "down";
_global.ctn.sndCtrl.playSound("snd_hitLand");
stop();
Instance of Symbol 357 MovieClip in Symbol 671 MovieClip [manAni] Frame 716
on (press) {
_parent.play();
}
Symbol 671 MovieClip [manAni] Frame 717
_global.ctn.sndCtrl.playSound("snd_act");
Symbol 671 MovieClip [manAni] Frame 740
this.gotoAndStop("down");
Symbol 698 MovieClip [ufoAni] Frame 1
#initclip 22
Object.registerClass("ufoAni", prop.ufoAni);
#endinitclip
stop();
Symbol 698 MovieClip [ufoAni] Frame 70
_global.scene.et.gotoAndPlay("pullUp");
Instance of Symbol 357 MovieClip in Symbol 698 MovieClip [ufoAni] Frame 165
on (press) {
_parent.gotoAndPlay("drop");
}
Symbol 698 MovieClip [ufoAni] Frame 176
_global.ctn.sndCtrl.playSound("snd_ufoDrop");
Symbol 698 MovieClip [ufoAni] Frame 191
if (!_global.scene.ufoDropScoreOver) {
_global.scene.ufoDropScoreOver = true;
_global.ctn.game.addScore(354, 478, 115, 100);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 115, 100);
}
Symbol 698 MovieClip [ufoAni] Frame 204
this.dropProps();
Symbol 698 MovieClip [ufoAni] Frame 228
_global.scene.ufoOver = true;
_global.scene.leavesCtrl.leafType = "flower";
stop();
Symbol 702 MovieClip Frame 1
stop();
Symbol 702 MovieClip Frame 9
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 702 MovieClip Frame 15
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 702 MovieClip Frame 27
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 717 MovieClip Frame 1
_global.scene.fireSeed._visible = true;
_global.scene.fireSeed.play();
Symbol 717 MovieClip Frame 9
_global.ctn.sndCtrl.playSound("snd_stoneBreak");
if (!_global.scene.cutStoneScoreOver) {
_global.scene.cutStoneScoreOver = true;
_global.ctn.game.addScore(354, 478, 30, 60);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 30, 60);
}
Symbol 717 MovieClip Frame 39
_global.scene.cloud.setMetalPotOver();
_parent.nextFrame();
Symbol 749 MovieClip Frame 25
_parent.runSta = "watering";
_global.ctn.sndCtrl.playSound("snd_water");
if (!_global.scene.waterShapeScoreOver) {
_global.scene.waterShapeScoreOver = true;
_global.ctn.game.addScore(354, 478, 30, 60);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 30, 60);
}
stop();
Symbol 755 MovieClip [pot] Frame 1
#initclip 23
Object.registerClass("pot", prop.pot);
#endinitclip
stop();
Instance of Symbol 357 MovieClip "btn" in Symbol 755 MovieClip [pot] Frame 1
on (press) {
trace("cloudSta: " + _global.scene.cloud.runSta);
trace("distAbs: " + Math.abs(_global.scene.cloud._x - _parent._x));
if ((_global.scene.cloud.runSta == "rest") && (Math.abs(_global.scene.cloud._x - _parent._x) < 50)) {
if (_global.scene.cloudPw == true) {
_global.scene.cloud.setTask("cutStone", _parent._x);
}
}
_parent.stoneAni.play();
}
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_potRollOver");
}
Symbol 755 MovieClip [pot] Frame 3
steam._visible = false;
steamBtn._visible = false;
this.runSta = "steamPot";
Instance of Symbol 724 MovieClip "steamBtn" in Symbol 755 MovieClip [pot] Frame 3
on (press) {
if ((_global.scene.cloud.runSta == "rest") && (Math.abs(_global.scene.cloud._x - 587) < 50)) {
if (!_global.scene.fullWater) {
_global.scene.cloud.setTask("chargeWater", 587);
}
}
}
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_steam");
}
Symbol 755 MovieClip [pot] Frame 5
_global.ctn.sndCtrl.playSound("snd_potChange");
Symbol 755 MovieClip [pot] Frame 49
this.runSta = "pwPot";
if (!_global.scene.potChangeScoreOver) {
_global.scene.potChangeScoreOver = true;
_global.ctn.game.addScore(165, 100, 135, 110);
_global.ctn.game.addScore(20, Math.round(5 * Math.random()), 135, 110);
}
stop();
Symbol 755 MovieClip [pot] Frame 85
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 755 MovieClip [pot] Frame 97
_global.ctn.sndCtrl.playSound("snd_potChange");
Symbol 755 MovieClip [pot] Frame 115
stop();
Symbol 755 MovieClip [pot] Frame 143
stop();
Symbol 755 MovieClip [pot] Frame 145
_global.ctn.sndCtrl.playSound("snd_hitLand");
Symbol 755 MovieClip [pot] Frame 161
Symbol 755 MovieClip [pot] Frame 176
Symbol 755 MovieClip [pot] Frame 197
stop();
Symbol 761 MovieClip Frame 1
stop();
Instance of Symbol 357 MovieClip in Symbol 761 MovieClip Frame 1
on (press) {
_parent.play();
}
Symbol 761 MovieClip Frame 2
_global.ctn.sndCtrl.playSound("snd_pwSwitch");
Symbol 761 MovieClip Frame 7
_parent.ropePrs();
Symbol 761 MovieClip Frame 8
stop();
Instance of Symbol 357 MovieClip in Symbol 761 MovieClip Frame 8
on (press) {
_parent.play();
}
Symbol 761 MovieClip Frame 9
_global.ctn.sndCtrl.playSound("snd_pwSwitch");
Symbol 761 MovieClip Frame 14
_parent.ropePrs();
Symbol 761 MovieClip Frame 15
gotoAndStop (1);
Symbol 761 MovieClip Frame 24
stop();
Symbol 803 MovieClip Frame 20
stop();
Symbol 804 MovieClip Frame 1
_global.ctn.sndCtrl.playSound("snd_Electric");
Symbol 804 MovieClip Frame 435
_global.scene.cloud.pwOk = true;
Symbol 804 MovieClip Frame 589
_global.scene.cloud.pwOk = false;
_global.scene.plugAni.gotoAndPlay("broken");
_global.scene.cloud.rope.gotoAndPlay("fire");
_global.ctn.sndCtrl.playSound("snd_bomb");
Symbol 804 MovieClip Frame 609
_global.scene.cloud.unloadMovie();
stop();
Symbol 808 MovieClip Frame 13
_global.ctn.sndCtrl.playSound("snd_thunder");
Symbol 808 MovieClip Frame 35
_global.scene.pot.gotoAndStop("brokenAni");
Symbol 808 MovieClip Frame 70
stop();
Symbol 809 MovieClip Frame 149
_global.scene.cloud.setFullWater();
if (!_global.scene.steamScoreOver) {
_global.scene.steamScoreOver = true;
_global.ctn.game.addScore(354, 478, 50, 65);
_global.ctn.game.addScore(20, Math.round(10 * Math.random()), 50, 65);
}
stop();
Symbol 810 MovieClip Frame 81
_parent.gotoAndStop("rest");
stop();
Symbol 811 MovieClip Frame 13
_global.ctn.sndCtrl.playSound("snd_thunder");
Symbol 811 MovieClip Frame 30
_global.scene.trees.fireTrees();
Symbol 811 MovieClip Frame 70
stop();
Symbol 812 MovieClip Frame 1
stop();
Symbol 813 MovieClip [cloud] Frame 1
#initclip 24
Object.registerClass("cloud", prop.cloud);
#endinitclip
Symbol 815 MovieClip Frame 1
this.runSta = "hide";
stop();
Symbol 815 MovieClip Frame 29
this.runSta = "fire";
Instance of Symbol 357 MovieClip in Symbol 815 MovieClip Frame 29
on (press) {
if (_global.scene.stoneDoorAni.canfire == "ok") {
_global.scene.stoneDoorAni.gotoAndPlay("fireOn");
} else if ((_global.scene.trees.runSta != "dead") && (_global.scene.treeOver == false)) {
_parent.gotoAndPlay("fireTrees");
}
}
Symbol 815 MovieClip Frame 757
this.runSta = "over";
stop();
Symbol 815 MovieClip Frame 758
this.runSta = "fireTrees";
Symbol 815 MovieClip Frame 781
_global.scene.trees.fireTrees();
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 831 MovieClip [pz1] Frame 1
#initclip 25
Object.registerClass("pz1", prop.pz1);
#endinitclip
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 841 MovieClip [diskAni] Frame 1
#initclip 26
Object.registerClass("diskAni", prop.fireDisk);
#endinitclip
Symbol 842 MovieClip [firePuzzle] Frame 1
#initclip 27
Object.registerClass("firePuzzle", prop.pz3);
#endinitclip
disk1.startAni("s" + Math.ceil(Math.random() * 5));
disk2.startAni("s" + Math.ceil(Math.random() * 5));
bg.onPress = function () {
};
bg.useHandCursor = false;
Instance of Symbol 833 MovieClip in Symbol 842 MovieClip [firePuzzle] Frame 1
on (press) {
_global.ctn.sndCtrl.playSound("snd_firePzPrs");
_parent.btnPrs();
}
Instance of Symbol 835 MovieClip in Symbol 842 MovieClip [firePuzzle] Frame 1
on (press) {
_parent._visible = false;
_global.ctn.sndCtrl.playSound("snd_pzWrong");
}
Symbol 848 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 1
stop();
Symbol 863 MovieClip [pz2] Frame 1
#initclip 28
Object.registerClass("pz2", prop.pz2);
#endinitclip
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 865 MovieClip Frame 1
function onEnterFrame() {
var _local2 = this;
switch (_local2.runSta) {
case "leaves" :
_local2.genLeavesStep();
break;
case "rest" :
_local2.restStep();
}
}
function genLeavesStep() {
var _local2 = this;
if (BouncerIndex < MaxBouncer) {
BouncerIndex++;
if ((BouncerIndex % 2) == 0) {
_local2.attachMovie("Bouncer", "Bouncer" + BouncerIndex, BouncerIndex);
_local2["Bouncer" + BouncerIndex].aniCtt.gotoAndStop(leafType);
_local2["Bouncer" + BouncerIndex]._y = -20;
}
}
if (_local2.timeCnt < _local2.leavesMax) {
_local2.timeCnt++;
} else {
_local2.removeLeaves();
_local2.timeCnt = 0;
_local2.BouncerIndex = 0;
_local2.runSta = "rest";
}
}
function restStep() {
var _local2 = this;
if (_local2.timeCnt < _local2.restMax) {
_local2.timeCnt++;
} else {
_local2.timeCnt = 0;
_local2.runSta = "leaves";
}
}
function removeLeaves() {
var _local3 = this;
var _local2 = 0;
while (_local2 <= _local3.MaxBouncer) {
_local3["Bouncer" + _local2].removeMovieClip();
_local2++;
}
}
MaxBouncer = 12;
BouncerIndex = 0;
timeCnt = 0;
runSta = "leaves";
leavesMax = 180;
restMax = 240;
leafType = "dry";
Symbol 866 Button
on (release) {
_global.ctn.game.addScore(300, 300, 4, 5);
}
Symbol 867 Button
on (release) {
_global.ctn.sndCtrl.playSound("snd_bomb");
}
Symbol 868 MovieClip [level1] Frame 1
stop();
_global.scene = this;
plugAni._visible = false;
rainAni._visible = false;
arkShape._visible = false;
pwStone._visible = false;
pz1._visible = false;
fireSeed._visible = false;
doorBtn.enabled = false;
firePuzzle._visible = false;
pz2._visible = false;
lakeRef.unloadMovie();
stepBtn.enabled = false;
cloudPw = false;
metalPot = false;
fullWater = false;
rainOver = false;
treeOver = false;
ufoOver = false;
Instance of Symbol 343 MovieClip "stepBtn" in Symbol 868 MovieClip [level1] Frame 1
on (press) {
if (_global.scene.et.runSta == "stand") {
_global.scene.et.gotoAndPlay("getDown");
}
if (_global.scene.manAni.runSta == "stand") {
_global.scene.manAni.gotoAndPlay("getDown");
}
}
Instance of Symbol 548 MovieClip "pwStone" in Symbol 868 MovieClip [level1] Frame 1
on (press) {
}
Instance of Symbol 357 MovieClip "steamBtn" in Symbol 868 MovieClip [level1] Frame 1
on (press) {
_global.scene.firePuzzle._visible = true;
_global.ctn.sndCtrl.playSound("snd_pzApear");
}
on (rollOver) {
_global.ctn.sndCtrl.playSound("snd_stoneDoorRollOver");
}
Instance of Symbol 357 MovieClip "doorBtn" in Symbol 868 MovieClip [level1] Frame 1
on (press) {
if (_global.scene.manAni.runSta == "pwStone") {
_global.scene.manAni.play();
_global.scene.manAni.runSta = "gotoThrowFire";
}
}
Symbol 869 MovieClip Frame 1
_global.ctn.sndCtrl.addSound("snd_arkShapeToShip", 60);
_global.ctn.sndCtrl.addSound("snd_bomb", 60);
_global.ctn.sndCtrl.addSound("snd_burning", 60);
_global.ctn.sndCtrl.addSound("snd_Electric", 40);
_global.ctn.sndCtrl.addSound("snd_etSignal", 60);
_global.ctn.sndCtrl.addSound("snd_firePzPrs", 90);
_global.ctn.sndCtrl.addSound("snd_flowerGrass", 60);
_global.ctn.sndCtrl.addSound("snd_hitLand", 60);
_global.ctn.sndCtrl.addSound("snd_plugInOff", 20);
_global.ctn.sndCtrl.addSound("snd_potChange", 60);
_global.ctn.sndCtrl.addSound("snd_pwSwitch", 60);
_global.ctn.sndCtrl.addSound("snd_pzApear", 60);
_global.ctn.sndCtrl.addSound("snd_pzRight", 60);
_global.ctn.sndCtrl.addSound("snd_pzWrong", 60);
_global.ctn.sndCtrl.addSound("snd_rain", 20);
_global.ctn.sndCtrl.addSound("snd_steam", 60);
_global.ctn.sndCtrl.addSound("snd_stoneBreak", 80);
_global.ctn.sndCtrl.addSound("snd_stoneSpin", 70);
_global.ctn.sndCtrl.addSound("snd_thunder", 60);
_global.ctn.sndCtrl.addSound("snd_ufoDrop", 60);
_global.ctn.sndCtrl.addSound("snd_water", 60);
_global.ctn.sndCtrl.addSound("snd_waterShort", 60);
_global.ctn.sndCtrl.addSound("snd_rollOver", 60);
_global.ctn.sndCtrl.addSound("snd_etRollOver", 60);
_global.ctn.sndCtrl.addSound("snd_act", 60);
_global.ctn.sndCtrl.addSound("snd_breath", 60);
_global.ctn.sndCtrl.addSound("snd_etChange", 60);
_global.ctn.sndCtrl.addSound("snd_stoneDoorRollOver", 60);
_global.ctn.sndCtrl.addSound("snd_potRollOver", 60);
_global.ctn.game.toolsBar.setSndPath(_global.ctn.sndCtrl);
_global.ctn.game.toolsBar.isStopVisible();
Symbol 872 Button
on (release) {
activateQltPanel();
}
Symbol 874 Button
on (release) {
stopMusic();
}
Symbol 876 Button
on (release) {
stopSound();
}
Symbol 881 Button
on (press) {
_global.ctn.game.lose();
}
Symbol 883 Button
on (release) {
menuBtnEvt();
}
Symbol 890 MovieClip Frame 1
function clearLight() {
trace("clear light");
bgLOW._alpha = 0;
bgMEDIUM._alpha = 0;
bgHIGH._alpha = 0;
bgBEST._alpha = 0;
}
function setLight(p_name) {
trace("setLight function " + p_name);
clearLight();
this["bg" + p_name]._alpha = 100;
}
var path = this._parent;
QLOW.onPress = function () {
path.setQlt("LOW");
this._parent._visible = false;
};
QMEDIUM.onPress = function () {
path.setQlt("MEDIUM");
this._parent._visible = false;
};
QHIGH.onPress = function () {
path.setQlt("HIGH");
this._parent._visible = false;
};
QBEST.onPress = function () {
path.setQlt("BEST");
this._parent._visible = false;
};
Symbol 893 MovieClip [toolsBar] Frame 1
#initclip 29
Object.registerClass("toolsBar", stateBar.toolsBar);
#endinitclip
Symbol 898 MovieClip [clockCtt] Frame 1
#initclip 30
Object.registerClass("clockCtt", clock.ClockDisplay);
#endinitclip
Symbol 901 MovieClip [game] Frame 1
#initclip 31
Object.registerClass("game", levelCtn.LevelCtn);
#endinitclip
Symbol 910 MovieClip Frame 60
stop();
Symbol 920 Button
on (release) {
nextFrame();
}
Symbol 922 Button
on (release) {
_global.ctn.loadMV("game");
}
Symbol 924 Button
on (release) {
_global.ctn.loadMV("mainPage");
}
Symbol 932 MovieClip Frame 120
stop();
Symbol 935 Button
on (release) {
prevFrame();
}
Symbol 947 MovieClip Frame 50
stop();
Instance of Symbol 1009 MovieClip in Symbol 1010 MovieClip Frame 1
on (press) {
if (_global.scene.manAni.runSta == "digOver") {
_global.scene.manAni.play();
}
}
Symbol 1029 MovieClip Frame 1
stop();
Symbol 1029 MovieClip Frame 200
_global.scene.stoneDoorAni.play();
stop();
Symbol 1035 MovieClip Frame 50
stop();
Symbol 1041 MovieClip [instructions] Frame 1
stop();
Symbol 1052 Button
on (press) {
gotoAndStop ("beginEnd");
}
Symbol 1083 Button
on (release) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 1084 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 1085 Button
on (release) {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=the_life_ark", "_blank");
}
Symbol 1086 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 1087 Button
on (release) {
_global.firstRun = "over";
_global.ctn.loadMV("instructions");
}
Symbol 1088 Button
on (release) {
if (_global.firstRun == undefined) {
_global.firstRun = "over";
_global.ctn.loadMV("instructions");
} else if (_global.firstRun == "over") {
_global.ctn.loadMV("game");
}
}
Symbol 1095 Button
on (release) {
_global.ctn.loadMV("credits");
}
Symbol 1098 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1100 MovieClip [mainPage] Frame 1
if (!_global.firstTimeMainPage) {
_global.firstTimeMainPage = true;
} else {
this.gotoAndStop("beginEnd");
}
Symbol 1100 MovieClip [mainPage] Frame 266
stop();
Instance of Symbol 900 MovieClip in Symbol 1100 MovieClip [mainPage] Frame 266
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 1102 MovieClip [mCtn] Frame 1
#initclip 32
Object.registerClass("mCtn", mainContainer.MainContainer);
#endinitclip
Symbol 1106 MovieClip [confirmToMenu] Frame 1
yesBtn.onPress = function () {
_global.gameClock.stopClock();
_global.ctn.loadMV("mainPage");
this._parent.removeMovieClip();
};
noBtn.onPress = function () {
this._parent.removeMovieClip();
};
back.onPress = function () {
};
back.useHandCursor = false;
stop();
Symbol 1107 Button
on (press) {
_global.ctn.game.loadLevel();
this.removeMovieClip();
}
Symbol 1110 MovieClip [lose] Frame 1
hideBtn.onPress = function () {
};
hideBtn.useHandCursor = false;
totalScore.text = "SCORE: " + _global.score;
stop();
Instance of Symbol 316 MovieClip in Symbol 1110 MovieClip [lose] Frame 1
//component parameters
onClipEvent (construct) {
_game_name = "the_life_ark";
score_var = "_global.score";
}
Symbol 1114 Button
on (press) {
_global.ctn.game.loadLevel();
this.removeMovieClip();
}
Symbol 1116 MovieClip [levelComplete] Frame 1
hideBtn.onPress = function () {
};
hideBtn.useHandCursor = false;
Symbol 1116 MovieClip [levelComplete] Frame 35
totalScore.text = "YOUR SCORE: " + _global.score;
trace("##########------global.score" + _global.score);
stop();
Symbol 1150 MovieClip Frame 1
stop();
Symbol 1151 MovieClip [Bouncer] Frame 1
function onEnterFrame() {
compZ = 1 / posZ;
posX = posX + speedX;
posY = posY + speedY;
posZ = posZ + speedZ;
_x = (posX * compZ);
_y = (posY * compZ);
_xscale = (100 * compZ);
_yscale = (100 * compZ);
}
posX = random(600) - 500;
posY = random(400) - 400;
posZ = (0.5 * Math.random()) + 0.3;
speedX = random(30) + 15;
speedY = random(30) + 15;
speedZ = (0.02 * Math.random()) + 0.02;
Symbol 1186 MovieClip Frame 1
stop();