Frame 1
mochi.as2.MochiAd.showPreGameAd({id:"cf8ed80c6b727b98", res:"550x450"});
stopAllSounds();
_global.setDelay = function () {
var _local1 = arguments;
var obj = _local1[0];
var fnc = _local1[1];
var _local2 = _local1[2];
if ((typeof(obj) == "function") && (typeof(fnc) == "number")) {
_local2 = fnc;
fnc = obj;
obj = null;
var _local3 = 2;
} else if (((obj instanceof Object) && (typeof((fnc = obj[fnc])) == "function")) && (typeof(_local2) == "number")) {
var _local3 = 3;
} else {
trace("Warning : [setDelay] invalid parameter types.");
return(false);
}
_local1.splice(0, _local3);
var f = function (array) {
fnc.apply(obj, array);
clearInterval(id);
};
var id = setInterval(f, _local2, _local1);
return(id);
};
_global.EF = {Old:{}, OnEF:{}, SetOnEF:{}};
_global.EF.traceTable = function (t) {
var _local2 = t;
var _local1 = 0;
while (_local1 <= (_local2.length - 1)) {
trace(_local2[_local1].toString());
_local1++;
}
};
_global.EF.Old.oldrandom = _global.random;
_global.random = function (intval) {
var _local1 = Math.floor(Math.random());
return(_local1);
};
ASSetPropFlags(_global, ["setDelay", "EF"], 1);
_global.IV = {ROOT:this, GAMEID:"BBPANDA", LEVEL_FRUITS:[[6, 6, 0, 0, 0], [7, 0, 7, 0, 0], [0, 8, 8, 0, 0], [3, 4, 5, 0, 0], [5, 4, 3, 0, 0], [8, 0, 0, 5, 0], [0, 0, 9, 0, 6], [5, 4, 3, 0, 3], [0, 8, 0, 2, 4], [7, 6, 5, 4, 0], [5, 6, 7, 0, 4], [4, 9, 4, 2, 4], [7, 7, 7, 7, 0], [9, 9, 0, 8, 0], [9, 0, 9, 3, 6], [0, 9, 9, 9, 0], [9, 9, 0, 9, 0], [6, 9, 0, 3, 6], [6, 6, 6, 6, 9], [9, 6, 9, 6, 9]], LEVEL_ITEMS:[[0, 0, 0, 0, 2], [2, 0, 0, 0, 0], [0, 2, 0, 0, 0], [0, 0, 0, 2, 0], [0, 0, 1, 0, 0], [1, 1, 0, 0, 0], [0, 1, 0, 1, 1], [2, 0, 0, 1, 0], [0, 0, 2, 0, 2], [0, 0, 0, 2, 2], [2, 0, 0, 2, 0], [0, 0, 1, 1, 1], [0, 1, 0, 1, 1], [0, 0, 1, 0, 0], [0, 1, 0, 2, 0], [1, 1, 0, 0, 2], [1, 2, 0, 2, 0], [0, 2, 1, 2, 0], [2, 0, 0, 3, 2], [2, 2, 2, 2, 3]], LAST_LEVEL:20, TYPE_FRUIT_CLEAR:5, INTERVAL_GENERATE:8000, INTERVAL_GENERATE_LEVEL:-100, CLIP_RATIO:[9, 2, 1], STAGE_WIDTH:550, STAGE_HEIGHT:450, ANGLE_LIMIT:20, ROPE_BOX_NUM:3, FRUITS_PER_ROPE:4, itemTypeNum:8, PI:0.01745329, speedX:20, timeOut:5, SCORE_FRUIT:[100, 120, 130, 140, 150, 1000], MOUSE_MOVE_RATE:0.2, MOUSE_ELASTIC_RATE:0.2, KEY_LEFT_MOVE:-15, KEY_RIGHT_MOVE:15, SPEED_JUMP_START:15, SPEED_JUMP_START_LEVEL:0.3, SPEED_JUMP_REDIR:50, SPEED_X_LIMIT:7, SPEED_X_MAX:15, SPEED_Y_MAX:18, SPEED_Y_MAX_LEVEL:0.45, SPEED_GRAVITY:0.5, SPEED_GRAVITY_LEVEL:0.03, SPEED_NINJA_START:15, ITEM_TYPE_SPEEDUP:0, ITEM_TYPE_WORM:1, ITEM_TYPE_THUNDER:2, ITEM_TYPE_MONKEY:3, ITEM_TYPE_NINJA:4, ITEM_TIME_SPEEDUP:8000, DELAY_INIT_NEXT_STAGE:5000};
IV.FRUITS_WIDTH_SPACE = IV.STAGE_WIDTH / (IV.FRUITS_PER_ROPE + 1);
introMain = function () {
start_btn_onRelease = function () {
gotoAndPlay (4);
};
help_btn_onRelease = function () {
gotoAndPlay (2);
};
if (ServerConnection.getRankEnabled()) {
rank_btn_onRelease = function () {
ServerConnection.onGameRankRequest();
};
rank_btn_visible = true;
} else {
rank_btn_visible = false;
}
};
gameMain = function () {
var _local1 = this;
IV.pandaHalfHeight = (_local1.panda_mc._height / 2) - 5;
die_mc._visible = false;
levelInfo_mc._visible = false;
levelInfo_mc.stop();
pan_mc.gotoAndStop(20);
prepareNextStage = function () {
if (GAME.generateID != undefined) {
clearInterval(GAME.generateID);
delete GAME.generateID;
}
panda_mc.stopMove();
panda_mc.gotoAndStop(4);
ninja_mc.stopMove();
levelInfo_mc.show();
GAME.sounds.stop(0);
};
Array.prototype.clone = function () {
var _local2 = this;
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3[_local1] = _local2[_local1];
_local1++;
}
return(_local3);
};
initStage = function () {
var _local3 = this;
GAME.sounds.start(0, 0, 10000);
GAME.levelFruit = IV.LEVEL_FRUITS[GAME.level - 1].clone();
GAME.levelItem = IV.LEVEL_ITEMS[GAME.level - 1].clone();
fruitStatus_mc.update(GAME.levelFruit);
var _local2 = 0;
while (_local2 < IV.ROPE_BOX_NUM) {
var _local1 = _local3[("fbox" + _local2) + "_mc"];
_local1.initClips();
_local1.rope_mc.gotoAndStop(23);
rearrange_fruitY(_local1, false);
_local2++;
}
panda_mc.init();
ninja_mc.die();
if (GAME.level <= 1) {
levelInfo_mc.show();
}
if (GAME.generateID != undefined) {
clearInterval(GAME.generateID);
delete GAME.generateID;
}
GAME.generateID = setInterval(generate_fruits, IV.INTERVAL_GENERATE + (IV.INTERVAL_GENERATE_LEVEL * (GAME.level - 1)), _local3);
};
ready_start_panda = function () {
panda_mc._x = 420;
panda_mc._y = 400;
panda_mc.onRelease = panda_mc.ready_onRelease;
};
score_mc.onScore = function (score) {
var _local2 = this;
var str = score.toString();
var _local3 = str.length;
var _local1 = 0;
while (_local1 <= 5) {
if (_local3 > _local1) {
_local2["score" + _local1].gotoAndStop(Number(str.charAt((_local3 - _local1) - 1)) + 1);
_local2["score" + _local1]._visible = true;
} else {
_local2["score" + _local1].gotoAndStop(1);
_local2["score" + _local1]._visible = false;
}
_local1++;
}
};
level_mc.onLevel = function (n) {
var _local1 = n;
if (_local1 <= 1) {
this._onLevel(_local1);
} else if (_local1 <= IV.LAST_LEVEL) {
setDelay(this, "_onLevel", 5000, _local1);
}
};
level_mc._onLevel = score_mc.onScore;
fruitStatus_mc.onFruit = function (fruit_array) {
if (this.update(fruit_array) <= 0) {
clearInterval(GAME.generateID);
delete GAME.generateID;
GAME.generateID = setInterval(generate_fruits, IV.INTERVAL_GENERATE + (IV.INTERVAL_GENERATE_LEVEL * (GAME.level - 1)), IV.ROOT);
generate_fruits(IV.ROOT);
}
};
onStageClear = function () {
STATUS.addLevel(1);
prepareNextStage();
if (GAME.level > IV.LAST_LEVEL) {
onGameEnd();
pan_mc.danceChipmunk();
} else {
setDelay(IV.ROOT, "initStage", IV.DELAY_INIT_NEXT_STAGE);
GAME.sounds.start(7, 0, 1);
}
};
fruitStatus_mc.update = function (fruit_array) {
var _local2 = fruit_array;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
this["fruit" + _local1].gotoAndStop(_local2[_local1] + 1);
_local3 = _local3 + _local2[_local1];
_local1++;
}
return(_local3);
};
levelInfo_mc.show = function () {
this._visible = true;
this.gotoAndPlay("open");
};
levelInfo_mc.close = function () {
if (this.isOpen) {
this.gotoAndPlay("close");
}
};
levelInfo_mc.showClear = function () {
score_mc.onScore.call(this.clear_mc, GAME.level - 1);
this.clear_mc.ani_mc.char = random(7) + 1;
};
levelInfo_mc.showLevel = function () {
score_mc.onScore.call(this.info_mc.level_mc, GAME.level);
};
levelInfo_mc.showItem = function () {
this.info_mc.item_mc.gotoAndStop(fbox0_mc.getEnableItemType() + 2);
};
levelInfo_mc.showFruits = function () {
fruitStatus_mc.update.call(this.info_mc, GAME.levelFruit);
};
panda_mc.init = function () {
this.stopMove();
trace("init");
lifeani_mc.gotoAndPlay(1);
panda_mc._visible = false;
shadow_mc._visible = false;
panda_mc.gotoAndStop(1);
pan_mc._x = IV.STAGE_WIDTH / 2;
pan_mc.trampoline_mc._rotation = 0;
pan_mc.setChipmunk();
ready_start_panda();
};
panda_mc.stopMove = function () {
var _local1 = this;
if (_local1.onEnterFrame != undefined) {
delete _local1.onEnterFrame;
}
if (_local1._currentframe == 2) {
_local1.rotate_mc.stop();
}
};
panda_mc.ready_onRelease = function () {
var _local1 = this;
GAME.sounds.start(10, 0, 1);
_local1.gotoAndStop(1);
pan_mc.trampoline_mc.gotoAndPlay(1);
levelInfo_mc.close();
var _local2 = -IV.pandaHalfHeight;
var _local3 = (-IV.PI) * _local1._rotation;
pan_mc.Y = _local2;
_local1._x = pan_mc._x + (_local2 * Math.sin(_local3));
_local1._y = pan_mc._y + (_local2 * Math.cos(_local3));
pan_mc.onEnterFrame = pan_mc.readyJump_onEnterFrame;
_local1.onMouseDown = panda_mc.jump_onMouseDown;
delete _local1.onEnterFrame;
delete _local1.onPress;
delete _local1.onRelease;
};
panda_mc.getSpeedJumpStart = function () {
return(IV.SPEED_JUMP_START + (IV.SPEED_JUMP_START_LEVEL * (GAME.level - 1)));
};
panda_mc.jump_onMouseDown = function () {
var _local1 = this;
GAME.sounds.start(1, 0, 1);
_local1.speedX = _local1.getSpeedJumpStart() * Math.cos((pan_mc.trampoline_mc._rotation * IV.PI) - 1.570796);
_local1.speedY = _local1.getSpeedJumpStart() * Math.sin((pan_mc.trampoline_mc._rotation * IV.PI) - 1.570796);
_local1.onEnterFrame = _local1.gravity_onEnterFrame;
_local1.gotoAndStop(2);
_local1._rotation = 0;
pan_mc.trampoline_mc.gotoAndPlay(2);
delete pan_mc.onEnterFrame;
delete _local1.onMouseDown;
};
panda_mc.getSpeedYMax = function () {
return((IV.SPEED_Y_MAX + (IV.SPEED_Y_MAX_LEVEL * (GAME.level - 1))) * (1 + (pan_mc.spdBonus / 2)));
};
panda_mc.jump_func = function () {
var _local1 = this;
GAME.sounds.start(1, 0, 1);
_local1.speedY = _local1.speedY * -1;
if (Math.abs(_local1.speedX) >= IV.SPEED_X_MAX) {
_local1.speedX = (_local1.speedX / Math.abs(_local1.speedX)) * IV.SPEED_X_MAX;
}
if (Math.abs(_local1.speedY) >= _local1.getSpeedYMax()) {
_local1.speedY = (_local1.speedY / Math.abs(_local1.speedY)) * _local1.getSpeedYMax();
}
_local1.speedX = _local1.speedX + (IV.SPEED_JUMP_REDIR * Math.cos((pan_mc.trampoline_mc._rotation * IV.PI) - 1.570796));
if (Math.abs(_local1.speedX) >= IV.SPEED_X_LIMIT) {
_local1.speedX = (_local1.speedX / Math.abs(_local1.speedX)) * IV.SPEED_X_LIMIT;
}
_local1.onEnterFrame = panda_mc.gravity_onEnterFrame;
_local1.gotoAndStop(2);
pan_mc.trampoline_mc.gotoAndPlay(2);
delete pan_mc.onEnterFrame;
delete _local1.onMouseDown;
};
panda_mc.getSpeedGravity = function () {
return((IV.SPEED_GRAVITY + (IV.SPEED_GRAVITY_LEVEL * (GAME.level - 1))) * (1 + (pan_mc.spdBonus / 2)));
};
panda_mc.gravity_onEnterFrame = function () {
var _local1 = this;
pan_mc.move_callByOnEnterFrame();
_local1._x = _local1._x + _local1.speedX;
_local1._y = _local1._y + _local1.speedY;
_local1.speedY = _local1.speedY + _local1.getSpeedGravity();
pan_mc.setChipmunk();
if (_local1._x > (IV.STAGE_WIDTH - 20)) {
_local1.speedX = Math.abs(_local1.speedX) * -1;
}
if (_local1._x < 20) {
_local1.speedX = Math.abs(_local1.speedX);
}
if (_local1.speedY > 0) {
_local1.gotoAndStop(3);
pan_mc.detectLanding(_local1);
}
_local1.checkGetItem();
};
panda_mc.onHitItem = function () {
trace("hit");
};
panda_mc.reDir = function (rx, ry) {
var _local1 = this;
_local1.speedX = _local1.speedX * rx;
_local1.speedY = _local1.speedY * ry;
_local1._x = _local1._x + (_local1.speedX / 2);
_local1._y = _local1._y + (_local1.speedY / 2);
};
panda_mc.onDrop = function () {
GAME.sounds.start(8, 0, 1);
die_mc._visible = true;
die_mc.play();
die_mc._x = panda_mc._x;
panda_mc._x = -100;
panda_mc._y = -100;
delete panda_mc.onEnterFrame;
setDelay(die_mc, "moveOut", 1500);
};
panda_mc.onItem = function (type, mc) {
var _local1 = this;
if (type == IV.ITEM_TYPE_THUNDER) {
if (mc == _local1) {
_local1.thunder_mc.play();
_local1.gotoAndStop(3);
_local1.stopMove();
setDelay(_local1, "thunderDrop", 1000);
} else if (mc == ninja_mc) {
ninja_mc.die();
}
}
};
panda_mc.drop_onEnterFrame = function () {
var _local1 = this;
pan_mc.move_callByOnEnterFrame();
_local1.speedY = _local1.speedY + IV.SPEED_GRAVITY;
_local1._y = _local1._y + _local1.speedY;
pan_mc.detectLanding(_local1);
};
panda_mc.thunderDrop = function () {
var _local1 = this;
_local1.speedY = 30;
_local1.onEnterFrame = _local1.drop_onEnterFrame;
};
panda_mc.checkGetItem = function () {
var _local2;
var _local1;
var _local3 = 0;
while (_local3 < IV.ROPE_BOX_NUM) {
_local2 = IV.ROOT[("fbox" + _local3) + "_mc"];
for (var obj in _local2) {
_local1 = _local2[obj];
if ((!(_local1 instanceof ClipClass)) || (!_local1.clipEnabled)) {
continue;
}
_local1.collisionTest(this, IV.pandaHalfHeight);
}
_local3++;
}
return(false);
};
die_mc.moveOut = function () {
var _local1 = this;
GAME.sounds.start(20, 0, 1);
if (_local1._x < (IV.STAGE_WIDTH / 2)) {
_local1.speed = -1;
} else {
_local1.speed = 1;
}
_local1.onEnterFrame = _local1._onEnterFrame;
};
die_mc._onEnterFrame = function () {
var _local1 = this;
_local1.speed = _local1.speed * 1.1;
_local1._x = _local1._x + _local1.speed;
if ((_local1._x < (-IV.pandaHalfHeight)) || (_local1._x > (IV.STAGE_WIDTH + IV.pandaHalfHeight))) {
_local1._visible = false;
delete _local1.onEnterFrame;
STATUS.addLife(-1);
}
};
shadow_mc.onEnterFrame = function () {
var _local1 = (panda_mc._y / this._y) * 100;
shadow_mc._x = panda_mc._x;
shadow_mc._alpha = _local1;
shadow_mc._xscale = _local1;
shadow_mc._yscale = _local1;
};
pan_mc.xTarget = IV.STAGE_WIDTH / 2;
pan_mc.yTarget = IV.STAGE_HEIGHT / 2;
pan_mc.spdBonus = 0;
pan_mc.setChipmunk = function () {
this.gotoAndStop(Math.ceil(20 + ((this.trampoline_mc._rotation / 20) * 19)) + 1);
};
pan_mc.danceChipmunk = function () {
var _local1 = this;
_local1.trampoline_mc.rSpeed = 3;
_local1.trampoline_mc.onEnterFrame = function () {
var _local1 = this;
_local1._rotation = _local1._rotation + _local1.rSpeed;
if (_local1._rotation >= IV.ANGLE_LIMIT) {
_local1.rSpeed = -3;
} else if (_local1._rotation <= (-IV.ANGLE_LIMIT)) {
_local1.rSpeed = 3;
}
pan_mc.setChipmunk();
};
};
pan_mc.move_callByOnEnterFrame = function () {
pan_mc.trampoline_mc._rotation = pan_mc.spd;
(pan_mc.trampoline_mc._rotation > IV.ANGLE_LIMIT) && ((pan_mc.trampoline_mc._rotation = IV.ANGLE_LIMIT));
(pan_mc.trampoline_mc._rotation < (-IV.ANGLE_LIMIT)) && ((pan_mc.trampoline_mc._rotation = -IV.ANGLE_LIMIT));
pan_mc._x = pan_mc._x + ((pan_mc.spd = ((IV.MOUSE_ELASTIC_RATE + (pan_mc.spdBonus / 2)) * pan_mc.spd) + ((pan_mc.xTarget - pan_mc._x) * (IV.MOUSE_MOVE_RATE + pan_mc.spdBonus))));
if ((pan_mc.spd >= 20) && (!pan_mc.left_mc._visible)) {
GAME.sounds.start(11, 0, 1);
pan_mc.left_mc._visible = true;
pan_mc.left_mc.play();
} else if ((pan_mc.spd <= -20) && (!pan_mc.right_mc._visible)) {
GAME.sounds.start(11, 0, 1);
pan_mc.right_mc._visible = true;
pan_mc.right_mc.play();
}
};
pan_mc.readyJump_onEnterFrame = function () {
var _local1 = this;
_local1.trampoline_mc._rotation = (57.29578 * Math.atan2(_ymouse - _local1._y, _xmouse - _local1._x)) + 90;
(_local1.trampoline_mc._rotation > IV.ANGLE_LIMIT) && ((_local1.trampoline_mc._rotation = IV.ANGLE_LIMIT));
(_local1.trampoline_mc._rotation < (-IV.ANGLE_LIMIT)) && ((_local1.trampoline_mc._rotation = -IV.ANGLE_LIMIT));
_local1.setChipmunk();
_local1.theta = (-IV.PI) * _local1.trampoline_mc._rotation;
panda_mc._x = (_local1._x + (_local1.X * Math.cos(_local1.theta))) + (_local1.Y * Math.sin(_local1.theta));
panda_mc._y = (_local1._y - ((1 * _local1.X) * Math.sin(_local1.theta))) + (_local1.Y * Math.cos(_local1.theta));
panda_mc._rotation = _local1.trampoline_mc._rotation;
};
pan_mc.onMouseMove = function () {
var _local1 = this;
_local1.xTarget = _xmouse;
if (_xmouse < 0) {
_local1.xTarget = 0;
}
if (_xmouse > IV.STAGE_WIDTH) {
_local1.xTarget = 550;
}
};
pan_mc.onKeyDown = function () {
var _local1 = this;
if (Key.isDown(37)) {
_local1.xTarget = _local1.xTarget + IV.KEY_LEFT_MOVE;
}
if (Key.isDown(39)) {
_local1.xTarget = _local1.xTarget + IV.KEY_RIGHT_MOVE;
}
if (Key.isDown(32)) {
panda_mc.onMouseDown();
panda_mc.onRelease();
}
};
Key.addListener(pan_mc);
pan_mc.detectLanding = function (test_mc) {
var _local1 = test_mc;
_local1.distX = Math.abs(_local1._x - pan_mc._x);
_local1.distY = Math.abs(_local1._y - pan_mc._y);
if (_local1.distY < 20) {
_local1.distanceLimit = (pan_mc.trampoline_mc._width / 2) + (_local1._width / 2);
if (_local1.distX < _local1.distanceLimit) {
_local1.gotoAndStop(1);
pan_mc.trampoline_mc.gotoAndPlay(1);
_local1.jump_func();
} else {
_local1.onDrop();
}
}
};
pan_mc.onItem = function (type) {
var _local1 = this;
if (type == IV.ITEM_TYPE_SPEEDUP) {
if (_local1._speedUpDelay != undefined) {
clearInterval(_local1._speedUpDelay);
} else {
_local1.spdBonus = 0.4;
}
_local1._speedUpDelay = setDelay(_local1, "clearSpeedBonus", IV.ITEM_TIME_SPEEDUP);
}
};
pan_mc.clearSpeedBonus = function () {
this.spdBonus = 0;
delete this._speedUpDelay;
};
ninja_mc.init = function () {
this._visible = false;
this.gotoAndStop(1);
};
ninja_mc._onEnterFrame = function () {
var _local1 = this;
if (_local1._y < (_local1._height / 2)) {
_local1.speedY = _local1.speedY * -1;
}
_local1._x = _local1._x + _local1.speedX;
_local1._y = _local1._y + _local1.speedY;
if ((_local1._x + (_local1._width / 2)) > IV.STAGE_WIDTH) {
_local1._x = IV.STAGE_WIDTH - (_local1._width / 2);
_local1.speedX = _local1.speedX * -1;
} else if ((_local1._x - (_local1._width / 2)) < 0) {
_local1._x = _local1._width / 2;
_local1.speedX = _local1.speedX * -1;
}
_local1.gotoAndStop((_local1.speedY / _local1.speedX) + 2);
panda_mc.checkGetItem.apply(_local1);
pan_mc.detectLanding(_local1);
};
ninja_mc.onDrop = function () {
this.die();
};
ninja_mc.reDir = function (rx, ry) {
var _local1 = this;
_local1.speedX = _local1.speedX * rx;
_local1.speedY = _local1.speedY * ry;
};
ninja_mc.jump_func = function () {
this.speedY = this.speedY * -1;
};
ninja_mc.stopMove = function () {
delete this.onEnterFrame;
};
ninja_mc.die = function () {
this.stopMove();
this.gotoAndPlay("die");
};
ninja_mc.init();
ninja_mc.onItem = function (type) {
var _local1 = this;
if ((type == IV.ITEM_TYPE_NINJA) && (_local1._visible == false)) {
_local1._visible = true;
var _local3 = _xmouse - _local1._x;
var _local2 = _ymouse - _local1._y;
var ang = Math.atan2(_local2, _local3);
_local1.speedX = IV.SPEED_NINJA_START;
_local1.speedY = -IV.SPEED_NINJA_START;
_local1._x = pan_mc._x;
_local1._y = pan_mc._y - 50;
_local1.onEnterFrame = _local1._onEnterFrame;
}
};
ninja_mc.onLife = function () {
this.die();
};
generate_fruits = function (this_mc) {
var _local3 = this_mc;
var _local2 = random(3);
var _local1 = _local3[("fbox" + _local2) + "_mc"];
if (_local1.generating) {
if ((_local2 + 1) < 3) {
_local1 = _local3[("fbox" + (_local2 + 1)) + "_mc"];
} else {
_local1 = _local3.fbox0_mc;
}
}
_local1.generating = true;
_local1.prepareClips();
_local1.rope_mc.gotoAndPlay(1);
rearrange_fruitY(_local1, true);
GAME.sounds.start(6, 0, 1);
};
rearrange_fruitY = function (mc, isMove) {
var _local1 = this;
var S = mc.rope_mc._width;
var circleX = (mc.rope_mc._x + (S / 2));
mc.onEnterFrame = function () {
var _local1 = this;
var _local3 = ((S * S) / (8 * _local1.rope_mc._height)) + (_local1.rope_mc._height / 2);
var circleY = ((_local1.rope_mc._y - _local3) + _local1.rope_mc._height);
for (obj in _local1) {
if ((obj != "rope_mc") && (_local1[obj] instanceof ClipClass)) {
var _local2 = _local1[obj]._x - circleX;
_local1[obj]._y = circleY + Math.sqrt((_local3 * _local3) - (_local2 * _local2));
if (isMove) {
_local1[obj]._x = _local1[obj]._x - IV.speedX;
if (_local1[obj]._x < _local1.rope_mc._x) {
_local1[obj].removeMovieClip();
}
}
}
}
if (_local1.rope_mc._currentframe == _local1.rope_mc._totalframes) {
delete _local1.onEnterFrame;
delete _local1.generating;
}
};
};
life_mc.onLife = function (n) {
this.num_mc.gotoAndStop(4 - n);
};
onLifeChange = function (n) {
if (n < 0) {
panda_mc.init();
}
};
onGameOver = function () {
ServerConnection.onGameOver();
GAME.sounds.stopAllSounds();
GAME.sounds.start(9, 0, 1);
onGameEnd();
};
onGameEnd = function () {
clearInterval(GAME.generateID);
delete GAME.generateID;
levelInfo_mc.show();
};
STATUS.addListener(_local1);
STATUS.addListener(life_mc);
STATUS.addListener(pan_mc);
STATUS.addListener(panda_mc);
STATUS.addListener(ninja_mc);
STATUS.addListener(score_mc);
STATUS.addListener(level_mc);
STATUS.addListener(fruitStatus_mc);
STATUS.init();
initStage();
};
introMain();
stop();
Frame 2
stop();
Frame 4
gameMain();
stop();
Symbol 8 MovieClip Frame 10
stop();
Symbol 9 MovieClip Frame 1
i = 2;
while (Number(i) < 10) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 30 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
tellTarget ("") {
};
tellTarget ("") {
i = Number(i) + 1;
}
}
Symbol 11 MovieClip Frame 12
stop();
Symbol 12 MovieClip Frame 1
_visible = false;
stop();
Symbol 14 MovieClip [block_symbol] Frame 1
stop();
Symbol 14 MovieClip [block_symbol] Frame 4
gotoAndPlay (1);
Symbol 14 MovieClip [block_symbol] Frame 8
gotoAndPlay (1);
Symbol 17 MovieClip [fruit2_symbol] Frame 1
stop();
Symbol 18 MovieClip [fruit4_symbol] Frame 1
stop();
Symbol 19 MovieClip [fruit1_symbol] Frame 1
stop();
Symbol 20 MovieClip [fruit0_symbol] Frame 1
stop();
Symbol 21 MovieClip [fruit3_symbol] Frame 1
stop();
Symbol 24 MovieClip [fruit5_symbol] Frame 1
stop();
Symbol 27 MovieClip Frame 10
stop();
Symbol 29 MovieClip Frame 10
stop();
Symbol 30 MovieClip Frame 1
_visible = false;
stop();
Symbol 31 MovieClip [item2_symbol] Frame 17
gotoAndPlay (1);
Symbol 33 MovieClip [item0_symbol] Frame 17
gotoAndPlay (1);
Symbol 35 MovieClip [item3_symbol] Frame 17
gotoAndPlay (1);
Symbol 37 MovieClip [item4_symbol] Frame 17
gotoAndPlay (1);
Symbol 39 MovieClip [item1_symbol] Frame 17
gotoAndPlay (1);
Symbol 48 MovieClip Frame 1
stop();
start_btn.onRelease = _parent.start_btn_onRelease;
help_btn.onRelease = _parent.help_btn_onRelease;
rank_btn.onRelease = _parent.rank_btn_onRelease;
rank_btn._visible = _parent.rank_btn_visible;
Symbol 50 Button
on (release) {
getURL ("http://www.twitter.com/playcow", "_self");
}
Symbol 53 Button
on (release) {
getURL ("http://www.facebook.com/pages/PlayCow/126005204300", "_self");
}
Symbol 55 Button
on (release) {
getURL ("http://www.playcow.com", "_blank");
}
Symbol 102 MovieClip Frame 1
onRelease = function () {
getURL ("http://www.playcow.com", "_blank");
};
Symbol 105 Button
on (release) {
gotoAndPlay (4);
}
Symbol 123 MovieClip Frame 1
#initclip 1
Object.prototype.superCon = function () {
arguments.caller.prototype.__proto__.constructor.apply(this, arguments);
};
ASSetPropFlags(Object.prototype, null, 1);
Function.prototype.extend = function (superclass) {
var _local1 = this;
_local1.prototype.__proto__ = superclass.prototype;
_local1.prototype.__constructor__ = superclass;
ASSetPropFlags(_local1.prototype, ["__constructor__"], 1);
};
ASSetPropFlags(Function.prototype, null, 1);
SoundMaster = function (base, n) {
var _local1 = this;
_local1.base = base;
_local1.sound_array = [];
if (n > 0) {
_local1.createAllSound(n);
}
};
sp = SoundMaster.prototype;
sp.createAllSound = function (n) {
var _local2 = this;
var _local3 = n;
var _local1 = 0;
while (_local1 <= (_local3 - 1)) {
_local2.sound_array[_local1] = new Sound(createEmptyMovieClip("_soundmaster" + (_local2.base + _local1), _local2.base + _local1));
_local1++;
}
};
sp.attachAllSound = function () {
var _local3 = arguments;
var _local2 = _local3.length - 1;
var _local1 = 0;
while (_local1 <= _local2) {
this.sound_array[_local1].attachSound(_local3[_local1]);
_local1++;
}
};
sp.setAllVolume = function () {
var _local3 = arguments;
var _local2 = _local3.length - 1;
var _local1 = 0;
while (_local1 <= _local2) {
this.sound_array[_local1].setVolume(_local3[_local1]);
_local1++;
}
};
sp.setAllPan = function () {
var _local3 = arguments;
var _local2 = _local3.length - 1;
var _local1 = 0;
while (_local1 <= _local2) {
this.sound_array[_local1].setPan(_local3[_local1]);
_local1++;
}
};
sp.setVolume = function (n, vol) {
var _local1 = this.sound_array[n];
if (vol != undefined) {
_local1.setVolume(vol);
}
};
sp.setPan = function (n, pan) {
var _local1 = this.sound_array[n];
if (pan != undefined) {
_local1.setPan(pan);
}
};
sp.start = function (n, offset, loop, vol, pan) {
var _local1 = this.sound_array[n];
if (vol > 0) {
_local1.setVolume(vol);
if (pan != undefined) {
_local1.setPan(pan);
}
}
_local1.start(offset, loop);
};
sp.stop = function (n) {
this.sound_array[n].stop();
};
sp.stopAllSounds = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 <= (_local2.sound_array.length - 1)) {
_local2.sound_array[_local1].stop();
_local1++;
}
};
delete sp;
STATUS = {};
ASBroadcaster.initialize(STATUS);
STATUS.addScore = function (n) {
GAME.score = GAME.score + n;
this.broadcastMessage("onScore", GAME.score);
};
STATUS.addFruit = function (type) {
var _local1 = type;
var n = (--GAME.levelFruit[_local1]);
this.addScore(IV.SCORE_FRUIT[_local1]);
if (GAME.levelFruit[_local1] < 0) {
GAME.levelFruit[_local1] = 0;
} else {
this.broadcastMessage("onFruit", GAME.levelFruit);
}
};
STATUS.addItem = function (type, mc) {
var _local1 = type;
switch (_local1) {
case IV.ITEM_TYPE_SPEEDUP :
GAME.sounds.start(16, 0, 1);
break;
case IV.ITEM_TYPE_WORM :
GAME.sounds.start(14, 0, 1);
break;
case IV.ITEM_TYPE_THUNDER :
GAME.sounds.start(13, 0, 1);
break;
case IV.ITEM_TYPE_MONKEY :
GAME.sounds.start(12, 0, 1);
break;
case IV.ITEM_TYPE_NINJA :
GAME.sounds.start(15, 0, 1);
}
if (GAME.levelItem[_local1] < 0) {
GAME.levelItem[_local1] = 0;
}
this.broadcastMessage("onItem", _local1, mc);
};
STATUS.addLife = function (n) {
var _local1 = n;
var _local2 = this;
GAME.life = GAME.life + _local1;
if (GAME.life >= 3) {
GAME.life = 2;
} else if (GAME.life <= 0) {
_local2.broadcastMessage("onGameOver");
} else {
if (_local1 != 0) {
_local2.broadcastMessage("onLifeChange", _local1);
}
_local2.broadcastMessage("onLife", GAME.life);
}
};
STATUS.addLevel = function (n) {
GAME.level = GAME.level + n;
this.broadcastMessage("onLevel", GAME.level);
};
STATUS.setLevel = function (lv) {
GAME.level = lv;
this.broadcastMessage("onLevel", GAME.level);
};
STATUS.init = function () {
var _local1 = this;
ServerConnection.onGameStart();
_global.GAME = {score:0, life:3, level:1, levelFruit:IV.LEVEL_FRUITS[0], jumpSpeed:3};
stopAllSounds();
GAME.sounds = new SoundMaster(1011, 22);
GAME.sounds.attachAllSound("bg", "jump", "block1", "block2", "fruit1", "fruit2", "newfruit", "clear", "die", "gameover", "ready", "chipmunk1", "monkey", "thunder", "worm", "ninja", "nut", "apple1", "chestnut1", "chestnut2", "moveout", "applegold");
GAME.sounds.setVolume(0, 50);
GAME.sounds.setVolume(6, 50);
GAME.sounds.setVolume(11, 20);
_local1.broadcastMessage("onLife", GAME.life);
_local1.broadcastMessage("onLevel", GAME.level);
_local1.broadcastMessage("onScore", GAME.score);
_local1.broadcastMessage("onFruit", GAME.levelFruit);
};
ClipClass = function () {
};
ClipClass.extend(MovieClip);
ClipClass.prototype.clipEnabled = true;
ClipClass.prototype.eatable = true;
ClipClass.prototype.passable = true;
ClipClass.prototype.collisionRadian = 6;
ClipClass.prototype.xCenter = 0;
ClipClass.prototype.yCenter = 14;
ClipClass.prototype.collisionTest = function (mc, radian) {
var _local1 = this;
var _local3 = (mc._x - (_local1._x + _local1._parent._x)) - _local1.xCenter;
var _local2 = (mc._y - (_local1._y + _local1._parent._y)) - _local1.yCenter;
var dist = ((Math.sqrt((_local3 * _local3) + (_local2 * _local2)) - _local1.collisionRadian) - radian);
if (dist <= 0) {
_local1.hit(mc);
} else {
return(false);
}
return(undefined);
};
ClipClass.prototype.hit = function (mc) {
trace("no implement");
};
ClipClass.prototype.remove = function (effect) {
var _local1 = this;
if (_local1.clipEnabled) {
_local1.clipEnabled = false;
_local1.effect_mc._visible = true;
_local1.effect_mc.gotoAndStop(effect);
_local1.gotoAndStop(_local1._totalframes);
setDelay(_local1, "removeMovieClip", 1000);
}
};
FruitClipClass = function () {
var _local1 = this;
_local1._width = _local1._width + 1;
_local1._height = _local1._height + 1;
};
FruitClipClass.extend(ClipClass);
FruitClipClass.prototype.type = 0;
FruitClipClass.prototype.setType = function (type) {
this.type = type;
};
FruitClipClass.prototype.hit = function (mc) {
this.eat();
GAME.sounds.start(4, 0, 1);
};
FruitClipClass.prototype.eat = function (mc) {
var _local1 = this;
if (_local1.clipEnabled) {
STATUS.addFruit(_local1.type);
_local1.remove("eat");
}
};
ItemClipClass = function () {
var _local1 = this;
_local1._width = _local1._width + 1;
_local1._height = _local1._height + 1;
};
ItemClipClass.extend(ClipClass);
ItemClipClass.prototype.type = 0;
ItemClipClass.prototype.setType = function (type) {
this.type = type;
};
ItemClipClass.prototype.hit = function (mc) {
var _local1 = this;
STATUS.addItem(_local1.type, mc);
switch (_local1.type) {
case IV.ITEM_TYPE_SPEEDUP :
_local1.remove("bad");
return;
case IV.ITEM_TYPE_WORM :
_local1._parent.clearFruits(false);
_local1.remove("bad");
return;
case IV.ITEM_TYPE_THUNDER :
_local1.remove("bad");
return;
case IV.ITEM_TYPE_MONKEY :
_local1._parent.clearFruits(true);
_local1.remove("good");
return;
case IV.ITEM_TYPE_NINJA :
_local1.remove("good");
}
};
BlockClipClass = function () {
var _local1 = this;
_local1.setTilt();
_local1._width = _local1._width + 1;
_local1._height = _local1._height + 1;
};
BlockClipClass.extend(ClipClass);
BlockClipClass.prototype.type = 7;
BlockClipClass.prototype.passable = false;
BlockClipClass.prototype.halfHeight = 8;
BlockClipClass.prototype.halfWidth = 34;
BlockClipClass.prototype.yCenter = 12;
BlockClipClass.prototype.setTilt = function () {
var _local1 = this;
_local1.tilt = _local1.halfHeight / _local1.halfWidth;
};
BlockClipClass.prototype.collisionTest = function (mc, radian) {
var _local1 = this;
var _local2 = mc;
_local1.setPassable = function (flag) {
this.passable = flag;
};
if (!_local1.passable) {
var dx = ((_local2._x - (_local1._x + _local1._parent._x)) - _local1.xCenter);
var _local3 = (_local2._y - (_local1._y + _local1._parent._y)) - _local1.yCenter;
var tilt = (_local3 / dx);
if ((Math.abs(dx) <= (radian + _local1.halfWidth)) && (Math.abs(_local3) <= (radian + _local1.halfHeight))) {
if (Math.abs(tilt) >= Math.abs(_local1.tilt)) {
_local1.hit(_local2, 1, -1);
if (_local1 instanceof BlockClipClass) {
GAME.sounds.start(2, 0, 1);
_local1.gotoAndPlay("vertical");
}
} else {
_local1.hit(_local2, -1, 1);
if (_local1 instanceof BlockClipClass) {
GAME.sounds.start(3, 0, 1);
_local1.gotoAndPlay("horizental");
}
}
_local1.passable = true;
setDelay(_local1, "setPassable", 500, false);
} else {
return(false);
}
}
return(undefined);
};
BlockClipClass.prototype.hit = function (mc, rx, ry) {
mc.reDir(rx, ry);
};
AdvancedFruitClip = function () {
this.setTilt();
};
AdvancedFruitClip.extend(FruitClipClass);
AdvancedFruitClip.prototype.type = 6;
AdvancedFruitClip.prototype.passable = false;
AdvancedFruitClip.prototype.halfHeight = collisionRadian;
AdvancedFruitClip.prototype.halfWidth = collisionRadian;
AdvancedFruitClip.prototype.hitCount = 0;
AdvancedFruitClip.prototype.eattingCount = 3;
AdvancedFruitClip.prototype.setTilt = BlockClipClass.prototype.setTilt;
AdvancedFruitClip.prototype.collisionTest = BlockClipClass.prototype.collisionTest;
AdvancedFruitClip.prototype.hit = function (mc, rx, ry) {
var _local1 = this;
_local1.hitCount++;
if (_local1.hitCount >= _local1.eattingCount) {
_local1.eat();
if (_local1.type != IV.TYPE_FRUIT_CLEAR) {
GAME.sounds.start(4, 0, 1);
} else {
onStageClear();
}
} else {
mc.reDir(rx, ry);
_local1.gotoAndStop(_local1.hitCount + 1);
switch (_local1.type) {
case 3 :
GAME.sounds.start(17, 0, 1);
return;
case 4 :
if (_local1.hitCount >= 2) {
GAME.sounds.start(19, 0, 1);
} else {
GAME.sounds.start(18, 0, 1);
}
return;
case 5 :
if (_local1.hitCount >= 2) {
GAME.sounds.start(21, 0, 1);
} else {
GAME.sounds.start(17, 0, 1);
}
}
}
};
AdvancedFruitClip.prototype.setCount = function (n) {
this.eattingCount = n;
};
AdvancedFruitClip.prototype.setHitCount = function (n) {
var _local1 = this;
_local1.hitCount = n;
_local1.gotoAndStop(_local1.hitCount + 1);
};
RopeClass = function () {
this.fruitsTotal = 0;
this.clipDepth = 1;
};
RopeClass.extend(MovieClip);
RopeClass.prototype.getEnableFruitType = function () {
var _local2 = [];
var _local1 = 0;
while (_local1 < GAME.levelFruit.length) {
if (GAME.levelFruit[_local1] > 0) {
_local2.push(_local1);
}
_local1++;
}
var _local3 = _local2.length;
if (_local3 > 0) {
return(_local2[random(_local2.length)]);
}
return(IV.TYPE_FRUIT_CLEAR);
};
RopeClass.prototype.getEnableItemType = function () {
var _local2 = [];
var _local1 = 0;
while (_local1 < GAME.levelItem.length) {
if (GAME.levelItem[_local1] > 0) {
_local2.push(_local1);
}
_local1++;
}
var _local3 = _local2.length;
if (_local3 > 0) {
return(_local2[random(_local2.length)]);
}
return(-1);
};
RopeClass.prototype.getNextDepth = function () {
return(this.clipDepth++);
};
RopeClass.prototype.addFruit = function () {
var _local1 = this.getEnableFruitType();
if (_local1 != -1) {
var idName = (("fruit" + _local1) + "_symbol");
var _local3 = this.getNextDepth();
var mcName = ("clip" + _local3);
var _local2 = this.attachMovie(idName, mcName, _local3);
if (_local1 == 3) {
_local2.setCount(2);
}
if ((GAME.level <= 10) && (_local1 == 5)) {
if (GAME.level > 5) {
_local2.setHitCount(1);
} else {
_local2.setHitCount(2);
}
}
_local2.setType(_local1);
return(_local2);
}
return(false);
};
RopeClass.prototype.addBlock = function () {
var _local3 = "block_symbol";
var _local1 = this.getNextDepth();
var _local2 = "clip" + _local1;
var a_mc = this.attachMovie(_local3, _local2, _local1);
return(a_mc);
};
RopeClass.prototype.addItem = function () {
var _local3 = this;
var _local1 = _local3.getEnableItemType();
if (_local1 != -1) {
var idName = (("item" + _local1) + "_symbol");
var _local2 = _local3.getNextDepth();
var mcName = ("clip" + _local2);
var a_mc = _local3.attachMovie(idName, mcName, _local2);
a_mc.setType(_local1);
return(a_mc);
}
return(_local3.addFruit());
};
RopeClass.prototype.addClip = function () {
var _local3 = (IV.CLIP_RATIO[0] + IV.CLIP_RATIO[1]) + IV.CLIP_RATIO[2];
var _local2 = IV.CLIP_RATIO[0] / _local3;
var rBlock = (IV.CLIP_RATIO[1] / _local3);
var _local1 = Math.random();
if (_local1 <= _local2) {
return(this.addFruit());
}
_local1 = _local1 - _local2;
if (_local1 <= rBlock) {
return(this.addBlock());
}
return(this.addItem());
};
RopeClass.prototype.initClips = function () {
var _local2 = this;
_local2.clearClips();
var _local1 = 0;
while (_local1 < IV.FRUITS_PER_ROPE) {
a_mc = _local2.addClip();
a_mc._x = IV.FRUITS_WIDTH_SPACE * (_local1 + 1);
_local1++;
}
};
RopeClass.prototype.prepareClips = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < IV.FRUITS_PER_ROPE) {
a_mc = _local2.addClip();
a_mc._x = IV.STAGE_WIDTH + (IV.FRUITS_WIDTH_SPACE * _local1);
_local1++;
}
};
RopeClass.prototype.clearFruits = function (eat) {
var _local1 = this;
var _local3 = eat;
var _local2 = 0;
for (var i in _local1) {
if (_local1[i] instanceof ClipClass) {
_local2++;
if (_local2 >= 3) {
_local2++;
}
if ((_local1[i] instanceof FruitClipClass) && (_local1[i].type != IV.TYPE_FRUIT_CLEAR)) {
if (_local3) {
setDelay(_local1[i], "eat", _local2 * 300);
} else {
setDelay(_local1[i], "remove", _local2 * 300, "lost");
}
}
if (_local3 && ((_local1[i] instanceof BlockClipClass) || (_local1[i] instanceof ItemClipClass))) {
setDelay(_local1[i], "remove", _local2 * 300, "lost");
}
}
}
if (_local3) {
_local1.showMonkey();
} else {
_local1.showWorm();
}
};
RopeClass.prototype.clearClips = function () {
var _local1 = this;
for (var _local2 in _local1) {
if (_local1[_local2] instanceof ClipClass) {
_local1[_local2].removeMovieClip();
}
}
};
RopeClass.prototype.showMonkey = function () {
var _local1 = this;
if (!_local1.monkey_mc._visible) {
_local1.monkey_mc._visible = true;
_local1.monkey_mc.gotoAndPlay(1);
}
};
RopeClass.prototype.showWorm = function () {
var _local1 = this;
if (!_local1.worm_mc._visible) {
_local1.worm_mc._visible = true;
_local1.worm_mc.gotoAndPlay(1);
}
};
Object.registerClass("fruit0_symbol", FruitClipClass);
Object.registerClass("fruit1_symbol", FruitClipClass);
Object.registerClass("fruit2_symbol", FruitClipClass);
Object.registerClass("fruit3_symbol", AdvancedFruitClip);
Object.registerClass("fruit4_symbol", AdvancedFruitClip);
Object.registerClass("fruit5_symbol", AdvancedFruitClip);
Object.registerClass("block_symbol", BlockClipClass);
Object.registerClass("rope_symbol", RopeClass);
Object.registerClass("item0_symbol", ItemClipClass);
Object.registerClass("item1_symbol", ItemClipClass);
Object.registerClass("item2_symbol", ItemClipClass);
Object.registerClass("item3_symbol", ItemClipClass);
Object.registerClass("item4_symbol", ItemClipClass);
#endinitclip
if (null) {
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 15
this.init();
Symbol 159 MovieClip Frame 23
stop();
Symbol 161 MovieClip Frame 1
_visible = false;
stop();
Symbol 164 MovieClip Frame 1
_visible = false;
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 16
_parent.shadow_mc._visible = true;
Symbol 169 MovieClip Frame 20
_parent.panda_mc._visible = true;
Symbol 169 MovieClip Frame 26
stop();
Symbol 182 MovieClip Frame 20
stop();
Symbol 184 MovieClip Frame 1
stop();
_visible = false;
Symbol 203 MovieClip Frame 1
stop();
Instance of Symbol 182 MovieClip "trampoline_mc" in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(20);
}
Instance of Symbol 206 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (5);
}
Symbol 214 MovieClip Frame 29
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 10
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
_parent.showLevel();
Symbol 247 MovieClip Frame 11
_parent.showFruits();
Symbol 247 MovieClip Frame 15
_parent.showItem();
stop();
Symbol 250 Button
on (release) {
_parent._parent.STATUS.init();
_parent._parent.initStage();
}
Symbol 252 Button
on (release) {
_parent._parent.gotoAndPlay(1);
}
Symbol 255 Button
on (release) {
IV.ROOT.gotoAndPlay(1);
}
Symbol 256 MovieClip Frame 20
ServerConnection.onGameOver();
stop();
Symbol 258 MovieClip Frame 1
isOpen = true;
Symbol 258 MovieClip Frame 20
if (GAME.life <= 0) {
gotoAndPlay (267);
} else if (GAME.level <= 1) {
gotoAndPlay (151);
} else if (GAME.level > IV.LAST_LEVEL) {
gotoAndPlay (291);
} else {
showClear();
}
Symbol 258 MovieClip Frame 266
gotoAndPlay (314);
Symbol 258 MovieClip Frame 267
stop();
Symbol 258 MovieClip Frame 291
stop();
Symbol 258 MovieClip Frame 314
isOpen = false;
Symbol 258 MovieClip Frame 332
stop();