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:"9ff3f9c36e4916fe", res:"800x500"});
__com_mochibot__("edca3695", this, 10301, true);
vers = 1;
function menuChoiceOne() {
getURL ("http://www.spoofgames.com");
}
sg_tool_left = true;
sg_tool_right = true;
dimension_width = 800;
dimension_height = 500;
gameId = 2;
lvl = 1;
lvl2 = 1;
cash = 0;
wp_1 = 2;
wp_2 = 1;
wp_3 = 1;
wp_4 = 1;
ac_1 = 1;
ac_2 = 1;
ac_3 = 1;
ac_4 = 1;
ac_5 = 1;
ac_6 = 1;
ac_7 = 1;
ac_txx_1 = "Beat the Commando level";
ac_txx_2 = "Beat the Total Recall level";
ac_txx_3 = "Beat the Predator level";
ac_txx_4 = "Beat the Terminator level";
ac_txx_5 = "Click on the Housewife";
ac_txx_6 = "Get 60 Kills";
ac_txx_7 = "Reach the end of the game";
ac_coins_1 = 10;
ac_coins_2 = 10;
ac_coins_3 = 10;
ac_coins_4 = 10;
ac_coins_5 = 10;
ac_coins_6 = 10;
ac_coins_7 = 10;
user = SharedObject.getLocal("user_ArnoldsFury");
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("SpoofGames", menuChoiceOne));
this.menu = NewMenu;
Frame 3
stop();
Frame 20
mess = 1;
load_achiv = 0;
stop();
onEnterFrame = function () {
if (_root.got2go == 2) {
_root.got2go = 1;
gotoAndStop (51);
}
};
Instance of Symbol 327 MovieClip in Frame 20
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_parent.logo.boxx._currentframe == 100) {
_visible = true;
}
}
Instance of Symbol 367 MovieClip in Frame 20
onClipEvent (load) {
bras.bt._visible = false;
}
Frame 24
if (_root.php_achievements_load == 2) {
_root.php_achievements_load = 1;
sg_id = _root.sg_id;
gameId = _root.gameId;
_root.achievements = (((((((((((("&achievement1=" + _root.ac_1) + "&achievement2=") + _root.ac_2) + "&achievement3=") + _root.ac_3) + "&achievement4=") + _root.ac_4) + "&achievement5=") + _root.ac_5) + "&achievement6=") + _root.ac_6) + "&achievement7=") + _root.ac_7;
achievements = _root.achievements;
loadVariablesNum ("http://www.spoofgames.com/achievements.php?load=1", 0, "POST");
_root.start_loading_timer = 40;
_root.start_loading = 3;
aff_1 = "stade : 1";
}
if (_root.php_achievements_save == 2) {
_root.php_achievements_save = 1;
sg_id = _root.sg_id;
gameId = _root.gameId;
_root.achievements = (((((((((((("achievement1=" + _root.ac_1) + "&achievement2=") + _root.ac_2) + "&achievement3=") + _root.ac_3) + "&achievement4=") + _root.ac_4) + "&achievement5=") + _root.ac_5) + "&achievement6=") + _root.ac_6) + "&achievement7=") + _root.ac_7;
achievements = _root.achievements;
loadVariablesNum ("http://www.spoofgames.com/achievements.php?save=1", 0, "POST");
}
if (_root.start_loading == 3) {
if (_root.start_loading_timer != 0) {
_root.start_loading_timer = _root.start_loading_timer - 1;
aff_1 = "stade : 2";
} else {
loadVariablesNum ("http://www.spoofgames.com/achievements.php?load=2", 0, "GET");
_root.start_loading = 2;
aff_1 = "stade : 3";
}
}
if (_root.start_loading == 2) {
_root.start_loading = 1;
aff_1 = "stade : 4";
var my_lv = new LoadVars();
my_lv.onLoad = function (success) {
if (success) {
_root.reaction = "Success";
_root.reaction_received = 2;
aff_1 = "stade : 5.1";
} else {
_root.reaction_received = 2;
aff_1 = "stade : 5.2";
}
};
my_lv.load("http://www.spoofgames.com/achievements.php?load=1");
}
if (_root.reaction_received == 2) {
_root.reaction_received = 1;
aff_1 = "stade : 6 !!!!!!";
}
Frame 40
_root.lvl2 = 4;
_root.arnold_eyes = 1;
stop();
onEnterFrame = function () {
};
Frame 51
_root.qual_st = 2;
hour = 22;
minute = 0;
energy = 100;
canmove = 2;
doublejump = 1;
camera_speed = 0.12;
gravity = 0.2;
jump_power = 60;
jump_speed = 1;
speed = 0;
perso_side = "R";
canshot = 2;
canmove = 2;
canshot_timer = 0;
munition_nb = 1;
run = 1;
run_key_timer = 0;
dash = 2;
terre_nb = 1;
act = 1;
hurt = 0;
map = 2;
wp = 1;
wp_mag_1 = 60;
wp_mag_2 = 80;
wp_mag_3 = 120;
wp_mag_4 = 300;
wp_ammo_1 = wp_mag_1;
wp_ammo_2 = wp_mag_2;
wp_ammo_3 = wp_mag_3;
wp_ammo_4 = wp_mag_4;
wp_cooling_1 = 6;
wp_cooling_2 = 4;
wp_cooling_3 = 3;
wp_cooling_4 = 2;
wp_overheat_1 = 15;
wp_overheat_2 = 12;
wp_overheat_3 = 9;
wp_overheat_4 = 6;
wp_reload_1 = 1.2;
wp_reload_2 = 1.2;
wp_reload_3 = 1.2;
wp_reload_4 = 1.2;
wp_shake_1 = 3;
wp_shake_2 = 3;
wp_shake_3 = 3;
wp_shake_4 = 3;
cooling = 0;
bullet_nb = 1;
bullet_nb2 = 1;
bullet_revol_nb = 1;
overheat = 0;
lvl = 0;
cnt.perso._x = 567;
cnt.perso._y = 4615;
shootingAdjustX_1 = 30;
shootingAdjustX_2 = 0;
shootingAdjustX_3 = 40;
shootingAdjustX_4 = 20;
shootingAdjustY_1 = -80;
shootingAdjustY_2 = -80;
shootingAdjustY_3 = -85;
shootingAdjustY_4 = -54;
shootingAdjustYr_1 = 15;
shootingAdjustYr_2 = 35;
shootingAdjustYr_3 = 10;
shootingAdjustYr_4 = 35;
stop();
var isMouseDown = false;
onMouseDown = function () {
isMouseDown = true;
};
onMouseUp = function () {
isMouseDown = false;
};
onEnterFrame = function () {
if (ac_1 != 2) {
if (lvl2 > 1) {
ac_1 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_2 != 2) {
if (lvl2 > 2) {
ac_2 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_3 != 2) {
if (lvl2 > 3) {
ac_3 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_4 != 2) {
if (lvl2 > 4) {
ac_4 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_5 != 2) {
if (interr2._currentframe > 51) {
ac_5 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_6 != 2) {
if (_root.ac_6_total_kill == undefined) {
_root.ac_6_total_kill = 0;
}
if (_root.ac_6_total_kill >= 60) {
ac_6 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (ac_7 != 2) {
if (((_root.lvl2 >= 5) && (_root.lvl == 0)) && (_root.cnt.perso._x <= 575)) {
ac_7 = 2;
sg_alerts = sg_alerts + 1;
sg_alerts_go = 2;
}
}
if (((((isMouseDown && (canshot == 2)) && (cooling == 0)) && (canmove == 2)) && (overheat < 100)) && (ammo != 0)) {
cnt.perso.gun.boxx.gotoAndPlay(2);
cooling = eval ("wp_cooling_" + wp);
shake = eval ("wp_shake_" + wp);
Set("wp_ammo_" + wp, eval ("wp_ammo_" + wp) - 1);
interr.weaponboxx.ammoboxx.gotoAndPlay(2);
overheat = overheat + eval ("wp_overheat_" + wp);
_root.bullets_fired = _root.bullets_fired + 1;
Set(("cnt.bl_" + bullet_nb) + "._x", cnt.perso._x);
Set(("cnt.bl_" + bullet_nb) + "._y", cnt.perso._y + eval ("shootingAdjustY_" + wp));
if (perso_side == "R") {
Set(("cnt.bl_" + bullet_nb) + "._rotation", cnt.perso.gun._rotation);
} else {
Set(("cnt.bl_" + bullet_nb) + "._rotation", (cnt.perso.gun._rotation * -1) + 180);
}
eval ("cnt.bl_" + bullet_nb).gotoAndStop(2);
if (bullet_nb == 20) {
cnt.bl_1.gotoAndStop(1);
} else {
eval ("cnt.bl_" + (bullet_nb + 1)).gotoAndStop(1);
}
bullet_nb = bullet_nb + 1;
if (bullet_nb == 21) {
bullet_nb = 1;
}
snd.weapon.gotoAndPlay(((wp * 4) - 4) + ((random(2) + 1) * 2));
Set(("cnt.b_" + bullet_revol_nb) + "._x", cnt.perso._x);
Set(("cnt.b_" + bullet_revol_nb) + "._y", cnt.perso._y - 60);
eval ("cnt.b_" + bullet_revol_nb).gotoAndStop(2);
eval ("cnt.b_" + bullet_revol_nb).boxx.gotoAndStop(wp);
bullet_revol_nb = bullet_revol_nb + 1;
if (bullet_revol_nb == 51) {
bullet_revol_nb = 1;
}
}
cnt.perso.gun.boxx.boxx.gotoAndStop(wp);
interr.weaponboxx.wpboxx.boxx.gotoAndStop(wp + 1);
if (lvl == 0) {
cooling = 100000 /* 0x0186A0 */;
interr._visible = false;
if ((cnt.dialogues._currentframe < 2) || (cnt.dialogues._currentframe > 2564)) {
top_speed_walk = 1;
top_speed_run = 3;
} else {
top_speed_walk = 0.5;
top_speed_run = 2;
}
} else {
top_speed_walk = 3;
top_speed_run = 9;
}
if (cheat_1 == 2) {
top_speed_run = top_speed_run * 2;
}
if (cheat_2 == 2) {
if ((cooling > 1) && (cooling < 100)) {
cooling = 1;
}
}
if (cheat_3 == 2) {
overheat = 0;
}
if (cheat_5 == 2) {
gravity = 0.12;
} else if (_root.lvl != 2) {
gravity = 0.2;
}
if (cheat_6 == 2) {
gravity = 0.3;
} else if (_root.lvl != 2) {
gravity = 0.2;
}
if (cheat_7 == 2) {
_root.wp_1 = 2;
_root.wp_2 = 2;
_root.wp_3 = 2;
_root.wp_4 = 2;
}
if (cheat_8 == 2) {
_root.lvl2 = 4;
}
ammo = eval ("wp_ammo_" + wp);
mag = eval ("wp_mag_" + wp);
if ((ammo == 0) && (reload_timer <= 0)) {
if (interr.msgboxx.reload._currentframe == 1) {
interr.msgboxx.reload.gotoAndPlay(2);
}
} else {
interr.msgboxx.reload.gotoAndStop(1);
}
if (cooling != 0) {
cooling = cooling - 1;
}
interr.weaponboxx.overheat.gotoAndStop(overheat + 1);
if (overheat < 100) {
overheat_cooling = 100;
if (overheat > 0) {
overheat = overheat - 2;
}
} else if (overheat_cooling > 0) {
overheat_cooling = overheat_cooling - 1;
} else {
overheat = 25;
}
if (overheat >= 100) {
if (interr.msgboxx.overheat._currentframe == 1) {
snd.divers.gotoAndPlay(4);
interr.msgboxx.overheat.gotoAndPlay(2);
}
} else {
interr.msgboxx.overheat.gotoAndStop(1);
}
if (Key.isDown(32)) {
if (medic_hitt == 2) {
cnt.medic.activated = 2;
key32raeleased = 1;
} else if ((((canshot == 2) && (canmove == 2)) && (ammo != mag)) && (key32released == 2)) {
key32released = 1;
cnt.reload_boxx.gotoAndPlay(2);
cooling = 10000;
}
} else {
cnt.medic.activated = 1;
key32released = 2;
}
if (reload_timer > 0) {
reload_timer = reload_timer - 1;
}
if (reload_timer == 0) {
reload_timer = reload_timer - 1;
Set("wp_ammo_" + wp, eval ("wp_mag_" + wp));
canshot = 2;
canmove = 2;
cooling = 1;
}
if (lvl == 0) {
interr._visible = false;
} else {
interr._visible = true;
}
interr.energybar.gotoAndStop(Math.round(energy + 1));
cnt.gotoAndStop(lvl + 1);
fond1.gotoAndStop(lvl + 1);
fond2.gotoAndStop(lvl + 1);
fond3.gotoAndStop(lvl + 1);
fond1._x = cnt._x * 1.5;
fond1._y = cnt._y * 1.5;
fond2._x = cnt._x / 3;
fond2._y = cnt._y / 3;
fond3._x = cnt._x / 10;
fond3._y = cnt._y / 10;
if (lvl == 0) {
clothes = 5;
} else {
clothes = lvl;
}
if (((Key.isDown(65) && (!Key.isDown(68))) && (canmove == 2)) && (_root.cnt.perso.gun.boxx._currentframe == 1)) {
speed = speed - 1;
if (perso_side == "R") {
cnt.perso._xscale = cnt.perso._xscale * -1;
perso_side = "L";
}
if ((dash == 3) && (dash_delay != 0)) {
run = 2;
}
if (dash == 1) {
dash = 2;
dash_delay = 15;
}
} else if (speed < 0) {
speed = speed * 0.85;
}
if (((Key.isDown(68) && (!Key.isDown(65))) && (canmove == 2)) && (_root.cnt.perso.gun.boxx._currentframe == 1)) {
speed = speed + 1;
if (perso_side == "L") {
cnt.perso._xscale = cnt.perso._xscale * -1;
perso_side = "R";
}
if ((dash == 3) && (dash_delay != 0)) {
run = 2;
}
if (dash == 1) {
dash = 2;
dash_delay = 15;
}
} else if (speed > 0) {
speed = speed * 0.85;
}
if (dash_delay != 0) {
} else {
dash = 1;
}
if ((!Key.isDown(68)) && (!Key.isDown(65))) {
run = 1;
if (dash == 2) {
dash = 3;
}
}
if (canmove == 2) {
if (perso_floorhitt != 2) {
if (jump_speed <= -2) {
if ((cnt.perso._currentframe < 176) || (cnt.perso._currentframe > 200)) {
cnt.perso.gotoAndPlay(176);
}
}
} else if (_root.cnt.perso.gun.boxx._currentframe == 1) {
if (Key.isDown(65) || (Key.isDown(68))) {
if (lvl == 0) {
if ((cnt.perso._currentframe < 101) || (cnt.perso._currentframe > 155)) {
cnt.perso.gotoAndPlay(101);
}
} else if ((cnt.perso._currentframe < 151) || (cnt.perso._currentframe > 175)) {
cnt.perso.gotoAndPlay(151);
}
} else if (cnt.perso._currentframe > 100) {
cnt.perso.gotoAndPlay(2);
}
} else {
cnt.perso.gotoAndPlay(226);
}
}
if (perso_lefthitt == 2) {
if (speed < 0) {
speed = 0;
}
}
if (perso_righthitt == 2) {
if (speed > 0) {
speed = 0;
}
}
if (run == 1) {
top_speed = top_speed_walk;
} else {
top_speed = top_speed_run;
}
if (speed > top_speed) {
speed = top_speed;
}
if (speed < (top_speed * -1)) {
speed = top_speed * -1;
}
if (mur_touch == 2) {
speed = 0;
}
if (canmove == 2) {
cnt.perso._x = cnt.perso._x + speed;
}
cnt.bulleinfo._x = cnt.perso._x;
cnt.bulleinfo._y = cnt.perso._y - 220;
if (perso_floorhitt == 2) {
if (jump_speed >= 25) {
canmove = 1;
cnt.perso.gotoAndPlay("JumpLand");
cnt.perso.gotoAndPlay(cnt.perso._currentframe + 15);
shake = 10;
}
if (jump_speed >= 50) {
canmove = 1;
cnt.perso.gotoAndPlay("JumpLand");
shake = 30;
}
jump_speed = 0;
}
if (Key.isDown(87)) {
if (canmove == 2) {
if ((perso_floorhitt == 2) && (cooling == 0)) {
doublejump = 2;
jump_speed = jump_power * -1;
cnt.perso._y = cnt.perso._y - 20;
}
if ((jump_speed > -2) && (doublejump == 3)) {
doublejump = 1;
cnt.perso._y = cnt.perso._y + jump_speed;
jump_speed = (jump_power * -1) / 2;
cnt.perso._y = cnt.perso._y - 20;
}
if ((slide_wall == 2) && (slide_wall_keyreleased == 2)) {
cnt.perso.terre_revol = 2;
doublejump = 1;
cnt.perso._y = cnt.perso._y + jump_speed;
jump_speed = (jump_power * -1) / 2;
cnt.perso._y = cnt.perso._y - 10;
slide_wall_keyreleased = 1;
cnt.perso._y = cnt.perso._y - 20;
if (perso_side == "R") {
cnt.perso._x = cnt.perso._x - 20;
speed = -90;
} else {
cnt.perso._x = cnt.perso._x + 20;
speed = 90;
}
}
}
} else {
if (doublejump == 2) {
doublejump = 3;
}
slide_wall_keyreleased = 2;
}
if (perso_floorhitt == 1) {
if (jump_speed < -2) {
jump_speed = jump_speed * (1 - gravity);
}
if ((jump_speed >= -2) && (jump_speed <= 2)) {
jump_speed = 2.1;
jump_speed = jump_speed * (1 + gravity);
}
if (jump_speed > 2) {
if (jump_speed <= 80) {
jump_speed = jump_speed * (1 + gravity);
}
}
cnt.perso._y = cnt.perso._y + jump_speed;
}
if (hurt != 0) {
if (canmove == 2) {
canmove = 1;
energy = energy - hurt;
if (hurt >= 20) {
cnt.perso.gotoAndPlay("Hurt3");
} else {
aa = random(2) + 1;
cnt.perso.gotoAndPlay("Hurt" + aa);
}
}
hurt = 0;
}
if (energy <= 0) {
energy = 0;
canshot = 1;
canmove = 1;
if (cnt.perso._currentframe < 551) {
cnt.perso.gotoAndPlay("Die");
}
}
if (act == 1) {
if ((cnt._x - 10) > (400 - cnt.perso._x)) {
cnt._x = cnt._x - (((cnt._x - 10) - (400 - cnt.perso._x)) * camera_speed);
}
if ((cnt._x + 10) < (400 - cnt.perso._x)) {
cnt._x = cnt._x + (((400 - cnt.perso._x) - (cnt._x + 10)) * camera_speed);
}
if ((cnt._y - 10) > (400 - cnt.perso._y)) {
cnt._y = cnt._y - (((cnt._y - 10) - (400 - cnt.perso._y)) * camera_speed);
}
if ((cnt._y + 10) < (400 - cnt.perso._y)) {
cnt._y = cnt._y + (((400 - cnt.perso._y) - (cnt._y + 10)) * camera_speed);
}
}
if (shake != 0) {
shakeb = shake;
shake = 0;
shake_stade = 8;
}
if (shake_stade != 0) {
shake_stade = shake_stade - 1;
cnt._x = cnt._x + (random(shakeb * 2) - shakeb);
cnt._y = cnt._y + (random(shakeb * 2) - shakeb);
shakeb = shakeb * 0.95;
}
if (quit_movie == 2) {
quit_movie = 1;
if (_root.lvl != 0) {
fondu_to_death = 2;
fondu.gotoAndStop(42);
}
}
if (got2go == 2) {
got2go = 1;
gotoAndStop (40);
}
if (got2go == 3) {
got2go = 1;
gotoAndStop (39);
}
};
Symbol 24 MovieClip Frame 40
stop();
Symbol 31 Button
on (release) {
startMovie();
}
Symbol 32 MovieClip [Preloader Bar (NewgroundsAPI)] Frame 1
#initclip 31
Object.registerClass("Preloader Bar (NewgroundsAPI)", com.newgrounds.components.PreloaderBar);
#endinitclip
Symbol 59 Button
on (release) {
com.newgrounds.API.loadNewgrounds();
}
Symbol 65 MovieClip Frame 1
onEnterFrame = function () {
if (_visible) {
_rotation = (_rotation + 30);
} else {
delete onEnterFrame;
}
};
Symbol 66 MovieClip Frame 11
gotoAndPlay (1);
Symbol 67 MovieClip [Flash Ad (NewgroundsAPI)] Frame 1
#initclip 32
Object.registerClass("Flash Ad (NewgroundsAPI)", com.newgrounds.components.FlashAd);
#endinitclip
Symbol 76 MovieClip Frame 10
stop();
Symbol 78 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 90 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay ("closeme");
}
_visible = true;
icon._visible = false;
pop_delay = setInterval(endDelay, 3000);
Symbol 90 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 90 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
icon._visible = true;
medal_name = medal.getName();
medal_value = medal.getValue() + "pts";
stop();
Symbol 90 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 96 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay ("closeme");
}
_x = 0;
_y = 0;
_visible = true;
pop_delay = setInterval(endDelay, 6000);
Symbol 96 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 96 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 99 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
function endDelay() {
clearInterval(pop_delay);
gotoAndPlay ("closeme");
}
_x = 0;
_y = 0;
_visible = true;
pop_delay = setInterval(endDelay, 6000);
Symbol 99 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 99 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 120 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
var w = Math.round(this._width);
var h = Math.round(this._height);
if (w < 80) {
w = 80;
}
if (h < 80) {
h = 80;
}
this._width = 350;
this._height = 120;
t._width = w - 2;
t._x = 1;
b._width = w - 2;
b._x = 1;
c._width = w - 2;
c._x = 1;
c._height = h - 2;
c._y = 1;
l._height = h - 2;
l._y = 1;
r._height = h - 2;
r._y = 1;
tr._x = w - 7;
r._x = w - 7;
br._x = w - 7;
b._y = h - 7;
bl._y = h - 7;
br._y = h - 7;
shadow._width = w + 10;
shadow._height = h + 10;
Symbol 124 Button
on (release) {
this._visible = false;
this.removeMovieClip();
}
Symbol 130 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 132 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
background._width = Stage.width + 200;
background._height = Stage.height + 200;
background._x = -(_x + 100);
background._y = -(_y + 100);
Symbol 133 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 137 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
_x = (Stage.width / 2);
_y = (Stage.height / 2);
background._width = Stage.width + 200;
background._height = Stage.height + 200;
background._x = -(_x + 100);
background._y = -(_y + 100);
Symbol 138 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 33
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 138 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 146 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 146 MovieClip Frame 2
gotoAndPlay (1);
Symbol 146 MovieClip Frame 3
_root.play();
Symbol 171 MovieClip Frame 1
gotoAndPlay (2);
Symbol 171 MovieClip Frame 57
stop();
Symbol 171 MovieClip Frame 69
gotoAndPlay (58);
Symbol 171 MovieClip Frame 93
aa = 50;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 171 MovieClip Frame 94
Symbol 171 MovieClip Frame 100
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 100
stop();
Symbol 1684 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 1685 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 1686 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.3 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) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
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) {
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.apply(null, ["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.apply(null, [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.apply(null, ["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.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["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 1687 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 1688 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 1689 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 1 MovieClip [__Packages.com.newgrounds.components.PreloaderBar] Frame 0
class com.newgrounds.components.PreloaderBar extends MovieClip
{
var gotoAndStop, _totalframes, FRAME_TIME, intervalId, time, bar;
function PreloaderBar () {
super();
}
function onLoad() {
_root.stop();
var _local3 = com.newgrounds.API.getPercentLoaded();
if (_local3 == 100) {
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop(_totalframes);
}
} else {
advanceFrame(this, false, false);
FRAME_TIME = 1000 / FRAME_RATE;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
}
}
function timerHandler() {
if (!loadingComplete) {
var _local4 = com.newgrounds.API.getPercentLoaded();
bar._xscale = _local4;
if (_local4 == 100) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
}
return(undefined);
}
}
var _local3 = getTimer() - time;
time = time + _local3;
frameAccum = frameAccum + _local3;
var _local2 = 0;
while ((frameAccum >= FRAME_TIME) && (_local2 < MAX_FRAME_SKIP)) {
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local2++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (var _local5 in clip) {
if (typeof(clip[_local5]) == "movieclip") {
advanceFrame(clip[_local5], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
static var symbolName = "preloaderBar";
static var symbolOwner = "com.newgrounds.API";
var AUTO_PLAY = false;
var FRAME_RATE = 30;
var MAX_FRAME_SKIP = 5;
var loadingComplete = false;
var frameAccum = 0;
}
Symbol 33 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
class com.newgrounds.APIError
{
var message, name, alias;
function APIError (error, msg) {
if (Number(error).toString() == String(error)) {
error = Number(error);
} else if (error_codes[String(error)]) {
error = error_codes[String(error)];
} else {
error = 0;
}
code = error;
message = msg;
name = error_names[error];
alias = aliases[error];
}
static function init_codes() {
var _local2 = new Object();
var _local1 = 0;
while (_local1 < aliases.length) {
_local2[aliases[_local1]] = _local1;
_local1++;
}
return(_local2);
}
static function init_names() {
var _local5 = new Array();
var _local3 = 0;
while (_local3 < aliases.length) {
var _local2 = aliases[_local3].toLowerCase().split("_");
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = _local2[_local1].substr(0, 1).toUpperCase() + _local2[_local1].substr(1, _local2[_local1].length);
for (var _local4 in always_caps) {
if (_local2[_local1].toUpperCase() == always_caps[_local4]) {
_local2[_local1] = _local2[_local1].toUpperCase();
}
}
_local1++;
}
_local5[_local3] = _local2.join(" ");
_local3++;
}
return(_local5);
}
function isError() {
return(true);
}
static var aliases = new Array("UNKNOWN_ERROR", "INVALID_API_ID", "MISSING_PARAM", "INVALID_STAT_ID", "INVALID_COMMAND_ID", "FLASH_ADS_NOT_APPROVED", "PERMISSION_DENIED", "IDENTIFICATION_REQUIRED", "INVALID_EMAIL_ADDRESS", "BANNED_USER", "SESSION_EXPIRED", "INVALID_SCORE", "INVALID_MEDAL", "INVALID_SAVE_GROUP", "FILE_NOT_FOUND", "SITE_ID_REQUIRED", "UPLOAD_IN_PROGRESS", "USER_CANCELLED", "CONFIRM_REQUEST", "ILLEGAL_REQUEST", "CONNECTION_FAILED", "QUERY_INCOMPLETE", "SAVE_FILE_ERROR", "INVALID_VALUE", "SERVER_ERROR", "INVALID_SCOREBOARD");
static var always_caps = new Array("API", "URL", "ID");
static var error_codes = init_codes();
static var error_names = init_names();
var code = 0;
}
Symbol 34 MovieClip [__Packages.com.newgrounds.API] Frame 0
class com.newgrounds.API
{
static var version, user_email, movie_id, debug, session_id, connected, tracker_id, user_id, user_name, timeout, encryption_key, host, remote_auth, ad_url, eventDispatcher, last_command, ad_swf_url;
function API () {
}
static function setVersion(v) {
version = v;
}
static function setUserEmail(e) {
user_email = e;
}
static function setFakeSession(fake) {
fake_session = fake;
}
static function setPreload(p) {
preload = p;
}
static function getPercentLoaded() {
var _local2;
if (preload && (preload_items > 0)) {
_local2 = 80;
var _local4 = Math.round((preload_items_loaded / preload_items) * 20);
var _local3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * _local2) + _local4;
} else {
_local2 = 100;
var _local3 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * _local2);
}
return(_local3);
}
static function reportNewAsset() {
if (preload) {
preload_items++;
}
}
static function reportAssetLoaded() {
if (preload) {
preload_items_loaded++;
}
}
static function populateMedals(medal_list) {
if (medals === null) {
medals = new Array();
var _local2 = 0;
while (_local2 < medal_list.length) {
var _local1 = medal_list[_local2];
medals.push(new com.newgrounds.Medal(_local1.medal_id, _local1.medal_name, _local1.medal_value, _local1.medal_difficulty, _local1.medal_unlocked, _local1.medal_icon));
_local2++;
}
}
}
static function populateSaveGroups(save_group_list, file_path, image_path) {
com.newgrounds.SaveFile.setFilePath(file_path);
com.newgrounds.SaveFile.setImagePath(image_path);
save_groups = new Array();
var _local6 = 0;
while (_local6 < save_group_list.length) {
var _local2 = save_group_list[_local6];
var _local5 = new com.newgrounds.SaveGroup(_local2.group_id, _local2.group_name, _local2.group_type);
var _local4 = 0;
while (_local4 < _local2.keys.length) {
var _local3 = _local2.keys[_local4];
_local5.addKey(_local3.id, _local3.name, _local3.type);
_local4++;
}
_local4 = 0;
while (_local4 < _local2.ratings.length) {
var _local1 = _local2.ratings[_local4];
_local5.addRating(_local1.id, _local1.name, _local1.min, _local1.max, _local1.float);
_local4++;
}
save_groups.push(_local5);
_local6++;
}
}
static function populateScoreBoards(score_boards) {
scoreboards = new Array();
var _local1 = 0;
while (_local1 < score_boards.length) {
scoreboards.push(new com.newgrounds.ScoreBoard(score_boards[_local1].id, score_boards[_local1].name));
_local1++;
}
}
static function getOfficialURL() {
var _local1 = (((GATEWAY_URL + "?tracker_id=") + movie_id) + "&command_id=loadOfficalVersion&seed=") + Math.random();
if (debug) {
_local1 = _local1 + "&debug=1";
}
return(_local1);
}
static function loadOfficialURL() {
getURL (getOfficialURL(), "_blank");
}
static function hasUserSession() {
if (session_id && (publisher_id)) {
return(true);
}
if (_root.NewgroundsAPI_PublisherID && (_root.NewgroundsAPI_SessionID)) {
return(true);
}
return(false);
}
static function hostIsCompatible() {
return(!(_root.NewgroundsAPI_PublisherID === undefined));
}
static function isNewgrounds() {
return((((publisher_id == 1) || (_root.NewgroundsAPI_PublisherID == 1)) || (getHost().toLowerCase().indexOf("ungrounded.net") > -1)) || (getHost().toLowerCase().indexOf("newgrounds.com") > -1));
}
static function hasPublisher() {
return(publisher_id || (_root.NewgroundsAPI_PublisherID));
}
static function hasUserEmail() {
if (user_email) {
return(true);
}
return(false);
}
static function isConnected() {
return(connected);
}
static function getID() {
return(getTrackerID());
}
static function getTrackerID() {
return(tracker_id);
}
static function getUserID() {
return(user_id);
}
static function getUserName() {
return(user_name);
}
static function connectionTimeOut() {
reportAssetLoaded();
clearInterval(timeout);
callListener(com.newgrounds.APIEvent.API_CONNECTED, false, new com.newgrounds.APIError("CONNECTION_FAILED", "Connection to API gateway timed out."));
}
static function connect(m_id, encrypt_key, debug_mode) {
if (connected) {
return(undefined);
}
sendMessage("Connecting to the Newgrounds API Gateway...");
var _local2 = function () {
com.newgrounds.API.connectionTimeOut();
};
timeout = setInterval(_local2, 10000, null);
if (!m_id) {
fatalError("API.connect() - missing required movie_id parameter", "connect");
}
movie_id = String(m_id);
tracker_id = Number(movie_id.substring(0, movie_id.indexOf(":")));
encryption_key = encrypt_key;
debug = debug_mode;
user_id = 0;
user_name = "Guest";
if (_root.NewgroundsAPI_PublisherID) {
publisher_id = _root.NewgroundsAPI_PublisherID;
if (_root.NewgroundsAPI_SessionID) {
session_id = _root.NewgroundsAPI_SessionID;
}
} else if (fake_session) {
publisher_id = 1;
session_id = "D3bu64p1U53R";
user_id = 10;
user_name = "API-Debugger";
} else {
if (debug) {
publisher_id = 1;
}
session_id = null;
}
if (_root.NewgroundsAPI_UserName) {
user_name = _root.NewgroundsAPI_UserName;
}
if (_root.NewgroundsAPI_UserID) {
user_id = _root.NewgroundsAPI_UserID;
}
if (_root.NewgroundsAPI_UserpageFormat) {
userpage_format = _root.NewgroundsAPI_UserpageFormat;
}
reportNewAsset();
connected = true;
sendCommand("connectMovie", {host:getHost(), movie_version:version});
}
static function getHost() {
if (!host) {
var _local1 = _url;
if ((_local1.toLowerCase().indexOf("http://") > -1) or (_local1.toLowerCase().indexOf("https://") > -1)) {
if (_local1.toLowerCase().indexOf(NEWGROUNDS_PREVIEW) > -1) {
host = NEWGROUNDS_PREVIEW;
} else {
host = _local1.split("/")[2].toLowerCase();
}
} else {
host = LOCAL_HOST;
}
}
return(host);
}
static function isPublishedHost() {
for (var _local1 in PREVIEW_HOSTS) {
if (getHost() == PREVIEW_HOSTS[_local1]) {
return(false);
}
}
return(true);
}
static function loadUserPage(u_id, u_name) {
if ((u_id == undefined) && (u_name == undefined)) {
if (hasUserSession()) {
u_id = user_id;
u_name = user_name;
} else {
return(false);
}
}
if (publisher_id == 1) {
var _local1 = ("http://" + user_name.toLowerCase()) + ".newgrounds.com";
getURL (_local1, "_blank");
return(true);
}
if (userpage_format) {
var _local1 = userpage_format;
_local1 = _local1.split(":user_id:").join(u_id.toString());
_local1 = _local1.split(":user_name:").join(escape(u_name));
getURL (_local1, "_blank");
return(true);
}
return(false);
}
static function loadNewgrounds() {
sendCommand("loadNewgrounds", {host:getHost()}, true);
}
static function loadMySite() {
sendCommand("loadMySite", {host:getHost()}, true);
}
static function loadCustomLink(link) {
sendCommand("loadCustomLink", {host:getHost(), link:link}, true);
}
static function logCustomEvent(event) {
sendCommand("logCustomEvent", {host:getHost(), event:event});
}
static function getScoreBoard(board) {
if ((!scoreboards) || (scoreboards.length < 1)) {
sendWarning("You do not have any scoreboards configured in your API setup.");
return(null);
}
for (var _local2 in scoreboards) {
if ((typeof(board) == "string") && (scoreboards[_local2].name == board)) {
return(scoreboards[_local2]);
}
if ((typeof(board) == "number") && (scoreboards[_local2].id == board)) {
return(scoreboards[_local2]);
}
}
sendWarning(("Could not find any scoreboards named '" + board) + "'.");
return(null);
}
static function postScore(board_name, value, tag) {
var _local3 = getScoreBoard(board_name);
if (tag === undefined) {
tag = "";
}
if (!_local3) {
sendError({command_id:"postScore"}, new com.newgrounds.APIError("INVALID_SCOREBOARD", "Failed to post score. Check the spelling of your board name."));
return(undefined);
}
if (value == undefined) {
sendError({command_id:"postScore"}, new com.newgrounds.APIError("MISSING_PARAM", "Missing score value"));
return(undefined);
}
sendSecureCommand("postScore", {user_name:user_name, board:_local3.id, value:value, tag:tag, publisher_id:publisher_id});
}
static function loadScores(board_name, period, tag) {
var _local3 = "loadScores";
var _local2 = getScoreBoard(board_name);
if (!_local2) {
sendError({command_id:_local3}, new com.newgrounds.APIError("INVALID_SCOREBOARD", "Failed to load scores. Check the spelling of your board name."));
return(undefined);
}
var _local1 = {};
_local1.publisher_id = publisher_id;
_local1.board = _local2.id;
_local1.num_results = _local2.num_results;
_local1.page = _local2.page;
if (period === undefined) {
_local1.period = _local2.period;
} else {
_local1.period = period;
}
if (tag === undefined) {
_local1.tag = _local2.tag;
} else {
_local1.tag = tag;
}
sendCommand(_local3, _local1);
}
static function unlockMedal(medal, x, y) {
if (!medal) {
sendError({command_id:"unlockMedal"}, new com.newgrounds.APIError("MISSING_PARAM", "missing required medal name"));
return(undefined);
}
if (typeof(medal) != "object") {
medal = getMedal(medal);
}
if (!medal) {
sendError({command_id:"unlockMedal"}, new com.newgrounds.APIError("INVALID_MEDAL", "medal unlock failed, check your medal name for correct spelling."));
return(undefined);
}
callListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, true, {medal:medal, x:x, y:y});
if (hasUserSession() or debug) {
sendMessage(("Attempting to unlock '" + medal.getName()) + "'");
var _local3 = new Object();
_local3.medal_id = medal.getID();
sendSecureCommand("unlockMedal", _local3);
} else {
sendMessage(("Unlocking '" + medal.getName()) + "'");
medal.setUnlocked(true);
var _local2 = loadLocal("medals_unlocked");
if (!_local2) {
_local2 = new Object();
}
_local2[medal.getID()] = true;
saveLocal("medals_unlocked", _local2);
}
}
static function loadMedals() {
if (medals) {
callListener(com.newgrounds.APIEvent.MEDALS_LOADED, true, {medals:medals});
return(undefined);
}
var _local1 = new Object();
if (hasUserSession()) {
_local1.publisher_id = publisher_id;
_local1.user_id = user_id;
}
sendCommand("getMedals", _local1);
}
static function getMedals() {
return(medals);
}
static function getMedal(identifier) {
if ((!medals) || (medals.length < 1)) {
sendWarning("You do not have any medals configured on your API setup!");
return(false);
}
for (var _local3 in medals) {
var _local1 = medals[_local3];
if ((typeof(identifier) == "string") && (_local1.getName() == identifier)) {
return(_local1);
}
if (_local1.getID() == identifier) {
return(_local1);
}
}
sendWarning(("Could not find any medals named '" + identifier) + "'.");
return(false);
}
static function saveLocal(save_id, save_data, size_allocation) {
if (!sharedObjects[save_id]) {
sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id);
}
sharedObjects[save_id].data[save_id] = encodeData(save_data);
sharedObjects[save_id].flush();
}
static function loadLocal(save_id) {
if (!sharedObjects[save_id]) {
sharedObjects[save_id] = SharedObject.getLocal((("ng_ap_secure_" + movie_id) + "_") + save_id);
}
sharedObjects[save_id].flush();
echo((("sharedobject " + save_id) + " is: ") + sharedObjects[save_id].data[save_id]);
if (sharedObjects[save_id].data[save_id]) {
echo("decoded: " + decodeData(sharedObjects[save_id].data[save_id]));
return(decodeData(sharedObjects[save_id].data[save_id]));
}
return(null);
}
static function encodeData(data) {
return(compressHex(com.newgrounds.encoders.RC4.encrypt(com.newgrounds.encoders.JSON.encode(data), encryption_key)));
}
static function decodeData(base) {
return(com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(uncompressHex(base), encryption_key)));
}
static function compressHex(hex_value) {
var _local6 = hex_value.length % 6;
var _local4 = "";
var _local5 = new com.newgrounds.encoders.BaseN(compression_radix);
var _local1 = 0;
while (_local1 < hex_value.length) {
var _local2 = Number("0x" + hex_value.substr(_local1, 6));
_local4 = _local4 + _local5.encode(_local2, 4);
_local1 = _local1 + 6;
}
return(_local6 + _local4);
}
static function uncompressHex(base_value) {
var _local9 = Number(base_value.charAt(0));
var _local7 = "";
var _local3;
var _local8 = new com.newgrounds.encoders.BaseN(compression_radix);
var _local2 = 1;
while (_local2 < base_value.length) {
var _local6 = base_value.substr(_local2, 4);
var _local5 = _local8.decode(_local6);
var _local1 = dec2hex(_local5);
if ((_local2 + 4) < base_value.length) {
_local3 = 6;
} else {
_local3 = _local9;
}
while (_local1.length < _local3) {
_local1 = "0" + _local1;
}
_local7 = _local7 + _local1;
_local2 = _local2 + 4;
}
return(_local7);
}
static function dec2hex(dec) {
var _local4 = "0123456789ABCDEF";
var _local3 = "";
while (dec > 0) {
var _local2 = dec % 16;
_local3 = _local4.charAt(_local2) + _local3;
dec = (dec - _local2) / 16;
}
return(_local3);
}
static function getSaveGroup(group) {
if ((save_groups == null) || (save_groups.length < 1)) {
sendWarning("You do not have any save groups configured in your API setup!");
return(null);
}
var _local1 = 0;
while (_local1 <= save_groups.length) {
if ((typeof(group) == "number") or (Number(group).toString() == String(group))) {
if (save_groups[_local1].getID() == Number(group)) {
return(save_groups[_local1]);
}
} else if (typeof(group) == "string") {
if (save_groups[_local1].getName().toLowerCase() == group.toLowerCase()) {
return(save_groups[_local1]);
}
}
_local1++;
}
sendWarning(("Could not find any save groups named '" + group) + "'.");
return(null);
}
static function getCurrentSaveFile() {
return(save_file);
}
static function setCurrentSaveFile(current) {
save_file = current;
}
static function loadSaveFile(save_id, get_contents) {
if (get_contents === undefined) {
get_contents = true;
}
var _local1 = "loadSaveFile";
var _local2 = {publisher_id:publisher_id, save_id:save_id, get_contents:get_contents};
save_file = null;
sendCommand(_local1, _local2);
}
static function loadFilesByDate(group_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var _local2 = getSaveGroup(group_name);
if (!_local2) {
var _local3 = new com.newgrounds.APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByDate"}, _local3);
return(undefined);
}
var _local1 = new com.newgrounds.SaveGroupQuery(_local2);
if (key_name) {
_local1.addKeyCondition(key_name, "=", key_value);
}
_local1.sortOn("CREATED_ON", (sort_descending ? "DESC" : "ASC"));
_local1.execute();
}
static function loadFilesByViews(group_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var _local2 = getSaveGroup(group_name);
if (!_local2) {
var _local3 = new com.newgrounds.APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByViews"}, _local3);
return(undefined);
}
var _local1 = new com.newgrounds.SaveGroupQuery(_local2);
if (key_name) {
_local1.addKeyCondition(key_name, "=", key_value);
}
_local1.sortOn("TOTAL_VIEWS", (sort_descending ? "DESC" : "ASC"));
_local1.execute();
}
static function loadFilesByRating(group_name, rating_name, sort_descending, key_name, key_value) {
if (sort_descending === undefined) {
sort_descending = true;
}
var _local2 = getSaveGroup(group_name);
if (!_local2) {
var _local3 = new com.newgrounds.APIError("QUERY_INCOMPLETE", "The query could not be preformed, check the spelling of your save group name.");
sendError({command_id:"loadFilesByRating"}, _local3);
return(undefined);
}
var _local1 = new com.newgrounds.SaveGroupQuery(_local2);
if (key_name) {
_local1.addKeyCondition(key_name, "=", key_value);
}
_local1.sortOnRating(rating_name, (sort_descending ? "DESC" : "ASC"), "score");
_local1.execute();
}
static function lookupSaveFiles(save_group) {
var _local1 = "lookupSaveFiles";
var _local2 = {publisher_id:publisher_id, group_id:save_group.getID(), query:com.newgrounds.encoders.JSON.encode(save_group.getQuery(true))};
sendCommand(_local1, _local2);
}
static function newSaveFile(group) {
var _local1 = getSaveGroup(group);
if (_local1) {
return(_local1.newFile());
}
var _local2 = new com.newgrounds.APIError("INVALID_SAVE_GROUP", "You can not create new files in invalid groups.");
sendError({command_id:"newSaveFile"}, _local2);
}
static function newSaveQuery(group) {
var _local1 = getSaveGroup(group);
if (_local1) {
return(_local1.newQuery());
}
var _local2 = new com.newgrounds.APIError("INVALID_SAVE_GROUP", ("'" + group) + "' is not a valid save group.");
sendError({command_id:"newSaveQuery"}, _local2);
}
static function checkFilePrivs(file) {
if (user_id) {
var _local1 = user_id;
} else {
var _local1 = 0;
}
var _local2 = {group:file.getGroup().getID(), filename:file.getName(), user_id:_local1, publisher_id:publisher_id};
sendCommand("checkFilePrivs", _local2);
}
static function saveFile(file, overwrite) {
var _local1;
_local1 = {group:file.getGroup().getID(), filename:file.getName(), description:file.getDescription(), draft:file.__get__draft(), user_name:user_name};
if (overwrite) {
_local1.overwrite = overwrite;
}
if (file.getDuplicateID()) {
_local1.save_id = file.getDuplicateID();
}
if (file.getKeys().length > 0) {
_local1.keys = file.getKeys();
}
var _local3;
_local3 = {file:file.getRawContents()};
if (file.getThumbnailImageScan()) {
_local3.thumbnail = file.getThumbnailImageScan();
}
save_file = file;
sendSecureCommand("saveFile", _local1, null, _local3);
}
static function rateSaveFile(file, rating, vote) {
var _local1 = {group:file.getGroup().getID(), save_id:file.getID(), rating_id:rating.rating_id, vote:vote, user_id:user_id};
sendSecureCommand("rateSaveFile", _local1);
}
static function getConfirmation(command_name, event, msg, target, confirm, cancel) {
var _local1 = new com.newgrounds.APIError("CONFIRM_REQUEST", msg);
_local1.confirm = function () {
target[confirm]();
};
_local1.cancel = function () {
target[cancel]();
};
_local1.command = command_name;
callListener(event, false, _local1);
}
static function onRemoteAuthentication(auth_result) {
var _local1 = com.newgrounds.encoders.JSON.decode(com.newgrounds.encoders.RC4.decrypt(auth_result, encryption_key));
delete remote_auth;
user_id = _local1.NewgroundsAPI_UserID;
user_name = _local1.NewgroundsAPI_UserName;
session_id = _local1.NewgroundsAPI_SessionID;
publisher_id = _local1.NewgroundsAPI_PublisherID;
}
static function doEvent(e) {
switch (e.command_id) {
case "connectMovie" :
clearInterval(timeout);
sendMessage("You have successfully connected to the Newgrounds API Gateway");
sendMessage(("Movie identified as \"" + e.movie_name) + "\"");
callListener(com.newgrounds.APIEvent.API_CONNECTED, e.success, {title:e.movie_name});
var _local7 = false;
if (e.ad_status === -1) {
var _local11 = "This movie was not approved to run Flash Ads.";
sendWarning(_local11);
sendWarning(("visit " + AD_TERMS_URL) + " to view our approval guidelines");
if (!e.ad_url) {
callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError("FLASH_ADS_NOT_APPROVED", _local11));
} else {
_local7 = true;
}
} else if (e.ad_status === 0) {
var _local11 = "Flash Ads are currently awaiting approval.";
sendNotice(_local11);
if (!e.ad_url) {
callListener(com.newgrounds.APIEvent.ADS_APPROVED, false, new com.newgrounds.APIError("FLASH_ADS_NOT_APPROVED", _local11));
} else {
_local7 = true;
}
}
if (e.ad_url) {
ad_url = unescape(e.ad_url);
if (!_local7) {
sendMessage("This movie has been approved to run Flash Ads!");
}
callListener(com.newgrounds.APIEvent.ADS_APPROVED, true);
}
if (e.deny_host) {
var _local11 = getHost() + " does not have permission to run this movie!";
sendWarning(_local11);
sendWarning("\tUpdate your API configuration to unblock " + getHost());
callListener(com.newgrounds.APIEvent.HOST_BLOCKED, true, {real_url:unescape(e.movie_url), url:getOfficialURL()});
} else if (e.movie_version) {
sendWarning("According to your API Configuration, this version is out of date.");
if (version) {
sendWarning("\tThe this movie is version " + version);
}
sendWarning("\tThe most current version is " + e.movie_version);
callListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, true, {version:e.movie_version, real_url:unescape(e.movie_url), url:getOfficialURL()});
}
if (e.request_portal_url) {
sendCommand("setPortalID", {portal_url:_url});
}
if (preload) {
reportNewAsset();
var _local8 = {};
if (hasUserSession()) {
_local8.publisher_id = publisher_id;
_local8.user_id = user_id;
}
sendCommand("preloadSettings", _local8);
}
reportAssetLoaded();
break;
case "preloadSettings" :
if (e.medals) {
populateMedals(e.medals);
if ((!hasUserSession()) and (!debug)) {
echo("checking for sharedobject medals...");
var _local4 = loadLocal("medals_unlocked");
if (_local4) {
for (var _local32 in _local4) {
var _local32 = Number(_local32);
if (_local4[_local32]) {
var _local3 = getMedal(_local32);
echo("now unlocking " + _local3.getName());
_local3.setUnlocked(true);
}
}
}
}
}
if (e.save_groups) {
populateSaveGroups(e.save_groups, e.save_file_path);
}
if (e.score_boards) {
populateScoreBoards(e.score_boards);
}
if (_root.NewgroundsAPI_SaveFileID && (_root.NewgroundsAPI_SaveGroupID)) {
callListener(com.newgrounds.APIEvent.FILE_REQUESTED, true, {save_id:_root.NewgroundsAPI_SaveFileID, group:getSaveGroup(_root.NewgroundsAPI_SaveGroupID)});
}
callListener(com.newgrounds.APIEvent.METADATA_LOADED, true);
reportAssetLoaded();
break;
case "logCustomEvent" :
if (e.success) {
sendMessage(("Event '" + e.event) + "' was logged.");
}
callListener(com.newgrounds.APIEvent.EVENT_LOGGED, e.success, {event:e.event});
break;
case "postScore" :
var _local9;
if (e.success) {
var _local5 = "User";
if (user_email) {
_local5 = user_email;
} else if (user_name) {
_local5 = user_name;
}
var _local19 = getScoreBoard(e.board);
sendMessage(((((_local5 + " posted ") + e.value) + " to '") + _local19.name) + "'");
_local9 = {board:_local19, value:e.value, username:_local5};
}
callListener(com.newgrounds.APIEvent.SCORE_POSTED, e.success, _local9);
break;
case "loadScores" :
_local9 = new Object();
var _local19 = getScoreBoard(e.board);
if (_local19.exists()) {
_local19.setScores(e.scores, e.period, e.page, e.num_results);
}
callListener(com.newgrounds.APIEvent.SCORES_LOADED, e.success, {board:_local19});
break;
case "unlockMedal" :
var _local24 = getMedal(e.medal_name);
_local24.setUnlocked(true);
sendMessage(("Successfuly unlocked '" + _local24.getName()) + "'");
callListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, e.success, {medal_id:_local24.id, medal:_local24});
break;
case "getMedals" :
populateMedals(e.medals);
callListener(com.newgrounds.APIEvent.MEDALS_LOADED, e.success, {medals:medals});
break;
case "loadSaveFile" :
var _local16 = getSaveGroup(e.group_id);
var _local14 = new com.newgrounds.SaveFile(_local16);
_local14.id = e.file.save_id;
_local14.name = e.file.filename;
_local14.fileUrl = e.file.file;
_local14.thumbnailUrl = e.file.thumb;
_local14.authorName = e.file.user_name;
_local14.authorId = e.file.user_id;
_local14.description = e.file.description;
_local14.setPermissions(e.file.status, e.file.locked);
for (var _local6 in e.file.keys) {
_local14.setKey(e.file.keys[_local6].id, e.file.keys[_local6].value);
}
for (var _local6 in e.file.ratings) {
_local14.setRating(e.file.ratings[_local6].id, e.file.ratings[_local6].votes, e.file.ratings[_local6].score);
}
if (e.get_contents) {
_local14.loadContents();
}
callListener(com.newgrounds.APIEvent.FILE_INITIALIZED, e.success, {save_id:_local14.id, file:_local14});
save_file = _local14;
break;
case "lookupSaveFiles" :
var _local12 = getSaveGroup(e.group_id).getQuery();
_local12.onExecuted(e.files);
break;
case "rateSaveFile" :
_local16 = getSaveGroup(e.group_id);
_local14 = _local16.getFile(e.save_id);
if (e.already_voted) {
var _local27 = new com.newgrounds.APIError("PERMISSION_DENIED", "You have already voted on this item today");
callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {error:_local27, file:_local14, save_id:_local14.id});
return(undefined);
}
if (e.success) {
var _local10 = _local14.onVoted(e);
callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {rating:_local10, file:_local14, save_id:_local14.id});
} else {
callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, e.success, {file:_local14, save_id:_local14.id});
sendError("Your vote was not accepted.");
}
break;
case "saveFile" :
if (save_file) {
if (!save_file.exists()) {
save_file.setID(e.save_id, true);
}
save_file.onSaved(e);
callListener(com.newgrounds.APIEvent.FILE_SAVED, e.success, {save_id:save_file.__get__id(), file:save_file});
if (e.success) {
sendMessage(((("You just saved a new file (id #" + e.save_id) + ") to the '") + save_file.__get__group().__get__name()) + "' save group.");
}
}
save_file = null;
break;
case "checkFilePrivs" :
_local9 = {file:save_file, filename:e.filename, group:e.group, exists:e.exists, can_write:e.can_write};
if (e.duplicate_id) {
_local9.duplicate_id = e.duplicate_id;
}
if (!e.success) {
sendWarning("You do not have permission to save this file!");
}
callListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, e.success, _local9);
}
}
static function getDispatcher() {
if (!eventDispatcher) {
eventDispatcher = new com.newgrounds.APIEventDispatcher();
}
return(eventDispatcher);
}
static function hasEventListener(event) {
return(getDispatcher().hasEventListener(event));
}
static function addEventListener(event, listener, target) {
echo(("Adding a listener for '" + event) + "'");
getDispatcher().addEventListener(event, listener, target);
}
static function removeEventListener(event, target) {
getDispatcher().removeEventListener(event, target);
}
static function callListener(event, success, data, target) {
echo("Fired Event: " + event);
var _local2 = new com.newgrounds.APIEvent(event, success, data);
getDispatcher().dispatchEvent(_local2);
if ((event == com.newgrounds.APIEvent.API_CONNECTED) && (!success)) {
connected = false;
}
bridge.sendEvent(event, {success:success, data:data});
}
static function sendError(c, e) {
switch (c.command_id) {
case "connectMovie" :
clearInterval(timeout);
callListener(com.newgrounds.APIEvent.API_CONNECTED, false, {error:e, response:c});
break;
case "saveFile" :
callListener(com.newgrounds.APIEvent.FILE_SAVED, false, {error:e, file:save_file, response:c});
save_file = null;
}
var _local3 = (((((("[Newgrounds API ERROR] :: " + c.command_id) + "() - ") + e.name) + ":") + newline) + "\t\t\t\t") + e.message;
trace(_local3);
bridge.sendEvent("trace", {data:_local3});
}
static function sendWarning(m, c) {
if (c) {
m = m + ((("\r[Newgrounds API WARNING] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information.");
}
var _local1 = "[Newgrounds API WARNING] :: " + m;
trace(_local1);
bridge.sendEvent("trace", {data:_local1});
}
static function sendNotice(m, c) {
if (c) {
m = m + ((("\r[Newgrounds API NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information.");
}
trace("[Newgrounds API NOTICE] :: " + m);
}
static function fatalError(m, c) {
if (c) {
m = m + ((("\r\tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information.");
}
throw (((("***ERROR*** frame=" + _root._currentframe) + ", class=API") + newline) + newline) + m;
}
static function openLoginPage() {
if (hasUserSession()) {
return(undefined);
}
if (!remote_auth) {
var _local1 = com.newgrounds.encoders.MD5.calculate((Math.random() + "a") + movie_id);
_local1 = "POOPYPANTS";
remote_auth = new com.newgrounds.RemoteAuth(_local1);
}
var _local2 = com.newgrounds.encoders.RC4.encrypt(remote_auth.__get__token(), encryption_key);
trace(_local2);
getURL ((((LOGIN_URL + "?api_auth_id=") + movie_id) + "&api_auth_key=") + _local2, "_blank");
}
static function sendSecureCommand(command, secure_params, unsecure_params, files) {
if (((!debug) && (!hasUserSession())) && (!hasUserEmail())) {
sendError({command_id:command}, new com.newgrounds.APIError("IDENTIFICATION_REQUIRED", ("You must be logged in, or provide an e-mail address using 'API.setUserEmail(\"name@domain.com\");' to use " + command) + "()."));
return(undefined);
}
if (!command) {
fatalError("Missing command", "sendSecureCommand");
}
if (!secure_params) {
fatalError("Missing secure_params", "sendSecureCommand");
}
if (!unsecure_params) {
unsecure_params = new Object();
}
var _local2 = "";
var _local1 = 0;
while (_local1 < 16) {
_local2 = _local2 + compression_radix.charAt(Math.floor(Math.random() * compression_radix.length));
_local1++;
}
if ((debug && (!fake_session)) && (!session_id)) {
secure_params.session_id = "";
} else {
secure_params.session_id = session_id;
}
secure_params.as_version = 2;
secure_params.user_email = user_email;
secure_params.publisher_id = publisher_id;
secure_params.seed = _local2;
secure_params.command_id = command;
var _local6 = com.newgrounds.encoders.JSON.encode(secure_params);
trace(("JSON: " + _local6) + newline);
var _local9 = com.newgrounds.encoders.MD5.calculate(_local2);
var _local7 = com.newgrounds.encoders.RC4.encrypt(_local6, encryption_key);
var _local8 = _local9 + _local7;
unsecure_params.secure = compressHex(_local8);
sendCommand("securePacket", unsecure_params, false, files);
}
static function sendCommand(command, params, open_browser, files) {
if ((!connected) and (command != "connectMovie")) {
var _local12 = (("API." + command) + "() - API.connect() must be called before this command can be called") + newline;
fatalError(_local12, "connect");
}
if (open_browser) {
var _local2 = new Object();
} else {
var _local2 = new LoadVars();
}
_local2.command_id = command;
_local2.tracker_id = movie_id;
if (debug) {
_local2.debug = debug;
}
if (params) {
for (var _local9 in params) {
_local2[_local9] = params[_local9];
}
}
if (files) {
for (var _local9 in files) {
_local2[_local9] = files[_local9];
}
}
if (open_browser) {
var _local6 = (GATEWAY_URL + "?seed=") + Math.random();
for (var _local9 in _local2) {
_local6 = _local6 + ((("&" + escape(_local9)) + "=") + escape(_local2[_local9]));
}
trace("OPENING " + _local6);
getURL (_local6, "_blank");
_local2.removeMovieClip();
} else {
var _local10 = new LoadVars();
_local10.remember_command_id = _local2.command_id;
_local10.onData = function (data) {
com.newgrounds.API.echo(("INPUT: \r" + data) + newline);
if (data) {
var _local2 = com.newgrounds.encoders.JSON.decode(data);
} else {
var _local2 = {success:false};
}
if (!_local2.success) {
if ((!_local2.error_code) && (!_local2.error_msg)) {
_local2.error_code = "CONNECTION_FAILED";
_local2.error_msg = "Could not contact the API Gateway";
_local2.command_id = this.remember_command_id;
}
var _local4 = new com.newgrounds.APIError(_local2.error_code, _local2.error_msg);
com.newgrounds.API.sendError(_local2, _local4);
} else {
com.newgrounds.API.doEvent(_local2);
}
};
var _local7 = new Array();
for (var _local8 in _local2) {
_local7.push((_local8 + "=") + escape(_local2[_local8]));
}
echo((("POST " + GATEWAY_URL) + "?") + _local7.join("&"));
_local2.sendAndLoad((GATEWAY_URL + "?seed=") + Math.random(), _local10, "POST");
last_command = _local2.command_id;
}
}
static function renderAd(target) {
if (ad_swf_url) {
target.background = target.createEmptyMovieClip("background", 100);
target.background.beginFill(0);
target.background.moveTo(0, 0);
target.background.lineTo(300, 0);
target.background.lineTo(300, 250);
target.background.lineTo(0, 250);
target.background.lineTo(0, 0);
target.background.endFill();
target.mask = target.createEmptyMovieClip("mask", 101);
target.mask.beginFill(0);
target.mask.moveTo(0, 0);
target.mask.lineTo(300, 0);
target.mask.lineTo(300, 250);
target.mask.lineTo(0, 250);
target.mask.lineTo(0, 0);
target.mask.endFill();
target.clip = target.createEmptyMovieClip("clip", 102);
target.clip.ad = target.clip.createEmptyMovieClip("ad", 100);
target.clip.setMask(target.mask);
target.clip.ad._lockroot = true;
loadMovie (ad_swf_url, target.clip.ad);
callListener(com.newgrounds.APIEvent.AD_ATTACHED, true, {target:target});
} else {
callListener(com.newgrounds.APIEvent.AD_ATTACHED, false, new com.newgrounds.APIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad"));
}
}
static function attachFlashAd(target) {
if (checkAdFlood()) {
ad_swf_url = null;
} else if (checkAdCache()) {
reportNewAsset();
var _local1 = new LoadVars();
_local1.onData = function (data) {
if (data) {
com.newgrounds.API.ad_swf_url = data;
} else {
com.newgrounds.API.ad_swf_url = null;
}
com.newgrounds.API.reportAssetLoaded();
com.newgrounds.API.renderAd(target);
};
if (ad_url.indexOf("?") > -1) {
_local1.load((ad_url + "&random=") + Math.random());
} else {
_local1.load((ad_url + "?random=") + Math.random());
}
if (!ad_warning) {
ad_warning = true;
sendMessage("You may get a security sandbox violation from this ad. This is nothing to worry about!");
}
} else if (ad_swf_url) {
renderAd(target);
}
}
static function checkAdFlood() {
if (!ad_url) {
return(false);
}
var _local2 = new Date();
var _local1 = _local2.getTime();
if (_local1 >= ad_flood) {
if ((_local1 - ad_flood) > 1000) {
ad_flood = _local1 + 1000;
} else {
ad_flood = _local1;
sendWarning("This movie is attempting to load multiple ads at too high of a frequency; you may have a bad preloader loop.");
return(true);
}
}
return(false);
}
static function checkAdCache() {
if (!ad_url) {
return(false);
}
var _local2 = new Date();
var _local1 = _local2.getTime();
if (_local1 >= ad_url_cache) {
ad_url_cache = _local1 + 300000;
return(true);
}
return(false);
}
static function sendMessage(m, r) {
var _local1 = "[Newgrounds API] :: " + m;
if (r) {
return(_local1);
}
trace(_local1);
bridge.sendEvent("trace", {data:_local1});
}
static function echo(m) {
if (do_echo) {
trace(m);
}
}
static var LOGIN_URL = "http://ng-local.newgrounds.com/apilogin/";
static var do_echo = true;
static var GATEWAY_URL = "http://www.ngads.com/gateway_v2.php";
static var NEWGROUNDS_PREVIEW = "uploads.ungrounded.net/previews";
static var AD_TERMS_URL = "http://www.newgrounds.com/wiki/using-the-site/terms-of-use/flash-ads/";
static var COMMANDS_WIKI_URL = "http://www.newgrounds.com/wiki/developer-resources/flash-api/commands/";
static var LOCAL_HOST = "localhost";
static var NEWGROUNDS_WWW = "www.newgrounds.com";
static var PREVIEW_HOSTS = new Array(LOCAL_HOST, NEWGROUNDS_PREVIEW);
static var ad_url_cache = 0;
static var ad_flood = 0;
static var ad_warning = false;
static var save_file = null;
static var publisher_id = 1;
static var fake_session = false;
static var medals = null;
static var userpage_format = null;
static var scoreboards = new Array();
static var save_groups = null;
static var compression_radix = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
static var errors = com.newgrounds.APIError.init_codes();
static var sharedObjects = new Object();
static var bridge = new com.newgrounds.Bridge(_root.NewgroundsAPI_SandboxID);
static var preload = true;
static var preload_items = 0;
static var preload_items_loaded = 0;
}
Symbol 35 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
class com.newgrounds.Bridge
{
var widget_id, receiver, transmitter;
function Bridge (id) {
widget_id = id;
receiver = new LocalConnection();
transmitter = new LocalConnection();
receiver.receiveEvent = function (event, params) {
com.newgrounds.API.callListener(event, params.success, params.data);
};
try {
receiver.connect("rec_" + widget_id);
} catch(error:Error) {
}
}
function sendEvent(event, params) {
if (widget_id) {
transmitter.send(widget_id, "sendEvent", event, validateParams(params));
}
}
function sendCommand(command, params) {
if (widget_id) {
transmitter.send(widget_id, "sendCommand", command, validateParams(params));
}
}
function validateParams(params) {
var _local2 = {};
for (var _local3 in params) {
if ((typeof(params[_local3]) == "string") || (typeof(params[_local3]) == "number")) {
_local2[_local3] = params[_local3];
}
}
return(_local2);
}
}
Symbol 36 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
class com.newgrounds.SaveFile
{
static var file_path, image_path;
var _group, _filename, _file_id, _contents, _thumbnail, _thumbnail_url, raw, img, _file_url, _description, scanner;
function SaveFile (_group) {
this._group = _group;
_filename = null;
_file_id = null;
_contents = null;
_thumbnail = null;
_thumbnail_url = null;
raw = null;
img = null;
_draft = false;
_keys = new Array();
_ratings = new Array();
_file_url = null;
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.FILE_PRIVS_LOADED, checkPrivs, this);
}
static function setFilePath(path) {
file_path = path + "/";
}
static function setImagePath(path) {
image_path = path + "/";
}
function get name() {
return(_filename);
}
function set name(s) {
_filename = s;
//return(name);
}
function get id() {
return(_file_id);
}
function get description() {
return(_description);
}
function set description(s) {
_description = s;
//return(description);
}
function get contents() {
return(_contents);
}
function set contents(o) {
_contents = o;
//return(contents);
}
function get thumbnailUrl() {
return(image_path + _thumbnail_url);
}
function set thumbnailUrl(s) {
_thumbnail_url = s;
//return(thumbnailUrl);
}
function get fileUrl() {
return(file_path + _file_url);
}
function set fileUrl(s) {
_file_url = s;
//return(fileUrl);
}
function get authorID() {
return(_author_id);
}
function set authorID(i) {
_author_id = i;
//return(authorID);
}
function get authorName() {
return(_author_name);
}
function set authorName(n) {
_author_name = n;
//return(authorName);
}
function get views() {
return(_views);
}
function get draft() {
return(_draft);
}
function set draft(d) {
_draft = d;
//return(draft);
}
function get group() {
return(_group);
}
function get groupId() {
return(_group.getID());
}
function get groupName() {
return(_group.getName());
}
function get groupType() {
return(_group.getType());
}
function get locked() {
return(_locked);
}
function get shared() {
return(_isShared());
}
function get isPrivate() {
return(_isPrivate());
}
function get isPublic() {
return(_isPublic());
}
function get approved() {
return(_isApproved());
}
function get keys() {
return(_keys);
}
function get ratings() {
return(_ratings);
}
function loadAuthorPage() {
com.newgrounds.API.loadUserPage(_author_id, _author_name);
}
function getID() {
return(_file_id);
}
function exists() {
return(!(_file_id === null));
}
function getGroup() {
return(_group);
}
function getName() {
return(_filename);
}
function _isPrivate() {
return(status == STATUS.PRIVATE);
}
function _isShared() {
return(status > STATUS.PRIVATE);
}
function _isApproved() {
return(status > STATUS.UNAPPROVED);
}
function _isPublic() {
if (_isPrivate()) {
return(false);
}
if (_group.isType("SYSTEM") or _group.isType("PRIVATE")) {
return(false);
}
if (_group.isType("PUBLIC")) {
return(true);
}
if (_isApproved()) {
return(true);
}
return(false);
}
function isLocked() {
return(_locked);
}
function getDescription() {
return(_description);
}
function getShared() {
return(_draft);
}
function getThumbnailImageScan() {
return(img);
}
function getRawContents() {
return(raw);
}
function getDuplicateID() {
return(duplicate_id);
}
function getKeys() {
return(_keys);
}
function getKey(key) {
var _local3 = getGroup().getKey(key);
var _local2 = 0;
while (_local2 < _keys.length) {
if (_keys[_local2].id == _local3.key_id) {
return(_keys[_local2].value);
}
_local2++;
}
}
function getRating(rating) {
var _local2 = getGroup().getRating(rating);
if (_ratings[_local2.rating_id]) {
return(_ratings[_local2.rating_id]);
}
return(null);
}
function overwriteAllowed() {
return(overwrite);
}
function getFileURL() {
return(file_path + _file_url);
}
function getThumbnailURL() {
return(image_path + _thumbnail_url);
}
function overwriteExisting() {
overwrite = true;
}
function setID(id, add_to_group) {
_file_id = id;
if (add_to_group) {
getGroup().addFile(this);
}
}
function setName(filename, locked) {
_filename = filename;
_locked = locked;
}
function setDescription(description) {
_description = description;
}
function setDraft(draft) {
_draft = draft;
}
function setContents(_contents) {
this._contents = _contents;
}
function setThumbnail(thumb) {
if (thumb) {
_thumbnail = thumb;
} else {
_thumbnail = null;
}
}
function setThumbnailURL(url) {
_thumbnail_url = url;
}
function setFileURL(url) {
_file_url = url;
}
function setPermissions(status, _locked) {
this._locked = _locked;
this.status = status;
}
function setKey(key, val) {
var _local4 = getGroup().getKeyID(key);
var _local2;
if (!_local4) {
onError(((("'" + key) + "' is not a valid key for the '") + _group.__get__name()) + "' save group", "setKey", "INVALID_VALUE", true);
return(undefined);
}
if ((!_group.keyValueIsValid(key, val)) && (!(val === null))) {
onError((("'" + val) + "' is not a valid ") + _group.getKeyType(key, true), "setKey", "INVALID_VALUE", true);
return(undefined);
}
switch (_group.getKeyType(key, true)) {
case "string" :
if (val) {
val = String(val);
} else {
val = undefined;
}
break;
default :
val = Number(val);
}
var _local5 = {id:_local4, value:val};
for (var _local6 in _keys) {
_local2 = _keys[_local6];
if (_local2.id == _local4) {
_keys[_local6] = _local5;
return(undefined);
}
}
_keys.push(_local5);
}
function setRating(rating, votes, score) {
var _local2 = getGroup().getRating(rating);
if (!votes) {
votes = 0;
}
if (!score) {
score = 0;
}
if (!_local2.is_float) {
score = Math.round(Number(score));
}
_ratings[_local2.rating_id] = {id:Number(_local2.rating_id), name:_local2.rating_name, votes:Number(votes), score:Number(score)};
return(_ratings[_local2.rating_id]);
}
function clearBuffer() {
_contents = null;
raw = null;
img = null;
scanner = null;
overwrite = false;
duplicate_id = null;
}
function onError(msg, funct, code) {
busy = false;
if (!code) {
code = "SAVE_FILE_ERROR";
}
if (!funct) {
funct = "unknown_function";
}
var _local3 = ("getSaveGroup('" + _group.getName()) + "')";
if (exists()) {
funct = (((_local3 + ".getFile('") + getName()) + "').") + funct;
} else {
funct = (_local3 + ".getNewFile().") + funct;
}
var _local5 = new com.newgrounds.APIError(code, msg);
com.newgrounds.API.sendError({command_id:funct}, _local5);
}
function onSaved(p) {
busy = false;
if (!exists()) {
setID(p.save_id, true);
}
setName(p.filename);
setFileURL(p.file_url);
if (p.thumbnail) {
_thumbnail_url = p.thumbnail;
}
}
function onVoted(p) {
trace("ONVOTED WAS CALLED");
return(setRating(p.rating_id, p.votes, p.score));
}
function sendRating(rating, vote) {
var _local6 = null;
if (!com.newgrounds.API.hasUserSession()) {
_local6 = new com.newgrounds.APIError("PERMISSION_DENIED", "You must be logged in to vote on save files");
}
var _local2 = _group.getRating(rating);
if (!_local2) {
_local6 = new com.newgrounds.APIError("PERMISSION_DENIED", ((("'" + rating) + "' is not a valid rating for the '") + _group.getName()) + "' save group");
}
if (voted === true) {
_local6 = new com.newgrounds.APIError("PERMISSION_DENIED", "You have already voted on this item today");
}
if ((vote < _local2.min_value) or (vote > _local2.max_value)) {
_local6 = new com.newgrounds.APIError("PERMISSION_DENIED", (((("'" + rating) + "' votes must be between ") + _local2.min_value) + " and ") + _local2.max_value);
}
if (_local6) {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.VOTE_COMPLETE, false, {error:_local6, file:this});
return(undefined);
}
voted = true;
com.newgrounds.API.rateSaveFile(this, _local2, vote);
}
function replace() {
if (busy) {
onError("Another file is currently being saved, please try again later", "replace");
return(undefined);
}
overwriteExisting();
save();
}
function save() {
if ((com.newgrounds.API.hasUserSession() && (!_author_id)) && (!_author_name)) {
_author_id = com.newgrounds.API.getUserID();
_author_name = com.newgrounds.API.getUserName();
}
if (busy) {
onError("Another file is currently being saved, please try again later", "save", "UPLOAD_IN_PROGRESS");
return(undefined);
}
busy = true;
if (isLocked()) {
onError("This file is _locked and cannot be overwritten.", "save", "PERMISSION_DENIED");
return(undefined);
}
if (!_filename) {
onError("Please provide a name for your file.", "save", "MISSING_PARAM");
return(undefined);
}
if (!_contents) {
onError("The file is empty.", "save", "MISSING_PARAM");
return(undefined);
}
img = null;
com.newgrounds.API.checkFilePrivs(this);
}
function checkPrivs(e) {
if (e.data.file.id != id) {
return(undefined);
}
if (e.success) {
if (e.data.can_write) {
can_write = e.data.can_write;
if (e.data.duplicate_id) {
duplicate_id = e.data.duplicate_id;
}
if (e.data.exists && (!overwriteAllowed())) {
onError(("You already have a file named '" + getName()) + "'", "save", "CONFIRM_REQUEST");
} else {
startFile();
}
} else {
onError("This file is _locked and cannot be overwritten", "save", "PERMISSION_DENIED");
}
} else {
onError("There was a problem looking up your file's details. The server may be down.", "save", "UNKNOWN_ERROR");
}
}
function startFile() {
if (can_write) {
if (_thumbnail) {
scanner = new com.newgrounds.encoders.ImageScanner(_thumbnail);
scanner.setCallback(this, "encodeFile");
scanner.startScan(100, 100, true);
} else {
encodeFile();
}
} else {
onError("You do not have permission to save this file.", "save", "PERMISSION_DENIED");
}
}
function encodeFile(img) {
this.img = img;
raw = com.newgrounds.encoders.SerialXML.encode(_contents).toString();
compressFile();
}
function compressFile() {
com.newgrounds.encoders.LZW2.compress(raw, function (s, p) {
p.file.onCompressed(s);
}, {file:this});
}
function onCompressed(compressed) {
raw = escape(compressed);
writeFile();
}
function getProgress() {
}
function writeFile() {
getGroup().getQuery().clearCache();
com.newgrounds.API.saveFile(this);
clearBuffer();
}
function loadContents() {
if (_contents) {
com.newgrounds.API.setCurrentSaveFile(this);
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {file:this});
return(undefined);
}
if (!getFileURL()) {
var _local4 = new com.newgrounds.APIError("FILE_NOT_FOUND", "Attempted to load contents of an unsaved file.");
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {file:this, error:_local4});
return(undefined);
}
var _local2 = new LoadVars();
_local2.target = this;
var target = this;
_local2.onData = function (encoded) {
target.onLoaded(encoded);
};
_local2.load(getFileURL());
}
function onLoaded(encoded) {
if (encoded == undefined) {
var _local3 = new com.newgrounds.APIError("FILE_NOT_FOUND", "We could not find the contents for this file. It may have been deleted.");
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, false, {file:this, error:_local3});
return(undefined);
}
com.newgrounds.encoders.LZW.setXMLSafe(true);
_contents = com.newgrounds.encoders.SerialXML.decode(com.newgrounds.encoders.LZW.decompress(encoded));
com.newgrounds.API.callListener(com.newgrounds.APIEvent.FILE_LOADED, true, {file:this});
}
function setViews(n) {
_views = n;
}
static var busy = false;
var can_write = false;
var _draft = false;
var status = 0;
var voted = false;
var _views = 0;
var _locked = false;
var overwrite = false;
var duplicate_id = null;
var _keys = null;
var _ratings = null;
var _author_id = null;
var _author_name = null;
static var STATUS = {PRIVATE:1, PUBLIC:2, UNAPPROVED:3, APPROVED:4};
}
Symbol 37 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
class com.newgrounds.SaveGroup
{
var group_name, group_id, group_type, query, ratings, keys, files;
function SaveGroup (group_id, group_name, group_type) {
this.group_name = group_name;
this.group_id = group_id;
this.group_type = group_type;
query = new com.newgrounds.SaveGroupQuery(this);
ratings = new Array();
keys = new Array();
files = new Array();
}
function get id() {
return(group_id);
}
function get name() {
return(group_name);
}
function get type() {
return(group_type);
}
function addFile(file) {
var _local2 = 0;
while (_local2 < files.length) {
if (files[_local2].getID() == file.getID()) {
files[_local2] = file;
return(undefined);
}
_local2++;
}
files.push(file);
}
function getFile(file_id) {
trace("getting the file " + file_id);
var _local2 = 0;
while (_local2 < files.length) {
trace((((("Looking up " + file_id) + " :: ") + files[_local2].getID()) + " || ") + files[_local2].getName());
if (isNumeric(file_id) and (files[_local2].getID() == Number(file_id))) {
return(files[_local2]);
}
if (files[_local2].getName() == file_id) {
return(files[_local2]);
}
_local2++;
}
return(null);
}
function addRating(rating_id, rating_name, min_value, max_value, is_float) {
var _local3 = {rating_id:rating_id, rating_name:rating_name, min_value:min_value, max_value:max_value, is_float:is_float};
if (!getRatingID(rating_name)) {
ratings.push(_local3);
}
}
function getRating(rating_id) {
var _local2 = 0;
while (_local2 < ratings.length) {
if (isNumeric(rating_id) and (ratings[_local2].rating_id == rating_id)) {
return(ratings[_local2]);
}
if (ratings[_local2].rating_name == rating_id) {
return(ratings[_local2]);
}
_local2++;
}
return(null);
}
function getRatingID(rating_id) {
var _local2 = getRating(rating_id);
if (_local2) {
return(_local2.rating_id);
}
return(null);
}
function getRatingName(rating_id) {
var _local2 = getRating(rating_id);
if (_local2) {
return(_local2.rating_name);
}
return(null);
}
function addKey(key_id, key_name, key_type) {
trace(((((">>>>>>>>>>> ADDING KEY " + key_id) + " ") + key_name) + " ") + key_type);
var _local2 = {key_id:key_id, key_name:key_name, key_type:key_type};
if (!getKey(key_name)) {
keys.push(_local2);
}
}
function getKey(key_id) {
var _local2 = 0;
while (_local2 < keys.length) {
if (isNumeric(key_id) and (keys[_local2].key_id == key_id)) {
return(keys[_local2]);
}
if (keys[_local2].key_name == key_id) {
return(keys[_local2]);
}
_local2++;
}
return(null);
}
function getKeyType(key_name, as_string) {
var _local2 = getKey(key_name);
if (_local2) {
return((as_string ? (KEY_TYPES[_local2.key_type]) : (_local2.key_type)));
}
return(null);
}
function getKeyID(key_id) {
var _local2 = getKey(key_id);
if (_local2) {
return(_local2.key_id);
}
return(null);
}
function getKeyName(key_id) {
var _local2 = getKey(key_id);
if (_local2) {
return(_local2.key_name);
}
return(null);
}
function keyValueIsValid(key, value) {
var _local4;
var _local7;
if ((typeof(value) == "number") or (Number(value).toString() == String(value))) {
value = Number(value);
_local4 = ((Math.round(value) === value) ? "integer" : "float");
} else {
_local4 = typeof(value);
if (_local4 == "string") {
var _local6 = "01234567890.-";
var _local5 = true;
var _local2 = 0;
while (_local2 < value.length) {
if (_local6.indexOf(value.charAt(_local2)) < 0) {
_local5 = false;
break;
}
_local2++;
}
if (_local5) {
value = Number(value);
_local4 = "float";
}
}
}
switch (getKeyType(key, true)) {
case "integer" :
_local7 = (_local4 == "integer") or (_local4 == "boolean");
break;
case "float" :
_local7 = ((_local4 == "float") or (_local4 == "integer")) or (_local4 == "boolean");
break;
case "string" :
_local7 = (((_local4 == "string") or (_local4 == "float")) or (_local4 == "integer")) or (_local4 == "boolean");
break;
case "boolean" :
_local7 = (((_local4 == "boolean") or (value == 1)) or (value == 0)) or (value == "");
break;
default :
_local7 = false;
}
return(_local7);
}
function isType(type) {
return(group_type == TYPES[type.toUpperCase()]);
}
function getID() {
return(group_id);
}
function getName() {
return(group_name);
}
function getType() {
return(group_type);
}
function isSystem() {
return(undefined);
}
function getQuery(as_object) {
if (as_object) {
return(query.toObject());
}
return(query);
}
function newQuery() {
query.reset();
return(query);
}
function clearQuery() {
query.reset();
}
function newFile() {
var _local2 = new com.newgrounds.SaveFile(this);
return(_local2);
}
static function isNumeric(value) {
return((typeof(value) == "number") or (Number(value).toString() == String(value)));
}
static var KEY_TYPES = [null, "float", "integer", "string", "boolean"];
static var TYPES = {SYSTEM:0, PRIVATE:1, PUBLIC:2, MODERATED:3};
}
Symbol 38 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
class com.newgrounds.ValidationTools
{
function ValidationTools () {
}
static function isNumber(v) {
if (typeof(v) == "number") {
return(true);
}
if ((typeof(v) == "string") and (Number(v).toString() == v)) {
return(true);
}
return(false);
}
static function isInteger(v) {
if (isNumber(v)) {
v = Number(v);
return(Math.floor(v) == v);
}
return(false);
}
static function isFloat(v) {
return(isNumber(v));
}
static function isString(v) {
if ((typeof(v) == "string") or (typeof(v) == "number")) {
return(true);
}
return(false);
}
static function isEmpty(o) {
for (var _local2 in o) {
return(false);
}
return(true);
}
}
Symbol 39 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
class com.newgrounds.APIEvent
{
var _type, _success, _error, data;
function APIEvent (type, success, data) {
_type = type;
_success = success;
if (data.isError()) {
_error = data;
this.data = null;
} else if (data.error && (data.error.isError())) {
_error = data.error;
this.data = data;
} else {
this.data = data;
_error = null;
}
}
function get error() {
return(_error);
}
function get type() {
return(_type);
}
function get success() {
return(_success);
}
static var API_CONNECTED = "apiConnected";
static var ADS_APPROVED = "adsApproved";
static var AD_ATTACHED = "adAttached";
static var HOST_BLOCKED = "hostBlocked";
static var NEW_VERSION_AVAILABLE = "newVersionAvailable";
static var EVENT_LOGGED = "eventLogged";
static var SCORE_POSTED = "scorePosted";
static var SCORES_LOADED = "scoresLoaded";
static var UNLOCK_MEDAL = "unlockMedal";
static var MEDAL_UNLOCKED = "medalUnlocked";
static var MEDALS_LOADED = "medalsLoaded";
static var METADATA_LOADED = "metadataLoaded";
static var FILE_PRIVS_LOADED = "filePrivsLoaded";
static var FILE_SAVED = "fileSaved";
static var FILE_LOADED = "fileLoaded";
static var FILE_INITIALIZED = "fileInitialized";
static var FILE_REQUESTED = "fileRequested";
static var QUERY_COMPLETE = "queryComplete";
static var VOTE_COMPLETE = "voteComplete";
static var API_ERROR = "apiError";
static var UNCAUGHT_EVENT = "uncaughtEvent";
}
Symbol 40 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
class com.newgrounds.SaveGroupQuery
{
var _group, _num_results, _pages, _page, _randomize_results, file_conditions, key_conditions, rating_conditions, sort_conditions, lookup_keys, lookup_ratings, _group_by;
function SaveGroupQuery (_group) {
this._group = _group;
reset();
}
function get group() {
return(_group);
}
function get groupId() {
return(_group.getID());
}
function get resultsPerPage() {
return(_num_results);
}
function set resultsPerPage(n) {
_num_results = n;
//return(resultsPerPage);
}
function get pages() {
return(_pages);
}
function get page() {
return(_page);
}
function set page(n) {
_page = n;
//return(page);
}
function get randomize() {
return(_randomize_results);
}
function set randomize(b) {
_randomize_results = b;
//return(randomize);
}
function get results() {
return(_results);
}
function clearCache() {
_results = [];
}
function reset() {
file_conditions = new Array();
key_conditions = new Array();
rating_conditions = new Array();
sort_conditions = new Array();
lookup_keys = new Object();
lookup_ratings = new Object();
_num_results = 20;
_page = 1;
_randomize_results = false;
_group_by = new Array();
clearCache();
}
function getGroup() {
return(_group);
}
function getGroupID() {
return(_group.getID());
}
function isRandomized() {
return(_randomize_results);
}
function toObject() {
var _local2;
var _local11 = {page:_page, num_results:_num_results};
if (_randomize_results) {
_local11.randomize = 1;
}
if (!com.newgrounds.ValidationTools.isEmpty(file_conditions)) {
var _local12 = [];
_local2 = 0;
while (_local2 < file_conditions.length) {
var _local6 = file_conditions[_local2];
_local12.push({field:file_fields[_local6.field.toUpperCase()].id, operator:_local6.operator, value:_local6.value});
_local2++;
}
_local11.file_conditions = _local12;
}
if (!com.newgrounds.ValidationTools.isEmpty(key_conditions)) {
_local11.key_conditions = key_conditions;
}
if (!com.newgrounds.ValidationTools.isEmpty(rating_conditions)) {
_local11.rating_conditions = rating_conditions;
}
if (!com.newgrounds.ValidationTools.isEmpty(sort_conditions)) {
var _local14 = [];
_local2 = 0;
while (_local2 < sort_conditions.length) {
var _local3 = sort_conditions[_local2];
if (_local3.table == TABLE_FILES) {
var _local8 = file_fields[_local3.field.toUpperCase()].id;
} else {
var _local8 = _local3.field;
}
var _local5 = {field:_local8, table:_local3.table};
if (_local3.desc) {
_local5.desc = 1;
}
if (_local3.extra) {
_local5.extra = _local3.extra;
}
_local14.push(_local5);
_local2++;
}
_local11.sort_conditions = _local14;
}
if (!com.newgrounds.ValidationTools.isEmpty(lookup_keys)) {
var _local15 = [];
for (_local2 in lookup_keys) {
_local15.push(_local2);
}
_local11.lookup_keys = _local15;
}
if (!com.newgrounds.ValidationTools.isEmpty(lookup_ratings)) {
var _local13 = [];
for (_local2 in lookup_ratings) {
_local13.push(_local2);
}
_local11.lookup_ratings = _local13;
}
if (!com.newgrounds.ValidationTools.isEmpty(_group_by)) {
var _local16 = [];
_local2 = 0;
while (_local2 < _group_by.length) {
var _local4 = _group_by[_local2];
if (_local4.table == TABLE_FILES) {
var _local8 = file_fields[_local4.field.toUpperCase()].id;
} else {
var _local8 = _local4.field;
}
_local16.push({field:_local8, table:_local4.table});
_local2++;
}
_local11.group_by = _local16;
}
return(_local11);
}
function toString() {
var _local9;
var _local2;
var _local11 = [];
_local9 = "Lookup:\r";
var _local14 = [];
for (var _local6 in file_fields) {
_local14.push(" " + _local6);
_local2 = true;
}
_local9 = _local9 + _local14.join(newline);
_local11.push(_local9);
_local9 = "";
_local2 = false;
var _local16 = [];
for (var _local6 in lookup_keys) {
_local16.push((" KEY '" + _group.getKeyName(_local6)) + "'");
_local2 = true;
}
if (_local2) {
_local9 = _local9 + _local16.join(newline);
_local11.push(_local9);
}
_local9 = "";
_local2 = false;
var _local15 = [];
for (var _local6 in lookup_ratings) {
_local15.push((" RATING '" + _group.getRatingName(_local6)) + "'");
_local2 = true;
}
if (_local2) {
_local9 = _local9 + _local15.join(newline);
_local11.push(_local9);
}
_local9 = "Where:\r";
_local2 = false;
var _local8 = [];
var _local6 = 0;
while (_local6 < file_conditions.length) {
var _local7 = file_conditions[_local6];
var _local10 = ((((" " + _local7.field) + " ") + _local7.operator) + " ") + _local7.value;
_local8.push(_local10);
_local2 = true;
_local6++;
}
_local6 = 0;
while (_local6 < key_conditions.length) {
var _local7 = key_conditions[_local6];
var _local10 = ((((" KEY '" + _group.getKeyName(_local7.key_id)) + "' ") + _local7.operator) + " ") + _local7.value;
_local8.push(_local10);
_local2 = true;
_local6++;
}
_local6 = 0;
while (_local6 < rating_conditions.length) {
var _local7 = rating_conditions[_local6];
var _local10 = ((((" RATING '" + _group.getRatingName(_local7.rating_id)) + "' ") + _local7.operator) + " ") + _local7.value;
_local8.push(_local10);
_local2 = true;
_local6++;
}
if (_local2) {
_local9 = _local9 + _local8.join(newline);
_local11.push(_local9);
}
_local9 = "Group By:\r";
_local2 = false;
var _local13 = [];
_local6 = 0;
while (_local6 < _group_by.length) {
var _local4 = _group_by[_local6];
var _local5;
if (_local4.table == TABLE_KEYS) {
_local5 = (" KEY '" + _group.getKeyName(_local4.field)) + "'";
} else if (_local4.table == TABLE_RATINGS) {
_local5 = (" RATING '" + _group.getRatingName(_local4.field)) + "'";
} else {
_local5 = " " + _local4.field;
}
_local13.push(_local5);
_local2 = true;
_local6++;
}
if (_local2) {
_local9 = _local9 + _local13.join(newline);
_local11.push(_local9);
}
_local9 = "Order By:\r";
_local2 = false;
var _local12 = [];
if (isRandomized()) {
_local12.push(" RANDOM");
_local2 = true;
}
_local6 = 0;
while (_local6 < sort_conditions.length) {
var _local3 = sort_conditions[_local6];
if (_local3.table == TABLE_KEYS) {
var _local5 = (" KEY '" + _group.getKeyName(_local3.field)) + "'";
} else if (_local3.table == TABLE_RATINGS) {
var _local5 = ((" RATING '" + _group.getRatingName(_local3.field)) + "' ") + ((_local3.extra == "votes") ? "VOTES" : "SCORE");
} else {
var _local5 = " " + _local3.field;
}
var _local5 = _local5 + (_local3.desc ? " (DESCENDING)" : "");
_local12.push(_local5);
_local2 = true;
_local6++;
}
if (_local2) {
_local9 = _local9 + _local12.join(newline);
_local11.push(_local9);
}
_local11.push("Page:\r " + _page);
_local11.push("Results Per Page:\r " + _num_results);
return(_local11.join(newline));
}
function setResultsPerPage(r) {
_num_results = r;
clearCache();
}
function setPage(p) {
_page = p;
clearCache();
}
function setRandomize(bool) {
_randomize_results = ((bool === false) ? false : true);
}
function includeKey(key) {
if (!_group.getKeyID(key)) {
trace(((("[SaveGroupQuery Error] :: '" + key) + "' is not a valid key for the '") + _group.__get__name()) + "' group.");
return(undefined);
}
lookup_keys[_group.getKeyID(key)] = 1;
clearCache();
}
function includeRating(rating) {
if (!_group.getRatingID(rating)) {
trace(((("[SaveGroupQuery Error] :: '" + rating) + "' is not a valid rating for the '") + _group.__get__name()) + "' group.");
return(undefined);
}
lookup_ratings[_group.getRatingID(rating)] = 1;
clearCache();
}
function groupBy(field) {
addGroupItem(TABLE_FILES, field);
}
function groupByKey(key) {
if (!_group.getKeyID(key)) {
error(((("'" + key) + "' is not a valid key for the '") + _group.getName()) + "' _group");
return(undefined);
}
addGroupItem(TABLE_KEYS, _group.getKeyID(key));
}
function groupByRating(rating) {
if (!_group.getRatingID(rating)) {
error(((("'" + rating) + "' is not a valid rating for the '") + _group.getName()) + "' _group");
return(undefined);
}
addGroupItem(TABLE_RATINGS, _group.getRatingID(rating));
}
function addGroupItem(table, field) {
_group_by.push({table:table, field:field});
clearCache();
}
function excludeKey(key) {
delete lookup_keys[_group.getKeyID(key)];
clearCache();
}
function excludeRating(rating) {
delete lookup_ratings[_group.getRatingID(rating)];
clearCache();
}
function addCondition(field, operator, value) {
if (((field == "FILE_STATUS") && (typeof(value) == "string")) && (!(com.newgrounds.SaveFile.STATUS[value.toUpperCase()] === undefined))) {
value = com.newgrounds.SaveFile.STATUS[value.toUpperCase()];
}
if (operator == "==") {
operator = "=";
}
if ((!validateOperator(operator)) or (!validateValue(field, value))) {
return(undefined);
}
file_conditions.push({field:field, operator:operator, value:value});
clearCache();
}
function addKeyCondition(key, operator, value) {
if (!_group.getKeyID(key)) {
error(((("'" + key) + "' is not a valid key for the '") + _group.getName()) + "' save _group");
} else if ((!validateOperator(operator)) or (!validateKeyValue(key, value))) {
return(undefined);
}
key_conditions.push({key_id:_group.getKeyID(key), operator:operator, value:value});
clearCache();
}
function addRatingCondition(rating, operator, value, column) {
if (!column) {
column = "SCORE";
}
if (!_group.getRatingID(rating)) {
error(((("'" + rating) + "' is not a valid rating for the '") + _group.getName()) + "' save _group");
} else {
if (!validateOperator(operator)) {
return(undefined);
}
if (!com.newgrounds.ValidationTools.isNumber(value)) {
error(("Expected numeric value for rating '" + rating) + "'");
return(undefined);
}
}
if (!rating_columns[column]) {
var _local2 = [];
for (var _local3 in rating_columns) {
_local2.push(_local3);
}
error((("Invalid rating column '" + column) + "'. Valid columns are ") + _local2.join(", "));
return(undefined);
}
rating_conditions.push({rating_id:_group.getRatingID(rating), operator:operator, value:value, column:rating_columns[column]});
clearCache();
}
function sortOn(field, order) {
if (!file_fields[field]) {
var _local2 = [];
for (var _local3 in file_fields) {
_local2.push(_local3);
}
error((("'" + field) + "' is not a valid sort field. Valid fields are: ") + _local2.join(", "));
return(undefined);
}
addSortCondition(TABLE_FILES, field, order);
}
function sortOnKey(key, order) {
if (!_group.getKeyID(key)) {
error(((("'" + key) + "' is not a valid key for the '") + _group.getName()) + "' _group");
return(undefined);
}
addSortCondition(TABLE_KEYS, _group.getKeyID(key), order);
}
function sortOnRating(rating, order, column) {
if (!_group.getRatingID(rating)) {
error(((("'" + rating) + "' is not a valid rating for the '") + _group.getName()) + "' _group");
return(undefined);
}
if (!column) {
column = "score";
}
addSortCondition(TABLE_RATINGS, _group.getRatingID(rating), order, column);
}
function sortOnRatingScore(rating, order) {
sortOnRating(rating, order, "score");
}
function sortOnRatingVotes(rating, order) {
sortOnRating(rating, order, "votes");
}
function addSortCondition(table, field, order, extra) {
var _local7;
if (((!order) or (order == "")) or (order.toUpperCase() == "ASC")) {
_local7 = false;
} else if (order.toUpperCase() == "DESC") {
_local7 = true;
} else {
error(("'" + order) + "' is not a valid sort order!");
return(undefined);
}
var _local3 = {table:table, field:field, desc:_local7};
if (extra) {
_local3.extra = extra;
}
sort_conditions.push(_local3);
clearCache();
}
function onExecuted(results) {
_results = [];
var _local6 = 0;
while (_local6 < results.length) {
var _local2 = results[_local6];
var _local3 = new com.newgrounds.SaveFile(_group);
_local3.setName(_local2.filename);
_local3.setID(_local2.save_id);
_local3.setDescription(_local2.description);
_local3.setThumbnailURL(_local2.thumb);
_local3.setFileURL(_local2.file);
if (_local2.views) {
_local3.setViews(_local2.views);
}
_local3.setPermissions(_local2.status, _local2.locked);
_local3.authorName = _local2.user_name;
_local3.authorID = _local2.user_id;
var _local5 = 0;
while (_local5 < _local2.keys.length) {
_local3.setKey(_local2.keys[_local5].id, _local2.keys[_local5].value);
_local5++;
}
var _local4 = 0;
while (_local4 < _local2.ratings.length) {
_local3.setRating(_local2.ratings[_local4].id, _local2.ratings[_local4].votes, _local2.ratings[_local4].score);
_local4++;
}
getGroup().addFile(_local3);
_results.push(_local3);
_local6++;
}
callEventDispatcher();
}
function hasResults() {
return(_results && (_results.length > 0));
}
function callEventDispatcher() {
com.newgrounds.API.callListener(com.newgrounds.APIEvent.QUERY_COMPLETE, true, {query:this});
}
function execute() {
if (hasResults() && (!isRandomized())) {
callEventDispatcher();
return(undefined);
}
_group.query = this;
com.newgrounds.API.lookupSaveFiles(_group);
}
function processResults(files) {
return(null);
}
function validateKeyValue(key, value) {
var _local3 = _group.getKeyType(key);
if (_local3) {
var _local2 = com.newgrounds.SaveGroup.KEY_TYPES[_local3];
if ((_local2 == "float") and com.newgrounds.ValidationTools.isFloat(value)) {
return(true);
}
if ((_local2 == "integer") and com.newgrounds.ValidationTools.isInteger(value)) {
return(true);
}
if ((_local2 == "string") and com.newgrounds.ValidationTools.isString(value)) {
return(true);
}
error(((("Expected type " + _local2) + " for key '") + key) + "'");
}
return(false);
}
function validateValue(field, value) {
if (file_fields[field]) {
if ((file_fields[field].type == "integer") and com.newgrounds.ValidationTools.isInteger(value)) {
return(true);
}
if ((file_fields[field].type == "float") and com.newgrounds.ValidationTools.isFloat(value)) {
return(true);
}
if ((file_fields[field].type == "string") and com.newgrounds.ValidationTools.isString(value)) {
return(true);
}
error(((("Expecting " + file_fields[field].type) + " value on '") + field) + "' condition");
} else {
var _local2 = [];
for (var _local4 in file_fields) {
_local2.push(_local4);
}
error((("'" + field) + "' is not a searchable field. Valid fields are: ") + _local2.join(", "));
}
return(false);
}
function validateOperator(operator) {
var _local2 = 0;
while (_local2 < valid_operators.length) {
if (operator == valid_operators[_local2]) {
return(true);
}
_local2++;
}
error((("'" + operator) + "' is not a valid lookup operation. Valid operations are: ") + valid_operators.join(", "));
return(false);
}
function error(msg) {
trace("[QUERY ERROR] :: " + msg);
}
static var TABLE_FILES = 1;
static var TABLE_KEYS = 2;
static var TABLE_RATINGS = 3;
var _results = [];
static var file_fields = {FILE_ID:{id:0, field:"file_id", type:"integer"}, AUTHOR_ID:{id:1, field:"user_id", type:"integer"}, AUTHOR_NAME:{id:2, field:"user_name", type:"string"}, FILE_NAME:{id:3, field:"file_name", type:"string"}, CREATED_ON:{id:4, field:"created", type:"string"}, UPDATED_ON:{id:5, field:"last_update", type:"string"}, TOTAL_VIEWS:{id:6, field:"views", type:"integer"}, FILE_STATUS:{id:7, field:"status", type:"integer"}};
static var rating_columns = {TOTAL_VOTES:"votes", SCORE:"score"};
static var valid_operators = ["=", "<", ">", "!=", "<>", "<=", ">=", "*", "!*", "!*=", "!=*", "*=", "=*"];
}
Symbol 41 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
class com.newgrounds.encoders.BaseN
{
var ceiling, hashIndex, bitSize, hashVal, i;
function BaseN (hash) {
ceiling = 100000000000000;
if (hash) {
hashIndex = hash;
} else {
hashIndex = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/";
}
bitSize = hashIndex.length;
hashVal = new Object();
i = 0;
while (i < bitSize) {
hashVal[hashIndex.charAt(i)] = i;
i++;
}
}
function verify(s) {
if (hashVal[s] != undefined) {
return(true);
}
return(false);
}
function encode(n, minchars) {
debug.lastencode = "";
if (typeof(i) != "string") {
n = n.toString();
}
if (n.charAt(0) == "-") {
var _local3 = "-";
n = n.substring(1);
} else {
var _local3 = "";
}
if (String(n).indexOf(".") > -1) {
var _local4 = String(n).split(".", 2);
return(((_local3 + baseNEncoder(_local4[0], minchars)) + ".") + baseNEncoder(_local4[1]));
}
debug.lastencode = debug.lastencode + "\tNo decimal\r";
return(_local3 + baseNEncoder(n, minchars));
}
function decode(s) {
var _local4 = 1;
if (s.charAt(0) == "-") {
_local4 = -1;
s = s.substring(1, s.length);
}
var _local3 = s.indexOf(".");
if (_local3 > -1) {
var _local5 = Math.pow(10, baseNDecoder(s.substring(_local3 + 1, s.length)));
return((baseNDecoder(s.substring(0, _local3)) / _local5) * _local4);
}
return(baseNDecoder(s) * _local4);
}
function baseNEncoder(n, minchars) {
if (!minchars) {
minchars = 1;
}
var _local4 = "";
while (n != 0) {
n = Math.round(n);
var _local3 = n % bitSize;
if (Math.round(_local3) != _local3) {
trace((((((((("BaseN failed on " + n) + "%") + bitSize) + " = ") + _local3) + " ") + int(n)) + " ") + int(bitSize));
}
_local4 = hashIndex.charAt(_local3) + _local4;
debug.lastencode = debug.lastencode + (((((((("\t-> n:" + n) + " % bitSize:") + bitSize) + " = ") + _local3) + ", final char=") + _local4) + newline);
n = n - _local3;
n = n / bitSize;
}
if (minchars) {
while (_local4.length < minchars) {
_local4 = hashIndex.charAt(0) + _local4;
}
}
return(_local4);
}
function baseNDecoder(s) {
var _local2 = 0;
var _local6 = 0;
i = 0;
while (i < s.length) {
var _local3 = s.charAt((s.length - i) - 1);
if (_local3 == hashIndex.charAt(0)) {
var _local5 = 0;
} else {
var _local5 = hashVal[_local3] * Math.pow(bitSize, i);
}
_local2 = _local2 + _local5;
if (_local2 >= ceiling) {
_local6 = _local6 + ((_local2 - (_local2 % ceiling)) / ceiling);
_local2 = _local2 % ceiling;
}
i++;
}
if (_local6 > 0) {
_local2 = "" + _local2;
while (_local2.length < (ceiling.toString().length - 1)) {
_local2 = "0" + _local2;
}
_local2 = ("" + _local6) + _local2;
}
return(_local2);
}
var debug = new Object();
}
Symbol 42 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
class com.newgrounds.encoders.ImageScanner
{
var image_source, source_width, source_height, sourceBitmap, callback_target, callback_function, hash, cube, basen, xpos, ypos, pixels, busy, canvas_width, canvas_height, resizedBitmap, copyBitmap, output, draw_interval, callback_interval;
function ImageScanner (the_source) {
if (the_source) {
image_source = the_source;
} else {
image_source = _root;
}
reset();
if (typeof(image_source) == "movieclip") {
if (image_source == _root) {
source_width = Stage.width;
source_height = Stage.height;
} else {
source_width = Math.floor(image_source._width);
source_height = Math.floor(image_source._height);
}
sourceBitmap = new flash.display.BitmapData(source_width, source_height, false, 4294967295);
sourceBitmap.draw(_root);
} else if (image_source.width) {
source_width = image_source.width;
source_height = image_source.height;
sourceBitmap = image_source;
} else {
error("You can only use BitMaptData and MovieClip objects to create images");
}
}
function setCallback(target, funct) {
if (target && (funct)) {
callback_target = target;
callback_function = funct;
}
}
function reset() {
callback_target = null;
callback_function = null;
debug.bad_pixels = 0;
hash = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&";
var _local3 = Math.pow(hash.length, 2);
trace("MAX COLORS: " + _local3);
var _local2 = Math.floor(Math.pow(_local3, 0.333333333333333)) - 1;
var _local4 = Math.pow(_local2, 3);
cube = _local2;
basen = new com.newgrounds.encoders.BaseN(hash);
xpos = 0;
ypos = 0;
pixels = 0;
busy = false;
}
function startScan(w, h, s) {
if (w) {
image_width = w;
}
if (h) {
image_height = h;
}
if (s != undefined) {
crop = s;
}
var _local7 = _root.getNextHighestDepth();
var _local6 = _root.createEmptyMovieClip("API_image_container_" + _local7, _local7);
var _local5 = _local6.createEmptyMovieClip("canvas", 100);
_local5.attachBitmap(sourceBitmap, 100);
if (crop) {
if ((image_width / source_width) > (image_height / source_height)) {
canvas_width = image_width;
canvas_height = Math.ceil(source_height * (image_width / source_width));
} else {
canvas_height = image_height;
canvas_width = Math.ceil(source_width * (image_height / source_height));
}
} else {
canvas_width = image_width;
canvas_height = image_height;
}
_local5._x = Math.round((image_width - canvas_width) / 2);
_local5._width = canvas_width;
_local5._height = canvas_height;
resizedBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967295);
resizedBitmap.draw(_local6);
_local6.removeMovieClip();
copyBitmap = new flash.display.BitmapData(image_width, image_height, false, 4294967295);
var _local3 = "" + image_width;
while (_local3.length < 3) {
_local3 = "0" + _local3;
}
var _local4 = "" + image_height;
while (_local4.length < 3) {
_local4 = "0" + _local4;
}
output = _local3 + _local4;
draw_interval = setInterval(this, "drawChunk", 10);
busy = false;
return(resizedBitmap);
}
function getBitmapData() {
return(copyBitmap);
}
function getBytesTotal() {
return((image_width * image_height) * 2);
}
function getBytesScanned() {
return(pixels * 2);
}
function getProgress() {
return(Math.round((getBytesScanned() / getBytesTotal()) * 100));
}
function drawChunk() {
if (!busy) {
busy = true;
var _local2 = 0;
while (_local2 < pixels_per_chunk) {
if (!nextPixel()) {
clearInterval(draw_interval);
callback_interval = setInterval(this, "doCallback", 25);
busy = true;
break;
}
_local2++;
}
busy = false;
}
}
function doCallback() {
busy = false;
clearInterval(callback_interval);
if (callback_target and callback_function) {
callback_target[callback_function](output);
} else {
onScanComplete(output);
}
}
function onScanComplete(packet) {
sendMessage(("packet size: " + output.length) + " bytes", "onScanComplete");
}
function nextPixel() {
var _local15 = xpos;
var _local14 = ypos;
var _local7 = resizedBitmap.getPixel(_local15, _local14);
var _local17 = (_local7 >> 16) & 255;
var _local20 = (_local7 >> 8) & 255;
var _local16 = (_local7 >> 0) & 255;
var _local11 = Math.round(((_local17 + 1) / 256) * cube);
var _local10 = Math.round(((_local20 + 1) / 256) * cube);
var _local13 = Math.round(((_local16 + 1) / 256) * cube);
var _local12 = (((_local11 * (cube + 1)) * (cube + 1)) + (_local10 * (cube + 1))) + _local13;
var _local6 = basen.encode(_local12, 2);
output = output + _local6;
if (_local6.length != 2) {
trace("bad pixel " + _local6);
}
var _local5 = basen.decode(_local6);
var _local18 = _local5;
var _local8 = _local5 % (cube + 1);
_local5 = (_local5 - _local8) / (cube + 1);
var _local9 = _local5 % (cube + 1);
var _local19 = (_local5 - _local9) / (cube + 1);
if (((_local13 != _local8) and (_local10 != _local9)) and (_local11 != _local10)) {
debug.bad_pixels++;
trace((((((("BAD PIXEL " + debug.bad_pixels) + ") ") + _local12) + " != ") + _local18) + " ") + _local6);
trace(basen.debug.lastencode);
}
var _local2 = Math.round((_local19 / cube) * 255).toString(16);
var _local4 = Math.round((_local9 / cube) * 255).toString(16);
var _local3 = Math.round((_local8 / cube) * 255).toString(16);
while (_local2.length < 2) {
_local2 = "0" + _local2;
}
while (_local4.length < 2) {
_local4 = "0" + _local4;
}
while (_local3.length < 2) {
_local3 = "0" + _local3;
}
copyBitmap.setPixel(_local15, _local14, Number((("0x" + _local2) + _local4) + _local3));
pixels++;
if (pixels >= (image_width * image_height)) {
return(false);
}
xpos++;
if (xpos >= image_width) {
xpos = 0;
ypos++;
}
return(true);
}
function error(e, f) {
sendMessage(e, f, "ERROR");
}
function sendMessage(msg, func, type) {
var _local1 = "ImageScanner";
if (func) {
_local1 = _local1 + (("." + func) + "()");
}
if (type) {
_local1 = (type + " in ") + _local1;
}
_local1 = _local1 + (" :: " + msg);
trace(_local1);
}
var image_width = 100;
var image_height = 100;
var crop = true;
var pixels_per_chunk = 500;
var debug = new Object();
}
Symbol 43 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
class com.newgrounds.encoders.SerialXML
{
function SerialXML () {
}
static function decode(xml) {
if (!(xml instanceof XML)) {
xml = new XML(xml);
}
var _local2 = populateObject(xml.firstChild, {});
return(_local2.DATA);
}
static function encode(obj) {
var _local1 = new XML();
populateXML(_local1, obj, "DATA");
return(_local1);
}
static function populateObject(child, object) {
var _local6 = child.nodeName;
var _local5 = getValue(_local6, child.attributes.v);
var _local4 = child.attributes.n;
if (object instanceof Array) {
_local4 = object.length;
object.push(_local5);
} else {
object[_local4] = _local5;
}
if (child.hasChildNodes()) {
var _local1 = 0;
while (_local1 < child.childNodes.length) {
populateObject(child.childNodes[_local1], object[_local4]);
_local1++;
}
}
return(object);
}
static function populateXML(child, obj, name) {
if (obj === undefined) {
return(undefined);
}
var _local5 = new XML();
var _local2;
if (obj instanceof Array) {
_local2 = _local5.createElement(getType(obj));
if (name) {
_local2.attributes.n = name;
}
child.appendChild(_local2);
var _local4 = 0;
while (_local4 < obj.length) {
populateXML(_local2, obj[_local4]);
_local4++;
}
} else if (typeof(obj) == "object") {
_local2 = _local5.createElement(getType(obj));
if (name) {
_local2.attributes.n = name;
}
child.appendChild(_local2);
for (var _local4 in obj) {
populateXML(_local2, obj[_local4], _local4);
}
} else {
_local2 = _local5.createElement(getType(obj));
if (name) {
_local2.attributes.n = name;
}
if (getType(obj).length == 1) {
_local2.attributes.v = obj;
}
child.appendChild(_local2);
}
}
static function getValue(type, stringval) {
switch (type.toUpperCase()) {
case "O" :
return(new Object());
case "A" :
return(new Array());
case "N" :
return(Number(stringval));
case "S" :
return(String(stringval));
case "TRUE" :
return(true);
case "FALSE" :
return(false);
}
return(null);
}
static function getType(obj) {
switch (((obj instanceof Array) ? "array" : (typeof(obj)))) {
case "array" :
return("A");
case "object" :
return("O");
case "string" :
return("S");
case "number" :
return("N");
case "boolean" :
return(((obj === true) ? "TRUE" : "FALSE"));
}
return("NULL");
}
}
Symbol 44 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
class com.newgrounds.encoders.LZW2
{
static var comp_dict, pos, result, buffer, nbChar, splitStr, len, local, interval;
function LZW2 () {
}
static function doCompressorConfig() {
comp_dict = [];
var _local1 = 0;
while (_local1 < 256) {
comp_dict[String.fromCharCode(_local1)] = _local1;
_local1++;
}
comp_dict["<"] = 256;
comp_dict[">"] = 257;
comp_dict["&"] = 258;
comp_dict["\""] = 259;
comp_dict["'"] = 260;
pos = 0;
result = "";
buffer = "";
nbChar = 256 + skipnum;
}
static function compress(string, callback, callback_params) {
doCompressorConfig();
if (busy) {
trace("[LZW COMPRESSOR] :: Compression can not begin until previous compression or decompression is complete!");
return(undefined);
}
splitStr = string.split("");
string = "";
len = splitStr.length;
local = {delay:30, callback:callback, callback_params:callback_params, compress_chunk:function () {
com.newgrounds.encoders.LZW2.compress_chunk();
}, busy:false, complete:false};
interval = setInterval(local, "compress_chunk", 5);
}
static function getProgress() {
return(Math.round((pos / len) * 100));
}
static function compress_chunk() {
if (local.delay > 0) {
local.delay--;
} else if (!local.busy) {
local.busy = true;
var _local1 = 0;
while (_local1 < max_chunk_length) {
encode_next();
if (local.complete) {
break;
}
_local1++;
}
local.busy = false;
}
if (local.complete) {
trace((((((((("LZW2 complete " + nbChar) + " ") + comp_dict.length) + " ") + len) + " ") + pos) + " ") + skipnum);
clearInterval(interval);
local.callback(result, local.callback_params);
result = "";
buffer = "";
}
}
static function encode_next() {
if (pos <= len) {
var _local1 = splitStr[pos];
if (!(comp_dict[buffer + _local1] === undefined)) {
buffer = buffer + _local1;
} else {
result = result + String.fromCharCode(comp_dict[buffer]);
comp_dict[buffer + _local1] = nbChar;
nbChar++;
buffer = _local1;
}
pos++;
} else {
local.complete = true;
return(undefined);
}
}
static var comp_config = false;
static var skipnum = 5;
static var busy = false;
static var max_chunk_length = 12000;
}
Symbol 45 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
class com.newgrounds.encoders.LZW
{
function LZW () {
}
static function setXMLSafe(x) {
xmlsafe = x;
}
static function compress(str, escape_chars) {
var _local2 = new Array();
var _local11 = (xmlsafe ? 5 : 0);
var _local5 = 0;
while (_local5 < 256) {
_local2[String.fromCharCode(_local5)] = _local5;
_local5++;
}
if (xmlsafe) {
_local2["<"] = 256;
_local2[">"] = 257;
_local2["&"] = 258;
_local2["\""] = 259;
_local2["'"] = 260;
}
var _local7 = "";
var _local8 = str.split("");
var _local9 = _local8.length;
var _local6 = 256 + _local11;
var _local1 = "";
var _local4;
_local5 = 0;
while (_local5 <= _local9) {
var _local3 = _local8[_local5];
if (!(_local2[_local1 + _local3] === undefined)) {
_local1 = _local1 + _local3;
} else {
_local4 = String.fromCharCode(_local2[_local1]);
if (escape_chars and (((_local2[_local1] < 33) or (_local2[_local1] > 126)) or (_local4 == "%"))) {
_local4 = escape(_local4);
}
_local7 = _local7 + _local4;
_local2[_local1 + _local3] = _local6;
_local6++;
_local1 = _local3;
}
_local5++;
}
return(_local7);
}
static function decompress(str) {
var _local4 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local6 = 0;
while (_local6 < 256) {
var _local9 = String.fromCharCode(_local6);
_local4[_local6] = _local9;
_local6++;
}
if (xmlsafe) {
_local4[256] = "<";
_local4[257] = ">";
_local4[258] = "&";
_local4[259] = "\"";
_local4[260] = "'";
}
var _local11 = str;
var _local13 = _local11.split("");
var _local12 = _local13.length;
var _local7 = 256 + _local10;
var _local1 = "";
var _local2 = "";
var _local8 = "";
_local6 = 0;
while (_local6 < _local12) {
var _local5 = _local11.charCodeAt(_local6);
var _local3 = _local4[_local5];
if (_local1 == "") {
_local1 = _local3;
_local8 = _local8 + _local3;
} else if (_local5 <= (255 + _local10)) {
_local8 = _local8 + _local3;
_local2 = _local1 + _local3;
_local4[_local7] = _local2;
_local7++;
_local1 = _local3;
} else {
_local2 = _local4[_local5];
if (_local2 == undefined) {
_local2 = _local1 + _local1.slice(0, 1);
}
_local8 = _local8 + _local2;
_local4[_local7] = _local1 + _local2.slice(0, 1);
_local7++;
_local1 = _local2;
}
_local6++;
}
return(_local8);
}
static function compress_fp6(str) {
var _local3 = new Array();
var _local10 = (xmlsafe ? 5 : 0);
var _local4 = 0;
while (_local4 < 256) {
_local3[String(_local4)] = _local4;
_local4++;
}
if (xmlsafe) {
var _local14 = String(new String("<").charCodeAt(0));
var _local11 = String(new String(">").charCodeAt(0));
var _local13 = String(new String("&").charCodeAt(0));
var _local15 = String(new String("\"").charCodeAt(0));
var _local12 = String(new String("'").charCodeAt(0));
_local3[_local14] = 256;
_local3[_local11] = 257;
_local3[_local13] = 258;
_local3[_local15] = 259;
_local3[_local12] = 260;
}
var _local7 = "";
var _local16 = str;
var _local8 = _local16.split("");
var _local9 = _local8.length;
var _local6 = 256 + _local10;
var _local1 = new Array();
_local4 = 0;
while (_local4 <= _local9) {
var _local2 = _local8[_local4];
if (_local1.length == 0) {
var _local5 = String(_local2.charCodeAt(0));
} else {
var _local5 = (_local1.join("-") + "-") + String(_local2.charCodeAt(0));
}
if (!(_local3[_local5] === undefined)) {
_local1.push(_local2.charCodeAt(0));
} else {
_local7 = _local7 + String.fromCharCode(_local3[_local1.join("-")]);
_local3[_local5] = _local6;
_local6++;
_local1 = new Array();
_local1.push(_local2.charCodeAt(0));
}
_local4++;
}
return(_local7);
}
static var xmlsafe = false;
}
Symbol 46 MovieClip [__Packages.com.newgrounds.RemoteAuth] Frame 0
class com.newgrounds.RemoteAuth
{
var auth_token, receiver;
function RemoteAuth (id) {
auth_token = id;
System.security.allowDomain("*");
receiver = new LocalConnection();
receiver.allowDomain = function () {
return(true);
};
receiver.onAuth = function (auth_result) {
trace("remote login is a success! " + auth_result);
com.newgrounds.API.onRemoteAuthentication(auth_result);
};
receiver.connect("_" + auth_token);
}
function get token() {
return(auth_token);
}
}
Symbol 47 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
class com.newgrounds.Medal
{
var _medal_id, _medal_name, _medal_value, _medal_difficulty;
function Medal (id, name, value, difficulty, unlocked, _icon_url) {
if ((((id == undefined) || (name == undefined)) || (value == undefined)) || (difficulty == undefined)) {
com.newgrounds.API.fatalError("Medal instances require an id, name, value and difficulty");
}
_medal_id = id;
_medal_name = name;
_medal_value = value;
_medal_difficulty = difficulty;
if (unlocked) {
_medal_unlocked = true;
}
if (_icon_url) {
this._icon_url = _icon_url;
}
}
function get difficulty() {
return(difficulty_names[_medal_difficulty]);
}
function get difficultyId() {
return(_medal_difficulty);
}
function get icon_url() {
return(_icon_url);
}
function get id() {
return(_medal_id);
}
function get name() {
return(_medal_name);
}
function get unlocked() {
return(_medal_unlocked);
}
function get value() {
return(_medal_value);
}
function isUnlocked() {
return(_medal_unlocked);
}
function unlock() {
if (!isUnlocked()) {
com.newgrounds.API.unlockMedal(this);
}
}
function setUnlocked(u) {
_medal_unlocked = u;
}
function attachIcon(target, depth) {
if (!depth) {
depth = target.getNextHighestDepth();
}
var _local3 = target.createEmptyMovieClip("Asset_Medal_Icon_" + getID(), depth);
if (_icon_url) {
_local3.loadMovie(_icon_url);
} else {
var _local4 = flash.display.BitmapData.loadBitmap("Asset_default_medal_icon_" + getDifficulty(), depth);
_local3.attachBitmap(_local4, depth, true);
}
}
function getID() {
return(_medal_id);
}
function getName() {
return(_medal_name);
}
function getValue() {
return(_medal_value);
}
function getDifficulty(as_string) {
if (as_string) {
return(difficulty_names[_medal_difficulty]);
}
return(_medal_difficulty);
}
var _medal_unlocked = false;
var _icon_loaded = false;
var _icon_width = 50;
var _icon_height = 50;
var _icon_url = null;
static var difficulty_names = new Array(null, "Easy", "Moderate", "Challenging", "Difficult", "Brutal");
}
Symbol 48 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
class com.newgrounds.ScoreBoard
{
var _name, _id, _scores;
function ScoreBoard (id, name, tag) {
_name = name;
_id = id;
if (!(tag === undefined)) {
_tag = tag;
}
}
function exists() {
return(Number(_id) > 0);
}
function get id() {
return(_id);
}
function get name() {
return(_name);
}
function get period() {
return(_period);
}
function get tag() {
return(_tag);
}
function get page() {
return(_page);
}
function get num_results() {
return(_num_results);
}
function get scores() {
return(_scores);
}
function postScore(value, tag) {
if (!(tag === undefined)) {
_tag = tag;
}
com.newgrounds.API.postScore(_name, value, _tag);
}
function loadScores(period, page, num_results, tag) {
if (period) {
_period = period;
}
if (page) {
_page = page;
}
if (num_results) {
_num_results = num_results;
}
_scores = [];
com.newgrounds.API.loadScores(_name, _period, tag);
}
function setScores(scores, period, page, num_results) {
if (period) {
_period = period;
}
if (page) {
_page = page;
}
if (num_results) {
_num_results = num_results;
}
_scores = [];
var _local2 = 0;
while (_local2 < scores.length) {
var _local4 = ((_num_results * (_page - 1)) + 1) + _local2;
_scores.push(new com.newgrounds.Score(this, _local4, scores[_local2].username, scores[_local2].value, scores[_local2].numeric_value));
_local2++;
}
}
var _period = "Today";
var _num_results = 10;
var _page = 1;
var _tag = "";
}
Symbol 49 MovieClip [__Packages.com.newgrounds.Score] Frame 0
class com.newgrounds.Score
{
var _board, _position, _username, _value, _numeric_value;
function Score (board, position, username, value, numeric_value) {
_board = board;
_position = position;
_username = username;
_value = value;
_numeric_value = numeric_value;
}
function get board() {
return(_board);
}
function get position() {
return(_position);
}
function get username() {
return(_username);
}
function get value() {
return(_value);
}
function get numeric_value() {
return(_numeric_value);
}
static function fromTime(time) {
var _local1 = time.split(":");
var _local2 = Math.round(Number(_local1.pop()) * 1000);
if (_local1.length > 0) {
_local2 = _local2 + (Number(_local1.pop()) * 60);
}
if (_local1.length > 0) {
_local2 = _local2 + (Number(_local1.pop()) * 3600);
}
return(_local2);
}
static function fromDistance(distance) {
var _local1 = distance.indexOf("'");
var _local5 = distance.indexOf("\"", _local1);
var _local3 = Number(distance.substr(0, _local1));
var _local4 = Number(distance.substring(_local1 + 1, _local5));
return(Math.round((_local3 * 12) + _local4));
}
}
Symbol 50 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
class com.newgrounds.encoders.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function encryptbin(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(_local2);
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 51 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
class com.newgrounds.encoders.JSON
{
static var start, cache, interval;
function JSON () {
}
static function encode(arg, noquotes) {
var _local3;
var _local2;
var _local6;
var _local1 = "";
var _local4;
if (arg.isSServerVar()) {
var _local8 = "sservervariable";
} else {
var _local8 = typeof(arg);
}
switch (_local8) {
case "sservervariable" :
return("?" + arg.getEncodedValue());
case "object" :
if (arg) {
if (arg instanceof Array) {
_local2 = 0;
while (_local2 < arg.length) {
_local4 = encode(arg[_local2]);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + _local4;
_local2++;
}
return(("[" + _local1) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local2 in arg) {
_local4 = arg[_local2];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = encode(_local4);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + ((encode(_local2) + ":") + _local4);
}
}
return(("{" + _local1) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local6 = arg.length;
if (noquotes) {
var _local7 = "";
} else {
var _local7 = "\"";
}
_local1 = _local7;
_local2 = 0;
while (_local2 < _local6) {
_local3 = arg.charAt(_local2);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
} else {
switch (_local3) {
case "\b" :
_local1 = _local1 + "\\b";
break;
case "\f" :
_local1 = _local1 + "\\f";
break;
case newline :
_local1 = _local1 + "\\n";
break;
case "\r" :
_local1 = _local1 + "\\r";
break;
case "\t" :
_local1 = _local1 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local2 = _local2 + 1;
}
return(_local1 + _local7);
case "boolean" :
return(String(arg));
}
return("null");
}
static function background_encode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping encode");
return(false);
}
busy = true;
var _local2 = new Date();
start = _local2.getTime();
cache = {busy:false, complete:false, arg:arg, target:arg, parents:[], encoded:"", callback:callback, encode_chunk:function () {
com.newgrounds.encoders.JSON.encode_chunk();
}};
if (getType(arg) == "object") {
cache.encoded = "{";
} else if (getType(arg) == "array") {
cache.encoded = "[";
}
interval = setInterval(cache, "encode_chunk", 25);
return(true);
}
static function background_decode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping decode");
return(false);
}
busy = true;
var _local1 = new Date();
start = _local1.getTime();
cache = {busy:false, callback:callback, complete:false, arg:arg, pos:0, parents:["root"], target:null, scratch:"", decode_chunk:function () {
com.newgrounds.encoders.JSON.decode_chunk();
}};
interval = setInterval(cache, "decode_chunk", 25);
return(true);
}
static function decode(text) {
var at = 0;
var ch = " ";
var _value;
var _error = function (m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
};
var _next = function () {
ch = text.charAt(at);
at = at + 1;
return(ch);
};
var _white = function () {
while (ch) {
if (ch <= " ") {
_next();
} else if (ch == "/") {
switch (_next()) {
case "/" :
while ((_next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
_next();
for(;;){
if (ch) {
if (ch == "*") {
if (_next() == "/") {
_next();
// unexpected jump
}
} else {
_next();
}
} else {
_error("Unterminated comment");
}
};
break;
default :
_error("Syntax error");
}
} else {
return;
}
}
};
var _string = function () {
var _local4;
var _local1 = "";
var _local3;
var _local2;
var _local5 = false;
if (ch == "\"") {
while (_next()) {
if (ch == "\"") {
_next();
return(_local1);
}
if (ch == "\\") {
switch (_next()) {
case "b" :
_local1 = _local1 + "\b";
break;
case "f" :
_local1 = _local1 + "\f";
break;
case "n" :
_local1 = _local1 + newline;
break;
case "r" :
_local1 = _local1 + "\r";
break;
case "t" :
_local1 = _local1 + "\t";
break;
case "u" :
_local2 = 0;
_local4 = 0;
while (_local4 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)) {
_local5 = true;
break;
}
_local2 = (_local2 * 16) + _local3;
_local4 = _local4 + 1;
}
if (_local5) {
_local5 = false;
break;
}
_local1 = _local1 + String.fromCharCode(_local2);
break;
default :
_local1 = _local1 + ch;
}
} else {
_local1 = _local1 + ch;
}
}
}
_error("Bad string");
};
var _array = function () {
var _local1 = [];
if (ch == "[") {
_next();
_white();
if (ch == "]") {
_next();
return(_local1);
}
while (ch) {
_local1.push(_value());
_white();
if (ch == "]") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad array");
};
var _object = function () {
var _local2;
var _local1 = {};
if (ch == "{") {
_next();
_white();
if (ch == "}") {
_next();
return(_local1);
}
while (ch) {
_local2 = _string();
_white();
if (ch != ":") {
break;
}
_next();
_local1[_local2] = _value();
_white();
if (ch == "}") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad object");
};
var _number = function () {
var _local1 = "";
var _local2;
if (ch == "-") {
_local1 = "-";
_next();
}
while ((ch >= "0") && (ch <= "9")) {
_local1 = _local1 + ch;
_next();
}
if (ch == ".") {
_local1 = _local1 + ".";
while ((_next() && (ch >= "0")) && (ch <= "9")) {
_local1 = _local1 + ch;
}
}
_local2 = 1 * _local1;
if (!isFinite(_local2)) {
_error("Bad number");
} else {
return(_local2);
}
};
var _word = function () {
switch (ch) {
case "t" :
if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) {
_next();
return(true);
}
break;
case "f" :
if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) {
_next();
return(false);
}
break;
case "n" :
if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) {
break;
}
_next();
return(null);
}
_error("Syntax error");
};
_value = function () {
_white();
switch (ch) {
case "{" :
return(_object());
case "[" :
return(_array());
case "\"" :
return(_string());
case "-" :
return(_number());
}
return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word())));
};
return(_value());
}
static function getType(v) {
if (v instanceof Array) {
return("array");
}
return(typeof(v));
}
static function decode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < decode_chunks) {
chunk_decoder();
if (cache.complete) {
break;
}
_local1++;
}
trace(Math.round((cache.pos / cache.arg.length) * 100) + "% decoded");
cache.busy = false;
}
if (cache.complete) {
var _local2 = new Date();
busy = false;
clearInterval(interval);
cache.callback(cache.root, _local2.getTime() - start);
cache.arg = "";
}
}
static function encode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < encode_chunks) {
chunk_encoder();
if (cache.complete) {
break;
}
_local1++;
}
cache.busy = false;
}
if (cache.complete) {
var _local3 = new Date();
var _local2 = _local3.getTime();
busy = false;
clearInterval(interval);
cache.callback(cache.encoded, _local2 - start);
cache.encoded = "";
}
}
static function chunk_decoder() {
function _object() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = "object";
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.JSON.cache.scratch = "";
_setTargetValue({});
} else if (_local1 == ",") {
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.JSON.cache.scratch = "";
} else if (_local1 == "}") {
_useParent();
} else if (_local1 == "\"") {
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (_local1 != ":") {
throw "Malformed object notation. Object keys and values must be separated by colons(:)";
}
_addParent(com.newgrounds.encoders.JSON.cache.scratch);
com.newgrounds.encoders.JSON.cache.mode = null;
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
}
com.newgrounds.encoders.JSON.cache.scratch = com.newgrounds.encoders.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.JSON.cache.pos++;
}
function _array() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = "array";
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
_setTargetValue([]);
if (_local1 != "]") {
_addArrayKey();
} else {
_useParent();
}
return(undefined);
}
if (_local1 == ",") {
_addArrayKey();
} else if (_local1 == "]") {
_useParent();
}
com.newgrounds.encoders.JSON.cache.pos++;
}
function _boolean() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (_local1 == "t") {
_setTargetValue(true);
com.newgrounds.encoders.JSON.cache.pos = com.newgrounds.encoders.JSON.cache.pos + 3;
} else if (_local1 == "f") {
_setTargetValue(false);
com.newgrounds.encoders.JSON.cache.pos = com.newgrounds.encoders.JSON.cache.pos + 4;
} else {
throw "Bool values must be true or false";
}
_useParent();
}
function _null() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (_local1 == "n") {
_setTargetValue(null);
com.newgrounds.encoders.JSON.cache.pos = com.newgrounds.encoders.JSON.cache.pos + 2;
} else {
throw "Null values must be null";
}
_useParent();
}
function _string() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
if (!com.newgrounds.encoders.JSON.cache.mode) {
if (_local1 != "\"") {
throw "Strings must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.JSON.cache.scratch = "";
com.newgrounds.encoders.JSON.cache.mode = "string";
} else if (_local1 == "\"") {
_setTargetValue(com.newgrounds.encoders.JSON.cache.scratch);
_useParent();
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
switch (_local1) {
case "n" :
_local1 = newline;
break;
case "r" :
_local1 = newline;
break;
case "t" :
_local1 = "\t";
break;
case "u" :
_local1 = "\\" + _local1;
}
}
com.newgrounds.encoders.JSON.cache.scratch = com.newgrounds.encoders.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.JSON.cache.pos++;
}
function _number() {
var _local1 = com.newgrounds.encoders.JSON.cache.arg.charAt(com.newgrounds.encoders.JSON.cache.pos);
var _local2 = "01234567890.-";
if (!com.newgrounds.encoders.JSON.cache.mode) {
com.newgrounds.encoders.JSON.cache.mode = "number";
com.newgrounds.encoders.JSON.cache.scratch = "";
}
if (_local2.indexOf(_local1) < 0) {
_setTargetValue(Number(com.newgrounds.encoders.JSON.cache.scratch));
_useParent();
} else {
com.newgrounds.encoders.JSON.cache.scratch = com.newgrounds.encoders.JSON.cache.scratch + _local1;
com.newgrounds.encoders.JSON.cache.pos++;
}
}
function _setTargetValue(newval) {
var _local2 = _getParent().obj;
var _local1 = com.newgrounds.encoders.JSON.cache.parents[com.newgrounds.encoders.JSON.cache.parents.length - 1];
_local2[_local1] = newval;
}
function _useParent() {
com.newgrounds.encoders.JSON.cache.mode = com.newgrounds.encoders.JSON.getType(_getParent().obj);
com.newgrounds.encoders.JSON.cache.parents.pop();
}
function _getParent() {
var _local2 = com.newgrounds.encoders.JSON.cache;
var _local1 = 0;
while (_local1 < (com.newgrounds.encoders.JSON.cache.parents.length - 1)) {
_local2 = _local2[com.newgrounds.encoders.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.JSON.cache.parents[_local1]});
}
function _getCurrent() {
var _local2 = com.newgrounds.encoders.JSON.cache;
var _local1 = 0;
while (_local1 < com.newgrounds.encoders.JSON.cache.parents.length) {
_local2 = _local2[com.newgrounds.encoders.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.JSON.cache.parents[_local1]});
}
function _addParent(child) {
com.newgrounds.encoders.JSON.cache.parents.push(child);
}
function _addArrayKey() {
var _local1 = _getCurrent().obj.length;
com.newgrounds.encoders.JSON.cache.parents.push(_local1);
com.newgrounds.encoders.JSON.cache.mode = null;
}
if (cache.pos >= cache.arg.length) {
cache.complete = true;
return(undefined);
}
if (cache.mode) {
eval ("_" + cache.mode)();
} else {
var char = cache.arg.charAt(cache.pos);
switch (char) {
case "{" :
_object();
return;
case "[" :
_array();
return;
case "\"" :
_string();
return;
case "n" :
_null();
return;
case "t" :
_boolean();
return;
case "f" :
_boolean();
return;
default :
_number();
}
}
}
static function chunk_encoder() {
if (cache.complete) {
return(undefined);
}
var _local2 = getType(cache.target);
switch (_local2) {
case "number" :
cache.encoded = cache.encoded + cache.target;
getParent();
break;
case "string" :
cache.encoded = cache.encoded + (("\"" + cache.target.split("\"").join("\\\"")) + "\"");
getParent();
break;
case "boolean" :
cache.encoded = cache.encoded + ((cache.target == true) ? "true" : "false");
getParent();
break;
case "null" :
cache.encoded = cache.encoded + "null";
getParent();
break;
case "array" :
if (cache.target.length < 1) {
cache.encoded = cache.encoded + "]";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[0];
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
case "object" :
for (var _local1 in cache.target) {
break;
}
if (_local1 === undefined) {
cache.encoded = cache.encoded + "}";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[_local1];
cache.encoded = cache.encoded + (("\"" + _local1.split("\"").join("\\\"")) + "\":");
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
default :
cache.encoded = cache.encoded + "null";
getParent();
}
}
static function getParent() {
if (cache.parents.length > 0) {
var _local1 = cache.parents.pop();
if (getType(_local1) == "array") {
_local1.shift();
} else {
for (var _local3 in _local1) {
delete _local1[_local3];
break;
}
}
if ((getType(_local1) == "object") or (getType(_local1) == "array")) {
for (var _local2 in _local1) {
break;
}
if (!(_local2 === undefined)) {
cache.encoded = cache.encoded + ",";
}
}
cache.target = _local1;
} else {
cache.complete = true;
}
}
static var encode_chunks = 20000;
static var decode_chunks = 20000;
static var busy = false;
}
Symbol 52 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
class com.newgrounds.APIEventDispatcher
{
function APIEventDispatcher () {
}
function addEventListener(event, callback, target) {
if (!target) {
throw "Attempted to create a listener without providing a target object.";
}
if (!listeners[event]) {
listeners[event] = [];
} else {
removeEventListener(event, target);
}
listeners[event].push({target:target, callback:callback});
}
function removeEventListener(event, target) {
if (!target) {
throw "Attempted to remove a listener without providing a target object.";
}
if ((!listeners[event]) || (listeners[event].length < 1)) {
return(undefined);
}
var _local4 = [];
var _local2 = 0;
while (_local2 < listeners[event].length) {
if (listeners[event][_local2].target != target) {
_local4.push(listeners[event][_local2]);
}
_local2++;
}
listeners[event] = _local4;
}
function dispatchEvent(event) {
if (!hasEventListener(event.__get__type())) {
return(false);
}
collectGarbage(event.__get__type());
var _local2 = 0;
while (_local2 < listeners[event.__get__type()].length) {
var _local4 = listeners[event.__get__type()][_local2].callback;
if (listeners[event.__get__type()][_local2].target) {
var _local5 = listeners[event.__get__type()][_local2].target;
_local4.call(_local5, event);
} else {
_local4(event);
}
_local2++;
}
return(true);
}
function hasEventListener(event) {
return((listeners[event] != undefined) && (listeners[event].length > 0));
}
function collectGarbage(event) {
var _local5 = [];
if (!hasEventListener) {
return(undefined);
}
var _local2 = 0;
while (_local2 < listeners[event].length) {
var _local4 = listeners[event][_local2].target;
if (_local4) {
_local5.push(listeners[event][_local2]);
}
_local2++;
}
listeners[event] = _local5;
}
var listeners = {};
}
Symbol 53 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
class com.newgrounds.encoders.MD5
{
function MD5 () {
}
static function calculate(src) {
return(hex_md5(src));
}
static function hex_md5(src) {
return(binl2hex(core_md5(str2binl(src), src.length * 8)));
}
static function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(new Array(_local4, _local3, _local2, _local1));
}
static function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
static function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
static function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
static function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
static function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
static function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
static function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
static function str2binl(str) {
var _local3 = new Array();
var _local4 = 255;
var _local1 = 0;
while (_local1 < (str.length * 8)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32));
_local1 = _local1 + 8;
}
return(_local3);
}
static function binl2hex(binarray) {
var _local4 = new String("");
var _local3 = new String("0123456789abcdef");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
}
Symbol 54 MovieClip [__Packages.com.newgrounds.components.FlashAd] Frame 0
class com.newgrounds.components.FlashAd extends MovieClip
{
var show_background, background, _x, _y, _xscale, _yscale, clip, mask;
function FlashAd () {
super();
background._visible = show_background;
if (show_background) {
_x = Math.round(_x);
_y = Math.round(_y);
_xscale = 100;
_yscale = 100;
}
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.ADS_APPROVED, loadAd, this);
}
function onLoad() {
com.newgrounds.API.attachFlashAd(this);
}
function loadAd(event, params) {
com.newgrounds.API.attachFlashAd(this);
}
function onUnload() {
clip.ad.unloadMovie();
clip.ad.removeMovieClip();
clip.removeMovieClip();
mask.removeMovieClip();
background.removeMovieClip();
com.newgrounds.API.removeEventListener(com.newgrounds.APIEvent.ADS_APPROVED, this);
}
}
Symbol 68 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
class com.newgrounds.components.APIConnector extends MovieClip
{
var _x, _y, fake_session, api_id, nextFrame, _visible, error_screens, medal_popups, debug, version, local_data, encryption_key, stop, gotoframe_interval, _totalframes, _framesloaded, gotoAndStop;
function APIConnector () {
super();
_x = Math.round(_x);
_y = Math.round(_y);
if (fake_session and (com.newgrounds.API.getHost() == "localhost")) {
com.newgrounds.API.setFakeSession(true);
}
if (api_id && (!com.newgrounds.API.isConnected())) {
nextFrame();
_visible = false;
setGotoFrame("connecting");
if (error_screens) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.NEW_VERSION_AVAILABLE, onNewVersion, this);
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.HOST_BLOCKED, onBadHost, this);
}
if (medal_popups) {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.UNLOCK_MEDAL, doUnlock, this);
}
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, onConnected, this);
if (com.newgrounds.API.isPublishedHost()) {
debug = false;
}
if (version) {
com.newgrounds.API.setVersion(version);
}
if (!com.newgrounds.API.hasUserSession()) {
var _local3 = com.newgrounds.API.loadLocal("api_connector_data");
if (_local3) {
local_data = _local3;
} else {
local_data = {medals_unlocked:new Array()};
}
}
com.newgrounds.API.setPreload(true);
com.newgrounds.API.connect(api_id, encryption_key, debug);
} else if (api_id && (com.newgrounds.API.isConnected())) {
_visible = false;
setGotoFrame("done");
}
stop();
}
function doUnlock(e) {
var _local5 = _root.attachMovie("NewgroundsAPIAsset_Medal_Popup", "medal_pop_" + e.data.medal.getID(), _root.getNextHighestDepth());
if (e.data.x != undefined) {
_local5._x = e.data.x + 254;
} else {
_local5._x = Stage.width;
}
if (e.data.x != undefined) {
_local5._y = e.data.y + 73;
} else {
_local5._y = Stage.height;
}
_local5.medal = e.data.medal;
var _local3 = com.newgrounds.API.getMedals();
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2].getID() != e.data.medal.getID()) && (_root["medal_pop_" + _local3[_local2].getID()])) {
_root["medal_pop_" + _local3[_local2].getID()]._y = _root["medal_pop_" + _local3[_local2].getID()]._y - 70;
}
_local2++;
}
}
function onLoginError() {
var _local2 = _root.attachMovie("Asset_Login_Warning", "Asset_Login_Warning", _root.getNextHighestDepth());
}
function onConnectionError() {
var _local3 = _root.attachMovie("Asset_Connection_Error", "Asset_Connection_Error", _root.getNextHighestDepth());
setGotoFrame("done");
}
function onConnected(event, params) {
if (event.success) {
setGotoFrame("connected");
if (((error_screens && (com.newgrounds.API.isPublishedHost())) && (com.newgrounds.API.hasPublisher())) && (!com.newgrounds.API.hasUserSession())) {
onLoginError();
}
} else if (error_screens) {
onConnectionError();
}
}
function onNewVersion() {
var _local2 = _root.attachMovie("NewgroundsAsset_New_Version_Available", "NewgroundsAsset_New_Version_Available", _root.getNextHighestDepth());
_local2.official_version_url = com.newgrounds.API.getOfficialURL();
}
function onBadHost() {
var _local2 = _root.attachMovie("NewgroundsAsset_Illegal_Host", "NewgroundsAsset_Illegal_Host", _root.getNextHighestDepth());
_local2.official_version_url = com.newgrounds.API.getOfficialURL();
}
function setGotoFrame(frame) {
if (goto_frame == null) {
goto_frame = frame;
gotoframe_interval = setInterval(this, "gotoFrameIfLoaded", 50);
}
}
function gotoFrameIfLoaded() {
if ((goto_frame != null) && (_framesloaded == _totalframes)) {
_visible = true;
gotoAndStop(goto_frame);
goto_frame = null;
clearInterval(gotoframe_interval);
}
}
var goto_frame = null;
}
Symbol 187 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 10
gotoAndPlay (6);
Symbol 190 MovieClip Frame 15
gotoAndStop (1);
Symbol 191 MovieClip Frame 100
stop();
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 100
onClipEvent (load) {
txx = "PLAY";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.gotoAndPlay(4);
}
}
Symbol 198 MovieClip Frame 300
stop();
Symbol 211 Button
on (release) {
getURL ("http://www.spoofgames.com/", "_blank");
}
on (keyPress "<Space>") {
_parent.play();
}
Symbol 234 MovieClip Frame 1
aa = random(40) + 1;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 254 MovieClip Frame 50
stop();
Symbol 288 MovieClip Frame 1
gotoAndStop(_parent.fire);
Instance of Symbol 282 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.fire);
}
Symbol 293 MovieClip Frame 20
stop();
Symbol 294 MovieClip Frame 8
stop();
Symbol 302 MovieClip Frame 30
stop();
Symbol 303 MovieClip Frame 14
fire = 5;
Symbol 303 MovieClip Frame 19
fire = fire - 1;
if (fire != 0) {
gotoAndPlay (15);
}
Symbol 303 MovieClip Frame 155
stop();
Symbol 304 MovieClip Frame 28
stop();
Symbol 305 MovieClip Frame 1
gotoAndStop (3);
Symbol 317 MovieClip Frame 1
_parent.stop();
stopAllSounds();
gotoAndStop (2);
Symbol 317 MovieClip Frame 2
if (_root.sg_notice_disclaimer == undefined) {
aa = 250;
_root.sg_notice_disclaimer = 2;
} else {
aa = 0;
}
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 317 MovieClip Frame 260
_parent.play();
stop();
Symbol 323 Button
on (release) {
getURL ("http://www.facebook.com/pages/SpoofGames/202525929778531", "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (16);
}
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 15
stop();
Symbol 329 Button
on (release) {
_root.fondu.gotoAndPlay(2);
_root.logo.boxx.gotoAndStop(57);
}
on (rollOver) {
_root.logo.boxx.gotoAndPlay(58);
}
on (rollOut) {
_root.logo.boxx.gotoAndStop(57);
}
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
bt._visible = true;
Symbol 343 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.arnold_mouth);
};
Symbol 347 MovieClip Frame 2
_root.arnold_mouth = 4;
Symbol 347 MovieClip Frame 6
_root.arnold_mouth = 2;
Symbol 347 MovieClip Frame 9
_root.arnold_mouth = 3;
Symbol 347 MovieClip Frame 14
_root.arnold_mouth = 1;
Symbol 347 MovieClip Frame 17
_root.arnold_mouth = 3;
Symbol 347 MovieClip Frame 21
_root.arnold_mouth = 4;
Symbol 347 MovieClip Frame 24
_root.arnold_mouth = 1;
Symbol 347 MovieClip Frame 27
_root.arnold_mouth = 5;
Symbol 347 MovieClip Frame 33
_root.arnold_mouth = 3;
Symbol 347 MovieClip Frame 40
_root.arnold_mouth = 4;
Symbol 347 MovieClip Frame 44
_root.arnold_mouth = 2;
Symbol 347 MovieClip Frame 51
_root.arnold_mouth = 3;
Symbol 347 MovieClip Frame 62
_root.arnold_mouth = 5;
Symbol 347 MovieClip Frame 69
_root.arnold_mouth = 1;
Symbol 347 MovieClip Frame 73
_root.arnold_mouth = 2;
Symbol 347 MovieClip Frame 79
_root.arnold_mouth = 1;
Symbol 347 MovieClip Frame 86
_root.arnold_mouth = 3;
Symbol 347 MovieClip Frame 93
_root.arnold_mouth = 2;
Symbol 347 MovieClip Frame 98
_root.arnold_mouth = 1;
Symbol 347 MovieClip Frame 116
_root.arnold_mouth = 1;
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
if (_root.arnold_call == undefined) {
_root.arnold_call = 0;
}
stop();
onEnterFrame = function () {
gotoAndStop(_root.arnold_mouth);
if (_root.arnold_call != 0) {
snd.gotoAndStop(_root.arnold_call + 1);
_root.arnold_call = 0;
}
};
Symbol 355 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
aa = 300;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
gotoAndStop (2);
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 367 MovieClip Frame 80
_root.logo.boxx.gotoAndPlay(76);
Symbol 367 MovieClip Frame 83
_root.logo.boxx2.craque.gotoAndPlay(2);
Symbol 367 MovieClip Frame 91
if (call_1 == undefined) {
call_1 = 0;
}
call_1 = call_1 + 1;
if (call_1 == 1) {
_root.arnold_call = 1;
}
if (call_1 == 2) {
call_1 = 0;
}
Symbol 367 MovieClip Frame 124
shot = 1;
Symbol 367 MovieClip Frame 205
shot = shot - 1;
if (shot != 0) {
gotoAndPlay (125);
}
Symbol 367 MovieClip Frame 214
head.gotoAndStop(2);
bras.gotoAndStop(2);
shot = 6;
Symbol 367 MovieClip Frame 227
shot = shot - 1;
if (shot != 0) {
gotoAndPlay (215);
}
Symbol 367 MovieClip Frame 228
head.gotoAndStop(1);
bras.gotoAndStop(1);
_root.logo.boxx.gotoAndStop(57);
Symbol 367 MovieClip Frame 265
gotoAndPlay (87);
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 59
_root.got2go = 2;
stop();
Symbol 373 MovieClip Frame 1
stopAllSounds();
Symbol 373 MovieClip Frame 3
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 25
gotoAndPlay (2);
Symbol 390 MovieClip Frame 5
if ((_parent._parent._parent._currentframe == 10) && (_root.sg_alerts == 0)) {
_parent._parent._parent.gotoAndStop(1);
_parent.gotoAndStop(1);
}
stop();
Symbol 391 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.sg_alerts != 0) {
_parent._parent.gotoAndStop(10);
if (_currentframe == 1) {
gotoAndPlay (2);
}
}
};
Symbol 391 MovieClip Frame 22
gotoAndPlay (2);
Symbol 395 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
_parent.infoz = "";
gotoAndPlay (11);
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
boxx.boxx.gotoAndPlay(2);
Symbol 396 MovieClip Frame 10
stop();
Symbol 396 MovieClip Frame 11
boxx.boxx.gotoAndStop(1);
Symbol 402 MovieClip Frame 1
if (aa1 == undefined) {
aa1 = 1;
aa2 = 2;
}
onEnterFrame = function () {
boxx1.gotoAndStop(aa1);
boxx2.gotoAndStop(aa2);
};
Symbol 402 MovieClip Frame 20
aa2 = aa2 + 1;
if (aa2 == 5) {
aa2 = 1;
}
Symbol 402 MovieClip Frame 40
aa1 = aa1 + 1;
if (aa1 == 5) {
aa1 = 1;
}
gotoAndPlay (1);
Symbol 402 MovieClip Frame 50
aa2 = aa2 + 1;
if (aa2 == 5) {
aa2 = 1;
}
Symbol 402 MovieClip Frame 60
aa1 = aa1 + 1;
if (aa1 == 5) {
aa1 = 1;
}
gotoAndPlay (41);
Symbol 406 MovieClip Frame 1
onEnterFrame = function () {
gotoAndStop(_parent._parent._currentframe);
};
Symbol 409 Button
on (release) {
getURL ("http://www.spoofgames.com/", "_blank");
}
on (rollOver) {
_parent.infoz = "SpoofGames.com";
gotoAndPlay (2);
}
on (rollOut) {
_parent.infoz = "";
gotoAndPlay (21);
}
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
boxx.fireboxx.aa1 = 1;
boxx.fireboxx.aa2 = 2;
boxx.fireboxx.gotoAndPlay(41);
Symbol 410 MovieClip Frame 20
stop();
Symbol 410 MovieClip Frame 21
boxx.fireboxx.aa1 = 1;
boxx.fireboxx.aa2 = 2;
boxx.fireboxx.gotoAndPlay(2);
Symbol 412 MovieClip Frame 1
stop();
onEnterFrame = function () {
infoz = _root.sg_alerts;
};
Symbol 417 MovieClip Frame 1
gotoAndStop (2);
Symbol 417 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (_root.sg_alerts_go == 2) {
_root.sg_alerts_go = 1;
gotoAndPlay (3);
}
if (_root.sg_alerts == 0) {
gotoAndStop (2);
} else if (_currentframe == 2) {
gotoAndStop (250);
}
};
Symbol 417 MovieClip Frame 250
stop();
Symbol 418 MovieClip Frame 1
infoz = "";
onEnterFrame = function () {
if (bt_sg._currentframe != 20) {
bt1._x = (25 + bt_sg._width) - 25;
bt2._x = (48 + bt_sg._width) - 25;
}
};
Instance of Symbol 396 MovieClip "bt1" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.page = 2;
}
if (act == 3) {
act = 1;
_parent.infoz = "Options";
}
}
Instance of Symbol 396 MovieClip "bt2" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.page = 3;
}
if (act == 3) {
act = 1;
_parent.infoz = "Game Extras";
}
}
Symbol 462 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation - 2);
};
Symbol 464 Button
on (release) {
getURL ("http://www.spoofgames.com/auction/", "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (21);
}
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 20
stop();
Symbol 466 MovieClip Frame 1
onEnterFrame = function () {
if ((_root.sg_logged == 2) && (_root.sg_id != 0)) {
infoz = _root.sg_coins;
infoz_2 = _root.sg_username;
} else {
infoz = "---";
infoz_2 = "( Not logged in )";
}
};
Symbol 478 MovieClip Frame 1
gotoAndStop(_root.qual_st);
stop();
onEnterFrame = function () {
gotoAndStop(_root.qual_st);
};
Symbol 480 Button
on (press) {
_parent.canmove = 2;
}
on (release, releaseOutside) {
_parent.canmove = 1;
}
Symbol 482 MovieClip Frame 1
boxx._x = (_root.volum * 155) / 100;
stop();
onEnterFrame = function () {
if (canmove == 2) {
boxx._x = _xmouse;
if (boxx._x > 155) {
boxx._x = 155;
}
if (boxx._x < 0) {
boxx._x = 0;
}
}
_root.volum = Math.round((boxx._x * 100) / 155);
};
Symbol 487 MovieClip Frame 1
speed = (random(10) + 1) / 10;
aa = random(2) + 1;
if (aa == 1) {
speed = speed * -1;
}
onEnterFrame = function () {
_rotation = (_rotation + speed);
};
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
play();
Symbol 513 MovieClip Frame 30
gotoAndPlay (2);
Instance of Symbol 510 MovieClip "boxx" in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(20) + 1);
}
Instance of Symbol 553 MovieClip "boxx" in Symbol 554 MovieClip Frame 3
onClipEvent (load) {
gotoAndPlay(random(20) + 1);
}
Symbol 555 Button
on (release) {
act = 2;
}
on (rollOver) {
act = 3;
gotoAndPlay (2);
}
on (rollOut) {
_parent.infoz = "";
gotoAndPlay (11);
}
Symbol 556 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (speed == undefined) {
_xscale = 0;
speed = 40;
}
if (_xscale < 100) {
_xscale = (_xscale + 2);
_yscale = _xscale;
}
if (speed > 0.5) {
speed = speed * 0.95;
}
_rotation = (_rotation + speed);
boxx.boxx._rotation = _rotation * -1;
};
Symbol 556 MovieClip Frame 10
stop();
Symbol 575 MovieClip Frame 1
if (eval ("_root.ac_" + nb) != 2) {
_alpha = 15;
}
Symbol 582 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_currentframe == 2) {
aff_1 = _root.volum + "%";
}
if (_currentframe == 4) {
aff_1 = "";
aff_2 = "";
aff_3 = "";
aff_4 = "";
aff_5 = "";
aff_6 = "";
aff_7 = "";
}
};
Instance of Symbol 396 MovieClip "bt2" in Symbol 582 MovieClip Frame 2
onClipEvent (load) {
boxx.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.page = 1;
}
if (act == 3) {
act = 1;
_parent.infoz = "";
}
}
Instance of Symbol 396 MovieClip in Symbol 582 MovieClip Frame 2
onClipEvent (load) {
boxx.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.qual_st = _root.qual_st - 1;
if (_root.qual_st == 0) {
_root.qual_st = 3;
}
}
if (act == 3) {
act = 1;
_parent.infoz = "";
}
}
Instance of Symbol 483 MovieClip in Symbol 582 MovieClip Frame 2
onClipEvent (load) {
speed = 0.2;
sx = _parent.sx;
sy = _parent.sy;
aa = random(2) + 1;
if (aa == 1) {
_parent._x = random(800) - 400;
_parent._y = -500;
}
if (aa == 2) {
_parent._x = 500;
_parent._y = random(600) - 300;
}
if (aa == 3) {
_parent._x = random(800) - 400;
_parent._y = 500;
}
if (aa == 4) {
_parent._x = -500;
_parent._y = random(600) - 300;
}
}
onClipEvent (enterFrame) {
speedx = (sx - _parent._x) * speed;
speedy = (sy - _parent._y) * speed;
if ((_parent._x < (sx - 0.5)) || (_parent._x > (sx + 0.5))) {
_parent._x = _parent._x + speedx;
}
if ((_parent._y < (sy - 0.5)) || (_parent._y > (sy + 0.5))) {
_parent._y = _parent._y + speedy;
}
}
Symbol 582 MovieClip Frame 3
infoz = "";
Instance of Symbol 489 MovieClip in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
boxx.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.page = 4;
}
if (act == 3) {
act = 1;
_parent.infoz = "Newest Spoofs";
}
}
Instance of Symbol 556 MovieClip in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
boxx.gotoAndStop(1);
if (_root.sg_alerts != 0) {
boxx.parentheese.gotoAndPlay(2);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.page = 4;
}
if (act == 3) {
act = 1;
_parent.infoz = "Achievements";
}
}
Instance of Symbol 556 MovieClip in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
boxx.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/cats/13/39/1/", "_blank");
}
if (act == 3) {
act = 1;
_parent.infoz = "Newest Spoofs";
}
}
Instance of Symbol 556 MovieClip in Symbol 582 MovieClip Frame 3
onClipEvent (load) {
boxx.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/auction/", "_blank");
}
if (act == 3) {
act = 1;
_parent.infoz = "Coins & Auction";
}
}
Symbol 582 MovieClip Frame 4
_root.sg_alerts = 0;
_parent.left_boxx.bt2.gotoAndStop(1);
_parent.left_boxx.bt2.boxx.boxx.gotoAndStop(1);
Instance of Symbol 396 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
boxx.gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent.page = 3;
}
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 575 MovieClip in Symbol 582 MovieClip Frame 4
onClipEvent (load) {
nb = 7;
}
Symbol 583 MovieClip Frame 1
if ((_root.sg_connexion == undefined) && (_root.sg_tool_right == true)) {
_root.sg_connexion = 2;
} else {
stop();
}
Symbol 583 MovieClip Frame 2
_root.start_loading = 2;
timer_achivload = -1;
stop();
onEnterFrame = function () {
if (_root.start_loading == 2) {
_root.start_loading = 1;
var _local2 = new LoadVars();
_local2.onLoad = function (success) {
if (success) {
trace(reaction);
_root.reaction = "Success";
trace("Connexion to Sg Successfull");
_root.reaction_received = 2;
} else {
trace("Did not connect to SG");
_root.reaction_received = 3;
}
};
_local2.load("http://www.spoofgames.com/api.php?userConnect=1");
}
if (_root.reaction_received == 2) {
_root.reaction_received = 1;
loadVariablesNum ("http://www.spoofgames.com/api.php?userConnect=1", 0, "GET");
timer_achivload = 80;
_root.sg_logged = 2;
gotoAndPlay (5);
}
if (_root.reaction_received == 3) {
_root.reaction_received = 1;
gotoAndPlay (5);
}
if (timer_achivload > 0) {
timer_achivload = timer_achivload - 1;
}
if (timer_achivload == 0) {
timer_achivload = timer_achivload - 1;
_root.php_achievements_load = 2;
}
};
Symbol 583 MovieClip Frame 10
stop();
Symbol 584 MovieClip Frame 1
page = 1;
left_boxx._visible = _root.sg_tool_left;
right_boxx._visible = _root.sg_tool_right;
stop();
onEnterFrame = function () {
if (_root.volum == undefined) {
_root.volum = 100;
}
if (_root.qual_st == undefined) {
_root.qual_st = 3;
}
if (_root.sg_alerts == undefined) {
_root.sg_alerts = 0;
}
left_boxx._x = 0;
left_boxx._y = _root.dimension_height - 26;
right_boxx._x = _root.dimension_width;
right_boxx._y = _root.dimension_height - 26;
fond._x = 0;
fond._y = 0;
fond._width = _root.dimension_width;
fond._height = _root.dimension_height;
fond.gotoAndStop(page);
panel.sx = _root.dimension_width / 2;
panel.sy = _root.dimension_height / 2;
panel.gotoAndStop(page);
mySound = new Sound();
mySound.setVolume(_root.volum);
mySound.start(0, 1000);
if (_root.qual_st == 1) {
_root._quality = "low";
}
if (_root.qual_st == 2) {
_root._quality = "medium";
}
if (_root.qual_st == 3) {
_root._quality = "high";
}
};
Symbol 603 Button
on (release) {
getURL (url, "_blank");
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 10
gotoAndPlay (2);
Instance of Symbol 604 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(1);
url = "http://www.spoofgames.com/games/3711/";
}
Instance of Symbol 604 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(2);
url = "http://www.spoofgames.com/games/3685/";
}
Instance of Symbol 604 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(3);
url = "http://www.spoofgames.com/games/3693/";
}
Instance of Symbol 604 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
boxx.gotoAndStop(4);
url = "http://www.spoofgames.com/games/3671/";
}
Instance of Symbol 190 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
txx = "MAIN MENU";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent._parent.gotoAndStop(19);
}
}
Instance of Symbol 190 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
txx = "MORE GAMES";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com", "_blank");
}
}
Symbol 607 MovieClip Frame 1
stopAllSounds();
Symbol 607 MovieClip Frame 675
stop();
Symbol 608 Button
on (keyPress "T") {
_root.lvl2 = 4;
_root.wp_1 = 2;
_root.wp_2 = 2;
_root.wp_3 = 2;
_root.wp_4 = 2;
}
on (keyPress "Y") {
_root.lvl2 = _root.lvl2 + 1;
}
on (keyPress "I") {
_root.cnt.perso._x = _root.cnt.perso._x + 100;
}
on (keyPress "U") {
_root.cnt.perso._x = _root.cnt.perso._x - 100;
}
on (keyPress "L") {
_root.cash = _root.cash + 1000;
}
on (keyPress "e") {
quit_movie = 2;
}
on (keyPress "E") {
quit_movie = 2;
}
Symbol 610 MovieClip Frame 2
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl2 >= _parent.nb) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 649 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl2 >= _parent.nb) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Instance of Symbol 633 MovieClip in Symbol 656 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.locker._currentframe == 1) {
this.hitpts = new Array({x:0, y:0});
i = 0;
while (i < this.hitpts.length) {
this.localToGlobal(hitpts[i]);
if (_root.cnt.perso.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent._parent._parent.dialogues.gotoAndStop(_parent._currentframe + 2600);
if ((_root.cnt.bulleinfo._currentframe == 1) && (eval ("_root.filmbrief_" + _parent._currentframe) == 2)) {
_root.cnt.bulleinfo.gotoAndPlay(2);
_root.cnt.bulleinfo.boxx.gotoAndStop(2);
activated = 2;
}
if ((Key.isDown(32) && (cantouchthis != 2)) && (eval ("_root.filmbrief_" + _parent._currentframe) == 2)) {
_root.enemies_dead = 0;
_root.bullets_fired = 0;
_root.cash_earned = 0;
_root.time_taken = 0;
_root.energy_left = 100;
cantouchthis = 2;
_root.canmove = 1;
_root.fondu.gotoAndStop(42);
_root.future_film = _parent._currentframe;
_root.cnt.bulleinfo.gotoAndStop(1);
_root.cnt.bulleinfo.boxx.gotoAndStop(1);
_y = (_y - 1000);
}
} else {
if (_parent._parent._parent.dialogues._currentframe == (2600 + _parent._currentframe)) {
_parent._parent._parent.dialogues.gotoAndStop(2600);
}
if (activated == 2) {
if (_root.cnt.bulleinfo._currentframe == 15) {
activated = 1;
_root.cnt.bulleinfo.gotoAndPlay(16);
}
}
}
i++;
}
}
}
Instance of Symbol 656 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
gotoAndStop (1);
}
Instance of Symbol 656 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
gotoAndStop (2);
}
Instance of Symbol 656 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
gotoAndStop (3);
}
Instance of Symbol 656 MovieClip in Symbol 666 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
gotoAndStop (4);
}
Instance of Symbol 633 MovieClip "upmenuhitt" in Symbol 666 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.perso.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_root.cnt.bulleinfo._currentframe == 1) {
_root.cnt.bulleinfo.gotoAndPlay(2);
_root.cnt.bulleinfo.boxx.gotoAndStop(2);
activated = 2;
}
if (Key.isDown(32) && (cantouchthis != 2)) {
cantouchthis = 2;
_root.canmove = 1;
_root.upgrades.gotoAndPlay(2);
_root.cnt.bulleinfo.gotoAndStop(1);
_root.cnt.bulleinfo.boxx.gotoAndStop(1);
_y = (_y - 1000);
}
} else if (activated == 2) {
if (_root.cnt.bulleinfo._currentframe == 15) {
activated = 1;
_root.cnt.bulleinfo.gotoAndPlay(16);
}
}
i++;
}
}
Instance of Symbol 671 MovieClip in Symbol 672 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.gotoAndStop(_root.clothes);
}
onClipEvent (enterFrame) {
_parent._parent.gotoAndStop(_root.clothes);
}
Symbol 676 MovieClip Frame 1
stop();
Symbol 682 MovieClip Frame 1
stop();
Symbol 690 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 1
stop();
Symbol 712 MovieClip Frame 1
stop();
Symbol 718 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.arnold_mouth);
};
Symbol 759 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.arnold_eyes);
};
Instance of Symbol 761 MovieClip in Symbol 762 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.gotoAndStop(_root.clothes);
}
onClipEvent (enterFrame) {
_parent._parent.gotoAndStop(_root.clothes);
}
Symbol 765 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 2
fire.boxx.gotoAndStop(random(4) + 1);
fire._x = (80 + random(20)) - 10;
fire._y = (-6 + random(20)) - 10;
fire._xscale = random(25) + 25;
fire._yscale = fire._xscale + random(25);
fire.gotoAndPlay(2);
Symbol 779 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 1
timer = 250;
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if (_currentframe <= 10) {
gotoAndPlay (20);
}
};
gotoAndPlay((random(4) + 1) * 2);
Symbol 793 MovieClip Frame 3
stop();
Symbol 793 MovieClip Frame 5
stop();
Symbol 793 MovieClip Frame 7
stop();
Symbol 793 MovieClip Frame 9
stop();
Symbol 793 MovieClip Frame 20
_root.fondu_i_lost = 2;
_root.fondu_to_death = 2;
_root.fondu.gotoAndStop(42);
stop();
Symbol 794 MovieClip Frame 1
onEnterFrame = function () {
if (terre_revol == 2) {
terre_revol = 1;
Set(("_root.cnt.t" + _root.terre_nb) + "._x", _x);
Set(("_root.cnt.t" + _root.terre_nb) + "._y", _y);
if (water_revol == 2) {
water_revol = 1;
eval ("_root.cnt.t" + _root.terre_nb).gotoAndPlay(41);
} else {
eval ("_root.cnt.t" + _root.terre_nb).gotoAndPlay(2);
}
_root.terre_nb = _root.terre_nb + 1;
if (_root.terre_nb == 7) {
_root.terre_nb = 1;
}
}
};
Instance of Symbol 691 MovieClip "gunarm" in Symbol 794 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = _parent.gun._x;
_y = _parent.gun._y;
_visible = _parent.gun._visible;
_rotation = _parent.gun._rotation;
gotoAndStop(_parent.gun._currentframe);
boxx.gotoAndStop(_parent.gun.boxx._currentframe);
boxx.boxx.gotoAndStop(_parent.gun.boxx.boxx._currentframe);
}
Instance of Symbol 779 MovieClip "gun" in Symbol 794 MovieClip Frame 1
onClipEvent (load) {
myRadians = Math.atan2(_root.cnt.perso._ymouse - this._y, _root.cnt.perso._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.cnt.perso._ymouse - this._y);
_root.xChange = Math.round(_root.cnt.perso._xmouse - this._x);
_rotation = myDegrees;
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root.cnt.perso._ymouse - this._y, _root.cnt.perso._xmouse - this._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root.cnt.perso._ymouse - this._y);
_root.xChange = Math.round(_root.cnt.perso._xmouse - this._x);
_rotation = myDegrees;
if (_visible == true) {
if ((_parent._currentframe >= 151) && (_parent._currentframe <= 200)) {
if (_root.perso_side == "R") {
_rotation = 15;
} else {
_rotation = 15;
}
} else if (_root.perso_side == "R") {
if ((_rotation > -90) && (_rotation < 90)) {
} else {
_root.cnt.perso._xscale = _root.cnt.perso._xscale * -1;
_root.perso_side = "L";
}
} else if ((_rotation > -90) && (_rotation < 90)) {
} else {
_root.cnt.perso._xscale = _root.cnt.perso._xscale * -1;
_root.perso_side = "R";
}
}
}
Instance of Symbol 633 MovieClip "hitt2" in Symbol 794 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)) {
if (_root.perso_floorhitt == 1) {
_root.perso_floorhitt = 2;
if (_root.jump_speed > 5) {
_root.shake = _root.jump_speed * 0.2;
}
}
} else {
_root.perso_floorhitt = 1;
}
if (_root.cnt.medic.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.medic_hitt = 2;
if (_root.cnt.bulleinfo._currentframe == 1) {
_root.cnt.bulleinfo.gotoAndPlay(2);
_root.cnt.bulleinfo.boxx.gotoAndStop(4);
}
} else {
_root.medic_hitt = 1;
if (_root.cnt.bulleinfo.boxx._currentframe == 4) {
_root.cnt.bulleinfo.gotoAndStop(1);
_root.cnt.bulleinfo.boxx.gotoAndStop(1);
}
}
var nb = 1;
while (nb < 11) {
if (_root.cnt["w" + nb].hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (_parent.terre_revol == 2) {
_parent.water_revol = 2;
eval ("_root.cnt.t" + _root.terre_nb).gotoAndPlay(41);
_root.cnt["w" + nb].gotoAndPlay(3);
}
}
nb++;
}
i++;
}
this.hitpts2 = new Array({x:0, y:-10});
j = 0;
while (j < this.hitpts2.length) {
this.localToGlobal(hitpts2[j]);
if (_root.cnt.hitt.hitTest(hitpts2[j].x, hitpts2[j].y, true)) {
_root.cnt.perso._y = _root.cnt.perso._y - 10;
}
j++;
}
this.hitpts3 = new Array({x:25, y:-60});
k = 0;
while (k < this.hitpts3.length) {
this.localToGlobal(hitpts3[k]);
if (_root.cnt.hitt.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
_root.mur_touch = 2;
} else {
_root.mur_touch = 1;
}
k++;
}
}
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 2
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 100
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 101
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 150
gotoAndPlay (101);
Symbol 794 MovieClip Frame 151
gun._x = -7;
gun._y = -70;
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 151
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 156
terre_revol = 2;
_root.snd.feet.gotoAndPlay((random(4) + 1) * 2);
Symbol 794 MovieClip Frame 168
terre_revol = 2;
_root.snd.feet.gotoAndPlay((random(4) + 1) * 2);
Symbol 794 MovieClip Frame 175
gotoAndPlay (151);
Symbol 794 MovieClip Frame 176
terre_revol = 2;
_root.snd.feet.gotoAndPlay((random(4) + 1) * 2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 176
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 177
terre_revol = 2;
Symbol 794 MovieClip Frame 178
terre_revol = 2;
Symbol 794 MovieClip Frame 200
stop();
Symbol 794 MovieClip Frame 201
terre_revol = 2;
_root.snd.bang.gotoAndPlay((random(3) + 1) * 2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 201
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 202
terre_revol = 2;
Symbol 794 MovieClip Frame 225
_root.canmove = 2;
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 226
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 251
genoux_time = 2;
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 251
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 252
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 253
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 254
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 255
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 256
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 257
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 258
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 259
gun._y = gun._y + 2;
Symbol 794 MovieClip Frame 269
if (genoux_time == 2) {
genoux_time = 1;
gotoAndPlay (260);
}
Symbol 794 MovieClip Frame 291
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 292
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 293
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 294
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 295
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 296
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 297
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 298
gun._y = gun._y - 2;
Symbol 794 MovieClip Frame 300
stop();
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 301
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 350
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 351
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Symbol 794 MovieClip Frame 400
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 401
onClipEvent (load) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.lvl == 0) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
} else {
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b7._visible = false;
_parent.gun._visible = true;
}
}
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 451
onClipEvent (load) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
_parent.gun2._visible = false;
}
Symbol 794 MovieClip Frame 470
_root.canmove = 2;
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 471
onClipEvent (load) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
_parent.gun2._visible = false;
}
Symbol 794 MovieClip Frame 490
_root.canmove = 2;
gotoAndPlay (2);
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 491
onClipEvent (load) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
_parent.gun2._visible = false;
}
Symbol 794 MovieClip Frame 506
_root.shake = 20;
Symbol 794 MovieClip Frame 550
_root.canmove = 2;
gotoAndPlay (2);
Symbol 794 MovieClip Frame 551
stopAllSounds();
Instance of Symbol 780 MovieClip "debugshit" in Symbol 794 MovieClip Frame 551
onClipEvent (load) {
_parent.b2._visible = true;
_parent.b3._visible = true;
_parent.b4._visible = true;
_parent.b5._visible = true;
_parent.b6._visible = true;
_parent.b7._visible = true;
_parent.gun._visible = false;
_parent.gun2._visible = false;
}
Symbol 794 MovieClip Frame 600
_root.shake = 35;
Symbol 794 MovieClip Frame 650
stop();
Symbol 806 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.brasmariago == 2) {
_root.brasmariago = 1;
gotoAndPlay (2);
}
};
Symbol 806 MovieClip Frame 115
stop();
Symbol 812 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl2 >= 5) {
gotoAndStop (2);
if (_root.cnt.perso._x < 575) {
_root.canmove = 1;
_root.arnold_eyes = 4;
_root.cnt.perso.gotoAndStop(2);
if (timer_bed != 0) {
timer_bed = timer_bed - 1;
} else {
_root.got2go = 2;
}
} else {
timer_bed = 100;
}
} else {
gotoAndStop (1);
}
};
Symbol 815 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 47
if (stoptalk == 2) {
stoptalk = 1;
gotoAndStop (2);
} else {
gotoAndPlay (2);
}
Symbol 824 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 120
stop();
onEnterFrame = function () {
gotoAndStop((_parent.head._currentframe = _parent.head._currentframe + 120));
};
Symbol 834 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (Key.isDown(32)) {
play();
} else {
gotoAndStop (2);
}
};
Symbol 834 MovieClip Frame 32
act = 2;
Symbol 836 MovieClip Frame 1
if (_root.filmbrief_1 == undefined) {
_root.cnt.perso.gotoAndPlay(2);
_root.canmove = 1;
}
Symbol 836 MovieClip Frame 10
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 19
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 23
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 27
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 30
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 34
_root.arnold_mouth = 4;
Symbol 836 MovieClip Frame 39
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 47
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 50
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 56
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 61
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 68
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 71
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 81
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 84
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 87
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 92
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 98
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 113
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 119
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 124
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 131
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 134
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 137
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 141
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 145
_root.arnold_mouth = 4;
Symbol 836 MovieClip Frame 149
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 152
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 158
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 162
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 169
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 173
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 179
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 192
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 201
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 206
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 214
_root.arnold_mouth = 4;
Symbol 836 MovieClip Frame 217
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 220
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 223
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 233
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 236
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 249
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 259
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 264
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 270
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 276
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 280
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 287
_root.arnold_mouth = 2;
Symbol 836 MovieClip Frame 291
_root.arnold_mouth = 1;
Symbol 836 MovieClip Frame 294
_root.arnold_mouth = 5;
Symbol 836 MovieClip Frame 302
_root.arnold_mouth = 4;
Symbol 836 MovieClip Frame 306
_root.arnold_mouth = 3;
Symbol 836 MovieClip Frame 330
_root.arnold_mouth = 1;
_root.filmbrief_1 = 2;
_root.canmove = 2;
stop();
Symbol 837 MovieClip Frame 1
if (_root.filmbrief_2 == undefined) {
_root.cnt.perso.gotoAndPlay(2);
_root.canmove = 1;
}
Symbol 837 MovieClip Frame 8
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 16
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 19
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 26
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 29
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 33
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 36
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 39
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 44
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 54
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 59
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 62
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 65
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 68
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 72
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 75
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 79
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 82
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 89
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 92
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 98
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 102
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 112
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 118
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 121
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 126
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 128
_root.arnold_eyes = 2;
Symbol 837 MovieClip Frame 130
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 134
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 139
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 153
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 158
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 161
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 167
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 170
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 173
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 178
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 182
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 187
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 188
_root.arnold_eyes = 1;
Symbol 837 MovieClip Frame 190
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 198
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 211
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 226
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 229
_root.arnold_eyes = 2;
Symbol 837 MovieClip Frame 230
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 234
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 238
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 242
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 245
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 251
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 258
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 261
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 266
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 273
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 279
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 283
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 287
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 291
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 301
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 306
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 314
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 319
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 326
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 329
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 334
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 338
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 346
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 354
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 364
_root.arnold_eyes = 3;
Symbol 837 MovieClip Frame 366
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 371
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 374
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 382
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 387
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 390
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 396
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 399
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 407
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 415
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 421
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 431
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 433
_root.arnold_eyes = 2;
Symbol 837 MovieClip Frame 439
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 442
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 445
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 449
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 454
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 459
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 462
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 467
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 471
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 474
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 479
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 487
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 493
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 497
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 506
_root.arnold_eyes = 1;
Symbol 837 MovieClip Frame 509
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 514
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 517
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 522
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 527
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 531
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 542
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 547
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 555
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 559
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 564
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 573
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 579
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 583
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 588
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 592
_root.arnold_eyes = 2;
Symbol 837 MovieClip Frame 598
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 601
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 604
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 607
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 610
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 623
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 630
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 640
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 644
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 646
_root.arnold_eyes = 4;
Symbol 837 MovieClip Frame 652
_root.arnold_mouth = 4;
Symbol 837 MovieClip Frame 657
_root.arnold_mouth = 5;
Symbol 837 MovieClip Frame 666
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 671
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 675
_root.arnold_mouth = 2;
Symbol 837 MovieClip Frame 681
_root.arnold_mouth = 3;
Symbol 837 MovieClip Frame 697
_root.arnold_mouth = 1;
Symbol 837 MovieClip Frame 701
_root.arnold_mouth = 1;
_root.filmbrief_2 = 2;
_root.canmove = 2;
stop();
Symbol 838 MovieClip Frame 1
if (_root.filmbrief_3 == undefined) {
_root.cnt.perso.gotoAndPlay(2);
_root.canmove = 1;
}
Symbol 838 MovieClip Frame 19
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 22
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 25
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 30
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 34
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 38
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 42
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 45
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 48
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 51
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 54
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 58
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 64
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 70
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 73
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 78
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 81
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 95
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 111
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 114
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 117
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 120
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 123
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 126
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 136
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 151
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 157
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 160
_root.arnold_eyes = 2;
Symbol 838 MovieClip Frame 165
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 172
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 179
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 183
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 189
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 192
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 196
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 204
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 212
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 223
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 229
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 234
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 244
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 250
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 256
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 259
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 264
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 269
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 276
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 285
_root.arnold_eyes = 3;
Symbol 838 MovieClip Frame 291
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 294
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 297
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 302
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 306
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 312
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 319
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 332
_root.arnold_eyes = 4;
Symbol 838 MovieClip Frame 334
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 338
_root.arnold_mouth = 5;
Symbol 838 MovieClip Frame 342
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 349
_root.arnold_eyes = 3;
Symbol 838 MovieClip Frame 352
_root.arnold_mouth = 4;
Symbol 838 MovieClip Frame 355
_root.arnold_mouth = 3;
Symbol 838 MovieClip Frame 370
_root.arnold_mouth = 2;
Symbol 838 MovieClip Frame 380
_root.arnold_mouth = 1;
Symbol 838 MovieClip Frame 385
_root.arnold_mouth = 1;
_root.filmbrief_3 = 2;
_root.canmove = 2;
stop();
Symbol 839 MovieClip Frame 1
if (_root.filmbrief_4 == undefined) {
_root.cnt.perso.gotoAndPlay(2);
_root.canmove = 1;
}
Symbol 839 MovieClip Frame 8
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 12
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 16
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 19
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 23
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 28
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 32
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 37
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 41
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 44
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 49
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 52
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 59
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 64
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 70
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 76
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 80
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 85
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 88
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 93
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 99
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 103
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 107
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 111
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 116
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 119
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 124
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 128
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 131
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 139
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 155
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 158
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 161
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 165
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 169
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 174
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 178
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 181
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 187
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 190
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 194
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 199
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 203
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 207
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 210
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 213
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 217
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 223
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 229
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 233
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 236
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 239
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 244
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 247
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 252
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 255
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 258
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 261
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 264
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 269
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 273
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 277
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 283
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 288
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 291
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 294
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 302
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 305
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 309
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 313
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 319
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 339
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 343
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 347
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 353
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 357
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 360
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 364
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 367
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 375
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 378
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 382
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 385
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 390
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 396
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 399
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 403
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 407
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 411
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 414
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 422
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 425
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 428
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 432
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 438
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 441
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 447
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 454
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 458
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 472
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 476
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 483
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 491
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 499
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 512
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 515
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 521
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 528
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 534
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 538
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 547
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 577
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 580
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 586
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 591
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 596
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 599
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 602
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 605
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 611
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 614
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 620
_root.arnold_mouth = 4;
Symbol 839 MovieClip Frame 623
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 626
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 629
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 635
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 641
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 644
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 647
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 651
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 663
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 666
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 670
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 678
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 689
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 696
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 699
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 702
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 706
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 712
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 717
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 720
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 724
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 727
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 731
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 734
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 737
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 741
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 744
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 749
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 755
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 762
_root.arnold_mouth = 2;
Symbol 839 MovieClip Frame 766
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 779
_root.arnold_eyes = 4;
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 782
_root.arnold_mouth = 3;
Symbol 839 MovieClip Frame 800
_root.arnold_mouth = 5;
Symbol 839 MovieClip Frame 806
_root.arnold_eyes = 2;
Symbol 839 MovieClip Frame 813
_root.arnold_mouth = 1;
Symbol 839 MovieClip Frame 818
_root.arnold_eyes = 1;
Symbol 839 MovieClip Frame 822
_root.arnold_mouth = 1;
_root.filmbrief_4 = 2;
_root.canmove = 2;
stop();
Symbol 840 MovieClip Frame 1
if (_root.intro_playedarno != 2) {
_root.intro_playedarno = 2;
gotoAndPlay (2);
} else {
stop();
}
Symbol 840 MovieClip Frame 2
onEnterFrame = function () {
_root.cnt.perso._visible = false;
_root.canmove = 1;
};
Instance of Symbol 834 MovieClip in Symbol 840 MovieClip Frame 150
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndPlay(1479);
}
}
Symbol 840 MovieClip Frame 227
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 364
head.stoptalk = 2;
Symbol 840 MovieClip Frame 422
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 561
head.stoptalk = 2;
Symbol 840 MovieClip Frame 607
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 628
head.stoptalk = 2;
Symbol 840 MovieClip Frame 667
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 693
head.stoptalk = 2;
Symbol 840 MovieClip Frame 749
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 764
head.stoptalk = 2;
Symbol 840 MovieClip Frame 807
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 924
head.stoptalk = 2;
Symbol 840 MovieClip Frame 957
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 991
_root.brasmariago = 2;
Symbol 840 MovieClip Frame 1111
head.stoptalk = 2;
Symbol 840 MovieClip Frame 1269
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 1324
head.stoptalk = 2;
Symbol 840 MovieClip Frame 1383
head.gotoAndPlay(2);
Symbol 840 MovieClip Frame 1440
head.stoptalk = 2;
Symbol 840 MovieClip Frame 1479
_root.cnt.perso._y = _root.cnt.perso._y - 50;
_root.cnt.perso._visible = true;
_root.canmove = 2;
onEnterFrame = function () {
if (long_call != 2) {
if (_root.cnt.perso._x > 730) {
long_call = 2;
gotoAndPlay (1560);
}
}
};
Symbol 840 MovieClip Frame 1560
_root.cnt.bulleinfo.boxx.gotoAndStop(3);
_root.cnt.bulleinfo.gotoAndPlay(2);
stop();
Symbol 840 MovieClip Frame 1562
onEnterFrame = function () {
};
_root.cnt.bulleinfo.gotoAndStop(1);
Symbol 840 MovieClip Frame 1567
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1576
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1585
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1593
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1597
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1608
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1615
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1618
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1638
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1641
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1644
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1650
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1658
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1665
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1674
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1680
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1689
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1696
_root.arnold_mouth = 4;
Symbol 840 MovieClip Frame 1701
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1713
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1722
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1732
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1737
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1743
_root.arnold_mouth = 4;
Symbol 840 MovieClip Frame 1747
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1751
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1754
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1758
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1762
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1766
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1772
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1773
_root.canmove = 1;
_root.cnt.bulleinfo.gotoAndStop(1);
Symbol 840 MovieClip Frame 1777
_root.cnt.perso.gotoAndPlay("Anim1");
Symbol 840 MovieClip Frame 1783
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1789
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1791
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1797
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1801
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1809
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1814
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1824
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1828
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1852
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1856
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1860
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1866
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1871
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1878
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1886
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1890
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1894
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1899
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1904
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1912
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1917
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1923
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1928
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1934
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1942
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1948
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1969
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1977
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1982
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 1985
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 1990
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 1994
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 1999
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2002
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2005
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2010
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2018
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2034
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2037
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2040
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2044
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2050
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2054
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2068
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2072
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2104
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2107
_root.canmove = 2;
_root.cnt.bulleinfo.boxx.gotoAndStop(3);
_root.cnt.bulleinfo.gotoAndPlay(2);
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2112
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2117
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2122
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2131
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2136
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2139
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2144
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2157
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2168
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2179
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2184
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2193
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2196
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2204
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2207
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2211
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2218
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2224
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2231
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2237
_root.arnold_mouth = 4;
Symbol 840 MovieClip Frame 2244
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2248
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2254
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2267
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2271
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2276
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2280
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2284
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2289
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2298
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2302
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2311
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2317
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2320
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2332
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2338
_root.arnold_mouth = 4;
Symbol 840 MovieClip Frame 2343
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2347
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2352
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2356
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2362
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2367
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2375
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2383
_root.canmove = 1;
_root.cnt.bulleinfo.gotoAndStop(1);
_root.cnt.perso.gotoAndPlay(2);
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2397
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2403
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2406
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2416
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2424
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2430
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2436
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2442
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2452
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2462
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2467
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2471
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2475
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2478
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2486
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2490
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2495
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2499
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2503
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2511
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2517
_root.cnt.perso.gotoAndPlay("Anim2");
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2522
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2526
_root.arnold_mouth = 5;
Symbol 840 MovieClip Frame 2531
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2537
_root.arnold_mouth = 2;
Symbol 840 MovieClip Frame 2540
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2545
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2550
_root.arnold_mouth = 3;
Symbol 840 MovieClip Frame 2562
_root.arnold_mouth = 1;
Symbol 840 MovieClip Frame 2565
_root.canmove = 2;
stop();
Symbol 840 MovieClip Frame 2600
_root.arnold_mouth = 1;
_root.arnold_eyes = 1;
Symbol 850 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if (_currentframe == 1) {
gotoAndPlay (2);
}
};
Symbol 850 MovieClip Frame 14
stop();
Symbol 852 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Symbol 852 MovieClip Frame 2
play();
onEnterFrame = function () {
_x = _parent.perso._x;
_y = (_parent.perso._y - 20);
};
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 24;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 16;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 8;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 0;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 32;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 40;
}
Instance of Symbol 850 MovieClip in Symbol 852 MovieClip Frame 2
onClipEvent (load) {
timer = 48;
}
Symbol 852 MovieClip Frame 60
_root.reload_timer = 0;
Symbol 858 MovieClip Frame 1
stop();
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 3
onClipEvent (load) {
txx = "W";
gotoAndPlay (50);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 3
onClipEvent (load) {
txx = "S";
gotoAndPlay (30);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 3
onClipEvent (load) {
txx = "A";
gotoAndPlay (40);
}
Instance of Symbol 857 MovieClip in Symbol 858 MovieClip Frame 3
onClipEvent (load) {
txx = "D";
gotoAndPlay (20);
}
Symbol 859 MovieClip Frame 4
_parent.play();
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 15
stop();
Symbol 865 MovieClip Frame 1
gotoAndStop(random(4) + 1);
aa = random(2) + 1;
if (aa == 2) {
_xscale = (_xscale * -1);
}
_yscale = (random(50) + 50);
_xscale = (random(25) + 75);
_x = (random(160) - 80);
_rotation = (random(40) - 20);
Symbol 867 MovieClip Frame 1
stop();
Instance of Symbol 633 MovieClip "hitt" in Symbol 867 MovieClip Frame 1
onClipEvent (load) {
touch = 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.perso.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (touch == 1) {
touch = 2;
if (_root.perso_floorhitt == 2) {
if (_parent._parent.perso._x < _parent._x) {
_parent.gotoAndPlay(51);
} else {
_parent.gotoAndPlay(2);
}
} else {
_parent.gotoAndPlay(102);
}
}
} else if (touch == 2) {
touch = 1;
}
i++;
}
}
Symbol 867 MovieClip Frame 50
gotoAndStop (1);
Symbol 867 MovieClip Frame 100
gotoAndStop (1);
Symbol 867 MovieClip Frame 150
gotoAndStop (1);
Symbol 873 MovieClip Frame 1
aa = 100;
speed = 0.6;
gotoAndStop (2);
Symbol 873 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (speed > 0.6) {
speed = speed * 0.98;
}
aa = aa + speed;
if (aa > 148) {
aa = aa - 148;
}
boxx1.gotoAndStop(Math.round(aa));
boxx2.gotoAndStop(Math.round(aa));
};
Symbol 873 MovieClip Frame 6
speed = 2;
aa = aa + 10;
Symbol 873 MovieClip Frame 61
gotoAndStop (2);
Symbol 921 MovieClip Frame 1
gotoAndStop(random(14) + 1);
Symbol 922 MovieClip Frame 1
aa = random(2) + 1;
if (aa == 2) {
_xscale = (_xscale * -1);
}
_xscale = (random(75) + 75);
_yscale = _xscale;
_x = (random(80) - 40);
_rotation = (random(40) - 20);
Symbol 925 MovieClip Frame 1
stop();
Instance of Symbol 924 MovieClip "hitt" in Symbol 925 MovieClip Frame 1
onClipEvent (load) {
touch = 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.perso.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
if (touch == 1) {
touch = 2;
if (_root.perso_floorhitt == 2) {
if (_parent._parent.perso._x < _parent._x) {
_parent.gotoAndPlay(51);
} else {
_parent.gotoAndPlay(2);
}
} else {
_parent.gotoAndPlay(102);
}
}
} else if (touch == 2) {
touch = 1;
}
i++;
}
}
Symbol 925 MovieClip Frame 50
gotoAndStop (1);
Symbol 925 MovieClip Frame 100
gotoAndStop (1);
Symbol 925 MovieClip Frame 150
gotoAndStop (1);
Symbol 943 MovieClip Frame 3
stop();
Symbol 945 MovieClip Frame 1
stop();
onEnterFrame = function () {
aff = _parent._parent._parent.stade + "%";
};
Symbol 948 MovieClip Frame 3
stop();
Symbol 950 MovieClip Frame 20
stop();
Symbol 954 MovieClip Frame 1
Symbol 954 MovieClip Frame 2
stop();
Instance of Symbol 633 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
speedx = random(60) - 30;
speedy = (random(40) + 20) * -1;
speedr = random(30) - 15;
_parent._x = _parent._x + (random(50) - 25);
_parent._y = _parent._y + (random(50) - 25);
_parent._rotation = random(360) + 1;
_parent.boxx._xscale = random(50) + 50;
_parent.boxx._yscale = (_parent.boxx._xscale + random(30)) - 15;
}
onClipEvent (enterFrame) {
_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.8;
}
if ((speedy >= -0.5) && (speedy < 0.5)) {
speedy = 1;
}
if ((speedy >= 1) && (speedy < 20)) {
speedy = speedy * 1.2;
}
speedr = speedr * 0.9;
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 956 MovieClip Frame 3
stop();
Symbol 957 MovieClip Frame 1
if (stade == undefined) {
stade = 100;
}
timer = 3;
_root.canmove = 2;
stop();
onEnterFrame = function () {
if (stade <= 0) {
gotoAndStop (3);
} else if ((activated == 2) && (_root.energy < 100)) {
_root.canmove = 1;
if (timer_st != 0) {
timer_st = timer_st - 1;
} else {
stade = stade - 1;
_root.energy = _root.energy + 1;
_root.recharge_energy = 2;
timer_st = timer;
}
gotoAndStop (2);
} else {
timer_st = timer;
gotoAndStop (1);
}
};
Symbol 957 MovieClip Frame 3
_root.canmove = 2;
Instance of Symbol 968 MovieClip in Symbol 969 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.gotoAndStop(_parent._parent._parent._parent.typee);
}
Instance of Symbol 998 MovieClip in Symbol 999 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.shot_fire == 3) {
_parent._parent.shot_fire = 1;
_rotation = _parent._parent.shot_fire_rotation;
_rotation = (_rotation - (80 - (_root.lvl * 15)));
}
speed = 0.2;
if (_parent._parent.energy > 0) {
if (_root.cnt.perso._y < (_parent._parent._y - 150)) {
aa = -30;
}
if ((_root.cnt.perso._y >= (_parent._parent._y - 150)) && (_root.cnt.perso._y <= (_parent._parent._y + 90))) {
aa = 0;
}
if (_root.cnt.perso._y > (_parent._parent._y + 90)) {
aa = 30;
}
} else {
aa = 0;
}
speedx = (aa - _rotation) * speed;
if ((_rotation < (aa - 0.5)) || (_rotation > (aa + 0.5))) {
_rotation = (_rotation + speedx);
}
}
Instance of Symbol 968 MovieClip in Symbol 1001 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.gotoAndStop(_parent._parent._parent.typee);
}
Symbol 1009 MovieClip Frame 1
stop();
Symbol 1011 MovieClip Frame 1
stop();
Symbol 1013 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1032 MovieClip Frame 1
stop();
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1039 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1043 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1053 MovieClip Frame 1
stop();
Symbol 1055 MovieClip Frame 1
stop();
Symbol 1057 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1066 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1070 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._parent.red_eyes == 2) {
_parent._parent.red_eyes = 1;
gotoAndPlay (2);
}
};
Symbol 1108 MovieClip Frame 151
gotoAndStop (1);
Instance of Symbol 1155 MovieClip in Symbol 1156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.shot_fire == 2) {
_parent._parent.shot_fire = 3;
_rotation = (_rotation + (random(16) - 8));
_parent._parent.shot_fire_rotation = _rotation;
Set(("_root.cnt.bl2_" + _root.bullet_nb2) + "._x", _parent._parent._x);
Set(("_root.cnt.bl2_" + _root.bullet_nb2) + "._y", _parent._parent._y - 75);
if (_parent._parent.side == "R") {
Set(("_root.cnt.bl2_" + _root.bullet_nb2) + "._rotation", _rotation);
} else {
Set(("_root.cnt.bl2_" + _root.bullet_nb2) + "._rotation", (_rotation * -1) + 180);
}
eval ("_root.cnt.bl2_" + _root.bullet_nb2).gotoAndStop(2);
if (_root.bullet_nb2 == 10) {
_root.cnt.bl2_1.gotoAndStop(1);
} else {
eval ("_root.cnt.bl2_" + (_root.bullet_nb2 + 1)).gotoAndStop(1);
}
trace(" X : " + _parent._parent._x);
trace(" XBul : " + eval (("_root.cnt.bl2_" + _root.bullet_nb2) + "._x"));
_root.bullet_nb2 = _root.bullet_nb2 + 1;
if (_root.bullet_nb2 == 11) {
_root.bullet_nb2 = 1;
}
_rotation = (_rotation - ((80 - (_root.lvl * 15)) / 2));
}
speed = 0.2;
if (_parent._parent.energy > 0) {
if (_root.cnt.perso._y < (_parent._parent._y - 150)) {
aa = -30;
}
if ((_root.cnt.perso._y >= (_parent._parent._y - 150)) && (_root.cnt.perso._y <= (_parent._parent._y + 90))) {
aa = 0;
}
if (_root.cnt.perso._y > (_parent._parent._y + 90)) {
aa = 30;
}
} else {
aa = 0;
}
speedx = (aa - _rotation) * speed;
if ((_rotation < (aa - 0.5)) || (_rotation > (aa + 0.5))) {
_rotation = (_rotation + speedx);
}
}
Symbol 1181 MovieClip Frame 1
gotoAndPlay((random(3) + 1) * 2);
Symbol 1181 MovieClip Frame 3
stop();
Symbol 1181 MovieClip Frame 5
stop();
Symbol 1181 MovieClip Frame 7
stop();
Symbol 1182 MovieClip Frame 1
if (nb <= _parent.nb_de_billets) {
gotoAndStop (2);
} else {
stop();
}
Instance of Symbol 633 MovieClip in Symbol 1182 MovieClip Frame 2
onClipEvent (load) {
_parent._x = _parent._x + (random(150) - 75);
_parent._y = _parent._y - (random(150) - 75);
speedx = (random(60) - 30) / 3;
speedy = (random(40) + 20) * -1;
}
onClipEvent (enterFrame) {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
speedx = speedx * 0.9;
if (speedy < -0.5) {
speedy = speedy * 0.8;
}
if ((speedy >= -0.5) && (speedy < 0.5)) {
speedy = 1;
}
if ((speedy >= 1) && (speedy < 20)) {
speedy = speedy * 1.2;
}
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++;
}
}
Instance of Symbol 633 MovieClip in Symbol 1182 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.perso.hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent.gotoAndPlay(4);
}
i++;
}
}
Symbol 1182 MovieClip Frame 4
_root.cash = _root.cash + 100;
_root.cash_earned = _root.cash_earned + 100;
Symbol 1182 MovieClip Frame 25
stop();
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1192 MovieClip Frame 1
gotoAndPlay(_parent.boxx._currentframe * 2);
Symbol 1192 MovieClip Frame 3
stop();
Symbol 1192 MovieClip Frame 5
stop();
Symbol 1192 MovieClip Frame 7
stop();
Symbol 1192 MovieClip Frame 9
stop();
Symbol 1198 MovieClip Frame 1
_rotation = (random(360) + 1);
_xscale = (random(50) + 75);
_yscale = (random(50) + 75);
Symbol 1198 MovieClip Frame 26
stop();
Instance of Symbol 1195 MovieClip in Symbol 1199 MovieClip Frame 1
onClipEvent (load) {
_rotation = (random(360) + 1);
}
Symbol 1201 MovieClip Frame 1
_rotation = (random(360) + 1);
Symbol 1201 MovieClip Frame 26
_parent.gotoAndStop(1);
Symbol 1201 MovieClip Frame 27
_parent.gotoAndStop(1);
Symbol 1201 MovieClip Frame 28
_parent.gotoAndStop(1);
Symbol 1203 MovieClip Frame 1
if (_root.lvl == 3) {
aa = random(3) + 1;
if (aa != 1) {
stop();
}
} else {
stop();
}
Symbol 1203 MovieClip Frame 40
_parent._parent.timer_dead = 200;
Symbol 1203 MovieClip Frame 90
boxx.gotoAndStop(boxx._currentframe + 1);
if (boxx._currentframe == 5) {
gotoAndPlay (91);
} else {
gotoAndPlay (40);
}
Symbol 1203 MovieClip Frame 91
_root.shake = 30;
Symbol 1203 MovieClip Frame 93
if (_parent._parent._x > _root.cnt.perso._x) {
if (_parent._parent._x < (_root.cnt.perso._x + 350)) {
_root.hurt = 65;
}
}
if (_parent._parent._x < _root.cnt.perso._x) {
if (_parent._parent._x > (_root.cnt.perso._x - 350)) {
_root.hurt = 65;
}
}
Symbol 1203 MovieClip Frame 96
_root.shake = 20;
Symbol 1203 MovieClip Frame 101
_root.shake = 10;
Symbol 1203 MovieClip Frame 123
_parent._parent.timer_dead = 0;
stop();
Symbol 1204 MovieClip Frame 1
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 1;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 2;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 3;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 4;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 5;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 6;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 7;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 8;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 9;
}
Instance of Symbol 1182 MovieClip in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
nb = 10;
}
Symbol 1205 MovieClip Frame 1
timer_dead = -1;
_x = (random(3170) + 770);
_y = 4600;
_alpha = 100;
shooting_range = random(200) + 150;
stop();
onEnterFrame = function () {
if ((go == 2) && (can_go == 2)) {
can_go = 1;
go = 1;
typee = ((random(2) + 1) + (_root.lvl * 2)) - 2;
side = "R";
canmove = 2;
if ((typee == 1) || (typee == 2)) {
speed = random(3) + 3;
energy = 200;
_xscale = 60;
_yscale = 60;
}
if ((typee == 3) || (typee == 4)) {
speed = random(3) + 3;
energy = 400;
_xscale = 60;
_yscale = 60;
}
if ((typee == 5) || (typee == 6)) {
speed = random(4) + 5;
energy = 800;
_xscale = 75;
_yscale = 75;
}
if (typee == 7) {
speed = random(3) + 4;
energy = 1600;
_xscale = 70;
_yscale = 70;
}
if (typee == 8) {
speed = 8;
energy = 1600;
_xscale = 70;
_yscale = 70;
}
gotoAndPlay(random(90) + 2);
gotoAndPlay;
}
if (_currentframe != 1) {
if (hited == 2) {
hited = 1;
if (energy > 0) {
energy = energy - (random(5) + 8);
if ((_root.lvl == 1) || (_root.lvl == 2)) {
canmove = 1;
gotoAndPlay(((random(2) + 1) * 15) + 186);
}
if (_root.lvl == 3) {
aa = random(3) + 1;
if (aa == 1) {
canmove = 1;
gotoAndPlay(((random(2) + 1) * 15) + 186);
}
}
if (_root.lvl == 4) {
aa = random(8) + 1;
if ((aa == 1) && (b_1.redeyes._currentframe == 1)) {
canmove = 1;
gotoAndPlay(((random(2) + 1) * 15) + 186);
}
}
if (side == "R") {
_x = (_x - (random(10) + 5));
} else {
_x = (_x + (random(10) + 5));
}
if (_root.lvl == 4) {
aa = random(8) + 1;
if (aa == 1) {
canmove = 2;
red_eyes_activated = 2;
}
}
}
}
if (hited == 3) {
hited = 1;
if (energy > 0) {
energy = energy - 25;
if ((_root.lvl == 1) || (_root.lvl == 2)) {
canmove = 1;
gotoAndPlay (231);
}
if (_root.lvl == 3) {
aa = random(3) + 1;
if (aa == 1) {
canmove = 1;
gotoAndPlay (231);
}
}
if (_root.lvl == 4) {
aa = random(6) + 1;
if ((aa == 1) && (b_1.redeyes._currentframe == 1)) {
shot = 1;
canmove = 1;
gotoAndPlay (231);
}
}
if (side == "R") {
_x = (_x - (random(10) + 5));
} else {
_x = (_x + (random(10) + 5));
}
if (_root.lvl == 4) {
aa = random(8) + 1;
if (aa == 1) {
canmove = 2;
red_eyes_activated = 2;
}
}
}
}
if (energy <= 0) {
canmove = 1;
if (_currentframe <= 250) {
aa = random(3) + 1;
if (aa == 1) {
gotoAndPlay (251);
}
if (aa == 2) {
gotoAndPlay (351);
}
if (aa == 3) {
gotoAndPlay (401);
}
}
}
if (dead == 2) {
dead = 1;
_root.ac_6_total_kill = _root.ac_6_total_kill + 1;
shot = 1;
timer_dead = 200;
}
if (timer_dead > 0) {
timer_dead = timer_dead - 1;
}
if (timer_dead == 0) {
if (_alpha > 0) {
_alpha = (_alpha - 2);
} else {
timer_dead = -1;
gotoAndStop (1);
}
}
if (canmove == 2) {
if (_x < _root.cnt.perso._x) {
if (side == "L") {
side = "R";
_xscale = (_xscale * -1);
}
if ((_x + shooting_range) < _root.cnt.perso._x) {
_x = (_x + speed);
if ((_currentframe < 101) || (_currentframe > 150)) {
gotoAndPlay(random(48) + 101);
timer_shoot = 20 + (80 - (_root.lvl * random(20)));
}
} else if (_currentframe > 100) {
gotoAndPlay(random(90) + 2);
}
} else {
if (side == "R") {
side = "L";
_xscale = (_xscale * -1);
}
if ((_x - shooting_range) > _root.cnt.perso._x) {
_x = (_x - speed);
if ((_currentframe < 101) || (_currentframe > 150)) {
gotoAndPlay(random(48) + 101);
timer_shoot = 40 - (_root.lvl * random(10));
}
} else if (_currentframe > 100) {
gotoAndPlay(random(90) + 2);
}
}
if (red_eyes_activated == 2) {
red_eyes_activated = 1;
if (b_1.redeyes._currentframe == 1) {
timer_shoot = 0;
gotoAndPlay (2);
}
}
if (_currentframe < 101) {
if (timer_shoot != 0) {
timer_shoot = timer_shoot - 1;
} else {
shot = 2;
cooling = 0;
canmove = 1;
timer_shoot = 40 - (_root.lvl * random(10));
if (_root.lvl == 1) {
shots = random(6) + 3;
}
if (_root.lvl == 2) {
shots = random(6) + 4;
}
if (_root.lvl == 3) {
shots = random(2) + 1;
}
if (_root.lvl == 4) {
cooling = 150;
red_eyes = 2;
shots = random(20) + 10;
}
}
}
}
if ((shot == 2) && (_root.energy > 0)) {
if (cooling != 0) {
cooling = cooling - 1;
} else {
canmove = 1;
if (_x < _root.cnt.perso._x) {
if (side == "L") {
side = "R";
_xscale = (_xscale * -1);
}
} else if (side == "R") {
side = "L";
_xscale = (_xscale * -1);
}
_root.snd.en_bullets.gotoAndPlay(_root.lvl * 2);
cooling = 10 - (_root.lvl * 2);
shot_fire = 2;
shots = shots - 1;
if (shots == 0) {
shot = 1;
canmove = 2;
}
}
}
}
};
Instance of Symbol 959 MovieClip in Symbol 1205 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 633 MovieClip in Symbol 1205 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.frame_hitt.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_parent.can_go = 1;
} else {
_parent.can_go = 2;
}
i++;
}
}
Instance of Symbol 633 MovieClip in Symbol 1205 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.floorhitt = 2;
} else {
_parent.floorhitt = 1;
_parent._y = _parent._y + _parent.speed;
}
i++;
}
this.hitpts2 = new Array({x:0, y:-10});
j = 0;
while (j < this.hitpts2.length) {
this.localToGlobal(hitpts2[j]);
if (_root.cnt.hitt.hitTest(hitpts2[j].x, hitpts2[j].y, true)) {
_parent._y = _parent._y - _parent.speed;
}
j++;
}
this.hitpts3 = new Array({x:25, y:-60});
k = 0;
while (k < this.hitpts3.length) {
this.localToGlobal(hitpts3[k]);
if (_root.cnt.hitt.hitTest(hitpts3[k].x, hitpts3[k].y, true)) {
_parent.murhitt = 2;
} else {
_root.murhitt = 1;
}
k++;
}
}
Symbol 1205 MovieClip Frame 100
gotoAndPlay (2);
Symbol 1205 MovieClip Frame 125
gotoAndPlay (101);
Symbol 1205 MovieClip Frame 150
gotoAndPlay (126);
Symbol 1205 MovieClip Frame 175
gotoAndPlay (151);
Symbol 1205 MovieClip Frame 200
gotoAndPlay (176);
Symbol 1205 MovieClip Frame 201
aa = random(7) + 1;
if (aa == 1) {
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
}
Symbol 1205 MovieClip Frame 215
canmove = 2;
gotoAndPlay (2);
Symbol 1205 MovieClip Frame 216
aa = random(7) + 1;
if (aa == 1) {
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
}
Symbol 1205 MovieClip Frame 230
canmove = 2;
gotoAndPlay (2);
Symbol 1205 MovieClip Frame 231
aa = random(7) + 1;
if (aa == 1) {
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
}
Symbol 1205 MovieClip Frame 250
canmove = 2;
gotoAndPlay (2);
Symbol 1205 MovieClip Frame 251
shot = 1;
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
Instance of Symbol 1204 MovieClip in Symbol 1205 MovieClip Frame 251
onClipEvent (load) {
aa = _parent._xscale;
if (aa < 0) {
aa = aa * -1;
}
_xscale = (120 + (100 - aa));
_yscale = _xscale;
aa = 3 * _root.lvl;
nb_de_billets = random(aa) + 1;
if (nb_de_billets < 2) {
nb_de_billets = 2;
}
}
Symbol 1205 MovieClip Frame 350
_root.enemies_dead = _root.enemies_dead + 1;
dead = 2;
stop();
Symbol 1205 MovieClip Frame 351
shot = 1;
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
Symbol 1205 MovieClip Frame 400
_root.enemies_dead = _root.enemies_dead + 1;
dead = 2;
stop();
Symbol 1205 MovieClip Frame 401
shot = 1;
_root.snd.en_screams.gotoAndPlay((20 * _root.lvl) + ((random(7) + 1) * 2));
Symbol 1205 MovieClip Frame 450
_root.enemies_dead = _root.enemies_dead + 1;
dead = 2;
stop();
Symbol 1208 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (dead != _root.enemies_dead) {
dead = _root.enemies_dead;
timer = 30;
}
if ((_root.enemies_dead + 2) >= _root.enemies_tospawn) {
if (timer != 0) {
timer = timer - 1;
} else {
timer = 10000000 /* 0x989680 */;
_parent.gotoAndPlay(311);
}
}
};
Symbol 1210 MovieClip Frame 1
_root.enemies_dead = 0;
_root.enemies_spawn = 0;
_root.enemies_tospawn = 10;
_root.enemies_limit = 3;
_root.enemies_delay_min = 5;
_root.enemies_delay_max = 15;
gotoAndPlay (290);
Symbol 1210 MovieClip Frame 290
aa = _root.enemies_delay_max - _root.enemies_delay_min;
timer = random(aa) + _root.enemies_delay_min;
timer = timer - (_root.enemies_dead * 2);
if (timer < 6) {
timer = 6;
}
timer = timer * 50;
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if ((_root.enemies_spawn - _root.enemies_dead) < _root.enemies_limit) {
if (_currentframe == 290) {
gotoAndPlay (291);
}
}
};
Symbol 1210 MovieClip Frame 291
play();
onEnterFrame = function () {
};
Symbol 1210 MovieClip Frame 298
play();
Symbol 1210 MovieClip Frame 299
aa = random(10) + 1;
Symbol 1210 MovieClip Frame 300
if (eval ("_root.cnt.e_" + aa)._currentframe == 1) {
Set(("_root.cnt.e_" + aa) + ".go", 2);
_root.enemies_spawn = _root.enemies_spawn + 1;
if (_root.enemies_spawn == _root.enemies_tospawn) {
gotoAndStop (310);
} else {
gotoAndStop (290);
}
} else {
gotoAndPlay (298);
}
Symbol 1210 MovieClip Frame 310
stop();
onEnterFrame = function () {
if (_root.enemies_dead == _root.enemies_tospawn) {
if (_currentframe == 310) {
stopAllSounds();
gotoAndPlay (311);
}
}
};
Symbol 1210 MovieClip Frame 311
play();
onEnterFrame = function () {
};
Symbol 1210 MovieClip Frame 429
_root.energy_left = _root.energy;
_root.fondu_to_win = 2;
_root.fondu_to_death = 2;
_root.fondu.gotoAndStop(42);
stop();
Instance of Symbol 1217 MovieClip in Symbol 1218 MovieClip Frame 1
onClipEvent (load) {
_x = (random(50) - 25);
_y = (random(50) - 25);
speedx = random(7) + 7;
if (_root.perso_side == "R") {
speedx = speedx * -1;
}
speedy = (random(10) + 10) * -1;
speedr = random(30) - 15;
gotoAndStop(random(5) + 1);
_xscale = ((20 + random(10)) - 5);
_yscale = _xscale;
_alpha = (random(75) + 25);
}
onClipEvent (enterFrame) {
_x = (_x + speedx);
_y = (_y + speedy);
_rotation = (_rotation + speedr);
_alpha = (_alpha - 2);
speedx = speedx * 0.9;
if (speedy < -1) {
speedy = speedy * 0.8;
}
if ((speedy >= -1) && (speedy < 1)) {
speedy = 1;
}
if (speedy > 1) {
speedy = speedy * 1.2;
}
}
Instance of Symbol 1220 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (load) {
_x = (random(100) - 50);
_y = (-random(25));
speedx = random(7) + 7;
if (_root.perso_side == "L") {
speedx = speedx * -1;
}
speedy = (random(10) + 10) * -1;
gotoAndStop(random(5) + 1);
_xscale = (random(50) + 100);
_yscale = (_xscale * ((random(25) + 75) / 100));
_alpha = (random(25) + 30);
}
onClipEvent (enterFrame) {
_x = (_x + speedx);
speedx = speedx * 0.85;
_alpha = (_alpha - 2);
}
Instance of Symbol 1227 MovieClip in Symbol 1228 MovieClip Frame 1
onClipEvent (load) {
_x = (random(50) - 25);
_y = (random(50) - 25);
speedx = 1.1;
speedy = 1.1;
if (_root.perso_side == "R") {
_rotation = -45;
} else {
_rotation = 45;
}
gotoAndStop(random(5) + 1);
_xscale = (random(15) + 10);
_yscale = (random(15) + 10);
_alpha = (random(50) + 50);
}
onClipEvent (enterFrame) {
_xscale = (_xscale * speedx);
_yscale = (_yscale * speedy);
if (speedx > 1) {
speedx = speedx * 0.99;
}
if (speedy > 1) {
speedy = speedy * 0.99;
}
_alpha = (_alpha - 4);
}
Symbol 1232 MovieClip Frame 1
_x = (_x + (random(20) - 10));
_rotation = (random(90) - 45);
ab = random(100);
_xscale = ((_xscale * ab) / 100);
_yscale = ((_yscale * ab) / 100);
aa = random(3) + 1;
if (aa == 1) {
gotoAndPlay (2);
}
if (aa == 2) {
gotoAndPlay (83);
}
if (aa == 3) {
gotoAndPlay (131);
}
Symbol 1232 MovieClip Frame 82
stop();
Symbol 1232 MovieClip Frame 130
stop();
Symbol 1232 MovieClip Frame 155
stop();
Symbol 1234 MovieClip Frame 1
stop();
_xscale = 80;
_yscale = 80;
Symbol 1234 MovieClip Frame 40
gotoAndStop (1);
Symbol 1234 MovieClip Frame 110
gotoAndStop (1);
Symbol 1236 MovieClip Frame 1
stop();
Symbol 1237 MovieClip Frame 1
stop();
Instance of Symbol 1236 MovieClip in Symbol 1237 MovieClip Frame 1
onClipEvent (load) {
_rotation = (random(360) + 1);
gotoAndStop(_parent.typee);
}
Instance of Symbol 1236 MovieClip "boxx" in Symbol 1237 MovieClip Frame 2
onClipEvent (load) {
speedx = random(40);
if (_root.cnt._xmouse > _root.cnt.perso._x) {
speedx = speedx * -1;
}
speedy = (random(15) + 5) * -1;
speedr = random(40) - 20;
_parent._x = _parent._x + (random(100) - 50);
_parent._y = _parent._y - (random(50) + 1);
}
onClipEvent (enterFrame) {
_parent.typee = _currentframe;
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
_rotation = (_rotation + speedr);
_rotation = (_rotation * 0.99);
speedx = speedx * 0.8;
if (speedy < -1) {
speedy = speedy * 0.75;
}
if ((speedy >= -1) && (speedy < 1)) {
speedy = 1;
}
if (speedy >= 1) {
speedy = speedy * 1.1;
}
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(1);
}
i++;
}
}
Symbol 1243 MovieClip Frame 1
_xscale = (random(40) + 60);
_yscale = (random(40) + 60);
Symbol 1243 MovieClip Frame 30
stop();
Symbol 1244 MovieClip Frame 1
stop();
Instance of Symbol 633 MovieClip "hitt2" in Symbol 1244 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0}, {x:20, y:0}, {x:40, y:0}, {x:60, 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)) {
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent.gotoAndStop(2);
}
var nb = 1;
while (nb < 11) {
if (_root.cnt["e_" + nb].hitt1.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["e_" + nb].hited = 3;
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent._parent.bullet_x = _parent._parent.boxx._x;
if ((_root.lvl == 1) || (_root.lvl == 2)) {
_parent._parent.gotoAndStop(4);
}
if (_root.lvl == 3) {
_parent._parent.gotoAndStop(6);
}
if (_root.lvl == 4) {
_parent._parent.gotoAndStop(8);
}
}
if (_root.cnt["e_" + nb].hitt2.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.cnt["e_" + nb].hited = 2;
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent._parent.bullet_x = _parent._parent.boxx._x;
if ((_root.lvl == 1) || (_root.lvl == 2)) {
_parent._parent.gotoAndStop(3);
}
if (_root.lvl == 3) {
_parent._parent.gotoAndStop(5);
}
if (_root.lvl == 4) {
_parent._parent.gotoAndStop(7);
}
}
nb++;
}
i++;
}
}
Symbol 1250 MovieClip Frame 6
stop();
Symbol 1305 MovieClip Frame 1
onEnterFrame = function () {
};
Symbol 1305 MovieClip Frame 2
boxx.gotoAndStop(random(26) + 1);
_rotation = (random(360) + 1);
_xscale = (random(40) + 80);
_yscale = (random(40) + 80);
_alpha = (random(50) + 50);
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 1);
}
};
Symbol 1305 MovieClip Frame 21
_parent._parent.gotoAndStop(1);
Symbol 1305 MovieClip Frame 22
_parent._parent.gotoAndStop(1);
Symbol 1305 MovieClip Frame 23
_parent._parent.gotoAndStop(1);
stop();
Symbol 1309 MovieClip Frame 1
_rotation = (random(360) + 1);
_xscale = (random(50) + 50);
_yscale = _xscale;
Symbol 1309 MovieClip Frame 11
stop();
Symbol 1310 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 1310 MovieClip Frame 22
_parent.gotoAndStop(1);
Symbol 1310 MovieClip Frame 23
_parent.gotoAndStop(1);
Symbol 1311 MovieClip Frame 1
stop();
Symbol 1311 MovieClip Frame 2
stop();
distance = 0;
boxx2._alpha = 100;
speed = 30;
if (_root.cheat_4 == 2) {
speed = 5;
}
aa = random(eval ("_root.shootingAdjustYr_" + _root.wp)) - (eval ("_root.shootingAdjustYr_" + _root.wp) / 2);
boxx._x = (100 + eval ("_root.shootingAdjustX_" + _root.wp)) + (aa / 2);
boxx2._x = boxx._x;
aa = random(eval ("_root.shootingAdjustYr_" + _root.wp)) - (eval ("_root.shootingAdjustYr_" + _root.wp) / 2);
boxx._y = aa;
boxx2._y = aa;
fire.boxx.gotoAndStop(random(4) + 1);
fire._x = boxx._x;
fire._y = boxx._;
fire._xscale = random(50) + 50;
fire._yscale = fire._xscale + random(50);
fire.gotoAndPlay(2);
onEnterFrame = function () {
boxx._x = boxx._x + speed;
distance = distance + speed;
if (distance > 1000) {
gotoAndStop (1);
}
boxx2._width = boxx._x - 200;
if (boxx2._alpha > 0) {
boxx2._alpha = boxx2._alpha - 2;
}
boxx2._yscale = boxx2._yscale - 0.5;
};
Symbol 1311 MovieClip Frame 3
blood._x = (bullet_x + random(70)) + 30;
blood._xscale = 30;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1311 MovieClip Frame 4
blood._x = bullet_x;
blood._xscale = 60;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1311 MovieClip Frame 5
blood._x = (bullet_x + random(70)) + 30;
blood._xscale = 30;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1311 MovieClip Frame 6
blood._x = bullet_x;
blood._xscale = 60;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1311 MovieClip Frame 7
blood._x = (bullet_x + random(70)) + 30;
blood._xscale = 70;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1311 MovieClip Frame 8
blood._x = bullet_x;
blood._xscale = 120;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1321 MovieClip Frame 1
gotoAndStop(_root.lvl);
Symbol 1322 MovieClip Frame 1
stop();
Instance of Symbol 633 MovieClip "hitt2" in Symbol 1322 MovieClip Frame 1
onClipEvent (enterFrame) {
this.hitpts = new Array({x:0, y:0}, {x:20, y:0}, {x:40, y:0}, {x:60, 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)) {
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent.gotoAndStop(2);
}
if (_root.cnt.perso.b_1.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent._parent.bullet_x = _parent._parent.boxx._x;
if ((_root.lvl == 1) || (_root.lvl == 2)) {
_root.hurt = (random(4) + 4) * _root.lvl;
_parent._parent.gotoAndStop(4);
}
if (_root.lvl == 3) {
_root.hurt = 12;
_parent._parent.gotoAndStop(5);
}
if (_root.lvl == 4) {
_root.hurt = (random(4) + 4) * _root.lvl;
_parent._parent.gotoAndStop(6);
}
}
if (_root.cnt.perso.hitTest(hitpts[i].x, hitpts[i].y, true)) {
_root.snd.bullets.gotoAndPlay((random(5) + 1) * 2);
_parent._parent.speed = 0;
_parent._parent.bullet_x = _parent._parent.boxx._x;
if ((_root.lvl == 1) || (_root.lvl == 2)) {
_root.hurt = (random(3) + 1) * _root.lvl;
_parent._parent.gotoAndStop(3);
}
if (_root.lvl == 3) {
_root.hurt = 10;
_parent._parent.gotoAndStop(5);
}
if (_root.lvl == 4) {
_root.hurt = (random(3) + 1) * _root.lvl;
_parent._parent.gotoAndStop(6);
}
}
i++;
}
}
Symbol 1323 MovieClip Frame 1
stop();
onEnterFrame = function () {
};
Symbol 1323 MovieClip Frame 2
stop();
distance = 0;
boxx2._alpha = 100;
speed = 30;
if (_root.cheat_4 == 2) {
speed = 5;
}
boxx._x = 100;
boxx2._x = 100;
boxx._y = 0;
boxx2._y = 0;
fire.boxx.gotoAndStop(random(4) + 1);
fire._x = boxx._x;
fire._y = boxx._;
fire._xscale = random(50) + 50;
fire._yscale = fire._xscale + random(50);
fire.gotoAndPlay(2);
onEnterFrame = function () {
boxx._x = boxx._x + speed;
distance = distance + speed;
if (distance > 1000) {
gotoAndStop (1);
}
boxx2._width = boxx._x - 200;
if (boxx2._alpha > 0) {
boxx2._alpha = boxx2._alpha - 2;
}
boxx2._yscale = boxx2._yscale - 0.5;
};
Symbol 1323 MovieClip Frame 3
blood._x = (bullet_x + random(70)) + 30;
blood._xscale = 30;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1323 MovieClip Frame 4
blood._x = bullet_x;
blood._xscale = 60;
blood._yscale = blood._xscale;
stop();
onEnterFrame = function () {
};
Symbol 1323 MovieClip Frame 5
blood._x = (bullet_x + random(70)) + 30;
stop();
onEnterFrame = function () {
};
Symbol 1323 MovieClip Frame 6
blood._x = (bullet_x + random(70)) + 30;
_root.snd.bullets.gotoAndPlay(((random(5) + 1) * 2) + 50);
stop();
onEnterFrame = function () {
};
Symbol 1344 MovieClip Frame 4
_parent.play();
Symbol 1345 MovieClip Frame 1
aa = 100;
speed = 3;
gotoAndStop (2);
Symbol 1345 MovieClip Frame 2
stop();
onEnterFrame = function () {
if (speed > 6) {
speed = speed * 0.98;
}
aa = aa + speed;
if (aa > 148) {
aa = aa - 148;
}
boxx1.gotoAndStop(Math.round(aa));
boxx2.gotoAndStop(Math.round(aa));
};
Symbol 1345 MovieClip Frame 6
speed = 2;
aa = aa + 10;
Symbol 1345 MovieClip Frame 61
gotoAndStop (2);
Symbol 1346 MovieClip Frame 1
_root.cnt.perso.gotoAndPlay(2);
onEnterFrame = function () {
_root.canmove = 1;
_root.cooling = 1000;
};
Symbol 1346 MovieClip Frame 8
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 12
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 16
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 22
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 26
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 31
_root.arnold_mouth = 4;
Symbol 1346 MovieClip Frame 36
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 40
_root.arnold_mouth = 4;
Symbol 1346 MovieClip Frame 45
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 50
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 54
_root.arnold_mouth = 4;
Symbol 1346 MovieClip Frame 59
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 63
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 68
_root.arnold_mouth = 2;
_root.arnold_eyes = 2;
Symbol 1346 MovieClip Frame 71
_root.arnold_mouth = 4;
Symbol 1346 MovieClip Frame 74
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 78
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 84
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 89
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 93
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 97
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 100
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 104
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 108
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 115
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 119
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 122
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 126
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 130
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 134
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 139
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 143
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 149
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 156
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 161
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 165
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 173
_root.arnold_eyes = 3;
Symbol 1346 MovieClip Frame 177
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 183
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 186
_root.arnold_mouth = 4;
Symbol 1346 MovieClip Frame 190
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 195
_root.arnold_mouth = 5;
Symbol 1346 MovieClip Frame 198
_root.arnold_eyes = 2;
Symbol 1346 MovieClip Frame 202
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 206
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 211
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 217
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 231
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 236
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 238
_root.arnold_eyes = 4;
Symbol 1346 MovieClip Frame 248
_root.arnold_mouth = 2;
Symbol 1346 MovieClip Frame 256
_root.arnold_mouth = 1;
Symbol 1346 MovieClip Frame 262
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 267
_root.arnold_mouth = 3;
Symbol 1346 MovieClip Frame 285
_root.arnold_mouth = 1;
_root.arnold_eyes = 1;
Symbol 1346 MovieClip Frame 291
_root.arnold_eyes = 1;
Symbol 1346 MovieClip Frame 293
_root.arnold_mouth = 1;
_root.arnold_eyes = 1;
_root.canmove = 2;
_root.cooling = 1;
_root.interr.tuto._visible = true;
stop();
onEnterFrame = function () {
};
Symbol 1347 MovieClip Frame 1
if (_root.speechrage_already_said == 2) {
stop();
} else {
_root.interr.tuto._visible = false;
_root.speechrage_already_said = 2;
}
Symbol 1347 MovieClip Frame 25
stop();
Symbol 1349 MovieClip Frame 50
_root.time_taken = _root.time_taken + 1;
Symbol 1370 MovieClip Frame 1
_root.enemies_dead = 0;
_root.enemies_spawn = 0;
_root.enemies_tospawn = 16;
_root.enemies_limit = 3;
_root.enemies_delay_min = 7;
_root.enemies_delay_max = 15;
Symbol 1370 MovieClip Frame 290
aa = _root.enemies_delay_max - _root.enemies_delay_min;
timer = random(aa) + _root.enemies_delay_min;
timer = timer - (_root.enemies_dead * 2);
if (timer < 6) {
timer = 6;
}
timer = timer * 50;
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if ((_root.enemies_spawn - _root.enemies_dead) < _root.enemies_limit) {
if (_currentframe == 290) {
gotoAndPlay (291);
}
}
};
Symbol 1370 MovieClip Frame 291
play();
onEnterFrame = function () {
};
Symbol 1370 MovieClip Frame 298
play();
Symbol 1370 MovieClip Frame 299
aa = random(10) + 1;
Symbol 1370 MovieClip Frame 300
if (eval ("_root.cnt.e_" + aa)._currentframe == 1) {
Set(("_root.cnt.e_" + aa) + ".go", 2);
_root.enemies_spawn = _root.enemies_spawn + 1;
if (_root.enemies_spawn == _root.enemies_tospawn) {
gotoAndStop (310);
} else {
gotoAndStop (290);
}
} else {
gotoAndPlay (298);
}
Symbol 1370 MovieClip Frame 310
stop();
onEnterFrame = function () {
if (_root.enemies_dead == _root.enemies_tospawn) {
if (_currentframe == 310) {
stopAllSounds();
gotoAndPlay (311);
}
}
};
Symbol 1370 MovieClip Frame 311
play();
onEnterFrame = function () {
};
Symbol 1370 MovieClip Frame 429
_root.energy_left = _root.energy;
_root.fondu_to_win = 2;
_root.fondu_to_death = 2;
_root.fondu.gotoAndStop(42);
stop();
Symbol 1392 MovieClip Frame 1
_root.enemies_dead = 0;
_root.enemies_spawn = 0;
_root.enemies_tospawn = 12;
_root.enemies_limit = 2;
_root.enemies_delay_min = 10;
_root.enemies_delay_max = 15;
Symbol 1392 MovieClip Frame 290
aa = _root.enemies_delay_max - _root.enemies_delay_min;
timer = random(aa) + _root.enemies_delay_min;
timer = timer - (_root.enemies_dead * 2);
if (timer < 6) {
timer = 6;
}
timer = timer * 50;
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if ((_root.enemies_spawn - _root.enemies_dead) < _root.enemies_limit) {
if (_currentframe == 290) {
gotoAndPlay (291);
}
}
};
Symbol 1392 MovieClip Frame 291
play();
onEnterFrame = function () {
};
Symbol 1392 MovieClip Frame 298
play();
Symbol 1392 MovieClip Frame 299
aa = random(10) + 1;
Symbol 1392 MovieClip Frame 300
if (eval ("_root.cnt.e_" + aa)._currentframe == 1) {
Set(("_root.cnt.e_" + aa) + ".go", 2);
_root.enemies_spawn = _root.enemies_spawn + 1;
if (_root.enemies_spawn == _root.enemies_tospawn) {
gotoAndStop (310);
} else {
gotoAndStop (290);
}
} else {
gotoAndPlay (298);
}
Symbol 1392 MovieClip Frame 310
stop();
onEnterFrame = function () {
if (_root.enemies_dead == _root.enemies_tospawn) {
if (_currentframe == 310) {
stopAllSounds();
gotoAndPlay (311);
}
}
};
Symbol 1392 MovieClip Frame 311
play();
onEnterFrame = function () {
};
Symbol 1392 MovieClip Frame 429
_root.energy_left = _root.energy;
_root.fondu_to_win = 2;
_root.fondu_to_death = 2;
_root.fondu.gotoAndStop(42);
stop();
Symbol 1448 MovieClip Frame 1
_root.enemies_dead = 0;
_root.enemies_spawn = 0;
_root.enemies_tospawn = 10;
_root.enemies_limit = 1;
_root.enemies_delay_min = 5;
_root.enemies_delay_max = 15;
gotoAndPlay (290);
Symbol 1448 MovieClip Frame 290
aa = _root.enemies_delay_max - _root.enemies_delay_min;
timer = random(aa) + _root.enemies_delay_min;
timer = timer - (_root.enemies_dead * 2);
if (timer < 6) {
timer = 6;
}
timer = timer * 50;
stop();
onEnterFrame = function () {
if (timer != 0) {
timer = timer - 1;
} else if ((_root.enemies_spawn - _root.enemies_dead) < _root.enemies_limit) {
if (_currentframe == 290) {
gotoAndPlay (291);
}
}
};
Symbol 1448 MovieClip Frame 291
play();
onEnterFrame = function () {
};
Symbol 1448 MovieClip Frame 298
play();
Symbol 1448 MovieClip Frame 299
aa = random(10) + 1;
Symbol 1448 MovieClip Frame 300
if (eval ("_root.cnt.e_" + aa)._currentframe == 1) {
Set(("_root.cnt.e_" + aa) + ".go", 2);
_root.enemies_spawn = _root.enemies_spawn + 1;
if (_root.enemies_spawn == _root.enemies_tospawn) {
gotoAndStop (310);
} else {
gotoAndStop (290);
}
} else {
gotoAndPlay (298);
}
Symbol 1448 MovieClip Frame 310
stop();
onEnterFrame = function () {
if (_root.enemies_dead == _root.enemies_tospawn) {
if (_currentframe == 310) {
stopAllSounds();
gotoAndPlay (311);
}
}
};
Symbol 1448 MovieClip Frame 311
play();
onEnterFrame = function () {
};
Symbol 1448 MovieClip Frame 429
_root.energy_left = _root.energy;
_root.fondu_to_win = 2;
_root.fondu_to_death = 2;
_root.fondu.gotoAndStop(42);
stop();
Symbol 1449 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl == 0) {
if (perso._y <= 4920) {
if (perso._x > 3520) {
perso._x = 1840;
perso._y = 5687;
_root.cnt._x = -1200;
_root.cnt._y = -5282;
stopAllSounds();
_root.muz.gotoAndPlay(12);
}
_root.fond1._visible = true;
} else {
_root.fond1._visible = false;
if (perso._x < 1660) {
perso._x = 3300;
perso._y = 4775;
_root.cnt._x = -3000;
_root.cnt._y = -4345;
stopAllSounds();
_root.muz.gotoAndPlay(2);
}
}
}
if (_root.lvl != 0) {
if (perso._x < 470) {
perso._x = 470;
}
if (perso._x > 4110) {
perso._x = 4110;
}
}
if (_root.lvl == 2) {
_root.gravity = 0.12;
} else {
_root.gravity = 0.2;
}
};
Instance of Symbol 1447 MovieClip "hitt" in Symbol 1449 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
}
Symbol 1453 MovieClip Frame 1
stop();
Symbol 1458 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_parent._currentframe <= 15) {
if (_currentframe == 1) {
gotoAndPlay (2);
}
} else {
gotoAndStop (1);
}
if (_root.recharge_energy == 2) {
_root.recharge_energy = 1;
gotoAndPlay (15);
}
};
Symbol 1458 MovieClip Frame 30
gotoAndPlay (2);
Symbol 1468 MovieClip Frame 1
stop();
Symbol 1475 Button
on (release) {
act = 2;
}
Symbol 1478 MovieClip Frame 1
stop();
Symbol 1483 MovieClip Frame 1
stop();
Symbol 1484 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (act == 2) {
act = 1;
if (((_root.wp_2 == 2) || (_root.wp_3 == 2)) || (_root.wp_4 == 2)) {
_root.wp = _root.wp + 1;
if (_root.wp == 5) {
_root.wp = 1;
}
if (eval ("_root.wp_" + _root.wp) != 2) {
act = 2;
} else {
wpboxx.gotoAndPlay(2);
}
}
}
};
Symbol 1490 MovieClip Frame 1
cash = _root.cash;
stop();
onEnterFrame = function () {
if (_root.cash != cash) {
cash = _root.cash;
gotoAndPlay (2);
}
};
Symbol 1494 MovieClip Frame 1
stop();
Symbol 1494 MovieClip Frame 40
gotoAndPlay (10);
Symbol 1497 MovieClip Frame 1
stop();
Symbol 1497 MovieClip Frame 40
gotoAndPlay (10);
Symbol 1503 MovieClip Frame 1
aa = 100;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 1510 MovieClip Frame 1
aa = random(150) + 1;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 1510 MovieClip Frame 30
aa = random(150) + 1;
ab = _currentframe;
stop();
onEnterFrame = function () {
if ((aa == 0) && (_currentframe == ab)) {
play();
}
if (aa != 0) {
aa = aa - 1;
}
};
Symbol 1511 MovieClip Frame 1
if (_root.tuto == undefined) {
_root.tuto = 2;
gotoAndStop (2);
} else {
stop();
}
Symbol 1511 MovieClip Frame 2
stop();
aa = 1;
aa2 = 1;
ab = 1;
onEnterFrame = function () {
if (_currentframe == 2) {
if (((aa2 == 2) && (aa == 2)) && (ab == 2)) {
gotoAndStop (3);
}
if (_root.cooling != 0) {
ab = 2;
}
if (_root.jump_speed <= -25) {
aa = 2;
}
if (_root.speed > 7) {
aa2 = 2;
}
}
};
Instance of Symbol 857 MovieClip in Symbol 1511 MovieClip Frame 2
onClipEvent (load) {
txx = "W";
gotoAndPlay (50);
}
Instance of Symbol 857 MovieClip in Symbol 1511 MovieClip Frame 2
onClipEvent (load) {
txx = "S";
gotoAndPlay (30);
}
Instance of Symbol 857 MovieClip in Symbol 1511 MovieClip Frame 2
onClipEvent (load) {
txx = "A";
gotoAndPlay (40);
}
Instance of Symbol 857 MovieClip in Symbol 1511 MovieClip Frame 2
onClipEvent (load) {
txx = "D";
gotoAndPlay (20);
}
Symbol 1517 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (((_root.lvl2 >= 5) && (_root.cnt.perso._x > 800)) && (_root.lvl == 0)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1519 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.lvl == 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 1535 MovieClip Frame 1
gotoAndStop(_root.lvl2);
Symbol 1536 MovieClip Frame 1
if (_root.passed_lvl == _root.lvl2) {
_root.lvl2 = _root.lvl2 + 1;
gotoAndPlay (2);
} else {
stop();
}
Symbol 1536 MovieClip Frame 40
gotoAndPlay (10);
Symbol 1539 MovieClip Frame 1
stop();
Symbol 1539 MovieClip Frame 3
stop();
Symbol 1554 Button
on (release) {
act = 2;
}
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1555 MovieClip Frame 10
gotoAndPlay (6);
Symbol 1555 MovieClip Frame 15
gotoAndStop (1);
Symbol 1559 Button
on (release) {
gotoAndPlay (51);
}
Symbol 1560 MovieClip Frame 1
stop();
Symbol 1560 MovieClip Frame 2
_root.canmove = 1;
bt_go._visible = false;
aff_1 = 0;
aff_2 = 0;
aff_3 = 0;
aff_3_2 = 0;
aff_4 = 0;
aff_4_2 = 0;
aff_5 = 0;
aff_5_2 = 0;
stade = 0;
timer_st = 40;
timer_st2 = 2;
timer = timer_st;
timer2 = timer_st2;
stop();
onEnterFrame = function () {
if (stade == 0) {
if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
if (stade == 1) {
if (aff_1 != _root.enemies_dead) {
if (timer2 != 0) {
timer2 = timer2 - 1;
} else {
aff_1 = aff_1 + 1;
snd.gotoAndPlay(2);
timer2 = timer_st2;
}
} else if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
if (stade == 2) {
if (aff_2 < _root.bullets_fired) {
if (timer2 != 0) {
timer2 = timer2 - 1;
} else {
aff_2 = aff_2 + 15;
snd.gotoAndPlay(2);
timer2 = timer_st2;
}
} else if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
if (stade == 3) {
if (aff_3 < _root.cash_earned) {
if (timer2 != 0) {
timer2 = timer2 - 1;
} else {
aff_3 = aff_3 + 100;
snd.gotoAndPlay(2);
timer2 = timer_st2;
}
} else if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
if (stade == 4) {
if (aff_4 < _root.time_taken) {
if (timer2 != 0) {
timer2 = timer2 - 1;
} else {
aff_4 = aff_4 + 5;
snd.gotoAndPlay(2);
timer2 = timer_st2;
}
} else if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
if (stade == 5) {
if (aff_5 < _root.energy_left) {
if (timer2 != 0) {
timer2 = timer2 - 1;
} else {
aff_5 = aff_5 + 5;
snd.gotoAndPlay(2);
timer2 = timer_st2;
}
} else {
if (aff_5 > 100) {
aff_5 = 100;
}
if (timer != 0) {
timer = timer - 1;
} else {
timer = timer_st;
stade = stade + 1;
}
}
}
if (stade == 6) {
if (timer != 0) {
timer = timer - 1;
} else {
bt_go._visible = true;
}
}
aff_3_2 = aff_3 + " $";
aff_4_2 = aff_4 + " seconds";
aff_5_2 = aff_5 + " %";
};
Instance of Symbol 190 MovieClip "bt_go" in Symbol 1560 MovieClip Frame 2
onClipEvent (load) {
txx = "OK";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.canmove = 2;
aa = 1;
if (aa == 1) {
_parent.gotoAndPlay(4);
} else {
_parent.gotoAndStop(1);
}
}
}
Symbol 1560 MovieClip Frame 3
_root.canmove = 1;
stop();
onEnterFrame = function () {
};
Instance of Symbol 1548 MovieClip in Symbol 1560 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(random(5) + 1);
}
Instance of Symbol 190 MovieClip in Symbol 1560 MovieClip Frame 3
onClipEvent (load) {
txx = "CONTINUE";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.canmove = 2;
_parent.gotoAndStop(1);
}
}
Instance of Symbol 1555 MovieClip in Symbol 1560 MovieClip Frame 3
onClipEvent (load) {
txx = "VIDEO WALKTHROUGH";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/page/22/", "_blank");
}
}
Symbol 1560 MovieClip Frame 50
gotoAndPlay (1);
Symbol 1563 MovieClip Frame 11
gotoAndPlay (2);
Symbol 1584 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_parent._parent.product);
};
Symbol 1591 Button
on (release) {
_parent.play();
}
Symbol 1597 Button
on (release) {
_parent.nb = txx;
_parent.act = 2;
gotoAndPlay (3);
}
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 1598 MovieClip Frame 1
stop();
Symbol 1601 MovieClip Frame 1
aff_1 = "";
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
stop();
onEnterFrame = function () {
if (act == 2) {
act = 1;
trace("cheat stade : " + stade);
trace((((((("cheat value : " + nb_1) + "") + nb_2) + "") + nb_3) + "") + nb_4);
Set("nb_" + stade, nb);
stade = stade + 1;
}
aff_1 = (((((nb_1 + "") + nb_2) + "") + nb_3) + "") + nb_4;
if (aff_1 == "3226") {
_root.cheat_1 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "8881") {
_root.cheat_2 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "5313") {
_root.cheat_3 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "4422") {
_root.cheat_4 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "2418") {
_root.cheat_5 = 2;
_root.cheat_6 = 1;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "3611") {
_root.cheat_6 = 2;
_root.cheat_5 = 1;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "6615") {
_root.cheat_7 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "3193") {
_root.cheat_8 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "7618") {
_root.cheat_9 = 2;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (aff_1 == "0000") {
_root.cheat_1 = 1;
_root.cheat_2 = 1;
_root.cheat_3 = 1;
_root.cheat_4 = 1;
_root.cheat_5 = 1;
_root.cheat_6 = 1;
_root.cheat_7 = 1;
_root.cheat_8 = 1;
_root.cheat_9 = 1;
_parent.gotoAndPlay(2);
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
}
if (stade == 5) {
nb_1 = "";
nb_2 = "";
nb_3 = "";
nb_4 = "";
stade = 1;
_parent.gotoAndPlay(16);
}
};
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 7;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 8;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 9;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 4;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 5;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 6;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 1;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 2;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 3;
}
Instance of Symbol 1598 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = 0;
}
Instance of Symbol 190 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = "BACK";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent._parent._parent.gotoAndPlay(325);
}
}
Instance of Symbol 1555 MovieClip in Symbol 1601 MovieClip Frame 1
onClipEvent (load) {
txx = "CHEAT LIST";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/page/24", "_blank");
}
}
Symbol 1605 MovieClip Frame 1
stop();
Symbol 1605 MovieClip Frame 15
gotoAndStop (1);
Symbol 1607 MovieClip Frame 231
stop();
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "BIG GUN";
nb = 1;
if (eval ("_root.wp_" + nb) == 2) {
gotoAndStop (17);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.product = nb;
_parent.gotoAndStop(232);
}
if (act == 3) {
act = 1;
_parent.product = nb;
}
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "TWO BIG GUNS";
if (_root.lvl2 < 2) {
gotoAndStop (16);
}
nb = 2;
if (eval ("_root.wp_" + nb) == 2) {
gotoAndStop (17);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.product = nb;
_parent.gotoAndStop(232);
}
if (act == 3) {
act = 1;
_parent.product = nb;
}
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "MEGA GUN";
if (_root.lvl2 < 3) {
gotoAndStop (16);
}
nb = 3;
if (eval ("_root.wp_" + nb) == 2) {
gotoAndStop (17);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.product = nb;
_parent.gotoAndStop(232);
}
if (act == 3) {
act = 1;
_parent.product = nb;
}
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "ASS KICKING GUN";
if (_root.lvl2 < 4) {
gotoAndStop (16);
}
nb = 4;
if (eval ("_root.wp_" + nb) == 2) {
gotoAndStop (17);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.product = nb;
_parent.gotoAndStop(232);
}
if (act == 3) {
act = 1;
_parent.product = nb;
}
}
Instance of Symbol 1555 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "STUPID STUFF";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/page/17", "_blank");
}
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "CHEATS";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(233);
}
}
Instance of Symbol 1555 MovieClip in Symbol 1607 MovieClip Frame 231
onClipEvent (load) {
txx = "WALKTHROUGH";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
getURL ("http://www.spoofgames.com/page/22", "_blank");
}
}
Symbol 1607 MovieClip Frame 232
if (product == 1) {
price = 0;
}
if (product == 2) {
price = 4000;
}
if (product == 3) {
price = 10000;
}
if (product == 4) {
price = 15000;
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 232
onClipEvent (load) {
txx = "BUY";
if (_parent.price > _root.cash) {
gotoAndStop (16);
}
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_root.cash = _root.cash - _parent.price;
Set("_root.wp_" + _parent.product, 2);
_parent.gotoAndPlay(301);
}
}
Instance of Symbol 190 MovieClip in Symbol 1607 MovieClip Frame 232
onClipEvent (load) {
txx = "BACK";
}
onClipEvent (enterFrame) {
if (act == 2) {
act = 1;
_parent.gotoAndStop(231);
}
}
Symbol 1607 MovieClip Frame 233
stop();
Symbol 1607 MovieClip Frame 350
gotoAndStop (231);
Symbol 1608 MovieClip Frame 1
stop();
Symbol 1608 MovieClip Frame 50
stop();
Symbol 1608 MovieClip Frame 51
_root.cnt.perso.gotoAndStop(1);
Symbol 1608 MovieClip Frame 80
_root.cnt.graph.upmenuhitt._y = _root.cnt.graph.upmenuhitt._y + 1000;
_root.cnt.graph.upmenuhitt.cantouchthis = 1;
_root.canmove = 2;
Symbol 1611 MovieClip Frame 1
if (_root.fondu_to_win == 2) {
_root.fondu_to_win = 1;
} else {
if (_root.fondu_i_lost == 2) {
_root.fondu_i_lost = 1;
_root.interr2.gotoAndStop(3);
} else {
_root.canmove = 2;
}
stop();
}
Symbol 1611 MovieClip Frame 2
_root.canmove = 1;
_root.cnt.perso.gotoAndPlay(2);
Symbol 1611 MovieClip Frame 23
_root.interr2.gotoAndStop(2);
stop();
Symbol 1618 MovieClip Frame 1
stopAllSounds();
Symbol 1618 MovieClip Frame 13
_root.cnt.perso.gotoAndPlay(2);
Symbol 1618 MovieClip Frame 180
_root.lvl = _root.future_film;
if (_root.lvl == 1) {
_root.cnt.perso._x = 560;
_root.cnt.perso._y = 4370;
}
if (_root.lvl == 2) {
_root.cnt.perso._x = 700;
_root.cnt.perso._y = 4660;
}
if (_root.lvl == 3) {
_root.cnt.perso._x = 630;
_root.cnt.perso._y = 4611;
}
if (_root.lvl == 4) {
_root.cnt.perso._x = 700;
_root.cnt.perso._y = 4580;
}
_root.wp = 1;
if (_root.wp_2 == 2) {
_root.wp = 2;
}
if (_root.wp_3 == 2) {
_root.wp = 3;
}
if (_root.wp_4 == 2) {
_root.wp = 4;
}
Set("_root.wp_ammo_" + _root.wp, eval ("_root.wp_mag_" + _root.wp));
Symbol 1618 MovieClip Frame 197
_root.muz.gotoAndPlay(1);
_root.qual_st = 1;
Symbol 1618 MovieClip Frame 212
_root.interr._visible = true;
Symbol 1618 MovieClip Frame 250
_root.canmove = 2;
_root.cooling = 10;
_root.canshot = 2;
Symbol 1618 MovieClip Frame 274
_parent.gotoAndStop(41);
stop();
Symbol 1618 MovieClip Frame 275
play();
Symbol 1618 MovieClip Frame 287
_root.energy = 100;
if (_root.lvl == 1) {
_root.cnt.perso._x = 1740;
_root.cnt.perso._y = 4710;
}
if (_root.lvl == 2) {
_root.cnt.perso._x = 2090;
_root.cnt.perso._y = 4710;
}
if (_root.lvl == 3) {
_root.cnt.perso._x = 2475;
_root.cnt.perso._y = 4710;
}
if (_root.lvl == 4) {
_root.cnt.perso._x = 2935;
_root.cnt.perso._y = 4710;
}
_root.passed_lvl = _root.lvl;
_root.canmove = 1;
_root.lvl = 0;
_root.cnt.perso.gotoAndStop(3);
Set("_root.wp_ammo_" + _root.wp, eval ("_root.wp_mag_" + _root.wp));
Symbol 1618 MovieClip Frame 289
_root.cnt.perso.gotoAndStop(2);
Symbol 1618 MovieClip Frame 295
_root.cnt.perso.gotoAndPlay(3);
Symbol 1618 MovieClip Frame 297
_root.cnt.perso.gotoAndPlay(2);
Symbol 1618 MovieClip Frame 323
_root.muz.gotoAndPlay(2);
_root.qual_st = 2;
Symbol 1618 MovieClip Frame 360
gotoAndStop (274);
Symbol 1619 MovieClip Frame 1
gotoAndPlay (2);
Symbol 1619 MovieClip Frame 41
stop();
Symbol 1619 MovieClip Frame 42
_root.canmove = 1;
Instance of Symbol 1618 MovieClip in Symbol 1619 MovieClip Frame 42
onClipEvent (load) {
if (_root.fondu_to_death == 2) {
_root.fondu_to_death = 1;
gotoAndPlay (275);
}
}
Symbol 1626 MovieClip Frame 1
stopAllSounds();
gotoAndPlay((_root.lvl + 1) * 2);
Symbol 1626 MovieClip Frame 3
stop();
Symbol 1626 MovieClip Frame 5
stop();
Symbol 1626 MovieClip Frame 7
stop();
Symbol 1626 MovieClip Frame 9
stop();
Symbol 1626 MovieClip Frame 11
stop();
Symbol 1626 MovieClip Frame 13
stop();
Symbol 1634 MovieClip Frame 1
stop();
Symbol 1634 MovieClip Frame 3
stop();
Symbol 1634 MovieClip Frame 5
stop();
Symbol 1634 MovieClip Frame 7
stop();
Symbol 1634 MovieClip Frame 9
stop();
Symbol 1634 MovieClip Frame 11
stop();
Symbol 1634 MovieClip Frame 13
stop();
Symbol 1634 MovieClip Frame 15
stop();
Symbol 1634 MovieClip Frame 17
stop();
Symbol 1643 MovieClip Frame 1
stop();
Symbol 1643 MovieClip Frame 13
stop();
Symbol 1643 MovieClip Frame 15
stop();
Symbol 1643 MovieClip Frame 23
stop();
Symbol 1643 MovieClip Frame 25
stop();
Symbol 1643 MovieClip Frame 33
stop();
Symbol 1643 MovieClip Frame 35
stop();
Symbol 1643 MovieClip Frame 43
stop();
Symbol 1643 MovieClip Frame 45
stop();
Symbol 1660 MovieClip Frame 1
stop();
Symbol 1660 MovieClip Frame 23
stop();
Symbol 1660 MovieClip Frame 25
stop();
Symbol 1660 MovieClip Frame 27
stop();
Symbol 1660 MovieClip Frame 29
stop();
Symbol 1660 MovieClip Frame 31
stop();
Symbol 1660 MovieClip Frame 33
stop();
Symbol 1660 MovieClip Frame 35
stop();
Symbol 1660 MovieClip Frame 43
stop();
Symbol 1660 MovieClip Frame 45
stop();
Symbol 1660 MovieClip Frame 47
stop();
Symbol 1660 MovieClip Frame 49
stop();
Symbol 1660 MovieClip Frame 51
stop();
Symbol 1660 MovieClip Frame 53
stop();
Symbol 1660 MovieClip Frame 55
stop();
Symbol 1660 MovieClip Frame 63
stop();
Symbol 1660 MovieClip Frame 65
stop();
Symbol 1660 MovieClip Frame 67
stop();
Symbol 1660 MovieClip Frame 69
stop();
Symbol 1660 MovieClip Frame 71
stop();
Symbol 1660 MovieClip Frame 73
stop();
Symbol 1660 MovieClip Frame 75
stop();
Symbol 1660 MovieClip Frame 83
stop();
Symbol 1660 MovieClip Frame 85
stop();
Symbol 1660 MovieClip Frame 87
stop();
Symbol 1660 MovieClip Frame 89
stop();
Symbol 1665 MovieClip Frame 1
stop();
Symbol 1665 MovieClip Frame 3
stop();
Symbol 1665 MovieClip Frame 5
stop();
Symbol 1665 MovieClip Frame 7
stop();
Symbol 1665 MovieClip Frame 9
stop();
Symbol 1667 MovieClip Frame 1
stop();
Symbol 1667 MovieClip Frame 3
stop();
Symbol 1667 MovieClip Frame 5
stop();
Symbol 1672 MovieClip Frame 1
stop();
Symbol 1672 MovieClip Frame 3
stop();
Symbol 1672 MovieClip Frame 5
stop();
Symbol 1672 MovieClip Frame 7
stop();
Symbol 1672 MovieClip Frame 9
stop();
Symbol 1673 MovieClip Frame 1
stop();
Symbol 1673 MovieClip Frame 3
stop();
Symbol 1673 MovieClip Frame 5
stop();
Symbol 1673 MovieClip Frame 7
stop();
Symbol 1682 MovieClip Frame 1
stop();
Symbol 1682 MovieClip Frame 3
stop();
Symbol 1682 MovieClip Frame 5
stop();
Symbol 1682 MovieClip Frame 7
stop();
Symbol 1682 MovieClip Frame 9
stop();
Symbol 1682 MovieClip Frame 11
stop();
Symbol 1682 MovieClip Frame 53
stop();
Symbol 1682 MovieClip Frame 55
stop();
Symbol 1682 MovieClip Frame 57
stop();
Symbol 1682 MovieClip Frame 59
stop();