Frame 1
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
mochi.as2.MochiAd.showPreGameAd({id:"57fd286d7362e5f9", res:"800x440"});
__com_mochibot__("ef956638", this, 10301, true);
lavr = 1;
function menuChoiceOne() {
getURL ("http://www.pyrozen.com", "_blank");
}
_root.st_qual = 3;
stop();
_root.user = SharedObject.getLocal("user_RunNinjaRun2");
onEnterFrame = function () {
};
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("Pyrozen", menuChoiceOne));
this.menu = NewMenu;
Frame 3
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndPlay (4);
}
if (Key.isDown(32)) {
gotoAndPlay (4);
}
};
Frame 19
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (20);
}
};
Frame 20
if (_root.user.data.gold == undefined) {
bt_2._alpha = 25;
}
st_jump_1 = 50;
st_jump_2 = 500;
st_jump_3 = 1000;
st_slide_1 = 110;
st_slide_2 = 200;
st_slide_3 = 300;
st_slash_1 = 110;
st_slash_2 = 200;
st_slash_3 = 400;
st_time_min = 0;
st_time_sec = 0;
st_kills = 0;
st_jump = 1;
st_slide = 1;
st_slash = 1;
st_style = 1;
st_gold_tot = 0;
lvl = 1;
gold = 0;
ac_1 = 1;
ac_2 = 1;
ac_3 = 1;
ac_4 = 1;
ac_5 = 1;
ac_6 = 1;
ac_7 = 1;
ac_8 = 1;
if (_root.st_qual == 1) {
_root._quality = "low";
}
if (_root.st_qual == 2) {
_root._quality = "medium";
}
if (_root.st_qual == 3) {
_root._quality = "high";
}
bt_x_1 = bt_1._x;
bt_x_2 = bt_2._x;
bt_x_3 = bt_3._x;
bt_x_4 = bt_4._x;
bt_visible_timer = 120;
bt_1._visible = false;
bt_2._visible = false;
bt_3._visible = false;
bt_4._visible = false;
fond_sx = fond._x;
fond_sy = fond._y;
shake = 0;
stop();
onEnterFrame = function () {
if (bt_visible_timer > 0) {
bt_visible_timer = bt_visible_timer - 1;
} else {
bt_1._visible = true;
bt_2._visible = true;
bt_3._visible = true;
bt_4._visible = true;
}
if (shake_bt > 0) {
shake_bt = shake_bt - 1;
shake_side = shake_side + 1;
if (shake_side > 2) {
shake_side = 1;
}
if (shake_side == 1) {
Set(("bt_" + shake_bt_nb) + "._x", bt_x_1 + shake_bt);
} else {
Set(("bt_" + shake_bt_nb) + "._x", bt_x_1 - shake_bt);
}
} else {
shake_side = 1;
bt_1._x = bt_x_1;
bt_2._x = bt_x_2;
bt_3._x = bt_x_3;
bt_4._x = bt_x_4;
}
if (load_go == 2) {
load_go = 1;
_root.st_time_min = _root.user.data.st_time_min;
_root.st_time_sec = _root.user.data.st_time_sec;
_root.st_kills = _root.user.data.st_kills;
_root.st_jump = _root.user.data.st_jump;
_root.st_slide = _root.user.data.st_slide;
_root.st_slash = _root.user.data.st_slash;
_root.st_style = _root.user.data.st_style;
_root.st_gold_tot = _root.user.data.st_gold_tot;
_root.lvl = _root.user.data.lvl;
_root.gold = _root.user.data.gold;
_root.ac_1 = _root.user.data.ac_1;
_root.ac_2 = _root.user.data.ac_2;
_root.ac_3 = _root.user.data.ac_3;
_root.ac_4 = _root.user.data.ac_4;
_root.ac_5 = _root.user.data.ac_5;
_root.ac_6 = _root.user.data.ac_6;
_root.ac_7 = _root.user.data.ac_7;
_root.ac_8 = _root.user.data.ac_8;
open_pannel_load = 2;
_root.lvl = _root.user.data.lvl;
_root.got2go = 2;
stop();
}
if (shake > 0) {
fond._x = (fond_sx + random(shake)) - (shake / 2);
fond._y = (fond_sy + random(shake)) - (shake / 2);
shake = shake - 1;
} else {
fond._x = fond_sx;
fond._y = fond_sy;
}
if (Key.isDown(32) && (Key.isDown(65))) {
stopAllSounds();
_root.got2go = 2;
gotoAndPlay (25);
}
if (got2go == 2) {
got2go = 1;
eventt = 3;
gotoAndStop (51);
}
};
Instance of Symbol 386 MovieClip "diadd" in Frame 20
onClipEvent (load) {
boxx.gotoAndStop(Math.round(_root.lavr));
boxx2.boxx.gotoAndStop(Math.round(_root.lavr));
if (_root.lavr != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
boxx2.gotoAndStop(boxx.shade + 1);
}
Frame 25
lvl = 1;
from_intro = 2;
stop();
Frame 40
aff_timer = ((_root.st_time_min + ":") + _root.st_time_sec) + " min";
timer = 600;
stop();
onEnterFrame = function () {
if (timer > 0) {
timer = timer - 1;
} else if (_currentframe == 40) {
gotoAndStop (19);
}
};
Frame 50
onEnterFrame = function () {
};
Frame 51
tuto = 0;
tuto_1 = 1;
tuto_2 = 1;
tuto_3 = 1;
if (tuto_4 == 3) {
tuto_4 = 1;
} else {
tuto_4 = 2;
}
shake = 0;
tuto_5 = 1;
jump = 20;
speed = 0;
act = 0;
speed_cam = 0.2;
canshot = 2;
power_jump = 1;
power_slash = 1;
power_slide = _root.st_slide * 15;
wp = 1;
pwx = 0;
pwy = 0;
cnt._x = 0;
cnt._y = 0;
shot = st_jump;
slash = st_slash;
slide = 1;
slide_shot = 1;
cnt_avance = 0;
roches_nb = 1;
stars_nb = 1;
force_event = 0;
gold_collected = 0;
cnt.gotoAndStop(lvl);
fond.gotoAndStop(lvl);
_root.sliding = 0;
stop();
onEnterFrame = function () {
if (save_go == 2) {
save_go = 1;
_root.user.data.st_time_min = _root.st_time_min;
_root.user.data.st_time_sec = _root.st_time_sec;
_root.user.data.st_kills = _root.st_kills;
_root.user.data.st_jump = _root.st_jump;
_root.user.data.st_slide = _root.st_slide;
_root.user.data.st_slash = _root.st_slash;
_root.user.data.st_style = _root.st_style;
_root.user.data.st_gold_tot = _root.st_gold_tot;
_root.user.data.lvl = _root.lvl;
_root.user.data.gold = _root.gold;
_root.user.data.ac_1 = _root.ac_1;
_root.user.data.ac_2 = _root.ac_2;
_root.user.data.ac_3 = _root.ac_3;
_root.user.data.ac_4 = _root.ac_4;
_root.user.data.ac_5 = _root.ac_5;
_root.user.data.ac_6 = _root.ac_6;
_root.user.data.ac_7 = _root.ac_7;
_root.user.data.ac_8 = _root.ac_8;
}
if ((ac_1 == 1) && (_root.slide == 3)) {
ac_1 = 2;
_root.achiv_done = 1;
interr.achiv.gotoAndPlay(2);
}
if ((ac_7 == 1) && (_root.gold_collected == 100)) {
ac_7 = 2;
_root.achiv_done = 7;
interr.achiv.gotoAndPlay(2);
}
if (act == 1) {
Mouse.hide();
} else {
Mouse.show();
}
if (act == 1) {
if ((shot != 0) && (slide == 1)) {
if (Key.isDown(38)) {
if (keyreleased_38 == 2) {
keyreleased_38 = 1;
if (cnt.tyrolienne_1.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_1.boxx.hitt._visible = false;
cnt.tyrolienne_1.ninja_on = 1;
}
if (cnt.tyrolienne_2.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_2.boxx.hitt._visible = false;
cnt.tyrolienne_2.ninja_on = 1;
}
if (cnt.tyrolienne_3.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_3.boxx.hitt._visible = false;
cnt.tyrolienne_3.ninja_on = 1;
}
if (cnt.tyrolienne_4.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_4.boxx.hitt._visible = false;
cnt.tyrolienne_4.ninja_on = 1;
}
if (cnt.tyrolienne_5.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_5.boxx.hitt._visible = false;
cnt.tyrolienne_5.ninja_on = 1;
}
if (cnt.tyrolienne_6.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_6.boxx.hitt._visible = false;
cnt.tyrolienne_6.ninja_on = 1;
}
if (cnt.tyrolienne_7.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_7.boxx.hitt._visible = false;
cnt.tyrolienne_7.ninja_on = 1;
}
if (cnt.tyrolienne_8.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_8.boxx.hitt._visible = false;
cnt.tyrolienne_8.ninja_on = 1;
}
if (cnt.tyrolienne_9.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_9.boxx.hitt._visible = false;
cnt.tyrolienne_9.ninja_on = 1;
}
if (cnt.tyrolienne_10.ninja_on == 2) {
cnt.ninja._y = cnt.ninja._y - 150;
cnt.tyrolienne_10.boxx.hitt._visible = false;
cnt.tyrolienne_10.ninja_on = 1;
}
if (cnt.ninja._currentframe == 1) {
cnt.p_jump.powerx = speed;
cnt.p_jump.powery = jump;
cnt.p_jump._x = cnt.ninja._x;
cnt.p_jump._y = cnt.ninja._y;
cnt.p_jump.gotoAndStop(1);
cnt.p_jump.gotoAndStop(2);
}
snd.jump.gotoAndPlay((random(3) + 1) * 2);
shot = shot - 1;
if ((_root.st_jump == 3) && (shot == 0)) {
if (ac_8 == 1) {
ac_8 = 2;
_root.achiv_done = 8;
interr.achiv.gotoAndPlay(2);
}
}
pwy = -30 * power_jump;
if ((pwy * -1) < pwx) {
pwy = pwx + -20;
}
cnt.ninja.gotoAndStop(3);
cnt.ninja.gotoAndStop(2);
}
} else {
keyreleased_38 = 2;
}
}
if ((slash != 0) && (slide != 2)) {
if (Key.isDown(32)) {
if (keyreleased_32 == 2) {
keyreleased_32 = 1;
cnt.ninja.gotoAndStop(2);
slash = slash - 1;
if (slide != 1) {
slash = 0;
}
wich_attack = random(3) + 1;
if (wich_attack == 1) {
pwx = 20 * power_slash;
cnt.ninja.boxx.gotoAndPlay(21);
} else {
pwx = 20 * power_slash;
cnt.miree._xscale = 100 * power_slash;
cnt.miree._y = cnt.ninja._y - 75;
cnt.miree.gotoAndPlay(2);
cnt.ninja.boxx.gotoAndPlay(2);
cnt.ninja.boxx.rond.rond._rotation = 0;
}
}
} else {
keyreleased_32 = 2;
}
}
cnt._y = cnt._y - (((cnt._y - 10) - (300 - cnt.ninja._y)) * speed_cam);
cnt.ninja._x = cnt.ninja._x + (speed + pwx);
cnt.ninja._y = cnt.ninja._y + pwy;
if ((pwy < -1) || (pwy > 1)) {
pwy = pwy * 0.8;
} else {
pwy = 0;
}
if ((cnt.ninja.fall == 1) && (pwy > 0)) {
cnt.ninja._y = cnt.ninja._y + pwy;
pwy = 0;
}
if (pwx > 4) {
cnt.miree._x = cnt.ninja._x + 80;
cnt.miree._y = cnt.ninja._y - 80;
}
if (pwx > 1) {
pwx = pwx * 0.9;
} else {
pwx = 0;
}
if ((cnt.ninja.cote == 2) && (pwx > 0)) {
pwy = 0;
}
if (cnt.ninja._x > ((cnt._x * -1) + 170)) {
cnt_avance = (cnt.ninja._x - ((cnt._x * -1) + 170)) * 0.15;
} else {
cnt_avance = 0;
}
}
cnt._x = cnt._x - (speed + cnt_avance);
plan2._x = plan2._x - (speed * 0.5);
plan3._x = plan3._x - (speed * 0.25);
plan2._y = 200 + ((-cnt.ninja._y) * 0.5);
plan3._y = 0 + ((-cnt.ninja._y) * 0.25);
if (plan2._y < 0) {
plan2._y = 0;
}
if (plan3._y < 0) {
plan3._y = 0;
}
if (shake > 0) {
cnt._y = cnt._y + Math.round(random(shake) - (shake / 2));
if (act == 0) {
cnt._x = cnt._x + Math.round(random(shake) - (shake / 2));
}
shake = shake - 1;
}
if (_root.got2go == 2) {
_root.got2go = 1;
stopAllSounds();
if (force_event != 0) {
force_event = 0;
eventt = 2;
} else {
eventt = 3;
}
gotoAndPlay (50);
}
if (_root.got2go == 3) {
_root.got2go = 1;
stopAllSounds();
gotoAndStop (40);
}
};
Instance of Symbol 386 MovieClip "diadd" in Frame 51
onClipEvent (load) {
boxx.gotoAndStop(Math.round(_root.lavr));
boxx2.boxx.gotoAndStop(Math.round(_root.lavr));
if (_root.lavr != 0) {
_alpha = 100;
} else {
_alpha = 0;
}
}
onClipEvent (enterFrame) {
boxx2.gotoAndStop(boxx.shade + 1);
}
Symbol 5 MovieClip Frame 1
_root.stop();
_root.PercentLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_root.PercentLoaded != 100) {
setProperty(bar, _xscale , _root.PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 5 MovieClip Frame 2
gotoAndPlay (1);
Symbol 5 MovieClip Frame 3
_root.play();
Symbol 11 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.PercentLoaded + 1);
};
Symbol 1349 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1350 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1351 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.9.4 as2");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
onError("NotConnected");
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError("IOError");
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError(errorCode);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("NotConnected");
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://link.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static var CONNECTED = "onConnected";
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1352 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1353 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1354 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 19 Button
on (release) {
_parent.play();
}
Symbol 20 MovieClip Frame 140
stop();
Symbol 22 Button
on (keyPress "1") {
_root.lvl = _root.lvl + 1;
}
on (keyPress "2") {
_root.lvl = _root.lvl + 5;
}
on (keyPress "0") {
_root.lvl = 1;
}
Symbol 41 MovieClip Frame 67
stop();
Symbol 43 Button
on (release) {
getURL ("http://www.pyrozen.com/", "_blank");
}
on (keyPress "<Space>") {
_parent.play();
}
Symbol 48 MovieClip Frame 9
aa = random(2) + 1;
if (aa == 2) {
gotoAndPlay (1);
}
Symbol 48 MovieClip Frame 30
aa = random(2) + 1;
if (aa == 2) {
gotoAndPlay (11);
}
Instance of Symbol 48 MovieClip in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
alphaa = 50;
alphaas = (random(3) + 1) / 2;
speed = random(12) + 3;
gotoAndPlay(random(30) + 1);
timing = random(50) + 1;
}
onClipEvent (enterFrame) {
if (timing > 0) {
timing = timing - 1;
}
if (timing == 0) {
timing = timing - 1;
_visible = true;
}
if (timing == -1) {
_x = (_x + (random(7) - 3));
_y = (_y - speed);
_alpha = Math.round(alphaa);
alphaa = alphaa - alphaas;
}
}
Symbol 62 MovieClip Frame 12
stop();
Symbol 63 MovieClip Frame 1
stopAllSounds();
Symbol 63 MovieClip Frame 236
_parent.play();
Symbol 98 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 11
if (_root.fond._currentframe < 21) {
_root.fond.gotoAndPlay(2);
} else {
_root.fond.gotoAndPlay(151);
}
Symbol 108 MovieClip Frame 1
slowmotion = 0.1;
speedx = random(20) - 10;
speedy = random(20) - 10;
speedr = random(20) - 10;
_xscale = (random(100) + 50);
_yscale = (random(100) + 50);
_x = (_x + (random(50) - 25));
_y = (_y + (random(50) - 25));
_rotation = (random(360) + 1);
stop();
onEnterFrame = function () {
_x = (_x + (speedx * slowmotion));
_y = (_y + (speedy * slowmotion));
_rotation = (_rotation + (speedr * slowmotion));
speedx = speedx * (1 - (0.1 * slowmotion));
if (speedy < -0.5) {
speedy = speedy * (1 - (0.1 * slowmotion));
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * (1 + (0.1 * slowmotion));
}
speedr = speedr * (1 - (0.05 * slowmotion));
if (_parent._parent._currentframe > 100) {
slowmotion = 1;
}
};
Symbol 110 MovieClip Frame 28
gotoAndPlay (1);
Symbol 110 MovieClip Frame 165
_root.fond.perso.head.gotoAndStop(2);
Symbol 110 MovieClip Frame 170
_parent._parent.e_3.stop();
Symbol 110 MovieClip Frame 236
_root.fond.perso.head.gotoAndStop(1);
Symbol 110 MovieClip Frame 267
_parent.play();
gotoAndPlay (1);
Symbol 110 MovieClip Frame 300
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 55
boxx.gotoAndPlay(29);
Symbol 111 MovieClip Frame 80
stop();
Symbol 111 MovieClip Frame 177
_parent.e_3.play();
Symbol 111 MovieClip Frame 260
boxx.gotoAndPlay(29);
Symbol 111 MovieClip Frame 280
_root.fond.e_2.gotoAndPlay(2);
_root.fond.e_2.boxx.gotoAndPlay(2);
Symbol 111 MovieClip Frame 290
boxx.stop();
_parent.e_3.stop();
Symbol 111 MovieClip Frame 325
stop();
Instance of Symbol 111 MovieClip "e_1" in Symbol 112 MovieClip Frame 1
onClipEvent (load) {
boxx.head.gotoAndStop(2);
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 40
_root.shake = Math.round((_parent._currentframe * 20) / 300);
Symbol 130 MovieClip Frame 79
_root.shake = Math.round((_parent._currentframe * 20) / 300);
Symbol 130 MovieClip Frame 80
gotoAndPlay (2);
Symbol 130 MovieClip Frame 146
_root.fond.play();
Symbol 130 MovieClip Frame 150
_root.fond.wood.gotoAndPlay(2);
Symbol 130 MovieClip Frame 281
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 213
_root.fond.perso.head.gotoAndStop(3);
Symbol 133 MovieClip Frame 323
boxx.stop();
_root.fond.gotoAndPlay(161);
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 2
_root.shake = 30;
Symbol 138 MovieClip Frame 148
stop();
Symbol 148 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay (20);
}
Symbol 149 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay (20);
}
Symbol 150 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay (20);
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 150
gotoAndPlay (1);
Symbol 180 MovieClip Frame 1
gotoAndPlay((random(2) + 1) * 2);
Symbol 180 MovieClip Frame 3
stop();
Symbol 180 MovieClip Frame 5
stop();
Symbol 186 MovieClip Frame 1
if (_parent.shotcall == undefined) {
_parent.shotcall = 0;
}
_parent.shotcall = _parent.shotcall + 1;
if (_parent.shotcall == 5) {
_parent.shotcall = 1;
}
gotoAndPlay(_parent.shotcall * 2);
Symbol 186 MovieClip Frame 3
stop();
Symbol 186 MovieClip Frame 5
stop();
Symbol 186 MovieClip Frame 7
stop();
Symbol 186 MovieClip Frame 9
stop();
Symbol 194 MovieClip Frame 100
_root.fond.e_2.boxx.gotoAndPlay(81);
stop();
Symbol 198 MovieClip Frame 5
_parent.gotoAndStop(163);
Symbol 198 MovieClip Frame 96
_parent.gotoAndStop(164);
Symbol 198 MovieClip Frame 141
_root.fond.e_1.e_1.boxx.gotoAndPlay(268);
_root.shake = 10;
Symbol 198 MovieClip Frame 148
_parent.play();
Symbol 198 MovieClip Frame 200
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 20
stop();
Symbol 199 MovieClip Frame 21
e_1.e_3.gotoAndPlay(12);
Symbol 199 MovieClip Frame 150
stop();
Symbol 199 MovieClip Frame 160
if (shot == undefined) {
shot = 2;
}
shot = shot - 1;
if (shot == 0) {
e_1.e_1.gotoAndPlay(2);
e_1.e_1.boxx.gotoAndPlay(1);
}
gotoAndStop (151);
Symbol 199 MovieClip Frame 161
stop();
Symbol 199 MovieClip Frame 162
stop();
Symbol 199 MovieClip Frame 250
_root.eventt = 3;
_root.got2go = 2;
stop();
Symbol 204 Button
on (release) {
stopAllSounds();
fond.gotoAndPlay(21);
gotoAndStop (25);
}
on (rollOver) {
fond.gotoAndPlay(2);
shake_bt = 10;
shake_bt_nb = 1;
}
on (rollOut) {
shake_bt = 0;
shake_bt_nb = 0;
}
Symbol 209 MovieClip Frame 1
if ((_root.lvl >= 5) || (_parent.submenu == 2)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 220 MovieClip Frame 1
if ((_root.lvl >= 5) || (_parent.submenu == 2)) {
gotoAndStop (2);
} else {
stop();
}
Symbol 223 MovieClip Frame 1
if (submenu == 2) {
stop();
} else {
gotoAndPlay (2);
}
Symbol 223 MovieClip Frame 2
aa = 20;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 223 MovieClip Frame 120
stop();
Symbol 226 Button
on (release) {
if (_root.user.data.gold != undefined) {
_root.load_go = 2;
}
}
on (rollOver) {
fond.gotoAndPlay(2);
shake_bt = 10;
shake_bt_nb = 2;
}
on (rollOut) {
shake_bt = 0;
shake_bt_nb = 0;
}
Symbol 229 Button
on (release) {
getURL ("http://www.gamesfree.ca/", "_blank");
}
on (rollOver) {
fond.gotoAndPlay(2);
shake_bt = 10;
shake_bt_nb = 4;
}
on (rollOut) {
shake_bt = 0;
shake_bt_nb = 0;
}
Symbol 232 MovieClip Frame 1
stopAllSounds();
Symbol 232 MovieClip Frame 3
stop();
Symbol 383 MovieClip Frame 1
lavr_link = "http://www.gamesfree.ca/";
shade = 0;
Symbol 383 MovieClip Frame 2
lavr_link = "http://www.andkon.com";
shade = 2;
Symbol 383 MovieClip Frame 3
lavr_link = "http://www.SolidGames.com";
shade = 0;
Symbol 383 MovieClip Frame 4
lavr_link = "http://www.girldressupgames.biz";
shade = 1;
Symbol 383 MovieClip Frame 5
lavr_link = "http://www.yepi.com";
shade = 0;
Symbol 383 MovieClip Frame 6
lavr_link = "http://www.bubblebox.com";
shade = 1;
Symbol 383 MovieClip Frame 7
lavr_link = "http://www.bunnygames.com";
shade = 1;
Symbol 383 MovieClip Frame 8
lavr_link = "http://www.dailyfreegames.com";
shade = 1;
Symbol 383 MovieClip Frame 9
lavr_link = "http://www.directgamez.com";
shade = 2;
Symbol 383 MovieClip Frame 10
lavr_link = "http://www.2flashgames.com";
shade = 2;
Symbol 383 MovieClip Frame 11
lavr_link = "http://www.flashninjaclan.com";
shade = 1;
Symbol 383 MovieClip Frame 12
lavr_link = "http://www.dailyaddictinggames.com/";
shade = 1;
Symbol 383 MovieClip Frame 13
lavr_link = "http://www.funny-games.biz";
shade = 1;
Symbol 383 MovieClip Frame 14
lavr_link = "http://www.gameitnow.com";
shade = 2;
Symbol 383 MovieClip Frame 15
lavr_link = "http://www.games1.com";
shade = 0;
Symbol 383 MovieClip Frame 16
lavr_link = "http://www.onjogos.com.br";
shade = 1;
Symbol 383 MovieClip Frame 17
lavr_link = "http://www.gamesfreak.net";
shade = 2;
Symbol 383 MovieClip Frame 18
lavr_link = "http://www.maxi-juegos.com";
shade = 1;
Symbol 383 MovieClip Frame 19
lavr_link = "http://www.jarkey.net";
shade = 2;
Symbol 383 MovieClip Frame 20
lavr_link = "http://www.gam123bee.com/";
shade = 1;
Symbol 383 MovieClip Frame 21
lavr_link = "http://www.keepbusy.net";
shade = 1;
Symbol 383 MovieClip Frame 22
lavr_link = "http://www.microjogos.com";
shade = 1;
Symbol 383 MovieClip Frame 23
lavr_link = "http://www.minijuegos.com";
shade = 2;
Symbol 383 MovieClip Frame 24
lavr_link = "http://www.oyunskor.com/";
shade = 1;
Symbol 383 MovieClip Frame 25
lavr_link = "http://www.mostfungames.com";
shade = 2;
Symbol 383 MovieClip Frame 26
lavr_link = "http://www.gameshot.org";
shade = 1;
Symbol 383 MovieClip Frame 27
lavr_link = "http://www.online-games-zone.com/";
shade = 2;
Symbol 383 MovieClip Frame 28
lavr_link = "http://www.puffgames.com";
shade = 2;
Symbol 383 MovieClip Frame 29
lavr_link = "http://www.spele.nl";
shade = 1;
Symbol 383 MovieClip Frame 30
lavr_link = "http://www.t45ol.com";
shade = 2;
Symbol 383 MovieClip Frame 31
lavr_link = "http://www.thegamesonline.com/";
shade = 1;
Symbol 383 MovieClip Frame 32
lavr_link = "http://www.ultimatearcade.com";
shade = 1;
Symbol 383 MovieClip Frame 33
lavr_link = "http://www.girlgames4u.com/";
shade = 1;
Symbol 383 MovieClip Frame 34
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 383 MovieClip Frame 35
lavr_link = "http://www.beer-games.net";
shade = 0;
Symbol 383 MovieClip Frame 36
lavr_link = "http://www.jeuxvideo-flash.com/";
shade = 0;
Symbol 383 MovieClip Frame 37
lavr_link = "http://www.flashgames.it/";
shade = 1;
Symbol 383 MovieClip Frame 38
lavr_link = "http://www.gamesgirl.ca/";
shade = 1;
Symbol 383 MovieClip Frame 39
lavr_link = "http://www.hallpass.com/";
shade = 2;
Symbol 383 MovieClip Frame 40
lavr_link = "http://www.gamegecko.com/";
shade = 0;
Symbol 383 MovieClip Frame 41
lavr_link = "http://www.benz.be";
shade = 2;
Symbol 383 MovieClip Frame 42
lavr_link = "http://www.net-games.co.il/";
shade = 1;
Symbol 383 MovieClip Frame 43
lavr_link = "http://www.bgames.com";
shade = 1;
Symbol 383 MovieClip Frame 44
lavr_link = "http://www.pinkyarcade.com/";
shade = 1;
Symbol 383 MovieClip Frame 45
lavr_link = "http://jayisgames.com/";
shade = 0;
Symbol 383 MovieClip Frame 46
lavr_link = "http://www.twizl.com/";
shade = 1;
Symbol 383 MovieClip Frame 47
lavr_link = "http://www.a10.com/";
shade = 1;
Symbol 383 MovieClip Frame 48
lavr_link = "http://www.bonniegames.com/";
shade = 1;
Symbol 383 MovieClip Frame 49
lavr_link = "http://www.ug2.com/";
shade = 0;
Symbol 383 MovieClip Frame 50
lavr_link = "http://www.agame.com";
shade = 1;
Symbol 383 MovieClip Frame 51
lavr_link = "http://www.gamesclub.com/";
shade = 1;
Symbol 383 MovieClip Frame 52
lavr_link = "http://www.killhours.com/";
shade = 1;
Symbol 383 MovieClip Frame 53
lavr_link = "http://www.flasharcadegamessite.com/";
shade = 1;
Symbol 383 MovieClip Frame 54
lavr_link = "http://www.roundgames.com/";
shade = 2;
Symbol 383 MovieClip Frame 55
lavr_link = "http://www.arcadegangsta.com/";
shade = 1;
Symbol 383 MovieClip Frame 56
lavr_link = "http://www.bored.com/";
shade = 0;
Symbol 383 MovieClip Frame 57
lavr_link = "http://www.flash-games.net/";
shade = 1;
Symbol 383 MovieClip Frame 58
lavr_link = "http://www.flash-game.net/";
shade = 1;
Symbol 383 MovieClip Frame 59
lavr_link = "http://www.kingofgames.net";
shade = 1;
Symbol 383 MovieClip Frame 60
lavr_link = "http://www.playhub.com/";
shade = 0;
Symbol 383 MovieClip Frame 61
lavr_link = "http://www.123spill.no/";
shade = 1;
Symbol 383 MovieClip Frame 62
lavr_link = "http://www.dailygames.com/";
shade = 1;
Symbol 383 MovieClip Frame 63
lavr_link = "http://www.octogames.com/";
shade = 2;
Symbol 383 MovieClip Frame 64
lavr_link = "http://www.ugotgames.com/";
shade = 1;
Symbol 383 MovieClip Frame 65
lavr_link = "http://www.fupa.com/";
shade = 1;
Symbol 383 MovieClip Frame 66
lavr_link = "http://www.kibagames.com/";
shade = 0;
Symbol 383 MovieClip Frame 67
lavr_link = "http://www.kraloyun.com/";
shade = 0;
Symbol 383 MovieClip Frame 68
lavr_link = "http://www.spielaffe.de/";
shade = 0;
Symbol 383 MovieClip Frame 69
lavr_link = "http://www.39games.com";
shade = 2;
Symbol 383 MovieClip Frame 70
lavr_link = "http://www.bijuegos.com";
shade = 0;
Symbol 383 MovieClip Frame 71
lavr_link = "http://www.mofunzone.com";
shade = 2;
Symbol 383 MovieClip Frame 72
lavr_link = "http://www.freegamespy.com/";
shade = 2;
Symbol 383 MovieClip Frame 73
lavr_link = "http://www.jogos10.com";
shade = 0;
Symbol 383 MovieClip Frame 74
lavr_link = "http://www.juegos10.com";
shade = 0;
Symbol 383 MovieClip Frame 75
lavr_link = "http://flash.178.com/";
shade = 0;
Symbol 383 MovieClip Frame 76
lavr_link = "http://www.papajogos.com.br";
shade = 0;
Symbol 383 MovieClip Frame 77
lavr_link = "http://www.arcadelots.com/";
shade = 0;
Symbol 383 MovieClip Frame 78
lavr_link = "http://www.minigamers.com/";
shade = 0;
Symbol 383 MovieClip Frame 79
lavr_link = "http://www.stickpage.com";
shade = 0;
Symbol 383 MovieClip Frame 80
lavr_link = "http://www.y8.com/";
shade = 1;
Symbol 383 MovieClip Frame 81
lavr_link = "http://www.y3.com/";
shade = 1;
Symbol 383 MovieClip Frame 82
lavr_link = "http://www.gangofgamers.com/";
shade = 0;
Symbol 383 MovieClip Frame 83
lavr_link = "http://www.videobash.com/";
shade = 0;
Symbol 384 MovieClip Frame 1
stop();
Symbol 385 Button
on (release) {
getURL (boxx.lavr_link, "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (21);
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 20
stop();
Symbol 389 MovieClip Frame 1594
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 60
gotoAndPlay (21);
Symbol 483 MovieClip Frame 1
_xscale = (random(100) + 50);
_yscale = _xscale;
_x = (_x + (random(300) - 150));
_y = 440;
if (_root.lvl >= 1) {
gotoAndStop(random(17) + 1);
}
if (_root.lvl >= 5) {
_xscale = 100;
_yscale = 100;
gotoAndStop(random(16) + 21);
}
if (_root.lvl >= 9) {
_xscale = 100;
_yscale = 100;
gotoAndStop(random(12) + 41);
}
if (_root.lvl >= 11) {
gotoAndStop(random(30) + 61);
}
Symbol 485 MovieClip Frame 1
if (_root.lvl == 1) {
_x = (_x + 800);
}
stop();
onEnterFrame = function () {
if (_x <= -3000) {
_x = 0;
boxx1.el1.gotoAndStop(boxx2.el1._currentframe);
boxx1.el1._x = boxx2.el1._x;
boxx1.el1._xscale = boxx2.el1._xscale;
boxx1.el1._yscale = boxx2.el1._yscale;
boxx1.el2.gotoAndStop(boxx2.el2._currentframe);
boxx1.el2._x = boxx2.el2._x;
boxx1.el2._xscale = boxx2.el2._xscale;
boxx1.el2._yscale = boxx2.el2._yscale;
boxx1.el3.gotoAndStop(boxx2.el3._currentframe);
boxx1.el3._x = boxx2.el3._x;
boxx1.el3._xscale = boxx2.el3._xscale;
boxx1.el3._yscale = boxx2.el3._yscale;
}
};
Symbol 485 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (_x <= -3000) {
_x = 0;
boxx1.el1.gotoAndStop(boxx2.el1._currentframe);
boxx1.el1._x = boxx2.el1._x;
boxx1.el1._xscale = boxx2.el1._xscale;
boxx1.el1._yscale = boxx2.el1._yscale;
boxx1.el2.gotoAndStop(boxx2.el2._currentframe);
boxx1.el2._x = boxx2.el2._x;
boxx1.el2._xscale = boxx2.el2._xscale;
boxx1.el2._yscale = boxx2.el2._yscale;
boxx1.el3.gotoAndStop(boxx2.el3._currentframe);
boxx1.el3._x = boxx2.el3._x;
boxx1.el3._xscale = boxx2.el3._xscale;
boxx1.el3._yscale = boxx2.el3._yscale;
boxx1.el4.gotoAndStop(boxx2.el4._currentframe);
boxx1.el4._x = boxx2.el4._x;
boxx1.el4._xscale = boxx2.el4._xscale;
boxx1.el4._yscale = boxx2.el4._yscale;
boxx1.el5.gotoAndStop(boxx2.el5._currentframe);
boxx1.el5._x = boxx2.el5._x;
boxx1.el5._xscale = boxx2.el5._xscale;
boxx1.el5._yscale = boxx2.el5._yscale;
boxx1.el6.gotoAndStop(boxx2.el6._currentframe);
boxx1.el6._x = boxx2.el6._x;
boxx1.el6._xscale = boxx2.el6._xscale;
boxx1.el6._yscale = boxx2.el6._yscale;
}
};
Symbol 485 MovieClip Frame 3
stop();
onEnterFrame = function () {
};
Symbol 488 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
_xscale = (random(80) + 20);
_yscale = _xscale;
_x = (-random(25));
_y = (random(50) - 25);
_rotation = (random(360) + 1);
speedx = random(40) - 20;
speedy = -random(30);
speedr = random(20) - 10;
stop();
onEnterFrame = function () {
if (_y < 1000) {
_x = (_x + speedx);
speedx = speedx * 0.95;
_y = (_y + speedy);
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
_rotation = (_rotation + speedr);
speedr = speedr * 0.95;
} else {
gotoAndStop (2);
}
};
Symbol 492 MovieClip Frame 2
stop();
onEnterFrame = function () {
};
Symbol 494 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Symbol 494 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (powerx > 0.5) {
powerx = powerx * 0.95;
_x = (_x + powerx);
}
if (powery > 0.5) {
powery = powery * 0.6;
_y = (_y - powery);
}
};
Symbol 497 MovieClip Frame 1
_xscale = (random(80) + 20);
_yscale = _xscale;
_x = (-random(25));
_y = (random(50) - 25);
_rotation = (random(360) + 1);
speedx = random(40) - 20;
speedy = -random(30);
speedr = random(20) - 10;
stop();
onEnterFrame = function () {
if (_y < 1000) {
_x = (_x + speedx);
speedx = speedx * 0.95;
_y = (_y + speedy);
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
_rotation = (_rotation + speedr);
speedr = speedr * 0.95;
} else {
gotoAndStop (2);
}
};
Symbol 497 MovieClip Frame 2
stop();
onEnterFrame = function () {
};
Symbol 499 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Instance of Symbol 496 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 499 MovieClip Frame 2
stop();
onEnterFrame = function () {
};
Symbol 502 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay(random(10) + 1);
}
Symbol 507 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay(random(10) + 1);
}
Symbol 508 MovieClip Frame 1
_x = 0;
_y = 0;
gotoAndStop (2);
Symbol 508 MovieClip Frame 2
speedr = random(10) + 10;
speedx = (26 - (nb * 3)) * 6;
speedy = 2 * nb;
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
boxx._rotation = boxx._rotation + speedr;
speedx = speedx * 0.95;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
};
Instance of Symbol 506 MovieClip in Symbol 508 MovieClip Frame 2
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent.gotoAndStop(3);
}
i++;
}
}
Symbol 508 MovieClip Frame 3
tot = Math.abs(speedx) + Math.abs(speedy);
speedx = ((speedx * 5) / 25) * -1;
speedy = ((speedy * 5) / 25) * -1;
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
boxx._rotation = boxx._rotation + speedr;
speedx = speedx * 0.95;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
};
Instance of Symbol 506 MovieClip in Symbol 508 MovieClip Frame 3
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
} else {
_parent.gotoAndStop(4);
}
i++;
}
}
Symbol 508 MovieClip Frame 4
_xscale = 50;
_yscale = _xscale;
boxx._rotation = 0;
stop();
onEnterFrame = function () {
if (_xscale < 100) {
_xscale = (_xscale + 5);
}
_yscale = _xscale;
};
Symbol 509 MovieClip Frame 1
_visible = false;
stop();
onEnterFrame = function () {
};
Symbol 509 MovieClip Frame 2
_visible = true;
timer = 200;
stop();
onEnterFrame = function () {
if (timer > 0) {
timer = timer - 1;
} else if (_alpha > 0) {
_alpha = (_alpha - 1);
} else {
gotoAndStop (1);
}
};
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 508 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
nb = 8;
}
Symbol 512 MovieClip Frame 1
stop();
onEnterFrame = function () {
_rotation = (_rotation - 18);
};
Instance of Symbol 506 MovieClip in Symbol 512 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
_parent._visible = false;
}
i++;
}
}
Symbol 513 MovieClip Frame 1
_visible = false;
stop();
onEnterFrame = function () {
};
Symbol 513 MovieClip Frame 2
_visible = true;
_y = (_y - ((random(4) + 1) * 35));
onEnterFrame = function () {
_x = (_x - 10);
};
Instance of Symbol 516 MovieClip in Symbol 531 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 539 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 1
_x = _parent.tente._x;
_y = _parent.tente._y;
boxx.gotoAndStop(3);
_parent.tente.boxx.gotoAndStop(2);
stop();
Symbol 545 MovieClip Frame 1
stop();
Symbol 560 MovieClip Frame 4
Set(("_root.cnt.r_" + _root.roches_nb) + "._x", _root.cnt.ninja._x);
Set(("_root.cnt.r_" + _root.roches_nb) + "._y", _root.cnt.ninja._y);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(1);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(2);
_root.roches_nb = _root.roches_nb + 1;
if (_root.roches_nb == 11) {
_root.roches_nb = 1;
}
Symbol 560 MovieClip Frame 13
Set(("_root.cnt.r_" + _root.roches_nb) + "._x", _root.cnt.ninja._x);
Set(("_root.cnt.r_" + _root.roches_nb) + "._y", _root.cnt.ninja._y);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(1);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(2);
_root.roches_nb = _root.roches_nb + 1;
if (_root.roches_nb == 11) {
_root.roches_nb = 1;
}
Symbol 564 MovieClip Frame 1
gotoAndStop(_root.st_slash);
Symbol 574 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 574 MovieClip Frame 3
stop();
Symbol 574 MovieClip Frame 5
stop();
Symbol 574 MovieClip Frame 7
stop();
Symbol 576 MovieClip Frame 1
timer = 15;
stop();
onEnterFrame = function () {
if (timer > 0) {
if (_root.st_style >= 4) {
timer = timer - 1;
}
gotoAndStop(_parent.ninjaclose);
} else {
gotoAndStop (3);
}
};
Instance of Symbol 577 MovieClip "hitt2" in Symbol 578 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
var nb = 1;
while (nb < 21) {
if (_root.cnt["g_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.gold_collected = _root.gold_collected + 10;
_root.interr.gold.gold = _root.gold_collected;
_root.interr.gold.gotoAndPlay(2);
_root.cnt["g_" + nb].gotoAndStop(2);
}
nb++;
}
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.act == 1) {
_root.act = 0;
_parent._parent.gotoAndStop(4);
}
}
if (_root.cnt.limit_bas.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.act == 1) {
_root.act = 0;
_parent._parent.gotoAndStop(6);
}
}
i++;
}
}
Symbol 580 MovieClip Frame 1
gotoAndStop(_root.st_slash);
Symbol 583 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 31
_parent.gotoAndStop(1);
stop();
Symbol 586 MovieClip Frame 33
_parent.gotoAndStop(1);
stop();
Symbol 587 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
if (_root.st_style == 1) {
gotoAndStop (1);
}
if (_root.st_style == 2) {
gotoAndStop(random(2) + 2);
}
if (_root.st_style >= 3) {
gotoAndStop(random(2) + 3);
}
} else {
stop();
}
onEnterFrame = function () {
if ((loaded == 2) && (_currentframe <= 2)) {
gotoAndStop(_parent._parent.ninjaclose);
}
};
Symbol 588 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_parent._parent.ninjaclose);
};
Symbol 595 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 595 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 5
stop();
Symbol 595 MovieClip Frame 7
stop();
Symbol 603 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 603 MovieClip Frame 3
stop();
Symbol 603 MovieClip Frame 5
stop();
Symbol 603 MovieClip Frame 7
stop();
Symbol 603 MovieClip Frame 9
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 2
play();
Instance of Symbol 577 MovieClip in Symbol 604 MovieClip Frame 2
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:80}, {x:0, y:-80}, {x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
var nb = 1;
while (nb < 31) {
if (_root.cnt["e_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.wich_attack == 1) {
_root.cnt["e_" + nb].jumped = 2;
_root.cnt["e_" + nb].gotoAndStop(5);
} else {
_root.cnt["e_" + nb].jumped = 2;
_root.cnt["e_" + nb].gotoAndStop(6);
}
}
if (_root.cnt["petable_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["petable_" + nb].gotoAndPlay(2);
}
if (_root.cnt["lantern_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["lantern_" + nb].gotoAndPlay(2);
}
nb++;
}
i++;
}
}
Symbol 604 MovieClip Frame 20
stop();
Symbol 604 MovieClip Frame 21
play();
Symbol 604 MovieClip Frame 30
stop();
Instance of Symbol 577 MovieClip in Symbol 607 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:80}, {x:0, y:-80}, {x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
var nb = 1;
while (nb < 21) {
if (_root.cnt["e_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.wp == 1) {
trace("hit");
_root.cnt["e_" + nb].jumped = 2;
_root.cnt["e_" + nb].gotoAndStop(4);
}
}
nb++;
}
i++;
}
}
Symbol 620 MovieClip Frame 1
_root.catapulte = 1;
stopAllSounds();
if (_parent.fall == 1) {
gotoAndPlay (31);
}
Symbol 620 MovieClip Frame 30
stop();
onEnterFrame = function () {
if (_root.speed > 0.25) {
_root.speed = _root.speed * 0.95;
} else if (_root.interr.panell._currentframe == 1) {
_root.interr.panell.gotoAndStop(24);
}
};
Symbol 620 MovieClip Frame 60
onEnterFrame = function () {
if (_root.speed > 0.25) {
_root.speed = _root.speed * 0.95;
} else if (_root.interr.panell._currentframe == 1) {
_root.interr.panell.gotoAndStop(24);
}
};
Symbol 620 MovieClip Frame 90
stop();
Symbol 621 MovieClip Frame 1
speedx = random(20) + 1;
speedy = (random(5) + 1) * -1;
speedr = random(10) + 10;
aa = random(2) + 1;
if (aa == 1) {
speedr = speedr * -1;
}
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
_rotation = (_rotation + speedr);
speedx = speedx * 0.9;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
};
Instance of Symbol 506 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent.gotoAndStop(2);
}
i++;
}
}
Symbol 621 MovieClip Frame 2
_rotation = 0;
stop();
onEnterFrame = function () {
};
Symbol 623 MovieClip Frame 10
stop();
Symbol 623 MovieClip Frame 40
stop();
Symbol 625 MovieClip Frame 1
_root.catapulte = 1;
Symbol 625 MovieClip Frame 2
stopAllSounds();
Symbol 625 MovieClip Frame 30
stop();
onEnterFrame = function () {
if (_root.speed > 0.25) {
_root.speed = _root.speed * 0.95;
} else if (_root.interr.panell._currentframe == 1) {
_root.interr.panell.gotoAndStop(24);
}
};
Symbol 626 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 1
timer = 95;
stop();
onEnterFrame = function () {
if (timer > 0) {
timer = timer - 1;
} else if (_currentframe == 1) {
gotoAndPlay (2);
}
};
Symbol 627 MovieClip Frame 38
stop();
Symbol 628 MovieClip Frame 1
speedy = 0;
_root.shot = _root.st_jump;
stop();
onEnterFrame = function () {
if ((((((((((_root.cnt.tyrolienne_1.ninja_on == 2) || (_root.cnt.tyrolienne_2.ninja_on == 2)) || (_root.cnt.tyrolienne_3.ninja_on == 2)) || (_root.cnt.tyrolienne_4.ninja_on == 2)) || (_root.cnt.tyrolienne_5.ninja_on == 2)) || (_root.cnt.tyrolienne_6.ninja_on == 2)) || (_root.cnt.tyrolienne_7.ninja_on == 2)) || (_root.cnt.tyrolienne_8.ninja_on == 2)) || (_root.cnt.tyrolienne_9.ninja_on == 2)) || (_root.cnt.tyrolienne_10.ninja_on == 2)) {
_visible = false;
} else {
_visible = true;
}
if (_root.act == 1) {
if (_root.slide == 1) {
_y = (_y + speedy);
if (speedy > 15) {
speedy = 15;
}
if (_root.speed > speed_mem) {
_root.speed = _root.speed * 0.85;
}
if (_root.speed < speed_mem) {
_root.speed = speed_mem;
}
if (fall == 1) {
if (_root.slide_shot != 1) {
_root.slide_shot = 1;
}
if (_root.shot < _root.st_jump) {
_root.shot = _root.st_jump;
}
if (_root.slash < _root.st_slash) {
_root.slash = _root.st_slash;
}
if (_root.canshot == 1) {
_root.canshot = 2;
}
if ((_root.sliding == 0) && (_root.pwx < 5)) {
gotoAndStop (1);
}
if (cote == 2) {
_y = (_y - (_root.speed + _root.pwx));
}
speedy = 0;
} else if (_root.pwy < 0) {
gotoAndStop (2);
speedy = 0;
} else {
if (speedy < 1) {
speedy = 1;
}
speedy = speedy * 1.2;
if (speedy > 8) {
gotoAndStop (2);
}
}
}
if (_root.slide == 2) {
Set(("_root.cnt.r_" + _root.roches_nb) + "._x", _root.cnt.ninja._x);
Set(("_root.cnt.r_" + _root.roches_nb) + "._y", _root.cnt.ninja._y);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(1);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(2);
_root.roches_nb = _root.roches_nb + 1;
if (_root.roches_nb == 11) {
_root.roches_nb = 1;
}
gotoAndStop (3);
speedy = (_root.cnt.ninja.boxx._rotation * _root.speed) / 45;
_y = (_y + speedy);
if (_root.speed < 20) {
_root.speed = _root.speed * 1.05;
}
}
if (_root.slide == 3) {
if (speedy < -0.5) {
if (_currentframe != 2) {
gotoAndStop (3);
}
speedy = speedy * 0.9;
boxx._rotation = boxx._rotation + 0.8;
}
if (speedy >= -5) {
if (_currentframe != 2) {
gotoAndStop (2);
}
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
if (speedy > 15) {
speedy = 15;
}
_y = (_y + speedy);
if (fall == 1) {
_root.slide = 1;
}
}
if (_root.catapulte == 2) {
if (speedy >= 0) {
if (_currentframe != 2) {
gotoAndStop (2);
}
}
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
if (speedy > 15) {
speedy = 15;
}
_y = (_y + speedy);
if (fall == 1) {
speedy = 0;
_root.pwy = 0;
_root.shot = _root.st_jump;
_root.pwx = 20;
_root.speed = cata_speed_mem;
_root.slide = 1;
_root.catapulte = 1;
gotoAndStop (1);
}
}
if (_currentframe == 1) {
if (Key.isDown(40)) {
if (keyreleased_40 == 2) {
keyreleased_40 = 1;
if (_root.cnt.tyrolienne_1.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 250;
_root.cnt.tyrolienne_1.boxx.hitt._visible = false;
_root.cnt.tyrolienne_1.ninja_on = 1;
}
gotoAndStop (3);
_root.sliding = _root.power_slide;
_root.pwx = 15;
}
} else {
keyreleased_40 = 2;
}
}
if (_currentframe == 2) {
if (Key.isDown(40)) {
if (keyreleased_40 == 2) {
keyreleased_40 = 1;
if (_root.cnt.tyrolienne_1.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_1.boxx.hitt._visible = false;
_root.cnt.tyrolienne_1.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_2.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_2.boxx.hitt._visible = false;
_root.cnt.tyrolienne_2.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_3.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_3.boxx.hitt._visible = false;
_root.cnt.tyrolienne_3.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_4.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_4.boxx.hitt._visible = false;
_root.cnt.tyrolienne_4.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_5.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_5.boxx.hitt._visible = false;
_root.cnt.tyrolienne_5.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_6.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_6.boxx.hitt._visible = false;
_root.cnt.tyrolienne_6.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_7.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_7.boxx.hitt._visible = false;
_root.cnt.tyrolienne_7.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_8.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_8.boxx.hitt._visible = false;
_root.cnt.tyrolienne_8.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_9.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_9.boxx.hitt._visible = false;
_root.cnt.tyrolienne_9.ninja_on = 1;
_root.pwy = 0;
}
if (_root.cnt.tyrolienne_10.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_10.boxx.hitt._visible = false;
_root.cnt.tyrolienne_10.ninja_on = 1;
_root.pwy = 0;
}
}
} else {
keyreleased_40 = 2;
}
}
if (_root.sliding != 0) {
_root.sliding = _root.sliding - 1;
gotoAndStop (3);
Set(("_root.cnt.r_" + _root.roches_nb) + "._x", _root.cnt.ninja._x);
Set(("_root.cnt.r_" + _root.roches_nb) + "._y", _root.cnt.ninja._y);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(1);
eval ("_root.cnt.r_" + _root.roches_nb).gotoAndStop(2);
_root.roches_nb = _root.roches_nb + 1;
if (_root.roches_nb == 11) {
_root.roches_nb = 1;
}
if (Key.isDown(40)) {
} else {
_root.sliding = 0;
gotoAndStop (1);
}
}
if (lache_tyrolienne == 2) {
if (_root.cnt.tyrolienne_1.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_1.boxx.hitt._visible = false;
_root.cnt.tyrolienne_1.ninja_on = 1;
_root.cnt.tyrolienne_1.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_2.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_2.boxx.hitt._visible = false;
_root.cnt.tyrolienne_2.boxx.hitt._y = _root.cnt.tyrolienne_2.boxx.hitt._y - 600;
_root.cnt.tyrolienne_2.ninja_on = 1;
_root.cnt.tyrolienne_2.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_3.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_3.boxx.hitt._visible = false;
_root.cnt.tyrolienne_3.ninja_on = 1;
_root.cnt.tyrolienne_3.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_4.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_4.boxx.hitt._visible = false;
_root.cnt.tyrolienne_4.ninja_on = 1;
_root.cnt.tyrolienne_4.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_5.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_5.boxx.hitt._visible = false;
_root.cnt.tyrolienne_5.ninja_on = 1;
_root.cnt.tyrolienne_5.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_6.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_6.boxx.hitt._visible = false;
_root.cnt.tyrolienne_6.ninja_on = 1;
_root.cnt.tyrolienne_6.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_7.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_7.boxx.hitt._visible = false;
_root.cnt.tyrolienne_7.ninja_on = 1;
_root.cnt.tyrolienne_7.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_8.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_8.boxx.hitt._visible = false;
_root.cnt.tyrolienne_8.ninja_on = 1;
_root.cnt.tyrolienne_8.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_9.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_9.boxx.hitt._visible = false;
_root.cnt.tyrolienne_9.ninja_on = 1;
_root.cnt.tyrolienne_9.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
if (_root.cnt.tyrolienne_10.ninja_on == 2) {
_root.cnt.ninja._y = _root.cnt.ninja._y + 0;
_root.cnt.tyrolienne_10.boxx.hitt._visible = false;
_root.cnt.tyrolienne_10.ninja_on = 1;
_root.cnt.tyrolienne_10.cantretake = 2;
_root.pwy = 0;
lache_tyrolienne = 1;
}
}
}
ninjaclose = 1;
if ((_x > (_parent.e_1._x - 600)) && (_x < _parent.e_1._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_2._x - 600)) && (_x < _parent.e_2._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_3._x - 600)) && (_x < _parent.e_3._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_4._x - 600)) && (_x < _parent.e_4._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_5._x - 600)) && (_x < _parent.e_5._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_6._x - 600)) && (_x < _parent.e_6._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_7._x - 600)) && (_x < _parent.e_7._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_8._x - 600)) && (_x < _parent.e_8._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_9._x - 600)) && (_x < _parent.e_9._x)) {
ninjaclose = 2;
}
if ((_x > (_parent.e_10._x - 600)) && (_x < _parent.e_10._x)) {
ninjaclose = 2;
}
};
Instance of Symbol 577 MovieClip "hitt1" in Symbol 628 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent.fall = 1;
} else {
_parent.fall = 2;
}
var nb = 1;
while (nb < 21) {
if (_root.cnt["piege_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.cnt["piege_" + nb]._currentframe == 1) {
_root.cnt["piege_" + nb].gotoAndPlay(2);
}
}
if (_root.cnt["cata_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.cnt["cata_" + nb]._currentframe == 1) {
_root.cnt["cata_" + nb].gotoAndPlay(2);
}
}
if (_root.cnt["pont_" + nb].sol.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["pont_" + nb].walkon = 2;
} else {
_root.cnt["pont_" + nb].walkon = 1;
}
if (_root.cnt["slide_" + nb].h_1.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.slide == 1) {
_root.slide = 2;
_root.cnt.ninja.gotoAndStop(3);
_root.cnt.ninja.boxx._rotation = 45;
_parent.speed_mem = _root.speed;
}
}
if (_root.cnt["slide_" + nb].h_2.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.boxx._rotation = _root.cnt.ninja.boxx._rotation - 8;
}
if (_root.cnt["slide_" + nb].h_3.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.slide == 2) {
_root.slide = 3;
_root.cnt.p_jump.powerx = _root.speed;
_root.cnt.p_jump.powery = _root.jump;
_root.cnt.p_jump._x = _root.cnt.ninja._x;
_root.cnt.p_jump._y = _root.cnt.ninja._y;
_root.cnt.p_jump.gotoAndStop(1);
_root.cnt.p_jump.gotoAndStop(2);
}
}
nb++;
}
i++;
}
this.hitpts2 = new Array({x:_root.speed, y:-_root.speed});
ii = 0;
while (ii < this.hitpts2.length) {
this.localToGlobal(hitpts2[ii]);
if (_root.cnt.hitt.hitTest(hitpts2[ii].x, hitpts2[ii].y, true)) {
_parent.cote = 2;
} else {
_parent.cote = 1;
}
ii++;
}
this.hitpts3 = new Array({x:35, y:-180});
k = 0;
while (k < this.hitpts3.length) {
this.localToGlobal(hitpts3[k]);
if (_root.cnt.hitt.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
if (_root.act == 1) {
_root.act = 0;
_parent.gotoAndStop(4);
}
}
var nbk = 1;
while (nbk < 21) {
if (_root.cnt["e_massu_" + nbk].hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
if (_root.act == 1) {
_root.act = 0;
_parent.gotoAndStop(4);
}
}
if (_root.cnt["tutoo_" + nbk].hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
_root.interr.tutoo.gotoAndStop(_root.cnt["tutoo_" + nbk].tuto);
}
if (_root.cnt["tyrolienne_" + nbk].boxx.hitt.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
if (_root.cnt["tyrolienne_" + nbk].cantretake != 2) {
_root.cnt["tyrolienne_" + nbk].ninja_on = 2;
_root.shot = _root.st_jump;
if (_root.cnt["tyrolienne_" + nbk]._currentframe == 1) {
_root.cnt["tyrolienne_" + nbk].gotoAndPlay(2);
}
}
}
if (_root.cnt["tyrolienne_land_" + nbk].hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
_root.cnt["tyrolienne_land_" + nbk]._visible = false;
_root.cnt["tyrolienne_land_" + nbk]._y = _root.cnt["tyrolienne_land_" + nbk]._y + 600;
_parent.lache_tyrolienne = 2;
}
if (_root.cnt["treefall_" + nbk].hitt.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
_root.cnt["treefall_" + nbk].gotoAndPlay(2);
}
if (_root.cnt["petable_" + nbk].hitt_ouch.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
if (_root.act == 1) {
_root.act = 0;
_parent.gotoAndStop(4);
}
}
nbk++;
}
k++;
}
}
Instance of Symbol 577 MovieClip "hitt2" in Symbol 628 MovieClip Frame 2
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_parent._currentframe < 16) {
_parent.gotoAndPlay(16);
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
}
}
i++;
}
}
Symbol 628 MovieClip Frame 11
if (_root.lvl != 1) {
gotoAndStop (12);
}
Symbol 731 MovieClip Frame 9
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 1
_x = (random(200) - 100);
_y = (-random(200));
boxx.gotoAndStop(random(2) + 1);
boxx._xscale = random(50) + 50;
boxx._yscale = boxx._xscale;
speedy = random(12) + 5;
speedx = random(5) + 1;
_alpha = (random(50) + 50);
timerx = 0;
stop();
onEnterFrame = function () {
_x = (_x + speedx);
if (timerx > 0) {
timerx = timerx - 1;
} else {
speedx = speedx * -1;
timerx = random(40) + 10;
}
_y = (_y - speedy);
if (_alpha > 0) {
_alpha = (_alpha - 0.5);
} else {
gotoAndPlay (2);
}
};
Symbol 746 MovieClip Frame 2
gotoAndStop (1);
stop();
onEnterFrame = function () {
};
Symbol 748 MovieClip Frame 1
timer = 0;
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else {
timer = 2;
boxx1.gotoAndStop(random(4) + 1);
boxx1._xscale = random(50) + 50;
boxx1._yscale = random(50) + 50;
aa = random(2) + 1;
if (aa == 1) {
boxx1._xscale = boxx1._xscale * -1;
}
boxx2.gotoAndStop(random(4) + 1);
boxx2._xscale = random(50) + 50;
boxx2._yscale = random(50) + 50;
aa = random(2) + 1;
if (aa == 1) {
boxx2._xscale = boxx2._xscale * -1;
}
boxx3.gotoAndStop(random(4) + 1);
boxx3._xscale = random(50) + 50;
boxx3._yscale = random(50) + 50;
aa = random(2) + 1;
if (aa == 1) {
boxx3._xscale = boxx3._xscale * -1;
}
boxx4.gotoAndStop(random(4) + 1);
boxx4._xscale = random(50) + 50;
boxx4._yscale = random(50) + 50;
aa = random(2) + 1;
if (aa == 1) {
boxx4._xscale = boxx4._xscale * -1;
}
}
};
Symbol 752 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_currentframe == 1) {
if (_parent.ninja._x >= _x) {
_parent.ninja._y = _y;
_root.act = -1;
gotoAndStop (2);
speed_cnt = _root.speed;
if (speed_cnt > 40) {
speed_cnt = 40;
}
speed_ninja = _root.speed;
_root.catapulte = 1;
_root.speed = 0;
_root.pwx = 0;
_root.pwy = 0;
_root.cnt_avance = 0;
}
}
};
Instance of Symbol 750 MovieClip in Symbol 752 MovieClip Frame 1
onClipEvent (load) {
feu._visible = false;
}
onClipEvent (enterFrame) {
if (_parent._currentframe >= 2) {
feu._visible = true;
}
}
Symbol 752 MovieClip Frame 2
if ((_root.ac_3 == 1) && (_root.lvl == 4)) {
_root.ac_3 = 2;
_root.achiv_done = 3;
_root.interr.achiv.gotoAndPlay(2);
}
if ((_root.ac_4 == 1) && (_root.lvl == 8)) {
_root.ac_4 = 2;
_root.achiv_done = 4;
_root.interr.achiv.gotoAndPlay(2);
}
if ((_root.ac_5 == 1) && (_root.lvl == 10)) {
_root.ac_5 = 2;
_root.achiv_done = 5;
_root.interr.achiv.gotoAndPlay(2);
}
if ((_root.ac_6 == 1) && (_root.lvl == 14)) {
_root.ac_6 = 2;
_root.achiv_done = 6;
_root.interr.achiv.gotoAndPlay(2);
}
timer = 55;
stop();
onEnterFrame = function () {
_root.sliding = 0;
_root.slide = 1;
_root.cnt._y = _root.cnt._y - ((((_root.cnt._y - 10) - (300 - _root.cnt.ninja._y)) * _root.speed_cam) / 3);
_root.cnt.ninja.gotoAndStop(1);
_root.cnt._x = _root.cnt._x - speed_cnt;
speed_cnt = speed_cnt * 0.9;
if (_parent.ninja._x >= (_x + 345)) {
if (timer > 0) {
timer = timer - 1;
}
if (timer == 0) {
_root.interr.panell.gotoAndStop(21);
timer = -1;
}
_root.cnt.ninja.gotoAndStop(10);
_root.cnt.ninja._visible = false;
} else {
_root.cnt.ninja._x = _root.cnt.ninja._x + speed_ninja;
}
};
Symbol 752 MovieClip Frame 3
stop();
onEnterFrame = function () {
};
Symbol 757 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 1
aa = random(2) + 1;
if (aa == 2) {
_xscale = (_xscale * -1);
}
wood_go = 1;
_rotation = (random(30) - 15);
onEnterFrame = function () {
if (((_root.cnt.ninja._x >= (_parent._parent._x + ((_x * _parent._parent._xscale) / 100))) && (_root.cnt.ninja._currentframe == 1)) && (_parent._parent.walkon == 2)) {
if (_currentframe <= 2) {
_root.snd.wood.gotoAndPlay(random(4) + 1);
gotoAndStop(random(4) + 2);
_y = (_y + 20);
speedy = 20;
speedr = random(20) - 10;
if (_parent._parent._currentframe == 1) {
_parent._parent.gotoAndPlay(2);
}
aa = random(3) + 1;
if (aa == 1) {
_root.snd.wood.gotoAndPlay((random(3) + 1) * 2);
}
wood_go = 2;
}
}
if (wood_go == 2) {
_y = (_y + speedy);
speedy = speedy * 1.08;
_rotation = (_rotation + speedr);
}
};
if ((_parent._parent.no_planche != undefined) && (_x > _parent._parent.no_planche)) {
gotoAndStop (7);
} else {
gotoAndStop(random(2) + 1);
}
Symbol 780 MovieClip Frame 7
onEnterFrame = function () {
};
Symbol 784 MovieClip Frame 1
walkon = 1;
stop();
Symbol 802 MovieClip Frame 1
slowmotion = 1;
speedx = random(20) - 10;
speedy = random(20) - 10;
speedr = random(20) - 10;
_xscale = (random(100) + 50);
_yscale = (random(100) + 50);
_x = (_x + (random(50) - 25));
_y = (_y + (random(50) - 25));
_rotation = (random(360) + 1);
stop();
onEnterFrame = function () {
_x = (_x + (speedx * slowmotion));
_y = (_y + (speedy * slowmotion));
_rotation = (_rotation + (speedr * slowmotion));
speedx = speedx * (1 - (0.1 * slowmotion));
if (speedy < -0.5) {
speedy = speedy * (1 - (0.1 * slowmotion));
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * (1 + (0.1 * slowmotion));
}
speedr = speedr * (1 - (0.05 * slowmotion));
};
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
_root.shake = 15;
Symbol 804 MovieClip Frame 60
stop();
Symbol 812 MovieClip Frame 1
_alpha = 0;
Instance of Symbol 516 MovieClip in Symbol 817 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 820 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay(random(60) + 1);
}
Instance of Symbol 506 MovieClip "hitt" in Symbol 821 MovieClip Frame 5
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
if (_parent._currentframe < 11) {
_parent.gotoAndPlay(11);
}
}
i++;
}
}
Symbol 821 MovieClip Frame 30
stop();
Instance of Symbol 506 MovieClip "hitt" in Symbol 822 MovieClip Frame 3
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
if (_parent._currentframe < 16) {
_parent.gotoAndPlay(16);
}
}
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent._parent.speedy = _parent._parent.speedy * -1;
}
i++;
}
}
Symbol 822 MovieClip Frame 35
stop();
Symbol 828 MovieClip Frame 18
_parent.dead = 2;
stop();
Symbol 839 MovieClip Frame 20
stop();
Symbol 842 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 843 MovieClip Frame 1
_xscale = (random(80) + 20);
_yscale = _xscale;
_x = (random(50) - 25);
_y = (random(50) - 25);
_rotation = (random(360) + 1);
speedx = random(40) - 20;
speedy = -random(30);
speedr = random(20) - 10;
stop();
onEnterFrame = function () {
if (_y < 200) {
_x = (_x + speedx);
speedx = speedx * 0.95;
_y = (_y + speedy);
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
_rotation = (_rotation + speedr);
speedr = speedr * 0.95;
}
};
Symbol 844 MovieClip Frame 1
_rotation = (-_parent._rotation);
Instance of Symbol 506 MovieClip in Symbol 847 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
var nb = 1;
while (nb < 21) {
if (_root.cnt["slide_" + nb].h_1.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent._parent.dead = 2;
_parent.gotoAndPlay(21);
}
nb++;
}
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent._parent.dead = 2;
_parent.gotoAndPlay(21);
}
i++;
}
}
Symbol 847 MovieClip Frame 20
stop();
Symbol 847 MovieClip Frame 22
if (_root.ac_2 == 1) {
_root.ac_2 = 2;
_root.achiv_done = 2;
_root.interr.achiv.gotoAndPlay(2);
}
Symbol 847 MovieClip Frame 152
stop();
Symbol 855 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 855 MovieClip Frame 3
stop();
Symbol 855 MovieClip Frame 5
stop();
Symbol 855 MovieClip Frame 7
stop();
Symbol 910 MovieClip Frame 1
onEnterFrame = function () {
};
Symbol 910 MovieClip Frame 2
boxx.gotoAndStop(random(26) + 1);
_rotation = (random(30) - 15);
_xscale = (random(40) + 80);
_yscale = (random(40) + 80);
_alpha = (random(50) + 50);
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 1);
}
};
Symbol 910 MovieClip Frame 101
stop();
Symbol 912 MovieClip Frame 1
gotoAndStop(_root.st_slash);
Symbol 917 MovieClip Frame 1
speedx1 = random(4) + 4;
speedx2 = random(4) + 4;
speedr1 = random(2) + 4;
speedr2 = random(2) + 4;
stop();
onEnterFrame = function () {
m1._x = m1._x - (speedx1 * 0.25);
m2._x = m2._x - (speedx2 * 0.25);
m1._rotation = m1._rotation - speedr1;
m2._rotation = m2._rotation + speedr2;
};
gotoAndStop(random(4) + 1);
Symbol 918 MovieClip Frame 1
if (sy == undefined) {
sy = _y;
}
if (dist == undefined) {
dist = 180;
}
dead = 1;
stop();
onEnterFrame = function () {
if (dead == 1) {
if ((_root.cnt.ninja._x > (_x - dist)) && (jumped != 2)) {
if (_root.cnt.ninja._y < (_y - 100)) {
trace("jump");
gotoAndStop (3);
jumped = 2;
speedy = (_root.cnt.ninja._y - _y) * 0.2;
} else {
gotoAndStop (2);
speedy = 0;
}
}
if (_currentframe == 3) {
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if (((speedy >= -0.5) && (speedy < 1)) && (speedy != 0)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
_y = (_y + speedy);
if (_y > sy) {
_y = sy;
speedy = 0;
}
}
if (_currentframe == 4) {
if (speedx == undefined) {
speedx = _root.speed;
}
_x = (_x + speedx);
speedx = speedx * 0.9;
}
if (_currentframe == 5) {
if (speedx == undefined) {
speedx = (20 + _root.pwx) + _root.speed;
}
_x = (_x + speedx);
speedx = speedx * 0.95;
_y = (_y + speedy);
if (speedy < 1) {
speedy = random(3) + 1;
}
if (speedy >= 1) {
speedy = speedy * 1.05;
}
}
}
if (dead == 2) {
}
};
Symbol 919 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Symbol 921 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent._currentframe > 1) {
gotoAndStop (2);
}
};
Symbol 921 MovieClip Frame 2
stop();
onEnterFrame = function () {
if ((_root.cnt.ninja._x + 125) >= (_parent._parent._x + _parent._x)) {
gotoAndStop (3);
}
};
Symbol 921 MovieClip Frame 3
speedx = random(20) - 10;
speedy = 0;
speedr = random(20) - 10;
stop();
onEnterFrame = function () {
_parent._x = _parent._x + (speedx * 0.2);
_parent._y = _parent._y + (speedy * 0.2);
_parent._rotation = _parent._rotation + (speedr * 0.2);
if (_root.cnt.ninja._x >= (_parent._parent._x + _parent._x)) {
gotoAndStop (4);
}
};
Symbol 921 MovieClip Frame 4
stop();
onEnterFrame = function () {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._rotation = _parent._rotation + speedr;
speedx = speedx * 0.9;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
if (_parent._y > 0) {
_root.shake = _root.shake + 5;
gotoAndStop (5);
}
};
Symbol 921 MovieClip Frame 5
_parent._y = _parent._y - speedy;
_parent._rotation = _parent._rotation - speedr;
speedy = speedy * -0.75;
speedr = speedr * -0.8;
stop();
onEnterFrame = function () {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_parent._rotation = _parent._rotation + speedr;
speedx = speedx * 0.9;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
if (_parent._y >= 0) {
_parent._rotation = 0;
gotoAndStop (6);
}
};
Symbol 921 MovieClip Frame 6
stop();
onEnterFrame = function () {
};
Symbol 936 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 2
_root.shake = 15;
Symbol 936 MovieClip Frame 75
stop();
Symbol 937 MovieClip Frame 1
stop();
Symbol 937 MovieClip Frame 2
_root.shake = 15;
Symbol 937 MovieClip Frame 75
stop();
Instance of Symbol 516 MovieClip in Symbol 942 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 944 MovieClip Frame 37
_root.shake = 10;
Symbol 944 MovieClip Frame 45
stop();
Symbol 944 MovieClip Frame 57
stop();
Symbol 945 MovieClip Frame 1
dist = 220;
attack = 1;
boxx.stop();
stop();
onEnterFrame = function () {
if (attack == 1) {
if (_parent.ninja._x >= (_x - dist)) {
attack = 2;
boxx.gotoAndPlay(2);
}
}
};
Symbol 965 MovieClip Frame 1
stop();
Symbol 965 MovieClip Frame 11
stop();
Symbol 967 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_currentframe != 1) {
_root.act = 0;
_root.speed = 0;
_root.cnt.ninja.gotoAndStop(5);
_root.cnt.ninja._x = _x + ((spott._x * _xscale) / 100);
_root.cnt.ninja._y = _y + ((spott._y * _xscale) / 100);
_root.cnt.ninja._rotation = hitt._rotation;
} else {
speed_mem = _root.speed;
}
};
Symbol 967 MovieClip Frame 2
_root.speed = 8;
Symbol 967 MovieClip Frame 10
corde.play();
Symbol 967 MovieClip Frame 20
_root.speed = speed_mem;
_root.act = 1;
_root.cnt.ninja.speedy = -80;
_root.slide = 0;
_root.cnt.ninja.cata_speed_mem = _root.speed;
_root.cnt.ninja.boxx.gotoAndPlay(11);
_root.catapulte = 2;
onEnterFrame = function () {
if (_root.catapulte == 2) {
_root.speed = 50;
}
};
Symbol 967 MovieClip Frame 40
stop();
Symbol 967 MovieClip Frame 41
onEnterFrame = function () {
};
Instance of Symbol 516 MovieClip in Symbol 972 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 976 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 976 MovieClip Frame 3
stop();
Symbol 976 MovieClip Frame 5
stop();
Symbol 976 MovieClip Frame 7
stop();
Symbol 977 MovieClip Frame 1
stop();
Instance of Symbol 506 MovieClip "hitt" in Symbol 999 MovieClip Frame 5
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
if (_parent._currentframe < 11) {
_parent.gotoAndPlay(11);
}
}
i++;
}
}
Symbol 999 MovieClip Frame 30
stop();
Instance of Symbol 506 MovieClip "hitt" in Symbol 1000 MovieClip Frame 3
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt.ninja.gotoAndStop(4);
_root.act = 0;
if (_parent._currentframe < 16) {
_parent.gotoAndPlay(16);
}
}
if (_root.cnt.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent._parent.speedy = _parent._parent.speedy * -1;
}
i++;
}
}
Symbol 1000 MovieClip Frame 35
stop();
Symbol 1001 MovieClip Frame 1
if (sy == undefined) {
sy = _y;
}
if (dist == undefined) {
dist = 180;
}
dead = 1;
dist_1 = 1800;
dist_1 = 1200;
dist_2 = 600;
attack = 1;
stop();
onEnterFrame = function () {
if (((_root.cnt.ninja._x >= (_x - eval ("dist_" + attack))) && (_root.act == 1)) && (eval ("dist_" + attack) != undefined)) {
boxx.gotoAndPlay(2);
eval ("_root.cnt.stars_" + _root.stars_nb).gotoAndStop(1);
eval ("_root.cnt.stars_" + _root.stars_nb).gotoAndStop(2);
Set(("_root.cnt.stars_" + _root.stars_nb) + "._x", _x);
Set(("_root.cnt.stars_" + _root.stars_nb) + "._y", _y);
_root.stars_nb = _root.stars_nb + 1;
if (_root.stars_nb > 5) {
_root.stars_nb = 1;
}
attack = attack + 1;
}
if (dead == 1) {
if ((_root.cnt.ninja._x > (_x - dist)) && (jumped != 2)) {
if (_root.cnt.ninja._y < (_y - 100)) {
gotoAndStop (3);
jumped = 2;
speedy = (_root.cnt.ninja._y - _y) * 0.2;
} else {
gotoAndStop (2);
speedy = 0;
}
}
if (_currentframe == 3) {
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if (((speedy >= -0.5) && (speedy < 1)) && (speedy != 0)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
_y = (_y + speedy);
if (_y > sy) {
_y = sy;
speedy = 0;
}
}
if (_currentframe == 4) {
if (speedx == undefined) {
speedx = _root.speed;
}
_x = (_x + speedx);
speedx = speedx * 0.9;
}
if (_currentframe == 5) {
if (speedx == undefined) {
speedx = (20 + _root.pwx) + _root.speed;
}
_x = (_x + speedx);
speedx = speedx * 0.95;
_y = (_y + speedy);
if (speedy < 1) {
speedy = random(3) + 1;
}
if (speedy >= 1) {
speedy = speedy * 1.05;
}
}
}
if (dead == 2) {
}
};
Symbol 1013 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((_currentframe > 1) && (_currentframe < 71)) {
if (_root.shake < 5) {
_root.shake = 5;
}
}
};
Symbol 1013 MovieClip Frame 56
_root.shake = 25;
Symbol 1013 MovieClip Frame 72
stop();
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_parent._currentframe);
};
Instance of Symbol 506 MovieClip in Symbol 1028 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:80}, {x:0, y:-80}, {x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
var nb = 1;
while (nb < 31) {
if (_root.cnt["e_" + nb].hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["e_" + nb].jumped = 2;
_root.cnt["e_" + nb].gotoAndStop(5);
}
nb++;
}
i++;
}
}
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 120
gotoAndPlay (31);
Symbol 1034 MovieClip Frame 1
speed = 0;
ninja_on = 1;
aa = 1;
boxx.boxx.ninja._visible = false;
stop();
onEnterFrame = function () {
ratio_dessin_2 = 100 - (_xscale - 100);
if (ratio_dessin_2 < 100) {
ratio_dessin_3 = ((100 - ratio_dessin_2) * 0.2) / 50;
} else {
ratio_dessin_3 = ((ratio_dessin_2 - 100) * 0.2) / 50;
}
ratio_dessin = ratio_dessin_2 * (1 + ratio_dessin_3);
dessin_1._xscale = ratio_dessin;
dessin_1._yscale = dessin_1._xscale;
dessin_2._xscale = ratio_dessin;
dessin_2._yscale = dessin_2._xscale;
boxx.boxx._xscale = ratio_dessin;
boxx.boxx._yscale = boxx.boxx._xscale;
boxx.hitt._xscale = ratio_dessin;
boxx.hitt._yscale = boxx.hitt._xscale;
if ((_currentframe > 1) && (_currentframe < 500)) {
if (boxx.boxx._currentframe < 30) {
boxx.boxx.play();
}
if (speed < 8) {
speed = 8;
}
if (ninja_on == 2) {
if (alreadytaken != 2) {
alreadytaken = 1;
_root.pwx = 0;
_root.speed = 8;
}
if (speed < 14) {
speed = speed * 1.05;
} else {
speed = 14;
}
_root.pwx = speed - 8;
_root.cnt.ninja._x = _x + ((boxx._x * _xscale) / 100);
_root.cnt.ninja._y = (_y + ((boxx._y * _yscale) / 100)) + 175;
boxx.boxx.ninja._visible = true;
} else {
if (speed > 8) {
speed = speed * 0.95;
} else {
speed = 8;
}
boxx.boxx.ninja._visible = false;
}
aa = aa + (speed * 0.2);
gotoAndStop(Math.round(aa));
corde.gotoAndStop(Math.round(aa));
} else {
ninja_on = 1;
boxx.hitt._visible = false;
boxx.boxx.ninja._visible = false;
speed = 0;
}
if (_root.act == 1) {
canbedesactive = 2;
}
if ((_root.act != 1) && (canbedesactive == 2)) {
boxx.hitt._visible = false;
boxx.boxx.ninja._visible = false;
ninja_on = 1;
}
};
Symbol 1036 MovieClip Frame 1
_alpha = 0;
Symbol 1040 MovieClip Frame 1
_alpha = 0;
stop();
onEnterFrame = function () {
if (eval ("_root.cnt.treefall_" + nb) != undefined) {
gotoAndStop(eval (("_root.cnt.treefall_" + nb) + "._currentframe") + 1);
_x = (eval (("_root.cnt.treefall_" + nb) + "._x") - _parent._x);
_y = (eval (("_root.cnt.treefall_" + nb) + "._y") - _parent._y);
} else {
_visible = false;
}
};
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1059 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1064 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1070 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 1083 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 1
if (loaded != 2) {
loaded = 2;
gotoAndPlay(random(10) + 1);
}
Symbol 1091 MovieClip Frame 1
speedx = 45;
speedy = random(20) - 10;
speedr = random(20) - 10;
stop();
onEnterFrame = function () {
_x = (_x + speedx);
_y = (_y + speedy);
_rotation = (_rotation + speedr);
speedx = speedx * 0.95;
if (speedy < -0.5) {
speedy = speedy * 0.9;
}
if ((speedy >= -0.5) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
speedr = speedr * 0.95;
};
Symbol 1094 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((full_light == 2) && (_root.cnt.ninja._x > (_x + 400))) {
full_light = 1;
_root.fond.boxx.gotoAndPlay(2);
}
};
Instance of Symbol 502 MovieClip in Symbol 1094 MovieClip Frame 1
onClipEvent (load) {
if (_parent.no_light == 2) {
_visible = false;
}
}
Instance of Symbol 1086 MovieClip in Symbol 1094 MovieClip Frame 1
onClipEvent (load) {
_xscale = 1180;
_yscale = _xscale;
if (_parent.no_light == 2) {
_visible = false;
}
}
Symbol 1094 MovieClip Frame 2
if (no_light != 2) {
_root.cnt.lantern_light._x = _x;
_root.cnt.lantern_light._y = _y;
_root.cnt.lantern_light.gotoAndStop(1);
_root.cnt.lantern_light.gotoAndStop(2);
if (full_light == 2) {
_root.fond.boxx.gotoAndPlay(2);
}
}
play();
Symbol 1094 MovieClip Frame 190
gotoAndPlay (81);
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1109 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1110 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1120 MovieClip in Symbol 1121 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 28);
}
Instance of Symbol 506 MovieClip in Symbol 1121 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.ninja.hitt_en.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.act == 1) {
_root.act = 0;
}
_root.cnt.ninja.gotoAndStop(4);
_parent._parent.gotoAndStop(103);
}
i++;
}
}
Symbol 1122 MovieClip Frame 103
stop();
Symbol 1123 MovieClip Frame 9
stop();
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1124 MovieClip Frame 2
_root.snd.wood.gotoAndPlay((random(3) + 1) * 2);
Symbol 1124 MovieClip Frame 24
aa = random(2) + 1;
if (aa == 1) {
gotoAndStop (25);
} else {
gotoAndStop (26);
}
Symbol 1124 MovieClip Frame 25
stop();
Symbol 1124 MovieClip Frame 26
stop();
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1131 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Symbol 1133 MovieClip Frame 1
stop();
Symbol 1133 MovieClip Frame 3
stop();
Instance of Symbol 1040 MovieClip "treefall_1" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1040 MovieClip "treefall_2" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1040 MovieClip "treefall_3" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1040 MovieClip "treefall_4" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1040 MovieClip "treefall_5" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1040 MovieClip "treefall_6" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1040 MovieClip "treefall_7" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1040 MovieClip "treefall_8" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1040 MovieClip "treefall_9" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1040 MovieClip "treefall_10" in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Instance of Symbol 516 MovieClip in Symbol 1134 MovieClip Frame 1
onClipEvent (load) {
head.gotoAndStop(2);
}
Instance of Symbol 1133 MovieClip in Symbol 1134 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.cnt.ninja._x);
if (_root.cnt.ninja._x > 21000) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
if (speedr == undefined) {
speedr = 0.2;
speedy = 0.2;
}
_y = (_y + speedy);
_rotation = (_rotation + speedr);
if (speedy < 4) {
speedr = speedr * 1.025;
speedy = speedy * 1.05;
}
_root.shake = 12;
}
}
Instance of Symbol 1133 MovieClip in Symbol 1134 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.cnt.ninja._x);
if (_root.cnt.ninja._x > 22900) {
if (speedr == undefined) {
speedr = 0.2;
speedy = 0.2;
}
_y = (_y + speedy);
_rotation = (_rotation + speedr);
if (speedy < 4) {
speedr = speedr * 1.025;
speedy = speedy * 1.05;
}
_root.shake = 12;
}
}
Instance of Symbol 1133 MovieClip in Symbol 1134 MovieClip Frame 1
onClipEvent (enterFrame) {
trace(_root.cnt.ninja._x);
if (_root.cnt.ninja._x > 24300) {
if (speedr == undefined) {
speedr = 0.2;
speedy = 0.2;
}
_y = (_y + speedy);
_x = (_x + speedy);
_rotation = (_rotation + speedr);
if (speedy < 4) {
speedr = speedr * 1.025;
speedy = speedy * 1.05;
}
_root.shake = 12;
}
}
Instance of Symbol 506 MovieClip in Symbol 1135 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.act == 1) {
if (neverspawn != 2) {
neverspawn = 2;
_root.cnt.ninja._x = _parent._x;
_root.cnt.ninja._y = _parent._y;
}
}
}
Instance of Symbol 489 MovieClip "limit_bas" in Symbol 1136 MovieClip Frame 1
onClipEvent (enterFrame) {
_width = _parent.hitt._width;
_y = 5000;
_x = (_parent.hitt._width / 2);
}
Instance of Symbol 628 MovieClip "ninja" in Symbol 1136 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (11);
}
Instance of Symbol 506 MovieClip "tutoo_1" in Symbol 1136 MovieClip Frame 1
onClipEvent (load) {
tuto = 3;
}
Instance of Symbol 506 MovieClip "tutoo_2" in Symbol 1136 MovieClip Frame 1
onClipEvent (load) {
tuto = 4;
}
Instance of Symbol 506 MovieClip "tutoo_1" in Symbol 1136 MovieClip Frame 2
onClipEvent (load) {
tuto = 5;
}
Instance of Symbol 506 MovieClip "tutoo_2" in Symbol 1136 MovieClip Frame 2
onClipEvent (load) {
tuto = 6;
if (_root.st_jump == 1) {
_y = (_y + 3000);
}
}
Instance of Symbol 506 MovieClip "tutoo_3" in Symbol 1136 MovieClip Frame 2
onClipEvent (load) {
tuto = 5;
}
Instance of Symbol 1094 MovieClip "lantern_6" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
full_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_7" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_8" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_12" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_9" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_13" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_11" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_14" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_19" in Symbol 1136 MovieClip Frame 9
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_8" in Symbol 1136 MovieClip Frame 10
onClipEvent (load) {
full_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_17" in Symbol 1136 MovieClip Frame 10
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_18" in Symbol 1136 MovieClip Frame 10
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_19" in Symbol 1136 MovieClip Frame 10
onClipEvent (load) {
no_light = 2;
}
Instance of Symbol 1094 MovieClip "lantern_20" in Symbol 1136 MovieClip Frame 10
onClipEvent (load) {
no_light = 2;
}
Symbol 1141 MovieClip Frame 1
gotoAndStop(_root.lvl);
Symbol 1142 MovieClip Frame 1
stop();
Symbol 1142 MovieClip Frame 250
stop();
Symbol 1143 MovieClip Frame 1
if (_root.lvl >= 6) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1144 MovieClip Frame 1
if (_root.lvl >= 6) {
gotoAndStop (2);
} else {
stop();
}
Symbol 1167 MovieClip Frame 1
gotoAndPlay((random(22) + 1) * 2);
Symbol 1167 MovieClip Frame 3
stop();
Symbol 1167 MovieClip Frame 5
stop();
Symbol 1167 MovieClip Frame 7
stop();
Symbol 1167 MovieClip Frame 9
stop();
Symbol 1167 MovieClip Frame 11
stop();
Symbol 1167 MovieClip Frame 13
stop();
Symbol 1167 MovieClip Frame 15
stop();
Symbol 1167 MovieClip Frame 17
stop();
Symbol 1167 MovieClip Frame 19
stop();
Symbol 1167 MovieClip Frame 21
stop();
Symbol 1167 MovieClip Frame 23
stop();
Symbol 1167 MovieClip Frame 25
stop();
Symbol 1167 MovieClip Frame 27
stop();
Symbol 1167 MovieClip Frame 29
stop();
Symbol 1167 MovieClip Frame 31
stop();
Symbol 1167 MovieClip Frame 33
stop();
Symbol 1167 MovieClip Frame 35
stop();
Symbol 1167 MovieClip Frame 37
stop();
Symbol 1167 MovieClip Frame 39
stop();
Symbol 1167 MovieClip Frame 41
stop();
Symbol 1167 MovieClip Frame 43
stop();
Symbol 1167 MovieClip Frame 45
stop();
Symbol 1168 MovieClip Frame 1
gotoAndPlay (2);
Symbol 1168 MovieClip Frame 2
aa = 20;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 1168 MovieClip Frame 120
stop();
Symbol 1169 MovieClip Frame 1
timer = 130;
stop();
onEnterFrame = function () {
_root.cnt._x = -1700;
if (timer != 0) {
timer = timer - 1;
} else {
gotoAndStop (2);
}
};
Symbol 1169 MovieClip Frame 2
if (_root.from_intro == 2) {
_root.from_intro = 1;
_root.muz.gotoAndPlay(2);
} else {
_root.muz.gotoAndPlay((random(3) + 1) * 2);
}
_root.cnt.ninja.gotoAndStop(1);
_root.act = 1;
_root.speed = 8;
stop();
onEnterFrame = function () {
};
Symbol 1170 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.eventt != 0) {
gotoAndStop(_root.eventt);
_root.eventt = 0;
}
};
Symbol 1171 MovieClip Frame 50
_root.st_time_sec = _root.st_time_sec + 1;
if (_root.st_time_sec == 60) {
_root.st_time_sec = 0;
_root.st_time_min = _root.st_time_min + 1;
}
Symbol 1172 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.act != 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Instance of Symbol 730 MovieClip in Symbol 1177 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(100) + 1);
}
Symbol 1178 MovieClip Frame 1
stop();
Instance of Symbol 1174 MovieClip in Symbol 1178 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1179 Button
on (keyPress "q") {
_root.st_qual = _root.st_qual + 1;
if (_root.st_qual == 4) {
_root.st_qual = 1;
}
if (_root.st_qual == 1) {
_root._quality = "low";
}
if (_root.st_qual == 2) {
_root._quality = "medium";
}
if (_root.st_qual == 3) {
_root._quality = "high";
}
gotoAndPlay (2);
}
on (keyPress "Q") {
_root.st_qual = _root.st_qual + 1;
if (_root.st_qual == 4) {
_root.st_qual = 1;
}
if (_root.st_qual == 1) {
_root._quality = "low";
}
if (_root.st_qual == 2) {
_root._quality = "medium";
}
if (_root.st_qual == 3) {
_root._quality = "high";
}
gotoAndPlay (2);
}
Symbol 1186 MovieClip Frame 1
gotoAndStop(_root.st_qual);
Symbol 1187 MovieClip Frame 1
if (_root.st_qual == 1) {
_root._quality = "low";
}
if (_root.st_qual == 2) {
_root._quality = "medium";
}
if (_root.st_qual == 3) {
_root._quality = "high";
}
stop();
Symbol 1197 MovieClip Frame 1
stop();
Symbol 1201 Button
on (release, keyPress "<Space>") {
_root.got2go = 2;
}
Symbol 1206 Button
on (release) {
gotoAndStop (5);
}
Symbol 1211 Button
on (release) {
gotoAndStop (3);
}
Symbol 1216 Button
on (release) {
getURL ("http://www.gamesfree.ca/game/7309/walkthrough/run-ninja-run-2.html", "_blank");
}
Symbol 1223 Button
on (release) {
gotoAndStop (7);
}
Symbol 1227 MovieClip Frame 1
stopAllSounds();
if (_parent._currentframe == 24) {
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 1227 MovieClip Frame 3
stop();
Symbol 1227 MovieClip Frame 5
stop();
Symbol 1234 Button
on (release) {
if (can_buy_1 == 2) {
if (_root.st_jump == 1) {
_root.tuto_4 = 3;
}
_root.gold = _root.gold - cost_1;
_root.st_jump = _root.st_jump + 1;
gotoAndStop (4);
}
}
Symbol 1237 Button
on (release) {
if (can_buy_2 == 2) {
_root.gold = _root.gold - cost_2;
_root.st_slide = _root.st_slide + 1;
gotoAndStop (4);
}
}
Symbol 1240 Button
on (release) {
if (can_buy_3 == 2) {
_root.gold = _root.gold - cost_3;
_root.st_style = _root.st_style + 1;
gotoAndStop (4);
}
}
Symbol 1250 Button
on (release) {
gotoAndStop (2);
}
Symbol 1274 Button
on (release) {
_root.save_go = 2;
gotoAndStop (2);
}
Symbol 1276 Button
on (release, keyPress "<Enter>") {
if (_root.cheatbox == "3715") {
_root.cheatbox = "OK";
_root.st_jump = 4;
_root.st_slash = 4;
_root.st_slide = 4;
gotoAndStop (6);
}
if (_root.cheatbox == "8919") {
_root.cheatbox = "OK";
_root.st_jump = 4;
gotoAndStop (6);
}
if (_root.cheatbox == "5166") {
_root.cheatbox = "OK";
_root.st_slide = 4;
gotoAndStop (6);
}
if (_root.cheatbox == "5774") {
_root.cheatbox = "OK";
_root.st_style = 4;
gotoAndStop (6);
}
if (_root.cheatbox == "2684") {
_root.cheatbox = "OK";
_root.lvl = _root.lvl + 1;
if (_root.lvl == 15) {
_root.got2go = 3;
}
gotoAndStop (6);
}
if (_root.cheatbox == "2898") {
_root.cheatbox = "OK";
_root.lvl = 5;
gotoAndStop (6);
}
if (_root.cheatbox == "9156") {
_root.cheatbox = "OK";
_root.lvl = 9;
gotoAndStop (6);
}
if (_root.cheatbox == "1475") {
_root.cheatbox = "OK";
_root.lvl = 11;
gotoAndStop (6);
}
}
Symbol 1278 Button
on (release) {
getURL ("http://www.gamesfree.ca/game/7309/cheats/run-ninja-run-2.html", "_blank");
}
Symbol 1293 MovieClip Frame 1
gotoAndStop (2);
Symbol 1293 MovieClip Frame 60
stop();
Symbol 1297 MovieClip Frame 30
miree.play();
Symbol 1297 MovieClip Frame 100
_parent.gotoAndStop(22);
Symbol 1302 Button
on (release) {
_root.got2go = 2;
}
Symbol 1306 Button
on (release, keyPress "<Space>") {
if (_root.lvl == 1) {
_root.interr.tutoo.gotoAndStop(7);
}
_root.lvl = _root.lvl + 1;
_root.gold = _root.gold + gold;
_root.st_gold_tot = _root.st_gold_tot + gold;
if (_root.lvl == 6) {
_root.force_event = 2;
}
if (_root.lvl == 11) {
_root.force_event = 2;
}
if (_root.lvl == 15) {
_root.got2go = 3;
} else {
gotoAndStop (2);
}
}
Symbol 1309 MovieClip Frame 1
if (_root.open_pannel_load == 2) {
_root.open_pannel_load = 1;
_root.cnt._x = _root.cnt._x + 10000;
_root.act = 0;
_root.muz.gotoAndPlay(2);
_parent.eventt.gotoAndStop(4);
gotoAndStop (2);
}
stop();
onEnterFrame = function () {
};
Symbol 1309 MovieClip Frame 2
if ((_root.lvl == 2) && (_root.st_jump != 2)) {
if (_root.gold < 50) {
_root.gold = 50;
}
_root.interr.tutoo.gotoAndStop(7);
}
gold = _root.gold;
stop();
onEnterFrame = function () {
};
Instance of Symbol 404 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.lvl);
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.st_jump);
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.st_slide);
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.st_style);
}
Instance of Symbol 223 MovieClip in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
submenu = 2;
}
Symbol 1309 MovieClip Frame 3
can_buy_1 = 2;
can_buy_2 = 2;
can_buy_3 = 2;
stop();
onEnterFrame = function () {
if ((cost_1 > _root.gold) || (cost_1 == undefined)) {
bt_1._alpha = 20;
can_buy_1 = 1;
}
if ((cost_2 > _root.gold) || (cost_2 == undefined)) {
bt_2._alpha = 20;
can_buy_2 = 1;
}
if ((cost_3 > _root.gold) || (cost_3 == undefined)) {
bt_3._alpha = 20;
can_buy_3 = 1;
}
};
Instance of Symbol 1244 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
cost = eval ("_root.st_jump_" + _root.st_jump);
_parent.cost_1 = cost;
}
Instance of Symbol 1244 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
cost = eval ("_root.st_slide_" + _root.st_slide);
_parent.cost_2 = cost;
}
Instance of Symbol 1244 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
cost = eval ("_root.st_slash_" + _root.st_style);
_parent.cost_3 = cost;
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_jump);
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_slide);
}
Instance of Symbol 1197 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_style);
}
Instance of Symbol 1258 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_jump);
}
Instance of Symbol 1262 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_slide);
}
Instance of Symbol 1266 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.st_slash);
}
Symbol 1309 MovieClip Frame 5
_root.cheatbox = "";
stop();
onEnterFrame = function () {
};
Symbol 1309 MovieClip Frame 6
aa = random(150) + 1;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
gotoAndStop (5);
}
if (aa != 0) {
aa = aa - 1;
}
};
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_1);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_2);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_3);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_4);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_5);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_6);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_7);
}
Instance of Symbol 1284 MovieClip in Symbol 1309 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_8);
}
Symbol 1309 MovieClip Frame 21
stop();
onEnterFrame = function () {
};
Symbol 1309 MovieClip Frame 22
gold = 0;
gold_mc.gold = gold;
timer = 20;
stade = 1;
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else {
timer = 5;
if (gold < _root.gold_collected) {
gold = gold + 10;
gold_mc.gold = gold;
gold_mc.gotoAndPlay(2);
} else {
gold_mc.gotoAndStop(20);
if (stade == 1) {
stade = 2;
timer = 30;
} else {
gotoAndStop (23);
}
}
}
};
Symbol 1309 MovieClip Frame 23
_root.save_go = 2;
stop();
onEnterFrame = function () {
};
Symbol 1309 MovieClip Frame 24
aa = 100;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
gotoAndStop (2);
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 1312 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_root.achiv_done);
};
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ac_1);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.ac_2);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ac_3);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_root.ac_4);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.ac_5);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_root.ac_6);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ac_7);
}
Instance of Symbol 1284 MovieClip in Symbol 1312 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_root.ac_8);
}
Symbol 1314 MovieClip Frame 1
stop();
Symbol 1314 MovieClip Frame 2
_root.achiv_flash.gotoAndPlay(2);
Symbol 1328 Button
on (release) {
gotoAndStop (1);
}
Symbol 1334 MovieClip Frame 1
timer = 125;
stop();
onEnterFrame = function () {
if ((_currentframe >= 2) && (_currentframe <= 6)) {
if (timer > 0) {
timer = timer - 1;
} else {
gotoAndStop (1);
}
}
};
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 3
stop();
Symbol 1338 MovieClip Frame 5
stop();
Symbol 1338 MovieClip Frame 7
stop();
Symbol 1340 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((_root.cnt.ninja._visible == true) && (_root.cnt.ninja._currentframe == 1)) {
if (_currentframe > 3) {
gotoAndPlay (2);
}
} else if (_currentframe <= 3) {
gotoAndPlay (4);
}
};
Symbol 1340 MovieClip Frame 3
stop();
Symbol 1340 MovieClip Frame 5
stop();
Symbol 1341 MovieClip Frame 1
stop();
Symbol 1341 MovieClip Frame 3
stop();
Symbol 1341 MovieClip Frame 5
stop();
Symbol 1341 MovieClip Frame 7
stop();
Symbol 1343 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((_root.slide == 2) || (_root.sliding != 0)) {
if (_currentframe > 3) {
gotoAndPlay (2);
}
} else if (_currentframe <= 3) {
gotoAndPlay (4);
}
};
Symbol 1343 MovieClip Frame 3
stop();
Symbol 1343 MovieClip Frame 5
stop();
Symbol 1347 MovieClip Frame 1
stop();
Symbol 1347 MovieClip Frame 3
stop();
Symbol 1347 MovieClip Frame 5
stop();
Symbol 1347 MovieClip Frame 7
stop();