Frame 1
MochiAd.showPreloaderAd({id:"ec4d86c18268ed8c", res:"550x400"});
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("011d87af", this, 10301, true);
Frame 23
stop();
Frame 34
stop();
Frame 35
stopAllSounds();
Frame 154
gotoAndPlay ("stage1");
Frame 155
var intro_sound = new Sound();
intro_sound.attachSound("intro_bgsound");
intro_sound.start(0, 999);
Frame 156
function reset() {
var _local1 = _root;
if (lives == 0) {
_local1.gotoAndStop("gameover");
trace("gameover123");
this.gotoAndStop(3);
stop();
}
$i = 0;
while ($i < 20) {
_local1.terrain["monster" + $i]._x = _local1.terrain["monster" + $i].$start_x;
_local1.terrain2["monster" + $i]._x = _local1.terrain2["monster" + $i].$start_x;
_local1.terrain["monster" + $i]._y = _local1.terrain["monster" + $i].$start_y;
_local1.terrain2["monster" + $i]._y = _local1.terrain2["monster" + $i].$start_y;
_local1.terrain["monster" + $i].$gone = false;
_local1.terrain["monster" + $i].$velocity = 10;
_local1.terrain["monster" + $i].$count = 0;
_local1.terrain2["monster" + $i].$gone = false;
_local1.terrain2["monster" + $i].$velocity = 10;
_local1.terrain2["monster" + $i].$count = 0;
$i++;
}
if (value == half) {
tellTarget (_local1.terrain) {
gotoAndStop(_local1.up_to);
};
_local1.terrain._x = _local1.terrain.$x_start;
tellTarget (_local1.terrain.ledges) {
gotoAndStop(_local1.up_to);
};
tellTarget (_local1.terrain2) {
gotoAndStop(_local1.up_to);
};
tellTarget (_local1.terrain2.ledges2) {
gotoAndStop(_local1.up_to);
};
_local1.terrain2._x = _local1.terrain2.$x_start;
_local1.$frame = _local1.up_to + 1;
}
tellTarget (_local1.hero) {
gotoAndPlay ("standing_right");
};
_local1.hero.$scrolling = false;
_local1.hero._x = 60;
_local1.hero._y = 230;
_local1.$acorn_hit_by_monster = false;
_local1.hero.$fallen_down_pit = false;
_local1.hero.$started_die1 = false;
_local1.hero.$falling = false;
_local1.hero.$jump = false;
_local1.hero.$fall = false;
_local1.hero.$gravity = 0;
_local1.$frame = _local1.up_to + 1;
}
function Timer() {
GameTimer = 150;
GameTimer--;
if (GameTimer == 0) {
_root.GameTimer = 0;
trace("times up");
clearInterval(id1);
_root.over.gotoAndPlay("times_up");
}
id1 = setInterval(doCount, 1000);
}
_root.up_to = 1;
$terrain_to_edit = "terrain2";
_root.$frame = 2;
gamescore = 0;
lives = 3;
level = 1;
world = 1;
score = 0;
counter = 0;
_global.points = 10;
jump = new Sound();
jump.attachSound("jump");
die1 = new Sound();
die1.attachSound("dead");
var carabao_dead = new Sound();
carabao_dead.attachSound("dead");
var coconut_snd = new Sound();
coconut_snd.attachSound("coconut_pts");
$jump_height = 50;
$x_pos = 480;
scroll_depth_counter = 10;
$draw_next_strip = 1;
$character_speed = 3;
$monster1_speed = 2;
_root.bullet.$be_still = true;
GameTimer = 120;
doCount = function () {
GameTimer--;
if (GameTimer == 0) {
_root.GameTimer = 0;
trace("times up");
clearInterval(id1);
_root.over.gotoAndPlay("times_up");
}
};
id1 = setInterval(doCount, 1000);
stop();
Instance of Symbol 198 MovieClip "terrain2" in Frame 156
onClipEvent (load) {
$x_start = this._x;
}
onClipEvent (enterFrame) {
if ((_root.hero._x >= 180) && (!_root.$end_of_level)) {
this._x = this._x - _root.hero.$right_speed;
}
if ((this._x + 240) <= 0) {
this._x = 720;
tellTarget (this) {
gotoAndStop(_root.$frame);
};
tellTarget (_root.terrain2.ledges2) {
gotoAndStop(_root.$frame);
};
_root.$frame++;
}
}
Instance of Symbol 218 MovieClip "terrain" in Frame 156
onClipEvent (load) {
$x_start = this._x;
}
onClipEvent (enterFrame) {
if ((_root.hero._x >= 180) && (!_root.$end_of_level)) {
this._x = this._x - _root.hero.$right_speed;
}
if ((this._x + 240) <= 0) {
this._x = 720;
tellTarget (this) {
gotoAndStop(_root.$frame);
};
tellTarget (_root.terrain.ledges) {
gotoAndStop(_root.$frame);
};
}
}
Instance of Symbol 221 MovieClip "tablescore" in Frame 156
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
mushroom_counter = _root.mushroom_counter;
lives = _root.lives;
level = (_root.world + " : ") + _root.level;
score = _root.score;
if (lives == 0) {
_root.gotoAndStop("gameover");
this.removeMovieClip();
}
}
Instance of Symbol 277 MovieClip "hero" in Frame 156
onClipEvent (load) {
function stopFall() {
$fall = false;
$falling = false;
$gravity = 0;
$jump = false;
$check_right_side = false;
$check_left_side = false;
$falling = false;
$on_ground = true;
if (!Key.isDown(32)) {
$can_press = true;
}
}
$can_press = true;
num = 1000;
$can_fire = true;
$velocity_start = 10;
$velocity = $velocity_start;
$facing = "right";
}
onClipEvent (enterFrame) {
if (($can_fire && (!$fallen_down_pit)) && (!_root.$acorn_hit_by_monster)) {
if (Key.isDown(90)) {
$can_fire = false;
_root.swish.start();
num++;
_root.bullet.duplicateMovieClip("acorn", num);
_root.acorn._x = this._x;
_root.acorn._y = this._y;
_root.acorn.$facing = $facing;
}
}
if (this._y >= 330) {
$right_speed = 0;
tellTarget (this) {
gotoAndPlay ("Die 2");
};
if (!$started_die1) {
$started_die1 = true;
_root.die1.start();
}
$fallen_down_pit = true;
}
if (((!$ducking) && (!_root.$acorn_hit_by_monster)) && (!$fallen_down_pit)) {
if ((!$jump) && (!$on_floating)) {
$fall = true;
}
if (Key.isDown(39)) {
$facing = "right";
$move_right = true;
if ($right_speed <= 4) {
$right_speed = $right_speed + 0.5;
}
}
if (!Key.isDown(39)) {
if ($on_ground) {
$right_speed = $right_speed - 0.5;
}
$right_speed = $right_speed - 0.05;
if ($right_speed <= 0) {
$right_speed = 0;
}
}
if (this.hitTest(_root.terrain)) {
if ((_root.terrain.ledges.hitTest(this._x + 18, (this._y + (this._height / 2)) - 8, true) || (_root.terrain.ledges.hitTest(this._x + 18, this._y, true))) || (_root.terrain.ledges.hitTest(this._x + 18, this._y - (this._height / 2), true))) {
$move_right = false;
$right_speed = 0;
if (($facing == "right") && ($on_ground)) {
while (_root.terrain.ledges.hitTest(this._x + 17, (this._y + (this._height / 2)) - 8, true)) {
this._x--;
}
}
}
}
if (this.hitTest(_root.terrain2)) {
if ((_root.terrain2.ledges2.hitTest(this._x + 18, (this._y + (this._height / 2)) - 8, true) || (_root.terrain2.ledges2.hitTest(this._x + 18, this._y, true))) || (_root.terrain2.ledges2.hitTest(this._x + 18, this._y - (this._height / 2), true))) {
$move_right = false;
$right_speed = 0;
if (($facing == "right") && ($on_ground)) {
while (_root.terrain2.ledges2.hitTest(this._x + 17, (this._y + (this._height / 2)) - 8, true)) {
this._x--;
}
}
}
}
if (Key.isDown(37) && ($left_speed >= -4)) {
$facing = "left";
$left_speed = $left_speed - 0.2;
}
if (!Key.isDown(37)) {
if ($on_ground) {
$left_speed = $left_speed + 0.5;
}
$left_speed = $left_speed + 0.05;
if ($left_speed >= 0) {
$left_speed = 0;
}
}
if (Key.isDown(37) && ($left_speed >= -4)) {
$facing = "left";
$left_speed = $left_speed - 0.2;
}
if (!Key.isDown(37)) {
if ($on_ground) {
$left_speed = $left_speed + 0.5;
}
$left_speed = $left_speed + 0.05;
if ($left_speed >= 0) {
$left_speed = 0;
}
}
if (this.hitTest(_root.terrain)) {
if ((_root.terrain.ledges.hitTest(this._x - 18, (this._y + (this._height / 2)) - 8, true) || (_root.terrain.ledges.hitTest(this._x - 18, this._y, true))) || (_root.terrain.ledges.hitTest(this._x - 18, this._y - (this._height / 2), true))) {
$move_left = false;
$left_speed = 0;
if (($facing == "left") && ($on_ground)) {
while (_root.terrain.ledges.hitTest(this._x - 17, (this._y + (this._height / 2)) - 8, true)) {
this._x++;
}
}
}
}
if (this.hitTest(_root.terrain2)) {
if ((_root.terrain2.ledges2.hitTest(this._x - 18, (this._y + (this._height / 2)) - 8, true) || (_root.terrain2.ledges2.hitTest(this._x - 18, this._y, true))) || (_root.terrain2.ledges2.hitTest(this._x - 18, this._y - (this._height / 2), true))) {
$move_left = false;
$left_speed = 0;
if (($facing == "left") && ($on_ground)) {
while (_root.terrain2.ledges2.hitTest(this._x - 17, (this._y + (this._height / 2)) - 8, true)) {
this._x++;
}
}
}
}
if (((Key.isDown(32) && (!$jump)) && (!$falling)) && ($can_press)) {
$can_press = false;
_root.jump.Start();
$fall = false;
$jump = true;
var mysound = new Sound();
mysound.attachSound("jump_carabao");
mysound.start();
$on_ground = false;
}
if ($jump) {
if (Key.isDown(32)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.4;
}
if (!Key.isDown(32)) {
this._y = this._y - $velocity;
$velocity = $velocity - 1;
}
if ($velocity <= 0) {
$gravity = 0;
$fall = true;
$jump = false;
$velocity = $velocity_start;
}
}
if ((this._x >= 180) && (!_root.$end_of_level)) {
$move_right = false;
}
if (this.hitTest(_root.terrain)) {
if (_root.terrain.ledges.hitTest(this._x - 10, this._y + 30, true)) {
stopFall();
while (_root.terrain.ledges.hitTest(this._x - 10, this._y + 29, true)) {
this._y--;
}
}
if (_root.terrain.ledges.hitTest(this._x + 10, this._y + 30, true)) {
stopFall();
while (_root.terrain.ledges.hitTest(this._x + 10, this._y + 29, true)) {
this._y--;
}
}
}
if (this.hitTest(_root.terrain2)) {
if (_root.terrain2.ledges2.hitTest(this._x - 10, this._y + 30, true)) {
stopFall();
while (_root.terrain2.ledges2.hitTest(this._x - 10, this._y + 29, true)) {
this._y--;
}
}
if (_root.terrain2.ledges2.hitTest(this._x + 10, this._y + 30, true)) {
stopFall();
while (_root.terrain2.ledges2.hitTest(this._x + 10, this._y + 29, true)) {
this._y--;
}
}
}
if ($fall == true) {
this._y = this._y + $gravity;
$gravity = $gravity + 0.7;
$falling = true;
$make_noise = true;
if ($gravity >= 11) {
$gravity = 11;
}
}
if (($facing == "right") && ($move_right)) {
this._x = this._x + $right_speed;
}
if (($facing == "left") && (this._x >= 30)) {
this._x = this._x + $left_speed;
}
if (((!$jump) && ($falling)) && ($facing == "right")) {
tellTarget (this) {
gotoAndPlay ("fall right");
};
}
if (((((!Key.isDown(40)) && (!$jump)) && (!$falling)) && ($facing == "right")) && (!Key.isDown(39))) {
tellTarget (this) {
gotoAndPlay ("standing_right");
};
}
if ((((!$jump) && (!$falling)) && ($facing == "right")) && (Key.isDown(39))) {
tellTarget (this) {
gotoAndPlay ("walk_right");
};
}
if ($jump && ($facing == "right")) {
tellTarget (this) {
gotoAndPlay ("jump right");
};
}
if ($jump && ($facing == "left")) {
tellTarget (this) {
gotoAndPlay ("jump left");
};
}
if ((((!$jump) && (!$falling)) && ($facing == "left")) && (Key.isDown(37))) {
tellTarget (this) {
gotoAndPlay ("walk_left");
};
}
if (((((!Key.isDown(40)) && (!$jump)) && (!$falling)) && ($facing == "left")) && (!Key.isDown(37))) {
tellTarget (this) {
gotoAndStop ("standing_left");
};
}
if (($jump && ($facing == "left")) && (Key.isDown(37))) {
tellTarget (this) {
gotoAndPlay ("jump left");
};
}
if ($falling && ($facing == "left")) {
tellTarget (this) {
gotoAndPlay ("fall left");
};
}
$on_floating = false;
}
}
Instance of Symbol 286 MovieClip in Frame 156
onClipEvent (enterFrame) {
this._xscale = _root.GameTimer;
if (_root.GameTimer <= 0) {
_root.GameTimer = 0;
}
}
Frame 158
stop();
stopAllSounds();
field0.onSetFocus = function () {
name0 = "";
};
field1.onSetFocus = function () {
name1 = "";
};
field2.onSetFocus = function () {
name2 = "";
};
Frame 159
stop();
stopAllSounds();
loadMovieNum ("http://halohalo.ph/chaikofi/chaiGame/CP002.swf", 1);
Symbol 303 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
//var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
static function showTimedAd(options) {
//var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}
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 _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = _parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!_isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
_allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb) {
cb = parseInt(cb);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = _loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = _loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = _parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = getVersion();
var clip = _local1.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
if (clip._url.indexOf("http") != 0) {
_local1.no_page = true;
}
var server = _local2.server;
delete _local2.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}
static function unload(clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._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 xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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 _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}
}
Symbol 38 Button
on (release) {
gotoAndStop (2);
_root.soundstatus = "off";
}
Symbol 40 Button
on (release) {
gotoAndStop (1);
_root.soundstatus = "on";
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Instance of Symbol 50 MovieClip in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
_root.soundstatus = "on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
maxvolume = 100;
minvolume = 0;
}
onClipEvent (enterFrame) {
if (_root.soundstatus == "on") {
step = 5;
}
if (_root.soundstatus == "off") {
step = -5;
}
maxvolume = maxvolume + step;
if (maxvolume > 100) {
maxvolume = 100;
}
if (maxvolume < 0) {
maxvolume = 0;
}
_root.mySound.setVolume(maxvolume);
_root.mySound2.setVolume(maxvolume);
_root.mySound3.setVolume(maxvolume);
_root.mySound4.setVolume(maxvolume);
_root.mySound5.setVolume(maxvolume);
}
Symbol 61 Button
on (release) {
getURL ("http://www.allfunnygames.net");
}
Symbol 80 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("instructions");
};
}
Symbol 84 Button
on (release) {
gotoAndPlay (35);
}
Symbol 94 MovieClip Frame 15
stop();
Symbol 103 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("one");
};
}
Symbol 134 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 2
stop();
close_btn.onRelease = function () {
with (_root) {
_root.instruction_display._visible = false;
_root.play_btn._visible = true;
_root.instruction_btn._visible = true;
}
};
Symbol 143 Button
on (release) {
getURL ("http://www.allfunnygames.net");
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
if (((!$dead) && (!$hit_acorn)) && ($can_move)) {
this._x = this._x - 5;
}
Symbol 158 MovieClip Frame 17
if (!$dead) {
gotoAndPlay (1);
}
Symbol 158 MovieClip Frame 39
stop();
Symbol 158 MovieClip Frame 100
$hit_acorn = false;
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
_root.gamescore = Number(_root.gamescore) + 10;
Instance of Symbol 167 MovieClip in Symbol 173 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Symbol 173 MovieClip Frame 17
gotoAndStop (1);
Symbol 198 MovieClip Frame 1
stop();
Instance of Symbol 158 MovieClip "monster1" in Symbol 198 MovieClip Frame 1
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 167 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 167 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 169 MovieClip in Symbol 198 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 20;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 173 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter = Number(_root.counter) + 1;
gotoAndPlay ("coin");
if (_root.counter > 5) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 173 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter2 = Number(_root.counter2) + 1;
gotoAndPlay ("coin");
if (_root.counter2 > 10) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 176 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 100) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -30) && ($x <= 30)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 169 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 20;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 167 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 167 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 167 MovieClip in Symbol 198 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
_root.gamescore = Number(_root.gamescore) + 10;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 198 MovieClip Frame 3
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 198 MovieClip Frame 3
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 173 MovieClip in Symbol 198 MovieClip Frame 4
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter3 = Number(_root.counter3) + 1;
gotoAndPlay ("coin");
if (_root.counter3 > 5) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 173 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
$been_hit = $been_hit + 100;
tellTarget (this) {
gotoAndPlay($been_hit);
};
}
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 173 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter4 = Number(_root.counter4) + 1;
gotoAndPlay ("coin");
if (_root.counter4 > 10) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 5
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 198 MovieClip Frame 5
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 191 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
}
}
}
}
}
Instance of Symbol 191 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
}
}
}
}
}
Instance of Symbol 191 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
}
}
}
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 184 MovieClip in Symbol 198 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 176 MovieClip in Symbol 198 MovieClip Frame 7
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 80) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -35) && ($x <= 35)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 176 MovieClip in Symbol 198 MovieClip Frame 7
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 110) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -35) && ($x <= 35)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 176 MovieClip in Symbol 198 MovieClip Frame 7
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 100) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -35) && ($x <= 35)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 192 MovieClip in Symbol 198 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
trace($x_on_main_stage);
if ($x_on_main_stage <= 460) {
_root.$end_of_level = true;
}
}
Instance of Symbol 195 MovieClip in Symbol 198 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
trace(this);
trace("collision");
_root.gotoAndStop("level2");
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 198 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Symbol 212 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Instance of Symbol 184 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
}
}
Instance of Symbol 184 MovieClip in Symbol 218 MovieClip Frame 2
onClipEvent (load) {
$been_munched = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 191 MovieClip in Symbol 218 MovieClip Frame 2
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
}
}
}
}
}
Instance of Symbol 184 MovieClip in Symbol 218 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.mouth_sensor) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 176 MovieClip in Symbol 218 MovieClip Frame 3
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 100) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -30) && ($x <= 30)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 3
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 216 MovieClip in Symbol 218 MovieClip Frame 4
onClipEvent (load) {
$velocity = 13;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if ($x_on_main_stage >= 0) {
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
_root.carabao_dead.start();
};
}
}
$running = true;
this._y = this._y - $velocity;
$velocity = $velocity - 0.3;
if ($y_on_main_stage >= 520) {
$velocity = 15.5;
tellTarget (this) {
gotoAndPlay ("Bite");
};
}
}
}
Instance of Symbol 216 MovieClip in Symbol 218 MovieClip Frame 4
onClipEvent (load) {
$velocity = 13;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if ($x_on_main_stage >= 0) {
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
_root.carabao_dead.start();
};
}
}
$running = true;
this._y = this._y - $velocity;
$velocity = $velocity - 0.3;
if ($y_on_main_stage >= 520) {
$velocity = 15.5;
tellTarget (this) {
gotoAndPlay ("Bite");
};
}
}
}
Instance of Symbol 216 MovieClip in Symbol 218 MovieClip Frame 4
onClipEvent (load) {
$velocity = 20;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if ($x_on_main_stage >= 0) {
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
_root.carabao_dead.start();
};
}
}
$running = true;
this._y = this._y - $velocity;
$velocity = $velocity - 0.3;
if ($y_on_main_stage >= 520) {
$velocity = 15.5;
tellTarget (this) {
gotoAndPlay ("Bite");
};
}
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 218 MovieClip Frame 5
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 173 MovieClip in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter6 = Number(_root.counter6) + 1;
gotoAndPlay ("coin");
if (_root.counter6 > 20) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 176 MovieClip in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 100) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -30) && ($x <= 30)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 6
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 6
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 173 MovieClip in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$been_hit = 0;
this.swapDepths("_root.hero");
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
$y_on_main_stage = pt.y;
if (!$burst) {
if (_root.hero.$jump && (this.hitTest(_root.hero._x, _root.hero._y - 25, true))) {
_root.mushroom_hit.start();
_root.hero.$fall = true;
_root.hero.$falling = true;
_root.hero.$gravity = 10;
_root.hero.$jump = false;
_root.hero.$jump_right = false;
_root.hero.$allowed_to_jump = false;
_root.hero.$velocity = _root.hero.$velocity_start;
tellTarget (this) {
_root.counter5 = Number(_root.counter5) + 1;
gotoAndPlay ("coin");
if (_root.counter5 > 20) {
gotoAndStop (1);
_root.gamescore = Number(_root.gamescore) - 10;
}
};
}
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 158 MovieClip "monster1" in Symbol 218 MovieClip Frame 6
onClipEvent (load) {
$velocity = 10;
$start_x = this._x;
$start_y = this._y;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = 0;
pt.y = 0;
this.localToGlobal(pt);
$x_on_main_stage = pt.x;
if ($x_on_main_stage <= 500) {
$can_move = true;
if ((!$dead) && (!$hit_acorn)) {
this._x--;
}
if (this.hitTest(_root.hero.hit_sensor) && (!$dead)) {
if (!$already_hit) {
$already_hit = true;
_root.$has_reset = false;
$hit_acorn = true;
_root.$acorn_hit_by_monster = true;
tellTarget (_root.hero) {
gotoAndPlay ("Die");
};
tellTarget (this) {
gotoAndPlay ("Laugh");
};
_root.carabao_dead.start();
$already_hit = false;
}
}
if ((!$dead) && (_root.acorn.$can_kill)) {
if (this.hitTest(_root.acorn)) {
$dead = true;
removeMovieClip(_root.acorn);
$hit_acorn = true;
_root.hero.$can_fire = true;
_root.bullet_hit.start();
_root.score = _root.score + 5;
tellTarget (this) {
gotoAndPlay ("Die");
};
}
}
if ($dead) {
$count++;
if (($count >= 10) && (!$gone)) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.8;
if (this._y >= 360) {
$velocity = 0;
$gone = true;
tellTarget (this) {
gotoAndPlay ("Walk");
$dead = false;
$hit_acorn = false;
};
}
}
}
}
}
Instance of Symbol 176 MovieClip in Symbol 218 MovieClip Frame 7
onClipEvent (load) {
$move_by = -1;
$moved = 0;
}
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
this._y = this._y + $move_by;
$moved++;
if ($moved == 100) {
$move_by = $move_by * -1;
$moved = 0;
}
if ((((($x >= -30) && ($x <= 30)) && ($y >= -45)) && ($y <= -35)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 41;
}
}
Instance of Symbol 184 MovieClip in Symbol 218 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero) && (!$been_munched)) {
this._visible = false;
$been_munched = true;
tellTarget (_root.hero.body.body.face) {
gotoAndPlay ("eat mushroom");
};
_root.chomp.Start();
_root.gamescore = Number(_root.gamescore) + _global.points;
_root.score = _root.score + 5;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Instance of Symbol 161 MovieClip in Symbol 218 MovieClip Frame 8
onClipEvent (enterFrame) {
pt = new Object();
pt.x = _root.hero._x;
pt.y = _root.hero._y;
this.globalToLocal(pt);
$x = pt.x;
$y = pt.y;
if ((((($x >= -50) && ($x <= 50)) && ($y >= -50)) && ($y <= -30)) && (!_root.hero.$jump)) {
_root.hero.$on_floating = true;
_root.hero.stopFall();
_root.hero.$falling = false;
_root.hero.$on_ground = true;
pt2 = new Object();
pt2.x = 0;
pt2.y = 0;
this.localToGlobal(pt2);
$y_on_main_stage = pt2.y;
_root.hero._y = $y_on_main_stage - 37;
}
}
Symbol 268 MovieClip Frame 20
gotoAndStop (1);
Symbol 272 MovieClip Frame 2
gotoAndPlay (1);
Symbol 272 MovieClip Frame 3
var drink_milk = new Sound();
drink_milk.attachSound("drink");
drink_milk.start();
Symbol 274 MovieClip Frame 10
gotoAndStop (1);
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 11
stop();
Symbol 277 MovieClip Frame 30
gotoAndPlay (1);
Symbol 277 MovieClip Frame 40
gotoAndPlay (1);
Symbol 277 MovieClip Frame 65
stop();
Symbol 277 MovieClip Frame 90
gotoAndPlay (66);
Symbol 277 MovieClip Frame 94
gotoAndPlay (91);
Symbol 277 MovieClip Frame 98
gotoAndPlay (95);
Symbol 277 MovieClip Frame 105
stop();
Instance of Symbol 265 MovieClip "body" in Symbol 277 MovieClip Frame 105
onClipEvent (load) {
$velocity = 15;
}
onClipEvent (enterFrame) {
this._y = this._y - $velocity;
$velocity = $velocity - 1;
_root.hero.$right_speed = 0;
_root.hero.$left_speed = 0;
if (this._y >= 600) {
_root.reset(_root.up_to);
}
}
Instance of Symbol 265 MovieClip "body" in Symbol 277 MovieClip Frame 110
onClipEvent (load) {
$velocity = 15;
}
onClipEvent (enterFrame) {
this._y = this._y - $velocity;
$velocity = $velocity - 0.6;
_root.hero.$scrolling = false;
if (this._y >= 360) {
_root.reset();
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 51
_root.gotoAndStop("gameover");
_root.clearInterval(GameTimer);
Symbol 300 Button
on (release) {
gotoAndPlay (1);
}