Frame 1
_lockroot = true;
_quality = "HIGH";
stop();
stopAllSounds();
menu = new ContextMenu();
menu.hideBuiltInItems();
NewgroundsAPI.connectMovie(6871);
_root.API_Settings = {movie_id:6871, enc_key:"dgBuPTVGoLHMIcsGZi09lIl3gqHdSZY9", debug_mode:false, movie_version:""};
Frame 3
nextFrame();
Frame 4
function f_angle(theta) {
rad2Deg = 57.2957795130823;
ang = Math.atan(theta) * rad2Deg;
return(ang);
}
function f_sound(id, loops, type) {
if (type == undefined) {
type = "sound";
}
var _local3 = _root[type];
_root["s_" + id] = new Sound(_local3);
_root["s_" + id].attachSound(id);
_root["s_" + id].start(0, loops);
}
function f_total_score() {
total_score = 0;
i = 0;
while (i < 6) {
if (objectives[i] > 0) {
total_score = total_score + 100;
}
if (favors[i] > 0) {
total_score = total_score + 100;
}
if (bodycount[i] > 0) {
total_score = total_score + 10;
}
i++;
}
total_score = total_score + 10;
if (tenacity == 1) {
total_score = total_score + 10;
}
total_score = total_score + (bunny_kills * 10);
}
function f_new_kill(id) {
bodycount[id] = id + 1;
kills++;
}
function f_new_mainquest(id) {
i = 1;
while (i <= 3) {
if (_root["objective" + i] == 0) {
_root["objective" + i] = id;
new_objective.id = id;
new_objective.gotoAndPlay(2);
i = 4;
} else if (_root["objective" + i] == id) {
i = 4;
}
i++;
}
}
function f_new_sidequest(id) {
var _local3 = false;
i = 0;
while (i < 4) {
if (_root["sidequest" + i] == id) {
_local3 = true;
i = 4;
}
i++;
}
if (_local3 == false) {
i = 1;
while (i <= 4) {
if (_root["sidequest" + i] == 0) {
_root["sidequest" + i] = id;
new_favor.id = id;
new_favor.gotoAndPlay(2);
i = 4;
}
i++;
}
}
}
function f_complete_quest(id, type) {
if (type == 1) {
i = 1;
while (i <= 3) {
if (_root["objective" + i] == id) {
_root["objective" + i] = 0;
objectives[id - 1] = id;
new_objective.id = -1;
new_objective.gotoAndPlay(2);
}
i++;
}
} else {
i = 1;
while (i <= 4) {
if (_root["sidequest" + i] == id) {
_root["sidequest" + i] = 0;
favors[id - 1] = id;
new_favor.id = -1;
new_favor.gotoAndPlay(2);
}
i++;
}
}
}
function f_get_item(id) {
_root.game["get_" + id] = true;
if (_root.item_get._currentframe > 1) {
_root.item_get.f_redeem();
}
_root.item_get.id = id;
_root.item_get.gotoAndPlay(2);
if (id == 17) {
game.alien.gotoAndStop("holster");
}
}
function f_itemslot_free(id) {
cinema = true;
used_item = id;
i = 0;
while (i < 7) {
if (_root["item_slot" + i] == id) {
_root["item_slot" + i] = 0;
}
i++;
}
cursor._visible = false;
cursor.gotoAndStop(1);
}
function f_combine_item(id1, id2) {
var _local3;
if (((id1 == 26) && (id2 == 25)) || ((id2 == 26) && (id1 == 25))) {
f_change_item(id2, 27);
_local3 = true;
} else if (((id1 == 22) && (id2 == 20)) || ((id2 == 22) && (id1 == 20))) {
f_change_item(id2, 26);
_local3 = true;
}
if (_local3) {
f_sound("harp", 1);
f_itemslot_free(id1);
cinema = false;
return(true);
}
cursor.comb._visible = false;
}
function f_change_item(id, new_id) {
i = 0;
while (i < 7) {
if (_root["item_slot" + i] == id) {
_root["item_slot" + i] = new_id;
cursor.gotoAndStop(1);
}
i++;
}
}
function f_item_use(target) {
id = cursor._currentframe - 1;
wrong_item = false;
if ((id == 27) && (target == "snake")) {
f_itemslot_free(id);
} else if ((id != 27) && (target == "snake")) {
f_sound("buzzer", 1);
wrong_item = true;
} else if ((id == 24) && (target == "security1")) {
f_itemslot_free(id);
} else if ((id == 19) && (target == "hobo")) {
f_itemslot_free(id);
} else if (((id == 18) && (game.microwave._currentframe == 2)) && (target == "microwave")) {
f_itemslot_free(id);
} else if ((id == 17) && (game._currentframe == 21)) {
f_itemslot_free(id);
} else if ((id == 16) && (target == "guard")) {
f_itemslot_free(id);
} else if ((id == 15) && (target == "casedog")) {
f_itemslot_free(id);
} else if (((id == 11) && ((target == "coffeemakerpop") || (target == "coffeemaker"))) && (game.makecoffee == 1)) {
game.makecoffee++;
f_itemslot_free(id);
} else if (((id == 10) && ((target == "coffeemakerpop") || (target == "coffeemaker"))) && (game.makecoffee == 2)) {
f_get_item(16);
game.makecoffee++;
f_itemslot_free(id);
} else if (((id == 9) && (target == "traderbug")) && (game.chat1._currentframe < 7)) {
f_itemslot_free(id);
} else if (((id == 7) && ((target == "outlet1") || (target == "outletpop"))) && (game.makecoffee == 0)) {
game.makecoffee++;
f_itemslot_free(id);
} else if ((id == 2) && (target == "faucet1")) {
f_itemslot_free(id);
} else {
wrong_item = true;
f_sound("buzzer", 1);
return(false);
}
if (wrong_item != true) {
f_sound("harp", 1);
}
}
function f_advance(area, ent) {
interacting = false;
exit_right = false;
exit_left = false;
exit_down = false;
area_right = 1;
area_left = -1;
limit_right_z = true;
limit_left_z = true;
entrance = ent;
cinema = false;
walk = true;
alien_fixed = false;
m_item = false;
game.alien.speed_x = 0;
game.alien.speed_y = 0;
game.alien.old_dest_x = 0;
game.alien.old_dest_y = 0;
game.gotoAndStop(game._currentframe + area);
}
function f_place_alien() {
game.alien.scale();
game.alien.movement();
game.alien.animation();
}
function onEnterFrame() {
if ((game.outside != true) && (music_vol > 0)) {
music_vol_offset = 50;
} else {
music_vol_offset = 0;
}
sound.all_sound.setVolume(sound_vol);
music.all_music.setVolume(music_vol - music_vol_offset);
if (Key.isDown(39)) {
press_right = true;
} else {
press_right = false;
}
if (Key.isDown(37)) {
press_left = true;
} else {
press_left = false;
}
if (Key.isDown(40)) {
press_down = true;
} else {
press_down = false;
}
if (Key.isDown(38)) {
press_up = true;
} else {
press_up = false;
}
if (Key.isDown(32)) {
press_holster = true;
} else {
press_holster = false;
}
cursor._x = _xmouse;
cursor._y = _ymouse;
if ((cursor._currentframe > 1) && (_ymouse > 50)) {
Mouse.hide();
cursor._visible = true;
} else if (((m_aim == true) && (game.alien.gun == true)) && (gun_active == true)) {
Mouse.hide();
cursor._visible = true;
cursor.cursor.gotoAndStop(1);
} else {
Mouse.show();
cursor._visible = false;
if (_ymouse > 50) {
if (_root.exit_right == true) {
if (_xmouse > ((Stage.width / 2.24) + game._x)) {
Mouse.hide();
cursor._visible = true;
cursor.cursor.gotoAndStop(3);
}
}
if (_root.exit_left == true) {
if (_xmouse < (((-Stage.width) / 2.24) + game._x)) {
Mouse.hide();
cursor._visible = true;
cursor.cursor.gotoAndStop(2);
}
}
if (_root.exit_down == true) {
if (_ymouse > ((Stage.height / 2.2) + game._y)) {
Mouse.hide();
cursor._visible = true;
cursor.cursor.gotoAndStop(5);
}
}
}
}
i = 0;
while (i < 7) {
inventory["o" + (i + 1)].gotoAndStop(_root["objective" + (i + 1)] + 1);
inventory["sq" + (i + 1)].gotoAndStop(_root["sidequest" + (i + 1)] + 1);
inventory["f" + (i + 1)].gotoAndStop(favors[i] + 1);
inventory["slot" + i].gotoAndStop(_root["item_slot" + i] + 1);
i++;
}
if (inventory.hitTest(_xmouse, _ymouse, true) || (inventory_gun.hitTest(_xmouse, _ymouse, true))) {
m_inventory = true;
} else {
m_inventory = false;
}
}
function onMouseDown() {
m_click = true;
}
function onMouseUp() {
m_click = false;
}
var music_vol = 100;
var music_vol_offset = 0;
var sound_vol = 100;
var sound_vol_offset = 0;
var total_score = 0;
var tenacity = 0;
var loyalty = 0;
var kills = 0;
var bunny_kills = 0;
var objective1 = 6;
var objective2 = 0;
var objective3 = 0;
var sidequest1 = 0;
var sidequest2 = 0;
var sidequest3 = 0;
var sidequest4 = 0;
var objectives = new Array(0, 0, 0, 0, 0, 0);
var favors = new Array(0, 0, 0, 0);
var bodycount = new Array(0, 0, 0, 0, 0, 0);
var r_symbol = (random(3) + 1);
var item_slot0 = 0;
var item_slot1 = 0;
var item_slot2 = 0;
var item_slot3 = 0;
var item_slot4 = 0;
var item_slot5 = 0;
var item_slot6 = 0;
var item_slot7 = 0;
var wrong_item = false;
var badge = 1;
var cinema = false;
var walk = true;
var alien_fixed = false;
var m_click = false;
var m_item = false;
var m_aim = false;
var press_right = false;
var press_left = false;
var entrance = 0;
var exit_right = false;
var exit_left = false;
var area_right = 1;
var area_left = -1;
var limit_right_z = true;
var limit_left_z = true;
var used_item = 0;
var m_target;
var m_inventory;
var interacting;
var gun_active = false;
var worm = true;
var milos = true;
var tradingpost = new Array(0, 7, 0, 22);
game.makecoffee = 0;
game.worm_quest = 0;
_quality = "medium";
_root.createEmptyMovieClip("sound", 2);
_root.createEmptyMovieClip("music", 3);
sound.all_sound = new Sound(sound);
music.all_music = new Sound(music);
f_new_mainquest(1);
stop();
Frame 5
prevFrame();
Frame 6
function onEnterFrame() {
}
_quality = "HIGH";
Mouse.show();
stopAllSounds();
f_total_score();
Frame 7
nextFrame();
Frame 8
function onEnterFrame() {
}
_quality = "HIGH";
Mouse.show();
stopAllSounds();
Symbol 11 MovieClip [item_door3 copy 3] Frame 1
#initclip 35
Object.registerClass("item_door3 copy 3", item);
#endinitclip
stop();
Symbol 11 MovieClip [item_door3 copy 3] Frame 2
_root.f_advance(1, -1);
Symbol 29 MovieClip [at desk] Frame 1
#initclip 13
Object.registerClass("at desk", item);
#endinitclip
enemy = true;
if (_parent.lobe_dead == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 29 MovieClip [at desk] Frame 2
_root.f_new_kill(5);
_parent.lobe_dead = true;
_root.f_sound("splat1", 1);
Symbol 29 MovieClip [at desk] Frame 12
alive = false;
_root.f_complete_quest(6, 1);
Symbol 29 MovieClip [at desk] Frame 49
if (_parent.worm_dead != true) {
_root.loyalty = 1;
}
_root.gotoAndStop("end");
Symbol 33 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.bird_speech._currentframe > 1) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 34 MovieClip [birdydude] Frame 1
#initclip 14
Object.registerClass("birdydude", item);
#endinitclip
stop();
Symbol 34 MovieClip [birdydude] Frame 2
_root.game.alien.dir = "left";
_parent.bird_speech.nextFrame();
Symbol 40 MovieClip [door open1] Frame 1
#initclip 15
Object.registerClass("door open1", item);
#endinitclip
stop();
Symbol 40 MovieClip [door open1] Frame 2
if (_parent._currentframe == 24) {
if ((_root.badge == 4) && (_parent.appointment == true)) {
_root.cinema = true;
_root.f_sound("doorslide", 1);
} else {
if (_root.badge == 4) {
_parent.sec_speech.gotoAndStop(3);
} else {
_parent.sec_speech.gotoAndStop(2);
}
prevFrame();
}
}
Symbol 40 MovieClip [door open1] Frame 15
_root.f_advance(1, 1);
Symbol 46 MovieClip Frame 1
function onEnterFrame() {
if (_parent._parent.snake_speech._currentframe > 1) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 48 MovieClip [snake] Frame 1
#initclip 16
Object.registerClass("snake", item);
#endinitclip
interact_x = -50;
stop();
Symbol 48 MovieClip [snake] Frame 2
if ((_root.used_item == 27) || (_parent.give_toy == true)) {
_parent.give_toy = true;
_parent.babysnake.nextFrame();
_parent.snake_speech.gotoAndStop(3);
} else if (_root.wrong_item == true) {
_root.wrong_item = false;
_parent.snake_speech.gotoAndStop(4);
} else {
_parent.snake_speech.gotoAndStop(2);
}
Symbol 53 MovieClip [power beams] Frame 1
#initclip 17
Object.registerClass("power beams", item);
#endinitclip
interact_x = -70;
interact_y = -40;
if (ini != true) {
ini = true;
if (_parent.security2 == false) {
gotoAndStop(_totalframes - 1);
}
}
Symbol 53 MovieClip [power beams] Frame 2
if (_root.badge == 2) {
_parent.security2 = false;
}
if (_parent.security2 != false) {
gotoAndPlay (1);
} else {
_root.f_sound("powerdown", 1);
}
Symbol 53 MovieClip [power beams] Frame 12
stop();
Symbol 53 MovieClip [power beams] Frame 13
_root.gun_active = true;
_parent.new_song = false;
_root.f_new_mainquest(5);
_root.f_advance(1, 8);
Symbol 55 MovieClip [pipe appear] Frame 1
#initclip 18
Object.registerClass("pipe appear", item);
#endinitclip
_root.exit_right = true;
stop();
Symbol 55 MovieClip [pipe appear] Frame 19
id = 19;
collectable = true;
_root.exit_right = false;
Symbol 55 MovieClip [pipe appear] Frame 20
if (_visible == false) {
_root.exit_right = true;
}
Symbol 55 MovieClip [pipe appear] Frame 21
gotoAndPlay(_currentframe - 1);
Symbol 62 MovieClip [whirly blade] Frame 1
#initclip 19
Object.registerClass("whirly blade", item);
#endinitclip
enemy = true;
if (_parent.bathroom_fan == false) {
gotoAndStop ("static");
} else {
stop();
}
Symbol 62 MovieClip [whirly blade] Frame 9
gotoAndStop (1);
Symbol 62 MovieClip [whirly blade] Frame 10
stop();
Symbol 71 MovieClip [pee guard] Frame 1
#initclip 20
Object.registerClass("pee guard", item);
#endinitclip
enemy = true;
if (_parent.guard_pissing != true) {
_visible = false;
}
if (_parent.pee_guard_dead == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 71 MovieClip [pee guard] Frame 2
_root.f_new_kill(3);
_parent.pee_guard_dead = true;
_root.f_sound("splat1", 1);
Symbol 71 MovieClip [pee guard] Frame 14
_root.f_complete_quest(4);
alive = false;
stop();
Symbol 71 MovieClip [pee guard] Frame 15
prevFrame();
Symbol 77 MovieClip [dryer] Frame 1
#initclip 21
Object.registerClass("dryer", item);
#endinitclip
dof = true;
stop();
Symbol 77 MovieClip [dryer] Frame 8
stop();
Symbol 79 MovieClip [triggerbox5] Frame 1
#initclip 22
Object.registerClass("triggerbox5", item);
#endinitclip
stop();
Symbol 79 MovieClip [triggerbox5] Frame 2
_parent.chart1.play();
_root.cinema = true;
Symbol 80 MovieClip [triggerbox3] Frame 1
#initclip 23
Object.registerClass("triggerbox3", item);
#endinitclip
stop();
Symbol 80 MovieClip [triggerbox3] Frame 2
_parent.keypad2.play();
_root.cinema = true;
Symbol 82 MovieClip [exit1] Frame 1
#initclip 24
Object.registerClass("exit1", item);
#endinitclip
stop();
Symbol 82 MovieClip [exit1] Frame 2
_root.f_advance(1, -1);
Symbol 101 MovieClip Frame 149
_parent.nextFrame();
Symbol 106 MovieClip Frame 5
_root.game.alien.walksounds();
Symbol 106 MovieClip Frame 20
_root.game.alien.walksounds();
Symbol 108 MovieClip Frame 1
_root.cinema = true;
Symbol 108 MovieClip Frame 2
function onEnterFrame() {
_parent._y = _parent._y + 0.25;
}
Symbol 108 MovieClip Frame 30
_root.game.alien.dir = "left";
Symbol 108 MovieClip Frame 106
function onEnterFrame() {
}
_parent._parent.bathroomdoor1.npc_interact = true;
_parent._parent.bathroomdoor1.play();
Symbol 108 MovieClip Frame 137
_root.cinema = false;
_parent._parent.guard_pissing = true;
_parent.gotoAndStop(4);
Symbol 109 MovieClip [ob_guard] Frame 1
#initclip 25
Object.registerClass("ob_guard", item);
#endinitclip
this.cacheAsBitmap = true;
interact_y = -150;
if (_parent.guard_pissing == true) {
gotoAndStop (4);
} else {
stop();
}
Symbol 109 MovieClip [ob_guard] Frame 2
if (_root.used_item == 16) {
_parent.guard_speech.gotoAndStop(3);
stop();
} else {
_parent.guard_speech.gotoAndStop(2);
prevFrame();
}
Symbol 116 MovieClip [squidgy] Frame 1
#initclip 26
Object.registerClass("squidgy", item);
#endinitclip
stop();
Symbol 116 MovieClip [squidgy] Frame 2
if (_parent.pee_guard_dead == true) {
_parent.blob_speech.gotoAndStop(3);
} else {
_parent.blob_speech.gotoAndStop(2);
}
_root.cinema = true;
Symbol 122 MovieClip Frame 1
function onEnterFrame() {
if (_root.game.makecoffee > 0) {
gotoAndStop(_root.game.makecoffee + 1);
} else {
gotoAndStop (1);
}
}
Symbol 123 MovieClip [coffeemaker] Frame 1
#initclip 27
Object.registerClass("coffeemaker", item);
#endinitclip
interact_y = -50;
stop();
Symbol 123 MovieClip [coffeemaker] Frame 2
_root.cinema = true;
_parent.coffeemachinepop.play();
Symbol 124 MovieClip [exit_zone] Frame 1
#initclip 28
Object.registerClass("exit_zone", item);
#endinitclip
stop();
Symbol 124 MovieClip [exit_zone] Frame 2
_root.f_advance(area);
Symbol 126 MovieClip [traderpost] Frame 1
#initclip 29
Object.registerClass("traderpost", item);
#endinitclip
stop();
Symbol 126 MovieClip [traderpost] Frame 2
_root.f_advance(1, 1);
Symbol 133 MovieClip Frame 1
function onEnterFrame() {
if (_root.game.hobo_speech._currentframe != 1) {
play();
} else {
gotoAndStop (1);
}
}
Symbol 145 MovieClip [angry hobo] Frame 1
#initclip 30
Object.registerClass("angry hobo", item);
#endinitclip
enemy_interact = true;
enemy = true;
if (_parent.hobo_dead == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 145 MovieClip [angry hobo] Frame 2
if (_root.m_target != this) {
if ((_root.used_item == 19) && (_parent.hobo_bomb != true)) {
_parent.hobo_bomb = true;
_parent.hobo_speech.gotoAndStop(3);
} else {
_parent.hobo_speech.nextFrame();
}
_root.m_target = null;
prevFrame();
} else {
_root.f_new_kill(1);
_root.cinema = true;
_root.f_sound("splat1", 1);
_parent.hobo_dead = true;
}
Symbol 145 MovieClip [angry hobo] Frame 23
_parent.hammocks.play();
Symbol 145 MovieClip [angry hobo] Frame 24
alive = false;
Symbol 145 MovieClip [angry hobo] Frame 25
prevFrame();
Symbol 146 MovieClip [eventtriggerbox] Frame 1
#initclip 31
Object.registerClass("eventtriggerbox", item);
#endinitclip
stop();
Symbol 146 MovieClip [eventtriggerbox] Frame 2
_parent[targ].play();
_root.cinema = true;
Symbol 152 MovieClip Frame 2
if (_parent.speed_x == 0) {
gotoAndPlay (1);
}
Symbol 160 MovieClip Frame 13
_root.cinema = false;
stop();
Symbol 161 MovieClip [bunny] Frame 1
#initclip 32
Object.registerClass("bunny", npc);
#endinitclip
enemy = true;
org_x = _x;
_x = (_x + (-50 + random(100)));
stop();
Symbol 161 MovieClip [bunny] Frame 2
_root.bunny_kills++;
alive = false;
_root.f_sound("splat1", 1);
Symbol 161 MovieClip [bunny] Frame 3
prevFrame();
Symbol 165 MovieClip [HOSES] Frame 1
#initclip 33
Object.registerClass("HOSES", item);
#endinitclip
id = 2;
if (_parent.get_2 == true) {
collectable = true;
nextFrame();
} else {
stop();
}
Symbol 165 MovieClip [HOSES] Frame 2
if (collectable != true) {
prevFrame();
} else {
_parent.sd_attachment.collectable = false;
}
_parent.trading1 = false;
collectable = false;
_visible = true;
Symbol 174 MovieClip Frame 1
function f_anim() {
if (_root.game.alien.got_gun == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
function onEnterFrame() {
f_anim();
}
f_anim();
Symbol 184 MovieClip Frame 1
function onEnterFrame() {
gotoAndStop(_root.badge);
}
gotoAndStop(_root.badge);
Symbol 206 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
function onEnterFrame() {
gotoAndStop(_root.badge);
}
gotoAndStop(_root.badge);
Symbol 227 MovieClip Frame 1
function f_state() {
if (_root.gun_active == false) {
gotoAndStop ("inactive");
} else {
gotoAndStop (1);
}
}
function onEnterFrame() {
f_state();
}
f_state();
Symbol 232 MovieClip Frame 5
_root.game.alien.walksounds();
Symbol 232 MovieClip Frame 20
_root.game.alien.walksounds();
Symbol 237 MovieClip Frame 9
_root.game.alien.walksounds();
Symbol 237 MovieClip Frame 21
_root.game.alien.walksounds();
Symbol 253 MovieClip Frame 5
_root.game.alien.walksounds();
Symbol 253 MovieClip Frame 17
_root.game.alien.walksounds();
Symbol 254 MovieClip Frame 5
_root.game.alien.walksounds();
Symbol 254 MovieClip Frame 20
_root.game.alien.walksounds();
Symbol 255 MovieClip Frame 9
_root.game.alien.walksounds();
Symbol 255 MovieClip Frame 21
_root.game.alien.walksounds();
Symbol 271 MovieClip Frame 9
_root.game.alien.walksounds();
Symbol 271 MovieClip Frame 21
_root.game.alien.walksounds();
Symbol 275 MovieClip Frame 12
_root.game.alien.got_gun = false;
_root.f_sound("arm", 1);
Symbol 275 MovieClip Frame 36
_parent.gotoAndStop(1);
Symbol 275 MovieClip Frame 54
_root.f_sound("arm", 1);
Symbol 275 MovieClip Frame 60
_parent.gotoAndStop(1);
Symbol 276 MovieClip Frame 1
_root.cinema = true;
_root.f_sound("arm", 1);
Symbol 276 MovieClip Frame 15
_parent.got_gun = true;
Symbol 276 MovieClip Frame 19
_root.cinema = false;
_parent.gotoAndStop(1);
Symbol 294 MovieClip Frame 8
_root.f_sound("lasershot", 1);
if (_parent.deflect != true) {
gotoAndPlay ("fire");
}
Symbol 294 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 294 MovieClip Frame 19
if (((_parent._x > _root.m_target._x) && (_parent.dir == "left")) || ((_parent._x < _root.m_target._x) && (_parent.dir == "right"))) {
_root.m_target.play();
}
Symbol 294 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 310 MovieClip Frame 46
_parent.gotoAndStop(1);
Symbol 311 MovieClip [player] Frame 1
#initclip 34
Object.registerClass("player", player);
#endinitclip
deflect = false;
stop();
Symbol 328 Button
on (press) {
play();
}
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 12
stop();
Symbol 329 MovieClip Frame 20
stop();
Symbol 329 MovieClip Frame 28
stop();
Symbol 329 MovieClip Frame 35
stop();
Symbol 329 MovieClip Frame 42
stop();
Symbol 329 MovieClip Frame 49
stop();
Symbol 329 MovieClip Frame 69
gotoAndStop (1);
Symbol 346 MovieClip Frame 40
stop();
Symbol 358 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 359 Button
on (press) {
gotoAndStop ("end");
_root.nextFrame();
}
Instance of Symbol 336 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 360 MovieClip Frame 101
play();
Symbol 360 MovieClip Frame 165
stop();
Symbol 366 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 372 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 374 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 376 Button
on (press) {
getURL ("http://www.diverge.ws", "_blank");
}
Symbol 377 Button
on (press) {
getURL ("http://www.zeebarf.com", "_blank");
}
Symbol 378 Button
on (press) {
getURL ("http://www.newgrounds.com/refer/zeebarf", "_blank");
}
Symbol 379 Button
on (press) {
getURL ("http://www.myspace.com/mitchellbowden", "_blank");
}
Symbol 380 Button
on (press) {
getURL ("http://www.myspace.com/davids1977", "_blank");
}
Symbol 382 MovieClip Frame 1
stop();
Symbol 385 Button
on (release) {
this._visible = false;
}
Symbol 394 MovieClip Frame 1
_visible = false;
var checkConnection = function (event) {
if (!event.success) {
_visible = true;
gotoAndStop (3);
}
};
if (com.Newgrounds.NewgroundsAPI.isNewgrounds() || (_root.API_Settings.debug_mode)) {
com.Newgrounds.NewgroundsAPI.addEventListener(com.Newgrounds.NewgroundsAPI.events.MOVIE_CONNECTED, checkConnection);
if ((!com.Newgrounds.NewgroundsAPI.hasUserSession()) && (!_root.API_Settings.debug_mode)) {
_visible = true;
gotoAndStop (2);
}
}
com.Newgrounds.NewgroundsAPI.setMovieVersion(_root.API_Settings.movie_version);
com.Newgrounds.NewgroundsAPI.connectMovie(_root.API_Settings.movie_id, _root.API_Settings.enc_key, _root.API_Settings.debug_mode);
com.Newgrounds.NewgroundsAPI.loadMedals();
stop();
Symbol 407 MovieClip Frame 1
function unlockMedal(m_name) {
clearInterval(pop_delay);
var _local1 = com.Newgrounds.NewgroundsAPI.getMedals();
var _local2 = null;
for (i in _local1) {
if (_local1[i].medal_name == m_name) {
_local2 = _local1[i];
medal_name = _local2.medal_name;
medal_value = _local2.medal_value + "pts";
com.Newgrounds.NewgroundsAPI.unlockMedal(medal_name);
pop_delay = setInterval(endDelay, 3000);
_visible = true;
gotoAndPlay (2);
break;
}
}
}
function endDelay(params) {
gotoAndPlay (10);
clearInterval(pop_delay);
}
var pop_delay;
var medal_name = "?????";
var medal_value = "???";
_visible = false;
Symbol 407 MovieClip Frame 10
var myBitmapData = flash.display.BitmapData.loadBitmap(medal_name + ".gif");
medal_icon.attachBitmap(myBitmapData, 111);
stop();
Symbol 1830 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 1831 MovieClip [__Packages.com.Newgrounds.BaseN] Frame 0
class com.Newgrounds.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 1832 MovieClip [__Packages.com.Newgrounds.NewgroundsAPIError] Frame 0
class com.Newgrounds.NewgroundsAPIError
{
var message, name, alias;
function NewgroundsAPIError (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_FOLDER", "FILE_NOT_FOUND", "SITE_ID_REQUIRED", "UPLOAD_IN_PROGRESS", "USER_CANCELLED", "CONFIRM_REQUEST", "CONNECTION_FAILED");
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 1833 MovieClip [__Packages.com.Newgrounds.NewgroundsAPI] Frame 0
class com.Newgrounds.NewgroundsAPI
{
static var version, user_email, movie_id, debug, session_id, publisher_id, timeout, connected, tracker_id, encryption_key, user_id, user_name, host, error_format, normal_format, link_format, header_format, ad_url, ad_swf_url;
function NewgroundsAPI () {
}
static function setMovieVersion(v) {
if (v) {
version = String(v);
}
}
static function setUserEmail(e) {
user_email = e;
}
static function getOfficialVersionURL() {
var _local1 = (((((GATEWAY_URL + "?tracker_id=") + movie_id) + "&command_id=") + getCommandID("loadOfficalVersion")) + "&seed=") + Math.random();
if (debug) {
_local1 = _local1 + "&debug=1";
}
return(_local1);
}
static function hasUserSession() {
if (session_id && (publisher_id)) {
return(true);
}
if (_root.NewgroundsAPI_PublisherID && (_root.NewgroundsAPI_SessionID)) {
return(true);
}
return(false);
}
static function isNewgrounds() {
return(((publisher_id == 1) || (_root.NewgroundsAPI_PublisherID == 1)) || (getHost().toLowerCase().indexOf("ungrounded.net") > -1));
}
static function hasPublisher() {
return(publisher_id || (_root.NewgroundsAPI_PublisherID));
}
static function hasUserEmail() {
if (user_email) {
return(true);
}
return(false);
}
static function connectionTimeOut() {
clearInterval(timeout);
callListener(events.MOVIE_CONNECTED, false, new com.Newgrounds.NewgroundsAPIError("CONNECTION_FAILED", "Connection to NewgroundsAPI gateway timed out."));
}
static function connectMovie(m_id, encrypt_key, debug_mode) {
if (connected) {
return(undefined);
}
var _local2 = function () {
com.Newgrounds.NewgroundsAPI.connectionTimeOut();
};
timeout = setInterval(_local2, 8000, null);
if (!m_id) {
fatalError("NewgroundsAPI.connectMovie() - missing required movie_id parameter", "connectMovie");
}
movie_id = String(m_id);
tracker_id = Number(movie_id.substring(0, movie_id.indexOf(":")));
encryption_key = encrypt_key;
debug = debug_mode;
if (_root.NewgroundsAPI_PublisherID) {
publisher_id = _root.NewgroundsAPI_PublisherID;
if (_root.NewgroundsAPI_SessionID) {
session_id = _root.NewgroundsAPI_SessionID;
}
} else {
publisher_id = 1;
session_id = null;
user_id = 0;
user_name = "Guest";
}
if (_root.NewgroundsAPI_UserName) {
user_name = _root.NewgroundsAPI_UserName;
}
if (_root.NewgroundsAPI_UserID) {
user_id = _root.NewgroundsAPI_UserID;
}
connected = true;
sendCommand("connectMovie", {host:getHost(), movie_version:version});
}
static function getHost() {
if (!host) {
var _local1 = _url;
if ((_local1.indexOf("http://") > -1) or (_local1.indexOf("https://") > -1)) {
host = _local1.split("/")[2].toLowerCase();
} else {
host = "localhost";
}
}
return(host);
}
static function loadNewgrounds() {
sendCommand("loadNewgrounds", {host:getHost()}, true);
}
static function loadMySite() {
sendCommand("loadMySite", {host:getHost()});
}
static function loadCustomLink(link) {
sendCommand("loadCustomLink", {host:getHost(), link:link}, true);
}
static function logCustomEvent(event) {
sendCommand("logCustomEvent", {host:getHost(), event:event});
}
static function postScore(score, value, get_best) {
if ((!score) or (value == undefined)) {
sendError({command_id:getCommandID("postScore")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required parameter(s)"));
return(undefined);
}
sendSecureCommand("postScore", {score:score, value:value, get_best:get_best});
}
static function getTodaysScores(score, params) {
getScores(score, "t", params, "getTodaysScores");
}
static function getYesterdaysScores(score, params) {
getScores(score, "y", params, "getYesterdaysScores");
}
static function getThisWeeksScores(score, params) {
getScores(score, "w", params, "getThisWeeksScores");
}
static function getThisMonthsScores(score, params) {
getScores(score, "m", params, "getThisMonthsScores");
}
static function getThisYearsScores(score, params) {
getScores(score, "y", params, "getThisYearsScores");
}
static function getAlltimeScores(score, params) {
getScores(score, "a", params, "getAlltimeScores");
}
static function getScores(score, period, params, command_name) {
if (!score) {
sendError({command_id:getCommandID(command_name)}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required score name"));
return(undefined);
}
if (!params) {
params = new Object();
}
if (!hasUserSession()) {
callListener(events.SCORES_LOADED, false, new com.Newgrounds.NewgroundsAPIError("SITE_ID_REQUIRED", ("Host '" + getHost()) + "' does not have high scores enabled"));
return(undefined);
}
params.publisher_id = publisher_id;
params.period = period;
params.score = score;
if (params.user_id) {
var _local3 = period;
} else {
var _local3 = period + "-u";
}
if (score_page_counts[_local3] == undefined) {
params.request_page_count = true;
}
sendCommand("getScores", params);
}
static function unlockMedal(medal, get_score) {
if (!medal) {
sendError({command_id:getCommandID("unlockMedal")}, new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", "missing required medal name"));
return(undefined);
}
var _local1 = new Object();
_local1.medal = medal;
if (get_score) {
_local1.get_score = get_score;
}
sendSecureCommand("unlockMedal", _local1);
}
static function loadMedals() {
if (medals) {
callListener(events.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 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();
if (sharedObjects[save_id].data[save_id]) {
return(decodeData(sharedObjects[save_id].data[save_id]));
}
return(null);
}
static function encodeData(data) {
return(compressHex(com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(data), encryption_key)));
}
static function decodeData(base) {
return(com.Newgrounds.JSON.decode(com.Newgrounds.RC4.decrypt(uncompressHex(base), encryption_key)));
}
static function compressHex(hex_value) {
var _local5 = hex_value.length % 6;
var _local4 = "";
var _local1 = 0;
while (_local1 < hex_value.length) {
var _local2 = Number("0x" + hex_value.substr(_local1, 6));
_local4 = _local4 + compressor.encode(_local2, 4);
_local1 = _local1 + 6;
}
return(_local5 + _local4);
}
static function uncompressHex(base_value) {
var _local8 = Number(base_value.charAt(0));
var _local7 = "";
var _local3;
var _local2 = 1;
while (_local2 < base_value.length) {
var _local6 = base_value.substr(_local2, 4);
var _local5 = compressor.decode(_local6);
var _local1 = dec2hex(_local5);
if ((_local2 + 4) < base_value.length) {
_local3 = 6;
} else {
_local3 = _local8;
}
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 saveFile(folder, filename, contents, thumbnail_source) {
if (!save_file) {
save_file = new com.Newgrounds.NewgroundsAPISaveFile(movie_id, folder, filename);
save_file.setContents(contents);
if (thumbnail_source) {
save_file.setThumbnail(thumbnail_source);
}
save_file.onError = function (msg) {
var _local1 = new com.Newgrounds.NewgroundsAPIError("PERMISSION_DENIED", msg);
com.Newgrounds.NewgroundsAPI.sendError({command_id:com.Newgrounds.NewgroundsAPI.getCommandID("saveFile")}, _local1);
com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1);
};
save_file.onCancel = function (msg) {
var _local1 = new com.Newgrounds.NewgroundsAPIError("USER_CANCELLED", msg);
com.Newgrounds.NewgroundsAPI.callListener(com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, false, _local1);
};
save_file.submit();
} else {
var _local1 = new com.Newgrounds.NewgroundsAPIError("UPLOAD_IN_PROGRESS", "Please wait for the previous file to finish uploading");
sendError({command_id:getCommandID("saveFile")}, _local1);
callListener(events.FILE_SAVED, false, _local1);
}
}
static function checkFilePrivs(folder, filename) {
if (user_id) {
var _local1 = user_id;
} else {
var _local1 = 0;
}
var _local2 = {folder:folder, filename:filename, user_id:_local1, publisher_id:publisher_id};
sendCommand("checkFilePrivs", _local2);
}
static function finishFileSave(folder, filename, description, share, file, thumbnail) {
var _local2;
_local2 = {folder:folder, filename:filename, description:description, share:share};
var _local1;
_local1 = {file:file, thumbnail:thumbnail};
sendSecureCommand("saveFile", _local2, null, _local1);
}
static function getFiles(folder, options) {
var _local7 = {name:1, date:2, score:3};
var _local2 = {user_only:false, sort_on:"date", page:1, results_per_page:20, sort_descending:true};
var _local6 = new Array();
for (var _local10 in _local7) {
_local6.push(("'" + _local10) + "'");
}
var _local4 = new Array();
for (var _local9 in _local2) {
_local4.push(("'" + _local9) + "'");
}
if (options.sort_descending && (!_local7[options.sort_descending])) {
var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + options.sort_descending) + "' is not a valid sort_on value. Valid values are: ") + _local6.join(", "));
sendError({command_id:getCommandID("getFiles")}, _local3);
delete options.sort_descending;
}
var _local8;
if (options) {
for (var _local10 in options) {
if (_local2[_local10] == undefined) {
var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("'" + _local10) + "' is not a valid option. Valid options are: ") + _local4.join(", "));
sendError({command_id:getCommandID("getFiles")}, _local3);
delete options[_local10];
} else if (typeof(options[_local10]) != typeof(_local2[_local10])) {
var _local3 = new com.Newgrounds.NewgroundsAPIError("MISSING_PARAM", (("option '" + _local10) + "' should be the following type: ") + typeof(_local2[_local10]));
sendError({command_id:getCommandID("getFiles")}, _local3);
delete options[_local10];
}
}
_local8 = options;
} else {
_local8 = new Object();
}
if (hasUserSession()) {
_local8.publisher_id = publisher_id;
_local8.user_id = user_id;
}
_local8.folder = folder;
sendCommand("getFiles", _local8);
}
static function getConfirmation(command_name, event, msg, target, confirm, cancel) {
var _local1 = new com.Newgrounds.NewgroundsAPIError("CONFIRM_REQUEST", msg);
_local1.confirm = function () {
target[confirm]();
};
_local1.cancel = function () {
target[cancel]();
};
_local1.command = getCommandID(command_name);
callListener(event, false, _local1);
}
static function doBlockHost(event) {
_root.stop();
initTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + getHost()) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + event.data.movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = event.data.redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function onNewVersionAvailable(event) {
_root.stop();
initTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + event.data.movie_version) + " is now available at:") + newline;
var _local6 = _local3.length;
_local3 = _local3 + event.data.movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = event.data.redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local6, _local4, link_format);
}
static function initTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function doEvent(e) {
switch (getCommandName(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(events.MOVIE_CONNECTED, e.success, {movie_name:e.movie_name});
var _local4 = false;
if (e.ad_status === -1) {
var _local6 = "This movie was not approved to run Flash Ads.";
sendWarning(_local6);
sendWarning(("visit " + AD_TERMS_URL) + " to view our approval guidelines");
if (!e.ad_url) {
callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local6));
} else {
_local4 = true;
}
} else if (e.ad_status === 0) {
var _local6 = "Flash Ads are currently awaiting approval.";
sendNotice(_local6);
if (!e.ad_url) {
callListener(events.ADS_APPROVED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", _local6));
} else {
_local4 = true;
}
}
if (e.ad_url) {
ad_url = unescape(e.ad_url);
if (!_local4) {
sendMessage("This movie has been approved to run Flash Ads!");
}
callListener(events.ADS_APPROVED, true);
}
if (e.deny_host) {
var _local6 = getHost() + " does not have permission to run this movie!";
sendWarning(_local6);
sendWarning("\tUpdate your API configuration to unblock " + getHost());
callListener(events.HOST_BLOCKED, true, {movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()});
}
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(events.NEW_VERSION_AVAILABLE, true, {movie_version:e.movie_version, movie_url:unescape(e.movie_url), redirect_url:getOfficialVersionURL()});
}
if (e.request_portal_url) {
sendCommand("setPortalID", {portal_url:_url});
}
break;
case "logCustomEvent" :
if (e.success) {
sendMessage(("Event '" + e.event) + "' was logged.");
}
callListener(events.EVENT_LOGGED, e.success, {event:e.event});
break;
case "postScore" :
var _local7;
if (e.success) {
var _local3 = "User";
if (user_email) {
_local3 = user_email;
} else if (user_name) {
_local3 = user_name;
}
sendMessage(((((_local3 + " posted ") + e.value) + " to '") + e.score) + "'");
_local7 = {score:e.score, value:e.value, username:_local3};
}
callListener(events.SCORE_POSTED, e.success, _local7);
break;
case "getScores" :
_local7 = new Object();
if (e.user_id) {
var _local5 = e.period;
} else {
var _local5 = e.period + "-u";
}
if (e.total_pages) {
score_page_counts[_local5] = e.total_pages;
}
_local7.user_id = e.user_id;
_local7.current_page = e.current_page;
_local7.total_pages = score_page_counts[_local5];
_local7.scores = e.scores;
_local7.period = getPeriodName(e.period);
callListener(events.SCORES_LOADED, e.success, _local7);
break;
case "unlockMedal" :
if (medals) {
var _local2 = 0;
while (_local2 < medals.length) {
if (medals[_local2].medal_name === e.medal_name) {
medals[_local2].medal_unlocked = true;
break;
}
_local2++;
}
}
_local7 = {medal_name:e.medal_name, medal_value:e.medal_value, medal_difficulty:e.medal_difficulty};
callListener(events.MEDAL_UNLOCKED, e.success, _local7);
break;
case "getMedals" :
medals = e.medals;
_local7 = {medals:e.medals};
callListener(events.MEDALS_LOADED, e.success, _local7);
break;
case "getFiles" :
break;
case "getSystemFiles" :
break;
case "saveFile" :
save_file = null;
_local7 = {file_id:e.file_id, filename:e.filename, file_url:e.file_url, thumbnail:e.thumbnail, icon:e.icon};
callListener(events.FILE_SAVED, e.success, _local7);
break;
case "checkFilePrivs" :
if (save_file) {
save_file.checkPrivs(e);
} else {
_local7 = {filename:e.filename, folder:e.folder, can_read:e.can_read, can_write:e.can_write};
callListener(events.FILE_PRIVS_LOADED, e.success, _local7);
}
}
}
static function setDefaultListeners() {
var _local1 = new Array();
_local1[events.HOST_BLOCKED] = {listener:doBlockHost};
_local1[events.NEW_VERSION_AVAILABLE] = {listener:onNewVersionAvailable};
return(_local1);
}
static function addEventListener(event, listener, params) {
listeners[event] = {listener:listener, params:params};
}
static function removeEventListener(event) {
delete listeners[event];
}
static function getEventName(event) {
for (var _local2 in events) {
if (events[_local2] == event) {
return(_local2);
}
}
return(undefined);
}
static function callListener(event, success, data, target) {
echo("Fired Event: " + getEventName(event));
if (listeners[event]) {
if (data.isError()) {
listeners[event].listener({event:event, success:success, error:data, target:target}, listeners[event].params);
} else {
listeners[event].listener({event:event, success:success, data:data, target:target}, listeners[event].params);
}
}
}
static function getCommandName(id) {
return(id);
}
static function getCommandID(name) {
return(name);
}
static function getPeriodAliases() {
var _local1 = new Object();
for (var _local2 in period_aliases) {
_local1[period_aliases[_local2].alias] = _local2;
}
return(_local1);
}
static function getPeriodName(p) {
for (var _local2 in period_aliases) {
if (_local2 == p) {
return(period_aliases[_local2].name);
}
}
return(null);
}
static function getPeriodAlias(p) {
for (var _local2 in period_aliases) {
if (_local2 == p) {
return(period_aliases[_local2].alias);
}
}
return(null);
}
static function sendError(c, e) {
trace((((((("[NewgroundsAPI ERROR] :: " + getCommandName(c.command_id)) + "() - ") + e.name) + ":") + newline) + "\t\t\t\t") + e.message);
}
static function sendWarning(m, c) {
if (c) {
m = m + ((("\r[NewgroundsAPI WARNING] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information.");
}
trace("[NewgroundsAPI WARNING] :: " + m);
}
static function sendNotice(m, c) {
if (c) {
m = m + ((("\r[NewgroundsAPI NOTICE] :: \tSee " + COMMANDS_WIKI_URL) + c.toLowerCase()) + " for additional information.");
}
trace("[NewgroundsAPI 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=NewgroundsAPI") + newline) + newline) + m;
}
static function sendSecureCommand(command, secure_params, unsecure_params, files) {
if (((!debug) && (!hasUserSession())) && (!hasUserEmail())) {
sendError({command_id:getCommandID(command)}, new com.Newgrounds.NewgroundsAPIError("IDENTIFICATION_REQUIRED", ("You must be logged in or provide an e-mail address ( using NewgroundsAPI.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) {
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 = getCommandID(command);
var _local8 = com.Newgrounds.MD5.calculate(_local2);
var _local6 = com.Newgrounds.RC4.encrypt(com.Newgrounds.JSON.encode(secure_params), encryption_key);
var _local7 = _local8 + _local6;
unsecure_params.secure = compressHex(_local7);
sendCommand("securePacket", unsecure_params, false, files);
}
static function sendCommand(command, params, open_browser, files) {
if ((!connected) and (command != "connectMovie")) {
var _local11 = (("NewgroundsAPI." + command) + "() - NewgroundsAPI.connectMovie() must be called before this command can be called") + newline;
fatalError(_local11, "connectMovie");
}
if (open_browser) {
var _local1 = new Object();
} else {
var _local1 = new LoadVars();
}
_local1.command_id = getCommandID(command);
_local1.tracker_id = movie_id;
if (debug) {
_local1.debug = debug;
}
if (params) {
for (var _local8 in params) {
_local1[_local8] = params[_local8];
}
}
if (files) {
for (var _local8 in files) {
_local1[_local8] = files[_local8];
}
}
echo(("OUTPUT: \r" + com.Newgrounds.JSON.encode(_local1)) + newline);
if (open_browser) {
var _local5 = (GATEWAY_URL + "?seed=") + Math.random();
for (var _local8 in _local1) {
_local5 = _local5 + ((("&" + escape(_local8)) + "=") + escape(_local1[_local8]));
}
getURL (_local5, "_blank");
_local1.removeMovieClip();
} else {
var _local9 = new LoadVars();
_local9.onData = function (data) {
com.Newgrounds.NewgroundsAPI.echo(("INPUT: \r" + data) + newline);
if (data) {
var _local1 = com.Newgrounds.JSON.decode(data);
} else {
var _local1 = {success:false};
}
if (!_local1.success) {
var _local3 = new com.Newgrounds.NewgroundsAPIError(_local1.error_code, _local1.error_msg);
com.Newgrounds.NewgroundsAPI.sendError(_local1, _local3);
} else {
com.Newgrounds.NewgroundsAPI.doEvent(_local1);
}
};
var _local4 = new Array();
for (var _local7 in _local1) {
_local4.push((_local7 + "=") + escape(_local1[_local7]));
}
echo((("POST " + GATEWAY_URL) + "?") + _local4.join("&"));
_local1.sendAndLoad((GATEWAY_URL + "?seed=") + Math.random(), _local9, "POST");
}
}
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);
loadMovie (ad_swf_url, target.clip.ad);
callListener(events.AD_ATTACHED, true, null, target);
} else {
callListener(events.AD_ATTACHED, false, new com.Newgrounds.NewgroundsAPIError("FLASH_ADS_NOT_APPROVED", "Unable to render ad"));
}
}
static function attachFlashAd(target) {
System.security.allowDomain("http://server.cpmstar.com");
System.security.allowDomain("http://www.cpmstar.com");
System.security.allowDomain("https://server.cpmstar.com");
System.security.allowDomain("https://www.cpmstar.com");
System.security.allowInsecureDomain("http://server.cpmstar.com");
System.security.allowInsecureDomain("http://www.cpmstar.com");
System.security.allowInsecureDomain("https://server.cpmstar.com");
System.security.allowInsecureDomain("https://www.cpmstar.com");
sendMessage("You may get a security sandbox violation from this ad. This is nothing to worry about!");
if (resetAdTimer()) {
if (ad_url) {
var _local1 = new LoadVars();
_local1.onData = function (data) {
if (data) {
com.Newgrounds.NewgroundsAPI.ad_swf_url = data;
} else {
com.Newgrounds.NewgroundsAPI.ad_swf_url = null;
}
com.Newgrounds.NewgroundsAPI.renderAd(target);
};
if (ad_url.indexOf("?") > -1) {
_local1.load((ad_url + "&random=") + Math.random());
} else {
_local1.load((ad_url + "?random=") + Math.random());
}
}
} else {
renderAd(target);
}
}
static function resetAdTimer() {
if (!ad_url) {
return(false);
}
var _local1 = new Date();
if (_local1.getTime() >= ad_reset) {
ad_reset = _local1.getTime() + 300000;
return(true);
}
return(false);
}
static function sendMessage(m, r) {
var _local1 = "[NewgroundsAPI] :: " + m;
if (r) {
return(_local1);
}
trace(_local1);
}
static function echo(m) {
if (do_echo) {
trace(m);
}
}
static var do_echo = false;
static var GATEWAY_URL = "http://www.ngads.com/gateway_v2.php";
static var AD_TERMS_URL = "http://www.newgrounds.com/wiki/flashads/terms/";
static var COMMANDS_WIKI_URL = "http://www.newgrounds.com/wiki/flashapi/commands/";
static var ad_reset = 0;
static var save_file = null;
static var medals = null;
static var score_page_counts = new Object();
static var compression_radix = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
static var compressor = new com.Newgrounds.BaseN(compression_radix);
static var errors = com.Newgrounds.NewgroundsAPIError.init_codes();
static var sharedObjects = new Object();
static var events = {MOVIE_CONNECTED:1, ADS_APPROVED:2, AD_ATTACHED:3, HOST_BLOCKED:4, NEW_VERSION_AVAILABLE:5, EVENT_LOGGED:6, SCORE_POSTED:7, SCORES_LOADED:8, MEDAL_UNLOCKED:9, MEDALS_LOADED:10, FILE_PRIVS_LOADED:11, FILE_SAVED:12};
static var listeners = setDefaultListeners();
static var periods = getPeriodAliases();
static var period_aliases = {t:{name:"Today", alias:"TODAY"}, p:{name:"Yesterday", alias:"YESTERDAY"}, w:{name:"This Week", alias:"THIS_WEEK"}, m:{name:"This Month", alias:"THIS_MONTH"}, y:{name:"This Year", alias:"THIS_YEAR"}, a:{name:"All-Time", alias:"ALL_TIME"}};
}
Symbol 1834 MovieClip [__Packages.com.Newgrounds.NewgroundsAPISaveFile] Frame 0
class com.Newgrounds.NewgroundsAPISaveFile
{
var tracker_id, folder, filename, contents, thumbnail, icon_url, thumbnail_url, description, scan, scanner;
function NewgroundsAPISaveFile (tracker_id, folder, filename) {
this.tracker_id = tracker_id;
this.folder = folder;
this.filename = filename;
contents = null;
thumbnail = null;
icon_url = null;
thumbnail_url = null;
}
function setDescription(description) {
this.description = description;
}
function setShared(share) {
this.share = share;
}
function setContents(contents) {
this.contents = contents;
}
function setThumbnail(thumb) {
if (thumb) {
thumbnail = thumb;
} else {
thumbnail = null;
}
}
function onError(msg) {
trace("[NewgroundsAPISaveFile ERROR] :: " + msg);
}
function onCancel(msg) {
trace("[NewgroundsAPISaveFile] :: " + msg);
}
function submit() {
scan = null;
com.Newgrounds.NewgroundsAPI.checkFilePrivs(folder, filename);
}
function checkPrivs(p) {
if (p.success) {
if (p.can_write) {
can_write = p.can_write;
if (p.exists) {
com.Newgrounds.NewgroundsAPI.getConfirmation("saveFile", com.Newgrounds.NewgroundsAPI.events.FILE_SAVED, ("File '" + filename) + "' exists, overwrite?", this, "startFile", "cancelFile");
} else {
startFile();
}
} else {
onError("This filename is owned by another user.");
}
} else {
onError("There was a problem looking up your file's details");
}
}
function cancelFile() {
onCancel("Overwrite was cancelled");
}
function startFile() {
if (can_write) {
if (thumbnail) {
scanner = new com.Newgrounds.ImageScanner(thumbnail);
scanner.setCallback(this, "writeFile");
scanner.startScan(100, 100, true);
} else {
writeFile();
}
} else {
onError(("You cannot write to filename \"" + filename) + "\"");
}
}
function writeFile(img) {
trace("FINISHED");
com.Newgrounds.NewgroundsAPI.finishFileSave(folder, filename, description, share, com.Newgrounds.JSON.encode(contents), img);
}
var can_write = false;
var share = true;
}
Symbol 1835 MovieClip [__Packages.com.Newgrounds.ImageScanner] Frame 0
class com.Newgrounds.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.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 drawChunk() {
if (!busy) {
busy = true;
var _local2 = 0;
while (_local2 < 250) {
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 debug = new Object();
}
Symbol 1836 MovieClip [__Packages.com.Newgrounds.JSON] Frame 0
class com.Newgrounds.JSON
{
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 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());
}
}
Symbol 1837 MovieClip [__Packages.com.Newgrounds.RC4] Frame 0
class com.Newgrounds.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 1838 MovieClip [__Packages.com.Newgrounds.MD5] Frame 0
class com.Newgrounds.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 1839 MovieClip [__Packages.item] Frame 0
class item extends MovieClip
{
var diff_x, _width, _x, diff_y, _height, _y, blur_amount, m_over, alive, filters, enemy, _name, dof, _visible, id, nextFrame, enemy_interact, play, cacheAsBitmap, _currentframe, useHandCursor;
function item () {
super();
}
function mouse() {
diff_x = Math.abs((_x + _width) - (_root._xmouse - _root.game._x));
diff_y = Math.abs((_y + _height) - (_root._ymouse - _root.game._y));
blur_amount = ((diff_x + diff_y) / (Stage.width + Stage.height)) * 5;
if (((m_over == true) && (_root.m_aim == true)) && (alive == false)) {
_root.m_aim = false;
} else if ((m_over == true) && (alive != false)) {
if (_root.cinema != true) {
if (collectable == true) {
filters = [new flash.filters.GlowFilter(16777215, 0.5, 8, 8, 2, 1)];
} else if (enemy == true) {
_root.m_aim = true;
} else {
filters = [];
}
_root.m_item = true;
}
if ((_root.m_click == true) && (_root.cinema != true)) {
if ((_root.cursor._currentframe > 1) && (_root.game.alien._currentframe < 3)) {
_root.f_item_use(_name);
}
_root.cursor.gotoAndStop(1);
if (((_root.game.alien.gun == true) || (_root.alien_fixed == true)) && (enemy == true)) {
if ((_x > _root.game.alien._x) && (_root.game.alien.dir != "right")) {
_root.game.alien.dir = "right";
} else if ((_x < _root.game.alien._x) && (_root.game.alien.dir == "right")) {
_root.game.alien.dir = "left";
}
if ((_root.alien_fixed == false) && (_root.gun_active == true)) {
_root.game.alien.gotoAndStop("shoot");
} else {
_root.game.alien_arm.play();
}
_root.m_target = this;
} else {
_root.game.alien.walkto(new Array(_x + interact_x, (_y + 100) + interact_y));
}
if (_root.game.alien._currentframe < 3) {
_root.m_target = this;
}
}
if (_root.m_target == this) {
_root.m_click = false;
}
}
if (_root.cinema != true) {
if (((collectable == true) && (m_over != true)) || (dof == true)) {
filters = [];
}
} else {
filters = [];
}
}
function interact() {
if (collectable == true) {
_visible = false;
_root.f_get_item(id);
nextFrame();
} else {
_root.interacting = true;
if ((enemy != true) || ((enemy_interact == true) && (_root.game.alien.gun != true))) {
play();
}
}
}
function onLoad() {
cacheAsBitmap = true;
if ((_root.game["get_" + id] == true) && (collectable == true)) {
_visible = false;
}
}
function onEnterFrame() {
if (_visible == true) {
mouse();
}
if ((_root.cinema == true) && (_currentframe > 1)) {
useHandCursor = false;
} else if (alive != false) {
useHandCursor = true;
} else {
useHandCursor = false;
}
}
function onRelease() {
}
function onRollOver() {
if (alive != false) {
m_over = true;
}
}
function onDragOut() {
_root.m_item = false;
_root.m_aim = false;
m_over = false;
}
function onRollOut() {
_root.m_item = false;
_root.m_aim = false;
m_over = false;
}
var interact_x = 0;
var interact_y = 0;
var collectable = false;
}
Symbol 1840 MovieClip [__Packages.npc] Frame 0
class npc extends item
{
var _xscale, _y, _yscale, size, ratio_y, dest_x, org_x, _x, dir, alive, mouse, useHandCursor;
function npc () {
super();
}
function scale() {
_xscale = 30 + (_root.min_size + (((_y - _root.limit_up) / (_root.limit_down - _root.limit_up)) * (_root.max_size - _root.min_size)));
_yscale = _xscale;
size = Math.abs(_xscale / 100);
ratio_y = ((_root.limit_down - _root.limit_up) / Stage.height) * 2;
}
function movement() {
if (random(50) == 1) {
dest_x = (org_x - 50) + random(100);
}
if (Math.abs(_x - dest_x) < Math.abs(speed)) {
dest_x = _x;
speed_x = 0;
} else if (_x < dest_x) {
speed_x = speed;
} else if (_x > dest_x) {
speed_x = -speed;
}
if (_y < _root.limit_up) {
speed_y = speed_fall;
} else {
speed_y = 0;
}
_x = _x + (speed_x * size);
_y = _y + speed_y;
scale();
if (speed_x > 0) {
dir = "right";
} else if (speed_x < 0) {
dir = "left";
}
if (((dir == "right") && (_xscale > 0)) || ((dir == "left") && (_xscale < 0))) {
_xscale = _xscale * -1;
}
}
function onEnterFrame() {
if (alive != false) {
mouse();
movement();
useHandCursor = true;
} else {
useHandCursor = false;
}
}
var speed = 3;
var speed_fall = 9;
var speed_x = 0;
var speed_y = 0;
}
Symbol 1841 MovieClip [__Packages.player] Frame 0
class player extends MovieClip
{
var _currentframe, angle, _y, _x, _xscale, _yscale, size, ratio_y, gotoAndStop, variant_frm, p;
function player () {
super();
if (_root.inventory_gun._currentframe == 3) {
unholstered = true;
gun = true;
}
}
function control() {
if ((((_root.m_click == true) && (m_click == false)) && (_root.m_inventory == false)) && (_root.m_item == false)) {
_root.interacting = false;
_root.cursor.gotoAndStop(1);
_root.cursor.cursor.play();
_root.m_target = null;
walkto(new Array(_root._xmouse - _root.game._x, (_root._ymouse - _root.game._y) + 20));
}
if (_root.m_click == true) {
m_click = true;
} else {
m_click = false;
}
}
function walksounds() {
if (_root.game.outside == true) {
_root.f_sound("gravelwalk", 1);
} else {
_root.f_sound("walk", 1);
}
}
function walkto(loc) {
if ((_root.walk == true) && (_currentframe < 3)) {
if ((Math.abs(loc[0] - old_dest_x) > 10) || (Math.abs(loc[1] - old_dest_y) > 20)) {
dest_x = loc[0];
dest_y = loc[1];
if (dest_y > _root.limit_down) {
dest_y = _root.limit_down;
} else if (dest_y < _root.limit_up) {
dest_y = _root.limit_up;
}
if (dest_x > _root.limit_right) {
dest_x = _root.limit_right;
} else if (dest_x < _root.limit_left) {
dest_x = _root.limit_left;
}
scale();
angle = _root.f_angle((dest_x - _x) / (dest_y - _y));
if (dest_y < _y) {
angle = angle + 180;
}
speed_x = Math.sin((Math.PI/180) * angle) * speed;
speed_y = Math.cos((Math.PI/180) * angle) * speed;
if (Math.abs(speed_x) > Math.abs(speed_y)) {
if (speed_x > 0) {
dir = "right";
}
if (speed_x < 0) {
dir = "left";
}
} else if (speed_y > 0) {
dir = "down";
} else if (speed_y < 0) {
dir = "up";
}
old_dest_x = dest_x;
old_dest_y = dest_y;
}
}
}
function scale() {
_xscale = _root.min_size + (((_y - _root.limit_up) / (_root.limit_down - _root.limit_up)) * (_root.max_size - _root.min_size));
_yscale = _xscale;
size = Math.abs(_xscale / 100);
ratio_y = ((_root.limit_down - _root.limit_up) / Stage.height) * 2;
}
function movement() {
if (_root.cinema == false) {
control();
}
if (_currentframe > 2) {
speed_x = 0;
speed_y = 0;
}
_x = _x + (speed_x * size);
_y = _y + (speed_y * size);
if (Math.abs(speed_x) < 0.5) {
speed_x = 0;
}
if (Math.abs(speed_y) < 0.5) {
speed_y = 0;
}
if (_root.limit_right_z == true) {
if (_x > (_root.limit_right * size)) {
_x = _root.limit_right * size;
speed_x = 0;
}
} else if (_x > _root.limit_right) {
_x = _root.limit_right;
speed_x = 0;
}
if (_root.limit_left_z == true) {
if (_x < (_root.limit_left * size)) {
_x = _root.limit_left * size;
speed_x = 0;
}
} else if (_x < _root.limit_left) {
_x = _root.limit_left;
speed_x = 0;
}
if (_root.exit_right == true) {
if (_x > (Stage.width / 2.24)) {
_root.f_advance(_root.area_right, _root.area_right_ent);
}
}
if (_root.exit_left == true) {
if (_x < ((-Stage.width) / 2.24)) {
_root.f_advance(_root.area_left, _root.area_left_ent);
}
}
if (_root.exit_down == true) {
if (_y > (Stage.height / 2.1)) {
_root.f_advance(_root.area_down, _root.area_down_ent);
}
}
if (_y > _root.limit_down) {
_y = _root.limit_down;
speed_y = 0;
}
if (_y < _root.limit_up) {
_y = _root.limit_up;
speed_y = 0;
}
if (Math.abs(_x - dest_x) < Math.abs(speed_x * 2)) {
speed_x = speed_x * 0.7;
dest_x = _x;
}
if (Math.abs(_y - dest_y) < Math.abs(speed_y * 2)) {
speed_y = speed_y * 0.7;
dest_y = _y;
}
if ((speed_x == 0) && (speed_y == 0)) {
if ((_root.m_target != null) && (_currentframe < 3)) {
_root.m_target.interact();
if ((_root.m_target.enemy != true) || (_root.game.alien.gun != true)) {
_root.m_target = null;
}
}
}
scale();
if (((dir == "right") && (_xscale > 0)) || ((dir == "left") && (_xscale < 0))) {
_xscale = _xscale * -1;
}
}
function animation() {
if ((gun == true) && (unholstered != true)) {
unholstered = true;
gotoAndStop("unholster");
} else if ((gun == false) && (unholstered == true)) {
unholstered = false;
gotoAndStop("holster");
}
if (((Math.abs(speed_x) > 0) || (Math.abs(speed_y) > 0)) && (_currentframe < 3)) {
gotoAndStop("walk");
} else if (_currentframe == 2) {
gotoAndStop(1);
}
variant_frm = 0;
if (dir == "down") {
variant_frm = 3;
} else if (dir == "up") {
variant_frm = 2;
} else {
variant_frm = 1;
}
if (gun == true) {
variant_frm = variant_frm + 3;
}
if (((_currentframe == 1) && (p._currentframe > 3)) && (gun == false)) {
p.p.play();
} else {
p.gotoAndStop(variant_frm);
}
}
function onEnterFrame() {
movement();
animation();
}
var m_click = false;
var m_over = false;
var holstering = false;
var unholstered = false;
var gun = false;
var speed = 6;
var speed_x = 0;
var speed_y = 0;
var dest_x = 0;
var dest_y = 0;
var old_dest_x = 0;
var old_dest_y = 0;
var dir = "";
var got_gun = false;
}
Symbol 416 Button
on (press) {
_parent.play();
}
Symbol 419 Button
on (press) {
play();
}
Symbol 425 Button
on (press) {
play();
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 27
stop();
Symbol 432 MovieClip Frame 20
stop();
Symbol 433 MovieClip Frame 25
stop();
Symbol 471 MovieClip Frame 1
_root.stop();
Symbol 471 MovieClip Frame 265
_parent.nextFrame();
Symbol 488 Button
on (press) {
play();
}
Symbol 490 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 490 MovieClip Frame 50
this.cacheAsBitmap = true;
Symbol 490 MovieClip Frame 100
stop();
Symbol 490 MovieClip Frame 144
_root.gotoAndStop("game");
Symbol 491 MovieClip Frame 19
stop();
Symbol 491 MovieClip Frame 20
stop();
Symbol 491 MovieClip Frame 21
stop();
Symbol 536 MovieClip Frame 1
stop();
Symbol 544 MovieClip [item_apartment] Frame 1
#initclip 69
Object.registerClass("item_apartment", item);
#endinitclip
this.cacheAsBitmap = true;
stop();
Symbol 544 MovieClip [item_apartment] Frame 2
_root.f_sound("doorslide", 1);
Symbol 544 MovieClip [item_apartment] Frame 24
_root.f_advance(-2, 2);
Symbol 550 MovieClip Frame 1
stop();
Symbol 551 MovieClip [item_ashtray] Frame 1
#initclip 36
Object.registerClass("item_ashtray", item);
#endinitclip
id = 9;
collectable = true;
Symbol 557 MovieClip [item_bathroomdoor] Frame 1
#initclip 37
Object.registerClass("item_bathroomdoor", item);
#endinitclip
this.cacheAsBitmap = true;
dof = true;
npc_interact = false;
interact_x = 50;
interact_y = 80;
stop();
Symbol 557 MovieClip [item_bathroomdoor] Frame 5
_root.f_sound("doorslide", 1);
_root.game.alien.dir = "left";
Symbol 557 MovieClip [item_bathroomdoor] Frame 20
if (npc_interact != true) {
_root.f_advance(2, 1);
}
Symbol 560 MovieClip [item_door1] Frame 1
#initclip 38
Object.registerClass("item_door1", item);
#endinitclip
this.cacheAsBitmap = true;
stop();
Symbol 560 MovieClip [item_door1] Frame 2
_root.cinema = true;
_root.f_sound("doorslide", 1);
Symbol 560 MovieClip [item_door1] Frame 16
_root.f_advance(area, ent);
gotoAndStop (1);
Symbol 563 MovieClip [item_door2] Frame 1
#initclip 39
Object.registerClass("item_door2", item);
#endinitclip
interact_y = 30;
stop();
Symbol 563 MovieClip [item_door2] Frame 2
_root.cinema = true;
_root.f_sound("doorslide", 1);
Symbol 563 MovieClip [item_door2] Frame 16
gotoAndStop (1);
_root.f_advance(area);
Symbol 564 MovieClip [item_door3] Frame 1
#initclip 40
Object.registerClass("item_door3", item);
#endinitclip
stop();
Symbol 564 MovieClip [item_door3] Frame 2
_root.f_advance(5, 1);
Symbol 565 MovieClip [item_door3 copy 2] Frame 1
#initclip 41
Object.registerClass("item_door3 copy 2", item);
#endinitclip
stop();
Symbol 565 MovieClip [item_door3 copy 2] Frame 2
_root.f_advance(7, 1);
Symbol 566 MovieClip [item_door3 copy 4] Frame 1
#initclip 42
Object.registerClass("item_door3 copy 4", item);
#endinitclip
stop();
Symbol 566 MovieClip [item_door3 copy 4] Frame 2
_root.f_advance(2, -1);
Symbol 567 MovieClip [item_door3 copy 5] Frame 1
#initclip 43
Object.registerClass("item_door3 copy 5", item);
#endinitclip
stop();
Symbol 567 MovieClip [item_door3 copy 5] Frame 2
_root.f_advance(1, -1);
Symbol 569 MovieClip [item_door4] Frame 1
#initclip 44
Object.registerClass("item_door4", item);
#endinitclip
stop();
Symbol 569 MovieClip [item_door4] Frame 2
_root.f_advance(1, 1);
Symbol 570 MovieClip [item_door5] Frame 1
#initclip 45
Object.registerClass("item_door5", item);
#endinitclip
interact_y = -30;
stop();
Symbol 570 MovieClip [item_door5] Frame 2
if ((_parent.lock1 != false) || (_parent.guard_pissing != true)) {
prevFrame();
} else {
_root.f_sound("doorslide", 1);
}
Symbol 570 MovieClip [item_door5] Frame 15
_root.f_advance(4, 1);
Symbol 572 MovieClip [item_elevator_door2] Frame 1
#initclip 46
Object.registerClass("item_elevator_door2", item);
#endinitclip
interact_x = -50;
interact_y = 30;
stop();
Symbol 572 MovieClip [item_elevator_door2] Frame 5
_root.f_sound("doorslide", 1);
Symbol 572 MovieClip [item_elevator_door2] Frame 15
_root.f_advance(-2, 3);
Symbol 577 MovieClip [item_embedded_head] Frame 1
#initclip 47
Object.registerClass("item_embedded_head", item);
#endinitclip
id = 25;
collectable = true;
if (_parent.get_25 == true) {
nextFrame();
} else {
stop();
}
Symbol 577 MovieClip [item_embedded_head] Frame 2
collectable = false;
_visible = true;
Symbol 579 MovieClip [item_fanswitch] Frame 1
#initclip 48
Object.registerClass("item_fanswitch", item);
#endinitclip
stop();
Symbol 579 MovieClip [item_fanswitch] Frame 2
_parent.fan1.play();
_root.cinema = true;
Symbol 591 MovieClip [item_faucet] Frame 1
#initclip 49
Object.registerClass("item_faucet", item);
#endinitclip
interact_y = 20;
dof = true;
if (_parent.hose == true) {
gotoAndStop ("hose");
} else if (_parent.water_running == true) {
gotoAndStop ("running");
} else {
stop();
}
Symbol 591 MovieClip [item_faucet] Frame 2
if (_root.used_item != 2) {
prevFrame();
} else {
gotoAndStop ("hose");
}
Symbol 591 MovieClip [item_faucet] Frame 9
if (_root.used_item != 2) {
prevFrame();
}
Symbol 591 MovieClip [item_faucet] Frame 10
_parent.hose = true;
if (_parent.water_running == true) {
_parent.fountain1.play();
} else {
_root.cinema = false;
}
Symbol 591 MovieClip [item_faucet] Frame 11
prevFrame();
Symbol 596 MovieClip [item_fire_alarm] Frame 1
#initclip 50
Object.registerClass("item_fire_alarm", item);
#endinitclip
stop();
Symbol 596 MovieClip [item_fire_alarm] Frame 2
_root.f_sound("alert", 4);
Symbol 596 MovieClip [item_fire_alarm] Frame 30
if (_parent.robo1_move != true) {
_parent.robo_cinema = true;
_root.cinema = true;
_parent.gotoAndStop(12);
} else {
prevFrame();
}
Symbol 607 MovieClip [item_generator] Frame 1
#initclip 51
Object.registerClass("item_generator", item);
#endinitclip
stop();
Symbol 607 MovieClip [item_generator] Frame 2
if (((_parent.shield1 == false) && (_root.inventory_gun._currentframe > 1)) && (_root.gun_active != true)) {
_root.game.alien.dir = "left";
_root.game.alien.gotoAndStop("charge");
_root.gun_active = true;
_root.f_sound("guncharge", 1);
}
prevFrame();
Symbol 610 MovieClip Frame 1
stop();
Symbol 611 MovieClip [item_gun] Frame 1
#initclip 52
Object.registerClass("item_gun", item);
#endinitclip
id = 17;
collectable = true;
stop();
Symbol 611 MovieClip [item_gun] Frame 2
_parent.chat0.gotoAndPlay(2);
Symbol 614 MovieClip [item_gun_charger] Frame 1
#initclip 53
Object.registerClass("item_gun_charger", item);
#endinitclip
dof = true;
interact_y = 260;
stop();
Symbol 614 MovieClip [item_gun_charger] Frame 2
if ((_root.inventory_gun._currentframe > 1) && (_root.gun_active != true)) {
_root.game.alien.dir = "left";
_root.game.alien.gotoAndStop("charge");
_root.gun_active = true;
_root.f_sound("guncharge", 1);
}
prevFrame();
Symbol 617 MovieClip [item_hatch1] Frame 1
#initclip 54
Object.registerClass("item_hatch1", item);
#endinitclip
interact_y = -85;
dof = true;
stop();
Symbol 617 MovieClip [item_hatch1] Frame 2
_root.f_advance(-3);
Symbol 622 MovieClip [item_microwave] Frame 1
#initclip 55
Object.registerClass("item_microwave", item);
#endinitclip
if (_parent.blowup == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 622 MovieClip [item_microwave] Frame 2
_root.f_sound("click", 1);
stop();
Symbol 622 MovieClip [item_microwave] Frame 3
if (_root.used_item == 18) {
_root.cinema = true;
_root.f_sound("microwave", 1);
_parent.alien.dir = "right";
} else {
prevFrame();
}
Symbol 622 MovieClip [item_microwave] Frame 118
_parent.lightflash.play();
Symbol 622 MovieClip [item_microwave] Frame 120
prevFrame();
Symbol 642 MovieClip [item_milos] Frame 1
#initclip 56
Object.registerClass("item_milos", item);
#endinitclip
enemy = true;
if (_parent.milos_dead == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 642 MovieClip [item_milos] Frame 2
_root.f_new_kill(4);
_root.milos = false;
_parent.milos_dead = true;
_root.f_sound("splat1", 1);
Symbol 642 MovieClip [item_milos] Frame 16
_root.f_complete_quest(3, 1);
alive = false;
stop();
Symbol 642 MovieClip [item_milos] Frame 17
prevFrame();
Symbol 658 MovieClip [item_power_screen] Frame 1
#initclip 57
Object.registerClass("item_power_screen", item);
#endinitclip
enemy = true;
if (_parent.lock1 == false) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 658 MovieClip [item_power_screen] Frame 2
if (_parent.bathroom_fan != false) {
prevFrame();
} else {
_parent.lock1 = false;
_root.f_sound("powerdown", 1);
_root.f_sound("boom1", 1);
}
Symbol 658 MovieClip [item_power_screen] Frame 11
prevFrame();
Symbol 693 MovieClip [item_robo1] Frame 1
#initclip 58
Object.registerClass("item_robo1", item);
#endinitclip
this.cacheAsBitmap = true;
interact_x = 100;
interact_y = 100;
if (_parent.robo_cinema != true) {
stop();
}
Symbol 693 MovieClip [item_robo1] Frame 2
if (_parent.robo_cinema != true) {
_parent.robo_speech.gotoAndStop(2);
prevFrame();
}
Symbol 693 MovieClip [item_robo1] Frame 101
_parent.robo_cinema = false;
_parent.robo1_move = true;
_root.cinema = false;
_root.f_advance(-2, 6);
Symbol 695 MovieClip [item_screwdriverattachment] Frame 1
#initclip 59
Object.registerClass("item_screwdriverattachment", item);
#endinitclip
id = 5;
if (_parent.get_5 == true) {
collectable = true;
nextFrame();
} else {
stop();
}
Symbol 695 MovieClip [item_screwdriverattachment] Frame 2
if (collectable != true) {
prevFrame();
} else {
_parent.hose1.collectable = false;
}
collectable = false;
Symbol 701 MovieClip [item_security_cylinder] Frame 1
#initclip 60
Object.registerClass("item_security_cylinder", item);
#endinitclip
function f_check() {
if (_parent.security2 != false) {
if (_root.used_item == 24) {
_root.cinema = false;
_parent.security2 = false;
_root.f_complete_quest(4, 1);
} else if (_parent.get_4 != true) {
_root.cinema = true;
_parent.panel1.play();
stop();
}
}
}
dof = true;
if (_parent.security2 == false) {
gotoAndStop (6);
} else if (_parent.panel_lock == false) {
gotoAndStop (4);
} else {
stop();
}
Symbol 701 MovieClip [item_security_cylinder] Frame 2
f_check();
Symbol 701 MovieClip [item_security_cylinder] Frame 5
f_check();
Symbol 701 MovieClip [item_security_cylinder] Frame 6
_root.cinema = false;
f_check();
Symbol 701 MovieClip [item_security_cylinder] Frame 7
prevFrame();
Symbol 710 MovieClip [item_security_door1] Frame 1
#initclip 61
Object.registerClass("item_security_door1", item);
#endinitclip
dof = true;
if (_parent.security1 == false) {
gotoAndStop(_totalframes - 1);
} else {
stop();
}
Symbol 710 MovieClip [item_security_door1] Frame 2
prevFrame();
Symbol 710 MovieClip [item_security_door1] Frame 3
_root.f_sound("powerdown", 1);
play();
Symbol 710 MovieClip [item_security_door1] Frame 7
stop();
Symbol 710 MovieClip [item_security_door1] Frame 8
_root.f_advance(1);
Symbol 711 MovieClip [item_securitybadge] Frame 1
#initclip 62
Object.registerClass("item_securitybadge", item);
#endinitclip
id = 8;
collectable = true;
interact_y = -100;
stop();
Symbol 723 MovieClip Frame 46
stop();
Symbol 724 MovieClip [item_securitycheck] Frame 1
#initclip 63
Object.registerClass("item_securitycheck", item);
#endinitclip
dof = true;
stop();
Symbol 724 MovieClip [item_securitycheck] Frame 2
if ((((_root.inventory_gun._currentframe > 1) && (_root.game.alien.gun != true)) && (_root.badge == 3)) && (_parent.security1 != false)) {
_root.inventory_gun.gotoAndStop(1);
_root.game.alien.gun = false;
_root.gun_active = false;
_root.cinema = true;
play();
} else {
prevFrame();
}
Symbol 724 MovieClip [item_securitycheck] Frame 5
_root.f_sound("disarm", 1);
Symbol 724 MovieClip [item_securitycheck] Frame 80
_root.cinema = false;
_root.inventory_gun.gotoAndStop(2);
stop();
Symbol 724 MovieClip [item_securitycheck] Frame 82
prevFrame();
Symbol 732 MovieClip [item_traderbug] Frame 1
#initclip 64
Object.registerClass("item_traderbug", item);
#endinitclip
interact_y = 300;
dof = true;
stop();
Symbol 732 MovieClip [item_traderbug] Frame 2
if ((_root.used_item == 9) && (_parent.get_2 != true)) {
_parent.trading1 = true;
_parent.traderbug_item = _root.used_item;
_parent.shelf.nextFrame();
_root.cinema = true;
_parent.chat1.gotoAndStop(7);
_parent.hose1.collectable = true;
_parent.sd_attachment.collectable = true;
} else {
if (_parent.chat1._currentframe != 8) {
_root.cinema = true;
_parent.chat1.nextFrame();
}
stop();
}
Symbol 734 MovieClip [item_trashcan1] Frame 1
#initclip 65
Object.registerClass("item_trashcan1", item);
#endinitclip
interact_y = -60;
stop();
Symbol 734 MovieClip [item_trashcan1] Frame 2
if (_parent["get_" + id] != true) {
_root.f_get_item(id);
}
Symbol 746 MovieClip [item_vent] Frame 1
#initclip 66
Object.registerClass("item_vent", item);
#endinitclip
dof = true;
if (_parent.vent_cover == false) {
gotoAndStop(_totalframes - 1);
} else if (_parent.bathroom_fan == false) {
gotoAndStop ("off");
} else {
stop();
}
Symbol 746 MovieClip [item_vent] Frame 2
gotoAndStop ("open");
Symbol 746 MovieClip [item_vent] Frame 4
stop();
Symbol 746 MovieClip [item_vent] Frame 8
_parent.vent_cover = false;
play();
Symbol 746 MovieClip [item_vent] Frame 14
_root.f_sound("clang4", 1);
Symbol 746 MovieClip [item_vent] Frame 26
stop();
Symbol 746 MovieClip [item_vent] Frame 27
_root.f_advance(1);
Symbol 750 MovieClip [item_water_switch] Frame 1
#initclip 67
Object.registerClass("item_water_switch", item);
#endinitclip
interact_y = -50;
dof = true;
if (_parent.water_running == true) {
gotoAndStop (3);
} else {
stop();
}
Symbol 750 MovieClip [item_water_switch] Frame 2
_root.f_sound("click", 1);
Symbol 750 MovieClip [item_water_switch] Frame 3
_parent.water_running = true;
stop();
Symbol 750 MovieClip [item_water_switch] Frame 4
prevFrame();
Symbol 754 MovieClip [metal mug] Frame 1
#initclip 68
Object.registerClass("metal mug", item);
#endinitclip
id = 18;
collectable = true;
stop();
Symbol 755 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip [item_door1] in Symbol 755 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
area = 1;
ent = 1;
}
Instance of Symbol 563 MovieClip [item_door2] in Symbol 755 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
area = 1;
ent = 1;
interact_x = 50;
}
Instance of Symbol 734 MovieClip [item_trashcan1] in Symbol 755 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
id = 1;
}
Symbol 765 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 65
_root.cinema = true;
stop();
Symbol 772 MovieClip Frame 1
if (_parent.traderbug_item > 0) {
nextFrame();
} else {
stop();
}
Symbol 776 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
_parent.traderbug.gotoAndStop(1);
}
Symbol 781 Button
on (release) {
_root.cinema = false;
_parent.traderbug.gotoAndStop(1);
_root.f_new_sidequest(3);
gotoAndStop (1);
}
Symbol 784 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 787 Button
on (release) {
_root.cinema = false;
_parent.traderbug.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 788 MovieClip Frame 1
function onEnterFrame() {
if ((_currentframe == 8) && (_root.game.alien.gun == false)) {
if (_parent.trader_dead == true) {
gotoAndStop (1);
} else {
gotoAndStop (9);
}
}
}
stop();
Symbol 788 MovieClip Frame 2
_root.game.alien.dir = "right";
if (_root.game.alien.gun == true) {
_root.cinema = false;
gotoAndStop (8);
} else if (_parent.trader_dead == true) {
gotoAndStop (10);
} else if (_parent.get_2 == true) {
gotoAndStop (11);
} else {
stop();
}
Symbol 788 MovieClip Frame 6
stop();
Symbol 788 MovieClip Frame 7
stop();
Symbol 788 MovieClip Frame 9
_root.cinema = true;
Symbol 799 MovieClip Frame 1
function onEnterFrame() {
if (_root.cinema == true) {
gotoAndStop (1);
} else if (_currentframe == 1) {
play();
}
}
Symbol 803 MovieClip Frame 1
if (_parent.worm_dead == true) {
nextFrame();
} else {
stop();
}
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 2
_root.f_sound("explode", 1);
Symbol 833 MovieClip Frame 45
_root.f_new_kill(0);
_root.cinema = false;
_root.worm = false;
_parent.worm_dead = true;
_parent.worm.nextFrame();
Symbol 833 MovieClip Frame 78
_root.f_complete_quest(2, 1);
_parent.button._visible = true;
Symbol 835 Button
on (press) {
if (worm_mov._currentframe < worm_mov._totalframes) {
worm_mov.gotoAndStop(worm_mov._totalframes);
} else if (_root.cursor._currentframe == 24) {
button._visible = false;
chat2.gotoAndStop(chat2._totalframes - 1);
_root.f_itemslot_free(23);
boom.play();
} else {
chat2.nextFrame();
}
}
Symbol 855 MovieClip Frame 1
if (_parent.worm_dead == true) {
gotoAndStop(_totalframes - 1);
} else if (((_root.game.get_4 == true) && (_parent.milos_dead == true)) && (_parent.worm_quest == 2)) {
_parent.worm_quest++;
gotoAndStop ("3rd");
} else if ((_parent.milos_dead == true) && (_parent.worm_quest == 1)) {
_parent.worm_quest++;
gotoAndStop ("2nd");
} else if (_parent.worm_quest > 0) {
gotoAndStop ("schnell");
} else {
_parent.worm_quest++;
stop();
}
Symbol 855 MovieClip Frame 6
_root.f_new_mainquest(3);
_root.badge = 3;
_root.f_advance(3, 1);
Symbol 855 MovieClip Frame 17
_parent.chip_puzzle = true;
_root.f_get_item(28);
_root.f_new_mainquest(4);
_root.f_advance(3, 1);
Symbol 855 MovieClip Frame 19
if (_parent.get_hackedchip != true) {
_parent.get_hackedchip = false;
_root.f_itemslot_free(4);
_root.f_get_item(24);
}
Symbol 855 MovieClip Frame 20
_root.f_advance(3, 1);
Symbol 855 MovieClip Frame 22
_root.f_advance(3, 1);
Symbol 855 MovieClip Frame 24
_root.f_advance(3, 1);
Symbol 864 MovieClip Frame 1
_root.cinema = true;
Symbol 864 MovieClip Frame 135
_root.cinema = false;
stop();
Symbol 871 MovieClip Frame 1
this.cacheAsBitmap = false;
Symbol 880 Button
on (release) {
play();
}
Symbol 881 MovieClip Frame 1
stop();
Symbol 881 MovieClip Frame 15
stop();
Symbol 881 MovieClip Frame 30
_root.cinema = false;
Symbol 913 MovieClip Frame 1
if (_parent.hatch1_open == true) {
_parent.faucet1.gotoAndStop("hose");
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 913 MovieClip Frame 2
_root.cinema = true;
_root.f_sound("waterspill", 1);
Symbol 913 MovieClip Frame 47
_root.game.alien.dir = "right";
Symbol 913 MovieClip Frame 85
_root.cinema = false;
_parent.hatch1_open = true;
_parent.hatch1._visible = true;
stop();
Symbol 943 MovieClip [item_ghcontroller] Frame 1
#initclip 75
Object.registerClass("item_ghcontroller", item);
#endinitclip
id = 14;
collectable = true;
stop();
Symbol 956 MovieClip Frame 1
if (_parent.get_15 == true) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 956 MovieClip Frame 8
_root.cinema = false;
_root.f_get_item(15);
Symbol 956 MovieClip Frame 18
stop();
Symbol 961 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 964 Button
on (release) {
_root.f_itemslot_free(19);
_root.f_get_item(23);
_root.cinema = false;
gotoAndStop (1);
}
Symbol 965 MovieClip Frame 1
if (ini != true) {
ini = true;
if (_parent.hobo_dead != true) {
nextFrame();
} else {
stop();
}
}
Symbol 965 MovieClip Frame 2
_root.cinema = true;
Symbol 965 MovieClip Frame 3
_root.cinema = true;
Symbol 976 Button
on (release) {
_root.cinema = false;
gotoAndStop (2);
}
Symbol 982 Button
on (release) {
nextFrame();
}
Symbol 984 Button
on (release) {
_parent.security1 = false;
_parent.security_door1.gotoAndStop("open");
_root.cinema = false;
gotoAndStop (2);
}
Symbol 987 MovieClip Frame 1
function onEnterFrame() {
if ((_currentframe < 3) && (_root.badge != 1)) {
if (((_root.game.alien.gun == true) && (_currentframe == 1)) && (_parent.security1 != false)) {
gotoAndStop (3);
} else if (((_root.gun_active != true) && (_root.cinema == false)) && (_parent.security1 != false)) {
gotoAndStop (5);
} else if ((_root.game.alien.gun == false) && (_currentframe == 3)) {
gotoAndStop (4);
} else if (((_currentframe == 2) && (_root.game.alien.gun == false)) && (_root.gun_active == true)) {
gotoAndStop (1);
}
}
}
if (checker != true) {
if (_root.badge == 1) {
gotoAndStop (7);
} else if (_root.gun_active == true) {
_parent.security1 = true;
_parent.security_door1.gotoAndStop(1);
gotoAndStop (4);
} else if (_parent.security1 != false) {
gotoAndStop (6);
}
checker = true;
}
stop();
Symbol 987 MovieClip Frame 3
_root.cinema = true;
Symbol 987 MovieClip Frame 7
_root.cinema = true;
Symbol 993 MovieClip Frame 1
if (_parent.trader_dead == true) {
nextFrame();
} else {
stop();
}
Symbol 1002 MovieClip Frame 1
gotoAndStop(_root.r_symbol);
stop();
Symbol 1021 MovieClip Frame 1
if (ini != true) {
ini = true;
stop();
}
Symbol 1030 Button
on (press) {
if (_parent._parent.trader_dead != true) {
_root.tradingpost[id - 1] = _root.used_item;
} else {
_root.tradingpost[id - 1] = 0;
glass.gotoAndStop(2);
}
_root.f_get_item(_currentframe - 1);
_parent.f_config(2);
_parent.f_config();
}
Symbol 1037 MovieClip Frame 1
stop();
Symbol 1057 MovieClip Frame 1
id = Number(substring(_name, 5, 1));
if (_root.tradingpost[id - 1] == 0) {
glass.gotoAndStop(2);
} else {
glass.gotoAndStop(1);
}
Symbol 1060 Button
on (press) {
if (_root.cursor._currentframe == 24) {
_root.f_itemslot_free(23);
boom.play();
} else if (_root.cursor._currentframe > 1) {
f_config(1);
_root.f_itemslot_free(_root.cursor._currentframe - 1);
}
}
Symbol 1061 MovieClip Frame 1
stop();
Symbol 1061 MovieClip Frame 2
_root.game.exit._visible = false;
_root.f_sound("explode", 1);
_parent._parent.trader_speech._visible = false;
Symbol 1061 MovieClip Frame 28
_root.f_new_kill(2);
_root.cinema = false;
_parent._parent.trader_dead = true;
_parent.nextFrame();
Symbol 1061 MovieClip Frame 78
_root.f_complete_quest(3);
_root.game.exit._visible = true;
_parent.f_config();
Symbol 1063 MovieClip Frame 1
function f_config(type) {
i = 1;
while (i <= 4) {
_parent.exit._visible = true;
if (type == 1) {
_parent.exit._visible = false;
this["slot" + i].button._visible = true;
dropslot._visible = false;
} else if (type == 2) {
this["slot" + i].button._visible = false;
dropslot._visible = true;
} else {
this["slot" + i].gotoAndStop(_root.tradingpost[i - 1] + 1);
if (_parent.trader_dead != true) {
dropslot._visible = true;
this["slot" + i].button._visible = false;
} else {
dropslot._visible = false;
this["slot" + i].button._visible = true;
}
}
i++;
}
}
f_config();
if (_parent.trader_dead == true) {
nextFrame();
} else {
stop();
}
Symbol 1066 Button
on (press) {
if (_root.cursor._currentframe == 24) {
_visible = false;
_root.f_itemslot_free(23);
_parent.tradingpost.boom.play();
} else if (_root.cursor._currentframe > 1) {
_root.cursor._visible = false;
_root.cursor.gotoAndStop(1);
} else if (_currentframe > 1) {
_parent.tradingpost.trader.mouth.gotoAndStop(1);
gotoAndStop (1);
} else {
_parent.tradingpost.trader.mouth.play();
nextFrame();
}
}
Symbol 1069 MovieClip Frame 1
if (_parent.trader_dead == true) {
_visible = false;
} else {
stop();
}
Symbol 1069 MovieClip Frame 3
gotoAndStop (1);
Symbol 1070 Button
on (release) {
_root.f_advance(-1, 4);
}
Symbol 1079 MovieClip Frame 1
if ((_parent.lock1 == false) && (_currentframe == 1)) {
gotoAndStop ("off");
}
stop();
Symbol 1079 MovieClip Frame 10
stop();
Symbol 1083 MovieClip Frame 1
function onEnterFrame() {
if (_root.used_item == 7) {
_parent.powerplug = true;
}
if (_parent.powerplug == true) {
nextFrame();
}
}
stop();
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1092 Button
on (release) {
_root.f_new_sidequest(1);
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1095 Button
on (release) {
_root.f_complete_quest(1);
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1096 MovieClip Frame 1
this.cacheAsBitmap();
stop();
dog.gotoAndStop(1);
Symbol 1096 MovieClip Frame 2
_root.cinema = true;
dog.gotoAndStop(2);
if (_root.used_item == 15) {
_parent.dog_briefcase = true;
}
if (_parent.dog_briefcase == true) {
gotoAndStop (4);
} else {
stop();
}
Symbol 1096 MovieClip Frame 3
prevFrame();
Symbol 1096 MovieClip Frame 4
_root.cinema = true;
dog.gotoAndStop(2);
stop();
Symbol 1097 MovieClip [exit2] Frame 1
#initclip 70
Object.registerClass("exit2", item);
#endinitclip
stop();
Symbol 1097 MovieClip [exit2] Frame 2
_root.f_advance(-2, -1);
Symbol 1102 MovieClip Frame 1
function onEnterFrame() {
if (_currentframe > 1) {
timer--;
if (timer < 1) {
gotoAndStop (1);
}
}
}
timer = 100;
stop();
Symbol 1105 MovieClip Frame 1
function onEnterFrame() {
if (_currentframe > 1) {
timer--;
if (timer < 1) {
gotoAndStop (1);
}
}
}
timer = 100;
stop();
Symbol 1113 MovieClip Frame 1
function onEnterFrame() {
if (_root.cursor._currentframe > 1) {
_parent.b.useHandCursor = true;
} else {
_parent.b.useHandCursor = false;
}
if (_root.game.makecoffee > 0) {
gotoAndStop(_root.game.makecoffee + 1);
} else {
gotoAndStop (1);
}
}
Symbol 1115 Button
on (press) {
if (_root.cursor._currentframe > 1) {
_root.f_item_use("coffeemakerpop");
}
}
Symbol 1116 Button
on (press) {
play();
}
Symbol 1117 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1117 MovieClip Frame 21
stop();
Symbol 1117 MovieClip Frame 40
_root.cinema = false;
Symbol 1120 Button
on (release) {
if (_parent.quest_killguard != true) {
_parent.quest_killguard = true;
_root.f_new_sidequest(4);
}
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1123 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1130 Button
on (press) {
if (_root.cursor._currentframe > 1) {
_root.f_item_use("outletpop");
}
}
Symbol 1131 MovieClip Frame 1
this.cacheAsBitmap = true;
stop();
Symbol 1131 MovieClip Frame 2
if (_parent.powerplug == true) {
gotoAndPlay(_totalframes);
}
Symbol 1131 MovieClip Frame 21
stop();
Symbol 1131 MovieClip Frame 40
_root.cinema = false;
Symbol 1139 MovieClip Frame 1
function onEnterFrame() {
if ((_parent.shield1 == false) && (_currentframe == 1)) {
play();
}
}
if (_parent.shield1 == false) {
gotoAndStop(_totalframes);
} else {
stop();
}
Symbol 1139 MovieClip Frame 2
_root.f_sound("powerdown", 1);
Symbol 1139 MovieClip Frame 7
stop();
Symbol 1143 Button
on (press) {
nextFrame();
}
Symbol 1144 MovieClip Frame 1
if (_root.game.get_10 == true) {
_visible = false;
}
stop();
Symbol 1144 MovieClip Frame 2
if (_root.game.get_10 != true) {
_root.f_get_item(10);
}
Symbol 1152 MovieClip Frame 1
if (_root.game.get_11 == true) {
_visible = false;
}
stop();
Symbol 1152 MovieClip Frame 2
if (_root.game.get_11 != true) {
_root.f_get_item(11);
}
Symbol 1155 MovieClip Frame 1
dof = true;
_parent.contents1._visible = false;
_parent.contents2._visible = false;
_parent.locker1._visible = true;
_parent.locker2._visible = true;
_parent.locker3._visible = true;
stop();
Symbol 1155 MovieClip Frame 3
_root.f_sound("openlock", 1);
Symbol 1155 MovieClip Frame 4
_parent.contents1._visible = true;
stop();
Symbol 1155 MovieClip Frame 6
_root.tenacity = 1;
_root.f_sound("openlock", 1);
Symbol 1155 MovieClip Frame 8
if (_parent.locker_bunnies != true) {
_parent.locker_bunnies = true;
i = 1;
while (i <= 9) {
_parent["bunny" + i].alive = true;
_parent["bunny" + i]._visible = true;
i++;
}
}
stop();
Symbol 1155 MovieClip Frame 9
_root.f_sound("openlock", 1);
if (_parent.coffeemix._currentframe == 1) {
_parent.contents2._visible = true;
} else {
mix._visible = false;
}
_parent.locker1._visible = true;
Symbol 1155 MovieClip Frame 10
stop();
Symbol 1156 MovieClip [triggerbox] Frame 1
#initclip 71
Object.registerClass("triggerbox", item);
#endinitclip
stop();
Symbol 1156 MovieClip [triggerbox] Frame 2
_parent.note1.play();
_root.cinema = true;
Symbol 1157 MovieClip [triggerbox4] Frame 1
#initclip 72
Object.registerClass("triggerbox4", item);
#endinitclip
_parent.lockers.gotoAndStop(1);
stop();
Symbol 1157 MovieClip [triggerbox4] Frame 2
if (obj_id == 3) {
_parent.lockers.gotoAndPlay("open3");
stop();
} else {
if (obj_id == 1) {
_visible = false;
}
_parent.keypad1.locker = obj_id;
_parent.keypad1.play();
_root.cinema = true;
}
Symbol 1160 MovieClip [item_chair1] Frame 1
#initclip 73
Object.registerClass("item_chair1", item);
#endinitclip
dof = true;
stop();
Symbol 1160 MovieClip [item_chair1] Frame 2
_parent.jacket1.play();
_root.cinema = true;
Symbol 1163 Button
on (press) {
nextFrame();
}
Symbol 1165 MovieClip Frame 1
stop();
Symbol 1165 MovieClip Frame 2
_parent.f_check();
_root.f_sound("button", 1);
Symbol 1169 MovieClip Frame 1
function f_check() {
pressed++;
i = 0;
while (i < 9) {
code[i] = this["k" + (i + 1)]._currentframe - 1;
i++;
}
code_entered = code.join("");
if (code_entered == passes[_root.r_symbol - 1]) {
_root.game.shield1 = false;
gotoAndStop ("yay");
}
if (pressed > 3) {
_root.f_sound("buzzer", 1);
gotoAndStop ("nay");
}
}
code = new Array(9);
code_entered = "";
passes = new Array("100010010", "001000101", "010101000");
pressed = 0;
stop();
Symbol 1170 Button
on (press) {
play();
}
Symbol 1171 MovieClip Frame 1
stop();
Symbol 1171 MovieClip Frame 25
stop();
Symbol 1171 MovieClip Frame 33
_root.cinema = false;
Symbol 1173 Button
on (press) {
gotoAndStop (4);
}
Symbol 1175 Button
on (press) {
gotoAndStop (3);
}
Symbol 1177 Button
on (press) {
gotoAndStop (2);
}
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1184 MovieClip Frame 1
stop();
Symbol 1184 MovieClip Frame 23
stop();
Symbol 1184 MovieClip Frame 31
_root.cinema = false;
Symbol 1185 MovieClip Frame 1
stop();
Symbol 1185 MovieClip Frame 2
_root.cinema = false;
_parent.lockers.mix.nextFrame();
_parent.contents2._visible = false;
Symbol 1185 MovieClip Frame 5
prevFrame();
Symbol 1188 MovieClip Frame 1
stop();
Symbol 1188 MovieClip Frame 20
stop();
Symbol 1188 MovieClip Frame 29
_root.cinema = false;
Symbol 1190 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 15
stop();
Symbol 1190 MovieClip Frame 24
_root.cinema = false;
Symbol 1195 Button
on (press) {
_root.f_sound("button", 1);
f_key(1);
}
Symbol 1198 Button
on (press) {
_root.f_sound("button", 1);
f_key(2);
}
Symbol 1200 Button
on (press) {
_root.f_sound("button", 1);
f_key(3);
}
Symbol 1203 Button
on (press) {
_root.f_sound("button", 1);
f_key(6);
}
Symbol 1205 Button
on (press) {
_root.f_sound("button", 1);
f_key(7);
}
Symbol 1207 Button
on (press) {
_root.f_sound("button", 1);
f_key(8);
}
Symbol 1209 Button
on (press) {
_root.f_sound("button", 1);
f_key(9);
}
Symbol 1211 Button
on (press) {
_root.f_sound("button", 1);
f_key(5);
}
Symbol 1213 Button
on (press) {
_root.f_sound("button", 1);
f_key(4);
}
Symbol 1214 MovieClip Frame 1
function f_key(n) {
passcode = (passcode + "") + n;
if (passcode.length == 4) {
if (((passcode == "4827") && (_parent.locker == 1)) || ((passcode == "1977") && (_parent.locker == 2))) {
_parent.play();
_root.game.lockers.gotoAndPlay("open" + _parent.locker);
} else {
_root.f_sound("buzz", 1);
_root.game.locker1._visible = true;
}
passcode = "";
}
}
passcode = "";
Symbol 1215 MovieClip Frame 1
stop();
Symbol 1215 MovieClip Frame 7
stop();
Symbol 1215 MovieClip Frame 28
_root.cinema = false;
if (_parent.lockers._currentframe == 1) {
_parent.locker1._visible = true;
_parent.locker2._visible = true;
}
Symbol 1217 Button
on (press) {
play();
}
Symbol 1228 MovieClip Frame 1
if (_parent._parent.bathroom_fan == false) {
gotoAndStop (4);
} else {
stop();
}
Symbol 1228 MovieClip Frame 2
_root.f_sound("click", 1);
Symbol 1228 MovieClip Frame 4
_parent._parent.bathroom_fan = false;
stop();
Symbol 1228 MovieClip Frame 8
_parent._parent.bathroom_fan = true;
Symbol 1229 MovieClip Frame 1
stop();
Symbol 1229 MovieClip Frame 21
stop();
Symbol 1229 MovieClip Frame 30
_root.cinema = false;
Symbol 1239 MovieClip Frame 1
if (_parent.lock1 == false) {
nextFrame();
} else {
stop();
}
Symbol 1247 MovieClip Frame 1
function onEnterFrame() {
if ((_parent.lock1 == false) && (_currentframe == 1)) {
gotoAndStop ("off");
}
}
stop();
Symbol 1247 MovieClip Frame 5
stop();
Symbol 1250 MovieClip Frame 1
_root.inventory_gun.gotoAndStop(3);
Symbol 1250 MovieClip Frame 2
if (_root.gun_active != true) {
prevFrame();
}
Symbol 1250 MovieClip Frame 17
stop();
Symbol 1250 MovieClip Frame 19
_root.f_sound("lasershot", 1);
if (_parent.deflect == true) {
gotoAndPlay ("deflect");
}
Symbol 1250 MovieClip Frame 22
_root.m_target.play();
Symbol 1250 MovieClip Frame 24
gotoAndStop (17);
Symbol 1250 MovieClip Frame 25
_root.f_sound("deflect", 1);
Symbol 1250 MovieClip Frame 34
gotoAndStop (17);
Symbol 1254 Button
on (press) {
_root.f_advance(-1, 10);
}
Symbol 1260 Button
on (release) {
gotoAndStop (1);
}
Symbol 1267 Button
on (release) {
_root.f_new_mainquest(2);
gotoAndStop (9);
}
Symbol 1271 MovieClip Frame 1
function onEnterFrame() {
if (_parent.milos_dead == true) {
gotoAndStop (1);
} else if ((_parent.worm_dead == true) && (_currentframe == 1)) {
gotoAndStop (6);
} else if ((_parent.milos_quest == true) && (_currentframe == 1)) {
gotoAndStop (8);
} else if ((_root.game.alien.gun == true) && (_currentframe == 1)) {
gotoAndStop (3);
} else if ((_root.game.alien.gun == false) && (_currentframe == 3)) {
gotoAndStop (4);
}
}
if (_parent.milos_dead == true) {
stop();
} else if (_parent.worm_dead == true) {
gotoAndStop (6);
} else if (_parent.milos_intro == undefined) {
_parent.milos_intro = true;
gotoAndStop (2);
} else {
_root.cinema = false;
_parent.milos.mouth.gotoAndStop(1);
stop();
}
Symbol 1271 MovieClip Frame 2
_root.cinema = true;
Symbol 1271 MovieClip Frame 3
_root.cinema = false;
_parent.milos.mouth.play();
Symbol 1271 MovieClip Frame 4
_root.cinema = true;
_parent.milos.mouth.play();
Symbol 1271 MovieClip Frame 5
if (_parent.milos_quest != true) {
_parent.milos_quest = true;
_parent.tube_drop.play();
}
_parent.milos.mouth.play();
_parent.milos_quest == true;
Symbol 1271 MovieClip Frame 6
_root.badge = 2;
_parent.milos.mouth.play();
Symbol 1271 MovieClip Frame 7
_root.cinema = false;
_parent.milos.mouth.gotoAndStop(1);
Symbol 1271 MovieClip Frame 9
_root.cinema = false;
_parent.milos.mouth.gotoAndStop(1);
Symbol 1281 MovieClip Frame 17
_root.f_sound("doorslide", 1);
Symbol 1281 MovieClip Frame 50
_root.f_sound("rocket", 1);
Symbol 1281 MovieClip Frame 99
_root.f_advance(2, 1);
Symbol 1288 MovieClip Frame 24
_root.f_sound("doorslide", 1);
Symbol 1288 MovieClip Frame 50
_root.f_sound("rocket", 1);
Symbol 1288 MovieClip Frame 99
_root.f_advance(-8, 5);
Symbol 1300 MovieClip Frame 1
function onEnterFrame() {
if ((_parent.security2 == false) && (_root.badge != 2)) {
nextFrame();
} else {
prevFrame();
}
}
Symbol 1320 MovieClip Frame 1
if (_parent.give_toy == true) {
nextFrame();
} else {
stop();
}
Symbol 1324 Button
on (release) {
_root.f_new_sidequest(2);
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1327 Button
on (release) {
_root.f_complete_quest(2);
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1330 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1331 MovieClip Frame 1
stop();
Symbol 1331 MovieClip Frame 2
_root.cinema = true;
Symbol 1331 MovieClip Frame 3
_root.cinema = true;
Symbol 1331 MovieClip Frame 4
_root.cinema = true;
Symbol 1336 Button
on (press) {
draggin = true;
}
on (release, releaseOutside) {
draggin = false;
}
Symbol 1337 MovieClip Frame 1
function onEnterFrame() {
c = _parent._parent["rod" + id];
if (draggin == true) {
_x = ((_root._xmouse - _parent._x) - _root.game._x);
if (_x < l_left) {
_x = l_left;
} else if (_x > l_right) {
_x = l_right;
}
c._y = c.l_u + (((l_left + _x) / l_right) * (c.l_d - c.l_u));
}
}
id = substring(_parent._name, 7, 1);
l_left = _x;
l_right = l_left + 80;
Symbol 1340 Button
on (press) {
lights = 6;
i = 1;
while (i <= 6) {
if (_parent["ll" + i]._currentframe == 2) {
lights--;
}
i++;
}
if (lights == 0) {
_parent.cap.play();
nextFrame();
}
}
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1349 Button
on (press) {
_root.f_sound("click", 1);
gotoAndStop (4);
}
Symbol 1356 Button
on (press) {
_root.f_sound("click", 1);
gotoAndStop (3);
}
Symbol 1357 Button
on (press) {
_root.f_sound("click", 1);
gotoAndStop (2);
}
Symbol 1358 Button
on (press) {
_root.f_sound("click", 1);
gotoAndStop (1);
}
Symbol 1359 MovieClip Frame 1
stop();
Symbol 1362 Button
on (press) {
id = substring(_name, 3, 1);
if (_parent.cord._currentframe == (4 - Math.ceil(id / 2))) {
_parent["ll" + id].nextFrame();
nextFrame();
}
_root.f_sound("phonebutton", 1);
}
Symbol 1364 MovieClip Frame 1
stop();
Symbol 1367 Button
on (press) {
if ((_parent.clamp1._currentframe > 1) && (_parent._parent._parent.security2 != false)) {
nextFrame();
}
}
Symbol 1368 MovieClip Frame 1
if ((_root.game.get_4 == true) && (_parent._parent._parent.security2 != false)) {
nextFrame();
} else {
stop();
}
Symbol 1368 MovieClip Frame 2
if (_root.game.get_4 != true) {
_root.f_get_item(4);
}
Symbol 1371 MovieClip Frame 1
stop();
Symbol 1371 MovieClip Frame 2
_root.f_sound("extend", 1);
Symbol 1371 MovieClip Frame 20
if (((_parent._parent.rod1._y > (_parent._parent.rod1.l_d - 15)) && (_parent._parent.rod2._y > (_parent._parent.rod2.l_d - 15))) && (_parent._parent.cap._currentframe > 1)) {
_parent.locked = true;
stop();
}
Symbol 1372 MovieClip Frame 1
locked = false;
l_u = _y;
l_d = _y + 100;
Symbol 1374 MovieClip Frame 1
stop();
Symbol 1374 MovieClip Frame 2
_root.f_sound("pull", 1);
Symbol 1374 MovieClip Frame 20
stop();
Symbol 1376 Button
on (press) {
_root.f_sound("click", 1);
rod1.c.play();
rod2.c.play();
}
Symbol 1378 Button
on (press) {
_root.f_sound("click", 1);
if (locked_in == true) {
clamp1.play();
clamp2.play();
rod1.c.play();
rod2.c.play();
}
}
Symbol 1380 Button
on (press) {
_root.f_sound("click", 1);
if ((rod1.locked == true) && (rod2.locked == true)) {
locked_in = true;
}
}
Symbol 1383 MovieClip Frame 1
stop();
Symbol 1383 MovieClip Frame 2
_root.f_sound("concuss1", 1);
Symbol 1383 MovieClip Frame 37
stop();
Symbol 1386 MovieClip Frame 1
stop();
Symbol 1389 Button
on (press) {
if (_root.cursor._currentframe == 29) {
_root.f_itemslot_free(28);
_parent._parent.panel_lock = false;
_parent._parent.security1.gotoAndStop(4);
_root.f_sound("openpanel", 1);
}
if (_parent._parent.panel_lock == false) {
nextFrame();
}
}
Symbol 1390 MovieClip Frame 1
locked_in = false;
if (_parent._parent.panel_lock == false) {
nextFrame();
} else {
stop();
}
Symbol 1392 MovieClip Frame 1
stop();
Symbol 1392 MovieClip Frame 21
stop();
Symbol 1392 MovieClip Frame 34
_root.cinema = false;
if (_parent.panel_lock != false) {
_parent.security1.gotoAndStop(1);
} else {
_parent.security1.gotoAndStop(4);
}
Symbol 1400 MovieClip Frame 1
if (_parent.blowup == true) {
nextFrame();
} else {
stop();
}
Symbol 1403 MovieClip Frame 1
stop();
Symbol 1403 MovieClip Frame 24
stop();
Symbol 1403 MovieClip Frame 36
_root.cinema = false;
Symbol 1404 MovieClip Frame 1
stop();
Symbol 1404 MovieClip Frame 2
_root.f_sound("explode", 1);
Symbol 1404 MovieClip Frame 45
_root.cinema = false;
_root.limit_right = _root.limit_right + 100;
_parent.wall_hole._visible = true;
_parent.blowup = true;
_parent.bg.nextFrame();
Symbol 1409 Button
on (press) {
_root.f_sound("button", 1);
prevFrame();
_parent._parent.temp = _currentframe;
}
Symbol 1410 Button
on (press) {
_root.f_sound("button", 1);
nextFrame();
_parent._parent.temp = _currentframe;
}
Symbol 1416 MovieClip Frame 1
if (_parent._parent.temp > 1) {
gotoAndStop(_parent._parent.temp);
} else {
_parent._parent.ice = true;
stop();
}
Symbol 1416 MovieClip Frame 6
_parent._parent.ice = false;
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 21
stop();
Symbol 1417 MovieClip Frame 32
_root.cinema = false;
Symbol 1424 MovieClip Frame 1
if (_parent.ice == false) {
nextFrame();
} else {
stop();
}
Symbol 1426 MovieClip [item_mugfrozen] Frame 1
#initclip 74
Object.registerClass("item_mugfrozen", item);
#endinitclip
stop();
Symbol 1426 MovieClip [item_mugfrozen] Frame 2
_parent.chat0.nextFrame();
prevFrame();
Symbol 1435 Button
on (press) {
nextFrame();
}
Symbol 1444 Button
on (press) {
gotoAndStop (1);
}
Symbol 1445 Button
on (press) {
gotoAndStop (4);
}
Symbol 1446 Button
on (press) {
gotoAndStop (5);
}
Symbol 1447 Button
on (press) {
gotoAndStop (6);
}
Symbol 1448 Button
on (press) {
gotoAndStop (7);
}
Symbol 1449 Button
on (press) {
gotoAndStop (8);
}
Symbol 1451 Button
on (press) {
prevFrame();
}
Symbol 1453 Button
on (press) {
gotoAndStop (2);
}
Symbol 1454 Button
on (press) {
gotoAndStop (3);
}
Symbol 1459 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 20
stop();
Symbol 1460 MovieClip Frame 36
_root.cinema = false;
Symbol 1463 Button
on (release) {
_root.cinema = false;
gotoAndStop (1);
}
Symbol 1464 MovieClip Frame 1
stop();
Symbol 1464 MovieClip Frame 2
_root.cinema = true;
stop();
Symbol 1470 MovieClip Frame 1
if (_parent.ice == false) {
nextFrame();
} else {
stop();
}
Symbol 1494 MovieClip Frame 1
if (_parent._parent.ice == false) {
nextFrame();
} else {
stop();
}
Symbol 1495 MovieClip Frame 1
stop();
Symbol 1495 MovieClip Frame 24
stop();
Symbol 1495 MovieClip Frame 34
_root.cinema = false;
Symbol 1512 Button
on (press) {
_root.f_sound("phonebutton", 1);
gotoAndStop ("booking");
}
Symbol 1513 Button
on (press) {
_root.f_sound("phonebutton", 1);
gotoAndStop ("swap");
}
Symbol 1514 Button
on (press) {
_root.f_sound("phonebutton", 1);
_parent.play();
}
Symbol 1526 Button
on (press) {
_parent.gotoAndStop(1);
}
Symbol 1527 MovieClip Frame 141
_root.badge = 4;
stop();
Symbol 1543 Button
on (press) {
f_key(1);
}
Symbol 1544 Button
on (press) {
f_key(2);
}
Symbol 1545 Button
on (press) {
f_key(3);
}
Symbol 1546 Button
on (press) {
f_key(4);
}
Symbol 1547 Button
on (press) {
f_key(5);
}
Symbol 1548 Button
on (press) {
f_key(6);
}
Symbol 1549 Button
on (press) {
f_key(7);
}
Symbol 1550 Button
on (press) {
f_key(8);
}
Symbol 1551 Button
on (press) {
f_key(9);
}
Symbol 1552 Button
on (press) {
f_del();
}
Symbol 1553 Button
on (press) {
f_enter();
}
Symbol 1563 MovieClip Frame 63
if ((_root.game.get_8 == true) && (_root.badge == 4)) {
gotoAndStop ("app_detect");
} else {
_root.f_sound("buzzer", 1);
stop();
}
Symbol 1563 MovieClip Frame 137
function f_key(n) {
if (pass.length < 3) {
pass.push(n);
}
}
function f_del() {
pass.pop();
}
function f_enter() {
if (pass.join("") == "173") {
gotoAndPlay ("success");
} else {
gotoAndStop ("failure");
}
}
function onEnterFrame() {
i = 0;
while (i < 3) {
if (pass[i] != undefined) {
this["c" + (i + 1)] = pass[i];
} else {
this["c" + (i + 1)] = "";
}
i++;
}
}
pass = new Array();
c1 = "";
c2 = "";
c3 = "";
stop();
Symbol 1563 MovieClip Frame 141
_root.f_sound("buzzer", 1);
Symbol 1563 MovieClip Frame 145
_root.f_sound("harp", 1);
Symbol 1563 MovieClip Frame 194
_root.f_complete_quest(5, 1);
_parent._parent._parent.appointment = true;
stop();
Symbol 1566 MovieClip Frame 36
stop();
Symbol 1568 MovieClip Frame 35
stop();
Symbol 1569 MovieClip Frame 1
stop();
Symbol 1570 MovieClip Frame 1
stop();
Symbol 1570 MovieClip Frame 25
stop();
Symbol 1570 MovieClip Frame 36
_root.cinema = false;
if (_parent.appointment == true) {
_parent.sec_speech.gotoAndStop(4);
}
Symbol 1574 Button
on (release) {
_root.cinema = false;
prevFrame();
}
Symbol 1575 MovieClip Frame 1
stop();
Symbol 1575 MovieClip Frame 2
_root.cinema = true;
Symbol 1578 Button
on (press) {
gotoAndStop (1);
}
Symbol 1581 MovieClip Frame 1
stop();
Symbol 1586 Button
on (release) {
nextFrame();
}
Symbol 1591 MovieClip Frame 1
_root.cinema = true;
stop();
Symbol 1591 MovieClip Frame 4
function onEnterFrame() {
if (_root.game.alien.gun == true) {
nextFrame();
}
}
_parent.lobe.l.gotoAndStop(1);
_root.cinema = false;
Symbol 1591 MovieClip Frame 5
function onEnterFrame() {
}
_parent.lobe.l.play();
Symbol 1591 MovieClip Frame 6
_root.cinema = false;
_parent.lobe.l.gotoAndStop(1);
Symbol 1592 MovieClip Frame 1
_root.limit_right = 350;
_root.limit_left = -70;
_root.limit_down = 400;
_root.limit_up = 60;
_root.max_size = 200;
_root.min_size = 80;
if (_root.entrance == 2) {
alien._x = -56;
alien._y = 60;
alien.dir = "down";
}
_root.f_place_alien();
if (new_song != true) {
new_song = true;
_root.f_sound("soundscape1", 999999, "music");
}
stop();
Instance of Symbol 560 MovieClip [item_door1] in Symbol 1592 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
area = 1;
ent = 1;
}
Symbol 1592 MovieClip Frame 2
outside = false;
_root.limit_right = 70;
_root.limit_left = -160;
_root.limit_down = 200;
_root.limit_up = 50;
_root.max_size = 130;
_root.min_size = 70;
alien.dir = "down";
if (_root.entrance == 2) {
alien._x = -156;
alien._y = 120;
alien.dir = "right";
}
if (trading1 == true) {
shelf.nextFrame();
hose1.collectable = true;
sd_attachment.collectable = true;
}
_root.f_place_alien();
Instance of Symbol 560 MovieClip [item_door1] in Symbol 1592 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
area = -1;
ent = 2;
}
Instance of Symbol 563 MovieClip [item_door2] in Symbol 1592 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
area = 2;
ent = 1;
interact_x = 50;
}
Symbol 1592 MovieClip Frame 3
_root.f_complete_quest(1, 1);
Symbol 1592 MovieClip Frame 4
outside = true;
_root.limit_right = 700;
_root.limit_left = -300;
_root.limit_down = 300;
_root.limit_up = 120;
_root.max_size = 100;
_root.min_size = 68;
if (_root.entrance == 10) {
alien._x = 250;
} else if (_root.entrance == 11) {
alien._x = -170;
alien._y = _root.limit_up;
alien.dir = "right";
} else {
alien._x = 140;
alien._y = 120;
}
_root.f_place_alien();
_root.exit_right = true;
_root.area_right_ent = 11;
Symbol 1592 MovieClip Frame 5
_root.limit_right = 700;
_root.limit_left = -500;
_root.limit_up = 75;
_root.limit_down = 120;
_root.max_size = 75;
_root.min_size = 68;
if (_root.entrance == 11) {
alien._x = -270;
alien.dir = "right";
} else {
alien._x = 250;
alien.dir = "left";
}
_root.f_place_alien();
_root.exit_right = true;
_root.exit_left = true;
_root.area_left_ent = 10;
Instance of Symbol 146 MovieClip [eventtriggerbox] in Symbol 1592 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
targ = "rock1";
interact_y = 0;
}
Symbol 1592 MovieClip Frame 6
_root.limit_right = 700;
_root.limit_left = -500;
_root.limit_up = 75;
_root.limit_down = 200;
_root.max_size = 85;
_root.min_size = 68;
if (_root.entrance == 11) {
alien._x = -270;
alien.dir = "right";
} else if (_root.entrance == 1) {
alien._x = hatch1._x;
alien._y = 125;
} else {
alien._x = 250;
alien.dir = "left";
}
_root.f_place_alien();
_root.exit_right = true;
_root.exit_left = true;
hatch1._visible = false;
Symbol 1592 MovieClip Frame 7
outside = true;
_root.limit_right = 120;
_root.limit_left = -500;
_root.limit_up = 40;
_root.max_size = 100;
_root.min_size = 60;
if (_root.entrance == 10) {
alien._x = 0;
alien._y = 60;
} else {
alien._x = -270;
}
_root.f_place_alien();
_root.exit_left = true;
Symbol 1592 MovieClip Frame 8
outside = false;
_root.limit_right = 300;
_root.limit_left = -350;
_root.limit_up = 148;
_root.max_size = 300;
_root.min_size = 90;
_root.max_size = 110;
if (_root.entrance == 10) {
alien._x = 270;
} else {
alien._x = -270;
alien.dir = "right";
}
_root.f_place_alien();
_root.exit_left = true;
_root.area_left_ent = 10;
Symbol 1592 MovieClip Frame 9
outside = false;
_root.limit_right = 330;
_root.limit_left = -160;
_root.limit_up = 101;
_root.max_size = 300;
_root.min_size = 92;
_root.max_size = 130;
if (_root.entrance == 9) {
alien._x = -270;
alien._y = _root.limit_up;
} else {
alien._x = 270;
}
_root.f_place_alien();
_root.exit_right = true;
_root.area_right = 4 - _currentframe;
_root.area_right_ent = 11;
Symbol 1592 MovieClip Frame 10
_root.limit_right = 190;
_root.limit_left = -150;
_root.limit_down = 400;
_root.limit_up = 10;
_root.limit_left_z = false;
_root.max_size = 160;
_root.min_size = 45;
if (_root.entrance == -1) {
alien._x = -270;
alien._y = _root.limit_up;
alien.dir = "right";
} else if (_root.entrance == 4) {
alien._x = 0;
alien._y = _root.limit_up;
alien.dir = "down";
} else if (_root.entrance == 5) {
alien._x = _root.limit_right;
alien._y = _root.limit_up + 40;
alien.dir = "left";
} else if (_root.entrance == 6) {
alien._x = _root.limit_right;
alien._y = _root.limit_up + 20;
alien.dir = "right";
} else {
alien._x = 0;
alien._y = 200;
alien.dir = "up";
}
_root.f_place_alien();
if (robo1_move != true) {
robo1._visible = false;
}
_root.exit_right = true;
_root.exit_down = true;
_root.area_right = 4 - _currentframe;
_root.area_down = -1;
_root.area_down_ent = 9;
Instance of Symbol 124 MovieClip [exit_zone] in Symbol 1592 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
area = 7;
}
Symbol 1592 MovieClip Frame 12
_root.limit_right = 225;
_root.limit_left = -240;
_root.limit_down = 110;
_root.limit_up = 15;
_root.limit_right_z = false;
_root.max_size = 90;
_root.min_size = 50;
if (_root.entrance == 11) {
alien._x = _root.limit_left + 10;
alien._y = 120;
alien.dir = "right";
} else if (_root.entrance == 4) {
alien._x = _root.limit_right;
alien._y = _root.limit_up;
alien.dir = "down";
} else if (_root.entrance == 3) {
alien._x = _root.limit_left + 50;
alien._y = 40;
alien.dir = "right";
} else {
alien._x = _root.limit_right;
alien._y = _root.limit_up;
alien.dir = "left";
}
_root.f_place_alien();
if (robo_cinema == true) {
alien._visible = false;
}
if (robo1_move == true) {
robo1._visible = false;
} else {
guarded_exit._visible = false;
}
if ((((milos_dead == true) && (worm_dead == true)) && (get_hackedchip != false)) && (_root.badge != 2)) {
_root.gotoAndStop("alt ending");
}
Instance of Symbol 146 MovieClip [eventtriggerbox] "casedog" in Symbol 1592 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
targ = "dog";
interact_y = 0;
}
Instance of Symbol 734 MovieClip [item_trashcan1] in Symbol 1592 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
id = 1;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] "outlet1" in Symbol 1592 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
targ = "outletpop";
interact_y = -90;
}
Symbol 1592 MovieClip Frame 13
_root.limit_right = 350;
_root.limit_left = -70;
_root.limit_down = 400;
_root.limit_up = 60;
_root.max_size = 150;
_root.min_size = 90;
_root.exit_right = true;
_root.area_right = -1;
_root.area_right_ent = 11;
alien._x = 240;
alien._y = 100;
alien.dir = "left";
_root.f_place_alien();
i = 1;
while (i <= 9) {
this["bunny" + i].alive = false;
this["bunny" + i]._visible = false;
i++;
}
Instance of Symbol 1157 MovieClip [triggerbox4] "locker1" in Symbol 1592 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
obj_id = 1;
}
Instance of Symbol 1157 MovieClip [triggerbox4] in Symbol 1592 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
obj_id = 2;
}
Instance of Symbol 1157 MovieClip [triggerbox4] in Symbol 1592 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
obj_id = 3;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] "contents2" in Symbol 1592 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
targ = "coffeemix";
interact_y = 0;
}
Symbol 1592 MovieClip Frame 14
_root.limit_right = 290;
_root.limit_left = -180;
_root.limit_down = 400;
_root.limit_up = 36;
_root.max_size = 160;
_root.min_size = 55;
if (_root.entrance == 10) {
alien._x = _root.limit_left;
alien._y = _root.limit_up;
alien.dir = "right";
alien.gun = true;
vent1.gotoAndStop(vent1._totalframes - 1);
} else {
alien._x = 210;
alien._y = 90;
alien.dir = "left";
}
_root.f_place_alien();
Instance of Symbol 734 MovieClip [item_trashcan1] in Symbol 1592 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
id = 20;
}
Symbol 1592 MovieClip Frame 15
_root.limit_right = 300;
_root.limit_left = 270;
_root.limit_down = 220;
_root.limit_up = 110;
_root.max_size = 110;
_root.min_size = 55;
_root.exit_right = true;
_root.alien_fixed = true;
if (bathroom_fan != false) {
deflect = true;
} else {
deflect = false;
}
Symbol 1592 MovieClip Frame 16
_root.limit_right = 700;
_root.limit_left = -225;
_root.limit_down = 250;
_root.limit_up = 30;
_root.max_size = 110;
_root.min_size = 60;
_root.exit_right = true;
_root.area_right = -4;
_root.area_right_ent = 4;
alien._x = 260;
alien._y = 120;
alien.dir = "left";
_root.f_place_alien();
Symbol 1592 MovieClip Frame 19
outside = false;
_root.limit_right = 190;
_root.limit_left = -1200;
_root.limit_down = 400;
_root.limit_up = 100;
_root.max_size = 130;
_root.min_size = 50;
if (_root.entrance == 1) {
alien._x = -270;
alien._y = _root.limit_up;
alien.dir = "right";
} else {
alien._x = 0;
alien._y = 180;
}
_root.f_place_alien();
_root.exit_left = true;
Symbol 1592 MovieClip Frame 20
_root.limit_right = 190;
_root.limit_left = -350;
_root.limit_down = 400;
_root.limit_up = 80;
_root.max_size = 200;
_root.min_size = 80;
if (_root.entrance == 9) {
alien._x = 75;
alien._y = 83;
alien.dir = "down";
} else if (_root.entrance == 8) {
alien._x = _root.limit_left + 100;
alien._y = _root.limit_up + 50;
alien.dir = "right";
} else if (_root.entrance == 7) {
alien._x = _root.limit_left + 100;
alien._y = _root.limit_up;
alien.dir = "down";
} else {
alien._x = _root.limit_right;
alien._y = 127;
alien.dir = "left";
}
_root.f_place_alien();
if (new_song != true) {
new_song = true;
_root.s_soundscape1.stop("soundscape1");
_root.f_sound("soundscape2", 999999, "music");
}
Instance of Symbol 560 MovieClip [item_door1] in Symbol 1592 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
area = 2;
ent = 2;
}
Instance of Symbol 560 MovieClip [item_door1] in Symbol 1592 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
area = 1;
ent = 2;
}
Instance of Symbol 563 MovieClip [item_door2] in Symbol 1592 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
area = 4;
ent = 1;
interact_x = -50;
}
Symbol 1592 MovieClip Frame 21
_root.limit_right = 80;
_root.limit_left = -70;
_root.limit_down = 400;
_root.limit_up = 50;
_root.exit_down = true;
_root.area_down = -1;
_root.area_down_ent = 7;
if (blowup == true) {
_root.limit_right = _root.limit_right + 100;
} else {
wall_hole._visible = false;
}
if (_root.entrance == 2) {
alien._x = 0;
alien._y = _root.limit_down - 200;
alien.dir = "up";
} else {
alien._x = _root.limit_right;
alien._y = _root.limit_up + 60;
alien.dir = "left";
}
_root.f_place_alien();
thermostat_trigger.interact_y = 120;
Instance of Symbol 146 MovieClip [eventtriggerbox] in Symbol 1592 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
targ = "note2";
interact_y = 0;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] "thermostat_trigger" in Symbol 1592 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
targ = "thermostat";
interact_y = 0;
}
Instance of Symbol 124 MovieClip [exit_zone] "wall_hole" in Symbol 1592 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
area = 2;
}
Symbol 1592 MovieClip Frame 22
_root.limit_right = 85;
_root.limit_left = -100;
_root.limit_down = 400;
_root.limit_up = 110;
_root.max_size = 200;
_root.min_size = 90;
_root.exit_down = true;
_root.area_down = -2;
_root.area_down_ent = 9;
alien._x = 0;
alien._y = _root.limit_down - 200;
alien.dir = "up";
_root.f_place_alien();
if ((ice == false) || (get_18 == true)) {
static_mug._visible = false;
} else {
get_mug._visible = false;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] in Symbol 1592 MovieClip Frame 22
//component parameters
onClipEvent (construct) {
targ = "screenpop";
interact_y = 0;
}
Symbol 1592 MovieClip Frame 23
_root.limit_right = -15;
_root.limit_left = -200;
_root.limit_down = 400;
_root.limit_up = 50;
_root.max_size = 200;
_root.min_size = 80;
alien._x = _root.limit_left;
alien._y = _root.limit_up;
alien.dir = "right";
_root.f_place_alien();
Instance of Symbol 124 MovieClip [exit_zone] in Symbol 1592 MovieClip Frame 23
//component parameters
onClipEvent (construct) {
area = -2;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] in Symbol 1592 MovieClip Frame 23
//component parameters
onClipEvent (construct) {
targ = "tankpop";
}
Symbol 1592 MovieClip Frame 24
_root.limit_right = 230;
_root.limit_left = -200;
_root.limit_down = 400;
_root.limit_up = 70;
_root.max_size = 170;
_root.min_size = 95;
alien._x = -180;
alien._y = _root.limit_up;
alien.dir = "right";
_root.f_place_alien();
Instance of Symbol 563 MovieClip [item_door2] in Symbol 1592 MovieClip Frame 24
//component parameters
onClipEvent (construct) {
area = -4;
ent = 4;
interact_x = 50;
}
Instance of Symbol 146 MovieClip [eventtriggerbox] in Symbol 1592 MovieClip Frame 24
//component parameters
onClipEvent (construct) {
targ = "auto_secretary";
interact_y = 0;
}
Symbol 1592 MovieClip Frame 25
_root.limit_right = 300;
_root.limit_left = -300;
_root.limit_down = 400;
_root.limit_up = 200;
_root.max_size = 190;
_root.min_size = 150;
alien.dir = "right";
alien._x = _root.limit_left + 50;
alien._y = _root.limit_up + 100;
_root.f_place_alien();
Symbol 1596 Button
on (press) {
if (_root.cinema != true) {
if (_root.game.alien.gun == true) {
_root.game.alien.gun = false;
prevFrame();
} else {
_root.game.alien.gun = true;
nextFrame();
}
}
}
Symbol 1598 MovieClip Frame 1
_root.game.alien.got_gun = false;
stop();
Symbol 1600 Button
on (press) {
play();
}
Symbol 1604 Button
on (rollOver) {
if (_root.cursor._currentframe > 1) {
_root.cursor.comb.gotoAndStop(2);
}
}
on (rollOut, dragOut) {
_root.cursor.comb.gotoAndStop(1);
}
on (press) {
if (_root.cursor._currentframe > 1) {
ccf = _root.cursor._currentframe - 1;
cf = _currentframe - 1;
if (_root.f_combine_item(ccf, cf) != true) {
_root.f_sound("buzzer", 1);
_root.cursor.gotoAndStop(1);
}
} else {
_root.game.alien.gun = false;
_root.cursor.gotoAndStop(_currentframe);
}
_parent.gotoAndStop(1);
}
Symbol 1606 MovieClip Frame 1
stop();
Symbol 1613 MovieClip Frame 1
if (ini != true) {
ini = true;
gotoAndStop(_root.favors[_parent.num] + 1);
_parent.num++;
}
Symbol 1615 Button
on (press) {
_root.sound_vol = 0;
nextFrame();
}
Symbol 1617 Button
on (press) {
_root.sound_vol = 100;
prevFrame();
}
Symbol 1618 MovieClip Frame 1
if (ini != true) {
ini = true;
if (_root.sound_vol == 0) {
nextFrame();
} else {
stop();
}
}
Symbol 1620 Button
on (press) {
getURL ("http://www.newgrounds.com/lit/asmallfavor.html", "_blank");
}
Symbol 1623 Button
on (press) {
_root.music_vol = 0;
nextFrame();
}
Symbol 1625 Button
on (press) {
_root.music_vol = 100;
prevFrame();
}
Symbol 1626 MovieClip Frame 1
if (ini != true) {
ini = true;
if (_root.music_vol == 0) {
nextFrame();
} else {
stop();
}
}
Symbol 1629 Button
on (press) {
gotoAndStop (1);
}
Symbol 1631 Button
on (press) {
getURL ("http://www.newgrounds.com/refer/zeebarf", "_blank");
}
Symbol 1639 MovieClip Frame 1
stop();
Symbol 1644 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 1
stop();
Symbol 1645 MovieClip Frame 27
stop();
Symbol 1652 MovieClip Frame 1
stop();
Symbol 1654 MovieClip Frame 1
stop();
Symbol 1656 MovieClip Frame 1
stop();
Symbol 1668 MovieClip Frame 1
function onEnterFrame() {
if (_parent._currentframe == 1) {
_parent._visible = false;
} else {
_parent._visible = true;
}
if (_parent.id == -1) {
gotoAndStop(_totalframes);
} else {
gotoAndStop(_parent.id);
}
}
Symbol 1670 MovieClip Frame 1
stop();
Symbol 1670 MovieClip Frame 2
if (id == -1) {
_root.f_sound("completefavor", 1);
} else {
_root.f_sound("newfavor", 1);
}
Symbol 1673 MovieClip Frame 1
function onEnterFrame() {
gotoAndStop(_parent.id);
}
Symbol 1674 MovieClip Frame 1
function f_redeem() {
if (id == 17) {
_root.inventory_gun.gotoAndStop(2);
} else {
i = 0;
while (i < 7) {
if (_root["item_slot" + i] == 0) {
n = i;
i = 7;
}
i++;
}
_root["item_slot" + n] = id;
}
}
stop();
Symbol 1674 MovieClip Frame 2
_root.f_sound("item", 1);
Symbol 1674 MovieClip Frame 67
f_redeem();
Symbol 1688 MovieClip Frame 1
function onEnterFrame() {
if (_parent._currentframe == 1) {
_parent._visible = false;
} else {
_parent._visible = true;
}
if (_parent.id == -1) {
gotoAndStop(_totalframes);
} else {
gotoAndStop(_parent.id);
}
}
Symbol 1690 MovieClip Frame 2
if (id == -1) {
_root.f_sound("completeobjective", 1);
} else {
_root.f_sound("newobjective", 1);
}
Symbol 1690 MovieClip Frame 88
gotoAndStop (1);
Symbol 1709 MovieClip Frame 27
stop();
Symbol 1722 MovieClip Frame 1
if (ini != true) {
ini = true;
gotoAndStop(_root.objectives[_parent.num] + 1);
_parent.num++;
}
Symbol 1725 MovieClip Frame 1
num = 0;
Symbol 1725 MovieClip Frame 37
var score = 0;
i = 0;
while (i < 6) {
if (_root.objectives[i] > 0) {
score = score + 100;
}
i++;
}
txt = score;
Symbol 1725 MovieClip Frame 41
stop();
Symbol 1729 MovieClip Frame 1
num = 0;
Symbol 1729 MovieClip Frame 51
var score = 0;
i = 0;
while (i < 4) {
if (_root.favors[i] > 0) {
score = score + 100;
}
i++;
}
txt = score;
Symbol 1729 MovieClip Frame 56
stop();
Symbol 1737 MovieClip Frame 1
if (ini != true) {
ini = true;
gotoAndStop(_root.bodycount[_parent.bc_num] + 1);
_parent.bc_num++;
}
Symbol 1741 MovieClip Frame 1
gotoAndStop(_root.loyalty + 1);
Symbol 1744 MovieClip Frame 1
gotoAndStop(_root.tenacity + 1);
Symbol 1747 MovieClip Frame 1
bc_num = 0;
Symbol 1747 MovieClip Frame 63
var score = 0;
i = 0;
while (i < 6) {
if (_root.bodycount[i] > 0) {
score = score + 10;
}
i++;
}
if (_root.loyalty > 0) {
score = score + 10;
}
if (_root.tenacity == 1) {
score = score + 10;
}
txt = score;
Symbol 1747 MovieClip Frame 68
stop();
Symbol 1750 MovieClip Frame 12
if (_root.bunny_kills >= 100) {
_root.medal_popup.unlockMedal("PINK MASSACRE");
}
txt = _root.bunny_kills * 10;
stop();
Symbol 1753 MovieClip Frame 14
stop();
Symbol 1761 MovieClip Frame 1
var favor_num = 0;
i = 0;
while (i < 4) {
if (_root.favors[i] > 0) {
favor_num++;
}
i++;
}
if (((favor_num == 4) && (_root.tenacity == 1)) && (_root.loyalty == 1)) {
_root.medal_popup.unlockMedal("ELITE");
stop();
} else if ((_root.worm == false) && (_root.milos == false)) {
_root.medal_popup.unlockMedal("RUTHLESS");
gotoAndStop (6);
} else if (favor_num == 4) {
_root.medal_popup.unlockMedal("PROFESSIONAL");
gotoAndStop (2);
} else if (_root.kills >= 5) {
_root.medal_popup.unlockMedal("HOMICIDAL");
gotoAndStop (5);
} else if ((favor_num <= 3) && (favor_num > 0)) {
_root.medal_popup.unlockMedal("RELIABLE");
gotoAndStop (4);
} else {
_root.medal_popup.unlockMedal("RELENTLESS");
gotoAndStop (3);
}
Symbol 1762 MovieClip Frame 21
stop();
Symbol 1764 Button
on (press) {
_parent.play();
}
Symbol 1783 Button
on (press) {
getURL ("http://zeebarf.newgrounds.com/", "_blank");
}
Symbol 1784 Button
on (press) {
getURL ("http://riftmaster.newgrounds.com/", "_blank");
}
Symbol 1785 Button
on (press) {
getURL ("http://www.myspace.com/mitchellbowden", "_blank");
}
Symbol 1786 Button
on (press) {
_root.gotoAndStop("game");
}
Symbol 1787 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/reemus", "_blank");
}
Symbol 1788 Button
on (press) {
getURL ("http://www.zeebarf.com/zeelist.html", "_blank");
}
Symbol 1792 MovieClip Frame 1
num = 0;
Symbol 1792 MovieClip Frame 85
_root.f_sound("missionaccomplished", 1);
Symbol 1792 MovieClip Frame 287
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.total_score);
stop();
Symbol 1792 MovieClip Frame 295
stop();
Symbol 1808 Button
on (press) {
play();
}
Symbol 1818 MovieClip Frame 14
stop();
Symbol 1818 MovieClip Frame 49
stop();
Symbol 1818 MovieClip Frame 66
_root.altend.gotoAndPlay("getkilled");
Symbol 1818 MovieClip Frame 77
stop();
Symbol 1829 MovieClip Frame 53
stop();
roboguy.gotoAndPlay("virus");
Symbol 1829 MovieClip Frame 131
_root.medal_popup.unlockMedal("BLIND AMBITION");
Symbol 1829 MovieClip Frame 216
stop();