Frame 1
var menuCount = 0;
var saveData = SharedObject.getLocal("dyt");
gotoAndStop ("menu");
Instance of Symbol 172 MovieClip in Frame 1
onClipEvent (load) {
_root.menuCount++;
if (_root.menuCount > 1) {
this.gotoAndPlay("second");
}
}
Instance of Symbol 201 MovieClip [MedalPopup] in Frame 1
//component parameters
onClipEvent (construct) {
alwaysOnTop = "true";
}
Instance of Symbol 203 MovieClip in Frame 1
onClipEvent (load) {
var mute_delay_total = 30;
var mute_delay = mute_delay_total;
var quality_delay_total = 30;
var quality_delay = quality_delay_total;
var mutedA = false;
}
onClipEvent (enterFrame) {
if (((!_root.mutedA) && (Key.isDown(85) || (Key.isDown(117)))) && (mute_delay == 0)) {
_root.mutedA = true;
_root.music_current.setVolume(0);
mute_delay = mute_delay_total;
} else if ((_root.mutedA && (Key.isDown(85) || (Key.isDown(117)))) && (mute_delay == 0)) {
_root.mutedA = false;
_root.music_current.setVolume(100);
mute_delay = mute_delay_total;
} else if ((mute_delay > 0) && (!(Key.isDown(85) || (Key.isDown(117))))) {
mute_delay = 0;
}
if (mute_delay > 0) {
mute_delay--;
}
if ((Key.isDown(77) || (Key.isDown(109))) && (mute_delay == 0)) {
stopAllSounds();
_root.music(_root.music_menu);
_root.gotoAndStop("menu");
}
if ((Key.isDown(81) || (Key.isDown(113))) && (quality_delay == 0)) {
_root.toggleQuality();
quality_delay = quality_delay_total;
} else if ((quality_delay > 0) && (!(Key.isDown(81) || (Key.isDown(113))))) {
quality_delay = 0;
}
if (quality_delay > 0) {
quality_delay--;
}
}
Frame 2
function modScore(amount) {
_root.score = _root.score + amount;
if (_root.score > 0) {
_root.scoreBar.scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
} else {
_root.scoreBar.scoreText = "$0.00";
}
}
function addCommas(theNumber) {
numString = theNumber + "";
newString = "";
index = 1;
trip = 0;
while (numString.length >= index) {
if (trip != 3) {
newString = numString.charAt(numString.length - index) + newString;
index++;
trip++;
} else {
newString = "," + newString;
trip = 0;
}
}
return(newString);
}
function killCommas(s) {
return(s.split(",").join(""));
}
function music(music) {
if (!_root.mutedA) {
_root.music_current = music;
_root.music_current.stop();
music.start(0, 10000);
music.setVolume(100);
}
}
function toggleQuality() {
if (qualityA == 1) {
qualityA = 2;
_quality = "medium";
} else if (qualityA == 2) {
qualityA = 3;
_quality = "low";
} else if (qualityA == 3) {
qualityA = 1;
_quality = "high";
}
}
stop();
if (_root.frameBox._currentframe == 2) {
_root.frameBox.gotoAndStop(3);
stopAllSounds();
_root.gotoAndStop("l1i");
}
_quality = "high";
var qualityA = 1;
var score = 0;
var currentLevel = 1;
var goClassic = false;
var goMain = false;
var goMain2 = false;
if (mutedA != true) {
var mutedA = false;
}
var music_current = new Sound();
var music_menu = new Sound();
music_menu.attachSound("music_menu");
var music_main = new Sound();
music_main.attachSound("music_main");
var music_boss = new Sound();
music_boss.attachSound("music_boss");
var enemy_rope_int = 2;
var enemy_rope_speed = 2.5;
var enemy_rope_speed_range = 1;
var enemy_rope_fallSpeed = 5;
var enemy_fly_int = 2;
var enemy_fly_speed = 2;
var enemy_fly_speed_range = 1;
var enemy_flybot_int = 6;
var enemy_flybot_speed = 3;
var enemy_flybot_speed_range = 1;
var enemy_flybot_speed2 = 20;
var enemy_claw_int = 3;
var enemy_claw_speed = 15;
var enemy_claw_speed_range = 3.5;
var claw_speed_temp = null;
var claw_grav_temp = null;
var enemy_clawbot_int = 6;
var enemy_clawbot_speed = 15;
var enemy_clawbot_speed_range = 3.5;
var clawbot_speed_temp = null;
var clawbot_grav_temp = null;
var enemy_taser_speed = 5;
var enemy_taser_speed_int = 0.5;
var enemy_taser1_init = false;
var enemy_taser1_leave = false;
var enemy_taser2_init = false;
var enemy_taser2_leave = false;
var enemy_taser3_init = false;
var enemy_taser3_leave = false;
var justDied = false;
var goMenu = false;
var totalKills1 = 30;
var totalKills2 = 55;
var totalKills3 = 80;
var currentKills = 0;
var enemiesOnScreen = 0;
var b1_moveSmasherDown_started = false;
var b1_hitHeadOnce = false;
var b2_moveSmasherDown_started = false;
var b2_hitHeadOnce = false;
var b3_moveSmasherDown_started = false;
var b3_hitHeadOnce = false;
var b3_dead = false;
var trumpFlipped = false;
var score1 = 5000000000;
var score1_5 = 12500000000;
var score2 = 20000000000;
Frame 3
score = 1000000000000;
scoreBar.scoreText = ("$" + addCommas(score)) + ".00";
_quality = "medium";
qualityA = 2;
smasher.moveReady = false;
smasher_wheels.light.gotoAndStop(22);
Instance of Symbol 425 MovieClip "smasher" in Frame 3
onClipEvent (load) {
var speed_max = 8;
var speed_acc = 1;
var speed_cur = 0;
var moveReady = false;
var bound_top = 55;
var bound_bottom = 450;
var wallBounce = 4;
var justBouncedBottom = false;
var justBouncedBottom_timer = 0;
var justBouncedTop = false;
var justBouncedTop_timer = 0;
var justBounced_timerTotal = 10;
var scooching = false;
var scooch_max = 5;
var scooch_back = false;
var stunned = false;
var stunned_pastBottom = false;
var fall_max = 20;
var fall_cur = 0;
var fall_acc = 1;
}
onClipEvent (enterFrame) {
if (((_root.score <= 0) && (!_root.justDied)) && (!((_root._currentframe == 9) && (_root.boss._currentframe >= 36)))) {
_root.justDied = true;
_root.modScore(0);
_root.black1.gotoAndPlay(2);
}
if (_root.score <= 0) {
_root.modScore(0);
}
if (((!stunned) && (_currentframe >= 60)) && (_currentframe <= 143)) {
stunned = true;
}
if (((((((_root.enemies.enemy_taser1.hit.hitTest(hit) && (_currentframe != _totalframes)) && (_currentframe < 31)) && (!stunned)) && (!scooching)) && (moveReady)) && (_root.enemies.enemy_taser1.taser._currentframe >= 10)) && (_root.enemies.enemy_taser1.taser._currentframe <= 61)) {
moveReady = false;
_root.smasher_wheels.light.gotoAndPlay("off");
gotoAndPlay ("stunned");
}
if (((((((_root.enemies.enemy_taser2.hit.hitTest(hit) && (_currentframe != _totalframes)) && (_currentframe < 31)) && (!stunned)) && (!scooching)) && (moveReady)) && (_root.enemies.enemy_taser2.taser._currentframe >= 10)) && (_root.enemies.enemy_taser2.taser._currentframe <= 61)) {
moveReady = false;
_root.smasher_wheels.light.gotoAndPlay("off");
gotoAndPlay ("stunned");
}
if (((((((_root.enemies.enemy_taser3.hit.hitTest(hit) && (_currentframe != _totalframes)) && (_currentframe < 31)) && (!stunned)) && (!scooching)) && (moveReady)) && (_root.enemies.enemy_taser3.taser._currentframe >= 10)) && (_root.enemies.enemy_taser3.taser._currentframe <= 61)) {
moveReady = false;
_root.smasher_wheels.light.gotoAndPlay("off");
gotoAndPlay ("stunned");
}
if (justBouncedBottom_timer > 0) {
justBouncedBottom_timer--;
} else if ((justBouncedBottom_timer == 0) && (justBouncedBottom == true)) {
justBouncedBottom_timer = 0;
justBouncedBottom = false;
}
if (justBouncedTop_timer > 0) {
justBouncedTop_timer--;
} else if ((justBouncedTop_timer == 0) && (justBouncedTop == true)) {
justBouncedTop_timer = 0;
justBouncedTop = false;
}
if (((((moveReady && (!stunned)) && (!scooching)) && ((_root.boss1Intro._currentframe == 1) || (_root.boss1Intro._currentframe == undefined))) && ((_root.boss2Intro._currentframe == 1) || (_root.boss2Intro._currentframe == undefined))) && ((_root.boss3Intro._currentframe == 1) || (_root.boss3Intro._currentframe == undefined))) {
if (((_currentframe >= 31) && (_root.smasher_wheels.light._currentframe != 1)) && (_root.smasher_wheels.light._currentframe < 23)) {
this.gotoAndStop(1);
_root.smasher_wheels.light.gotoAndPlay("on");
}
if (Key.isDown(32) && (_currentframe == 1)) {
this.gotoAndPlay("smash");
}
if (speed_cur != 0) {
_y = (_y + speed_cur);
_root.smasher_wheels._y = _root.smasher_wheels._y + speed_cur;
_root.smasher_bg._y = _root.smasher_bg._y + speed_cur;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation - (speed_cur * 3);
}
if (Key.isDown(38) && (speed_cur > (speed_max * -1))) {
speed_cur = speed_cur - speed_acc;
} else if (Key.isDown(40) && (speed_cur < speed_max)) {
speed_cur = speed_cur + speed_acc;
} else if (speed_cur != 0) {
if (speed_cur > 0) {
speed_cur = speed_cur - speed_acc;
} else if (speed_cur < 0) {
speed_cur = speed_cur + speed_acc;
}
}
if (((_currentframe < 32) && ((_y - (_height / 2)) <= bound_top)) && (speed_cur != 0)) {
if (!justBouncedTop) {
justBouncedTop = true;
justBouncedTop_timer = justBounced_timerTotal;
speed_cur = wallBounce;
} else {
speed_cur = 0;
justBouncedTop_timer = justBounced_timerTotal;
}
_y = (_y + speed_acc);
_root.smasher_wheels._y = _root.smasher_wheels._y + speed_acc;
_root.smasher_bg._y = _root.smasher_bg._y + speed_acc;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation - (speed_acc * 3);
} else if (((_currentframe < 32) && ((_y + (_height / 2)) >= bound_bottom)) && (speed_cur != 0)) {
if (!justBouncedBottom) {
justBouncedBottom = true;
justBouncedBottom_timer = justBounced_timerTotal;
speed_cur = wallBounce * -1;
} else {
speed_cur = 0;
justBouncedBottom_timer = justBounced_timerTotal;
}
_y = (_y - speed_acc);
_root.smasher_wheels._y = _root.smasher_wheels._y - speed_acc;
_root.smasher_bg._y = _root.smasher_bg._y - speed_acc;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation + (speed_acc * 3);
}
} else if (scooching) {
if ((speed_cur < scooch_max) && (!scooch_back)) {
speed_cur = speed_cur + speed_acc;
_y = (_y - speed_cur);
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation + (speed_cur * 3);
_root.smasher_wheels._y = _root.smasher_wheels._y - speed_cur;
_root.smasher_bg._y = _root.smasher_bg._y - speed_cur;
} else if ((speed_cur >= scooch_max) && (!scooch_back)) {
scooch_back = true;
}
if (scooch_back && (speed_cur > 0)) {
speed_cur = speed_cur - speed_acc;
_y = (_y - speed_cur);
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation + (speed_cur * 3);
_root.smasher_wheels._y = _root.smasher_wheels._y - speed_cur;
_root.smasher_bg._y = _root.smasher_bg._y - speed_cur;
} else if (scooch_back && (speed_cur <= 0)) {
speed_cur = 0;
scooching = false;
scooch_back = false;
moveReady = true;
stunned = false;
this.gotoAndStop(1);
_root.smasher_wheels.light.gotoAndPlay("on");
if (_root._currentframe == 3) {
_root.gotoAndStop("l1");
}
}
}
if ((_currentframe == _totalframes) && (!scooching)) {
scooching = true;
}
if (stunned && ((_y + (_height / 2)) < bound_bottom)) {
if (fall_cur < fall_max) {
fall_cur = fall_cur + fall_acc;
} else if (fall_cur > fall_max) {
fall_cur = fall_max;
}
_y = (_y + fall_cur);
_root.smasher_wheels._y = _root.smasher_wheels._y + fall_cur;
_root.smasher_bg._y = _root.smasher_bg._y + fall_cur;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation - (fall_cur * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation - (fall_cur * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation + (fall_cur * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation + (fall_cur * 3);
}
while (stunned && ((_y + (_height / 2)) >= bound_bottom)) {
stunned_pastBottom = true;
_y = (_y - 0.01);
_root.smasher_wheels._y = _root.smasher_wheels._y - 0.01;
_root.smasher_bg._y = _root.smasher_bg._y - 0.01;
}
if (((_currentframe < 32) && ((_y + (_height / 2)) == bound_bottom)) || (stunned_pastBottom)) {
stunned_pastBottom = false;
stunned = false;
speed_cur = 0;
fall_cur = 0;
this.gotoAndPlay("bounce");
}
while (((_currentframe < 32) && ((_y - (_height / 2)) <= bound_top)) && (bound_top == 55)) {
_y = (_y + 0.1);
_root.smasher_wheels._y = _root.smasher_wheels._y + 0.1;
_root.smasher_bg._y = _root.smasher_bg._y + 0.1;
}
while (((((_currentframe < 32) && ((_y + (_height / 2)) >= bound_bottom)) && (!stunned)) && (!scooching)) && (_currentframe < 32)) {
_y = (_y - 0.1);
_root.smasher_wheels._y = _root.smasher_wheels._y - 0.1;
_root.smasher_bg._y = _root.smasher_bg._y - 0.1;
}
_root.smasher_bg._y = _y - 27.3;
_root.smasher_wheels._y = _y + 2;
}
Frame 4
currentLevel = 1;
currentKills = 0;
enemiesOnScreen = 0;
smasher.bound_top = 55;
Frame 5
smasher.moveReady = true;
enemies.enemy_fly1.bound_top = 150;
enemies.enemy_fly2.bound_top = 150;
enemies.enemy_fly3.bound_top = 150;
enemy_fly_int = 3;
_root.music(_root.music_boss);
Frame 6
currentLevel = 2;
currentKills = 0;
smasher.moveReady = true;
enemies.enemy_fly1.bound_top = 0;
enemies.enemy_fly2.bound_top = 0;
enemies.enemy_fly3.bound_top = 0;
enemy_rope_int = 2;
enemy_fly_int = 3;
enemy_claw_int = 3;
enemy_clawbot_int = 3;
enemy_flybot_int = 4;
_root.music(_root.music_main);
com.newgrounds.API.unlockMedal("Claw Crusher");
_root.saveData.data.medal_beatFirst = true;
Frame 7
smasher.moveReady = true;
enemies.enemy_fly1.bound_top = 150;
enemies.enemy_fly2.bound_top = 150;
enemies.enemy_fly3.bound_top = 150;
enemies.enemy_flybot1.bound_top = 150;
enemy_fly_int = 5;
enemy_flybot_int = 30;
_root.music(_root.music_boss);
Instance of Symbol 1285 MovieClip "boss" in Frame 7
onClipEvent (load) {
function chooseState(choice) {
rope_init = false;
claws_init = false;
_root.b2_moveSmasherDown_started = false;
if (choice == null) {
if (states.length > 0) {
var _local4 = Math.floor(Math.random() * states.length);
currentState = states[_local4];
states.splice(_local4, 1);
} else {
currentState = null;
states = new Array("claws", "rope");
bump1.gotoAndPlay("die");
bump2.gotoAndPlay("die");
}
} else {
currentState = choice;
var _local2 = 0;
while (_local2 < states.length) {
if (states[_local2] == choice) {
states.splice(_local2, 1);
}
_local2++;
}
}
}
var states = new Array("claws", "rope");
var currentState = null;
var currentRound = 1;
chooseState();
var hitHeadTimer = 0;
var hitHeadTimer_max = 150;
var hitHeadTimer_started = false;
var moveSmasherDown_int = 1;
var moveSmasherDown = 0;
var moveSmasherDown_max = 10;
var moveSmasherDown_ease = false;
var moveSmasherDown_first = false;
var claws_init = false;
var claws_speed = 5;
var claws_fallSpeed_int = 1;
var claws_c1_fallSpeed = 0;
var claws_c2_fallSpeed = 0;
var claws_c1_diedWithMoney = null;
var claws_c2_diedWithMoney = null;
var claws_c1_dec = false;
var claws_c1_asc = false;
var claws_c1_get = false;
var claws_c1_put = false;
var claws_c1_hp = 1;
var claws_c2_dec = false;
var claws_c2_asc = false;
var claws_c2_get = false;
var claws_c2_put = false;
var claws_c2_hp = 1;
var claws_rand = null;
var claws_top = -323;
var claws_bottom = 44;
var claws_1_start = 1;
var claws_1_choose = 48;
var claws_1_realGrab = 49;
var claws_1_grab = 52;
var claws_1_endGrab = 59;
var claws_1_hurt2 = 69;
var claws_1_endHurt2 = 86;
var claws_1_hurt1 = 87;
var claws_1_endHurt1 = 106;
var claws_1_put = 107;
var claws_1_endPut = 140;
var claws_1_die = 141;
var claws_1_endDie = 175;
var claws_1_start2 = 176;
var claws_1_start3 = 339;
var rope_init = false;
var rope_falling = false;
var rope_fall_max = 20;
var rope_fall_current = 0;
var rope_fall_int = 2;
var rope_y_def = -432.6;
var rope_y_max = -25;
var rope_y_def2 = -479.6;
var rope_gotMoney = false;
var rope_backToDef = false;
var rope_back_wait_max = 10;
var rope_back_wait = rope_back_wait_max;
var rope_goingUp = false;
var rope_up_max = 15;
var rope_up_current = 0;
var rope_up_int = 1;
var rope_ropeDying = false;
var rope_ropeDieFall = -12.5;
var rope_ropeDieFall_int = 0.75;
var rope_startFrame = 1;
var rope_grabFrame = 98;
var rope_dieFrame = 120;
var rope_anotherFrame = 167;
var rope_anotherFrame2 = 336;
var rope_anotherFrame3 = 486;
}
onClipEvent (enterFrame) {
if ((currentRound < 2) && (((_root.enemy_taser1_leave || (_root.enemy_taser1_init)) || ((!_root.enemies.enemy_taser1._y) == 0)) || (_root.enemies.enemy_taser1._currentframe != 1))) {
_root.enemy_taser1_leave = false;
_root.enemy_taser1_init = false;
_root.enemies.enemy_taser1._y = 0;
_root.enemies.enemy_taser1.gotoAndStop(1);
}
if (((currentRound == 1) && (head._currentframe != 1)) && (head != null)) {
head.gotoAndStop(1);
} else if (((currentRound == 2) && (head._currentframe != 2)) && (head != null)) {
head.gotoAndStop(2);
} else if (((currentRound == 3) && (head._currentframe != 3)) && (head != null)) {
head.gotoAndStop(3);
}
if ((((bump1._currentframe < 31) && (bump2._currentframe < 31)) && (_root.smasher.moveReady)) && ((currentState == "claws") || (currentState == "rope"))) {
bump1.play();
bump2.play();
}
if (currentState == "claws") {
if (!claws_init) {
claw1.claw._y = -323.2;
claw2.claw._y = -323.2;
claw1.claw.claw.gotoAndPlay(claws_1_start);
claw2.claw.claw.gotoAndPlay(claws_1_start);
claws_c1_fallSpeed = 0;
claws_c2_fallSpeed = 0;
claws_c1_hp = 1;
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claws_c2_hp = 1;
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claws_c1_diedWithMoney = false;
claws_c2_diedWithMoney = false;
hitHeadTimer = 0;
hitHeadTimer_started = false;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
moveSmasherDown_first = false;
claws_init = true;
if (((!_root.smasher.moveReady) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) {
_root.smasher.moveReady = true;
}
} else if (claws_init) {
if (claw1.claw.claw._currentframe == (claws_1_put + 1)) {
putAway_left.gotoAndPlay(2);
}
if (claw2.claw.claw._currentframe == (claws_1_put + 1)) {
putAway_right.gotoAndPlay(2);
}
if (((((((((((!claws_c1_put) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c2_put)) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (claws_c1_hp == 1)) && (claws_c2_hp == 1)) && ((claw1.claw.claw._currentframe == claws_1_choose) || (claw2.claw.claw._currentframe == claws_1_choose))) {
claws_rand = Math.round(Math.random());
if (claws_rand == 1) {
claws_c1_dec = true;
claw1.claw.claw.gotoAndStop(claws_1_start);
claw2.claw.claw.gotoAndPlay(claws_1_start + 1);
} else {
claws_c2_dec = true;
claw1.claw.claw.gotoAndPlay(claws_1_start + 1);
claw2.claw.claw.gotoAndStop(claws_1_start);
}
}
if ((((((claws_c2_hp != -1) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (!claws_c2_put)) && (claw2.claw.claw._currentframe == claws_1_choose)) {
claws_c2_dec = true;
claw2.claw.claw.gotoAndStop(claws_1_start);
}
if ((((((claws_c1_hp != -1) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c1_put)) && (claw1.claw.claw._currentframe == claws_1_choose)) {
claws_c1_dec = true;
claw1.claw.claw.gotoAndStop(claws_1_start);
}
if ((((((claws_c2_hp != -1) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (!claws_c2_put)) && (claw2.claw.claw._currentframe == claws_1_start)) {
claw2.claw.claw.gotoAndPlay(claws_1_start);
}
if ((((((claws_c1_hp != -1) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c1_put)) && (claw1.claw.claw._currentframe == claws_1_start)) {
claw1.claw.claw.gotoAndPlay(claws_1_start);
}
if (claws_c1_dec && (claw1.claw._y < claws_bottom)) {
claw1.claw._y = claw1.claw._y + claws_speed;
claw1.ball._rotation = claw1.ball._rotation + (claws_speed * 2);
claw1.ball2._rotation = claw1.ball2._rotation + (claws_speed * 2);
claw1.ball3._rotation = claw1.ball3._rotation + (claws_speed * 2);
} else if (((claw1.claw._y >= claws_bottom) && (!claws_c1_get)) && (!claws_c1_asc)) {
claw1.claw._y = claws_bottom;
claws_c1_dec = false;
claws_c1_get = true;
claw1.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claw1.claw._y >= claws_bottom) {
claw1.claw._y = claws_bottom - 1;
claws_c1_dec = false;
claws_c1_get = true;
claw1.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claws_c1_get && (claw1.claw.claw._currentframe == claws_1_grab)) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = true;
_root.trump._xscale = -100;
_root.modScore(-1 * _root.score2);
}
} else if (claws_c1_get && (claw1.claw.claw._currentframe == claws_1_endGrab)) {
claws_c1_get = false;
claws_c1_asc = true;
} else if (claws_c1_asc && (claw1.claw._y > claws_top)) {
claw1.claw._y = claw1.claw._y - claws_speed;
claw1.ball._rotation = claw1.ball._rotation - (claws_speed * 2);
claw1.ball2._rotation = claw1.ball2._rotation - (claws_speed * 2);
claw1.ball3._rotation = claw1.ball3._rotation - (claws_speed * 2);
} else if (((claw1.claw._y <= claws_top) && claws_c1_asc) && (!claws_c1_put)) {
claw1.claw._y = claws_top;
claws_c1_asc = false;
claws_c1_put = true;
claw1.claw.claw.gotoAndPlay(claws_1_put);
} else if (claws_c1_put && (claw1.claw.claw._currentframe == claws_1_endPut)) {
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claw1.claw.claw.gotoAndStop(claws_1_start);
}
if (claws_c2_dec && (claw2.claw._y < claws_bottom)) {
claw2.claw._y = claw2.claw._y + claws_speed;
claw2.ball._rotation = claw2.ball._rotation + (claws_speed * 2);
claw2.ball2._rotation = claw2.ball2._rotation + (claws_speed * 2);
claw2.ball3._rotation = claw2.ball3._rotation + (claws_speed * 2);
} else if (((claw2.claw._y >= claws_bottom) && (!claws_c2_get)) && (!claws_c2_asc)) {
claw2.claw._y = claws_bottom;
claws_c2_dec = false;
claws_c2_get = true;
claw2.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claw2.claw._y >= claws_bottom) {
claw2.claw._y = claws_bottom - 1;
claws_c2_dec = false;
claws_c2_get = true;
claw2.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claws_c2_get && (claw2.claw.claw._currentframe == claws_1_grab)) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
_root.modScore(-1 * _root.score2);
}
} else if (claws_c2_get && (claw2.claw.claw._currentframe == claws_1_endGrab)) {
claws_c2_get = false;
claws_c2_asc = true;
} else if (claws_c2_asc && (claw2.claw._y > claws_top)) {
claw2.claw._y = claw2.claw._y - claws_speed;
claw2.ball._rotation = claw2.ball._rotation - (claws_speed * 2);
claw2.ball2._rotation = claw2.ball2._rotation - (claws_speed * 2);
claw2.ball3._rotation = claw2.ball3._rotation - (claws_speed * 2);
} else if (((claw2.claw._y <= claws_top) && claws_c2_asc) && (!claws_c2_put)) {
claw2.claw._y = claws_top;
claws_c2_asc = false;
claws_c2_put = true;
claw2.claw.claw.gotoAndPlay(claws_1_put);
} else if (claws_c2_put && (claw2.claw.claw._currentframe == claws_1_endPut)) {
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claw2.claw.claw.gotoAndStop(claws_1_start);
}
if ((((claw1.claw.claw.hit.hitTest(_root.smasher.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (claw1.claw.claw._currentframe <= claws_1_endGrab)) && ((claws_c1_dec || (claws_c1_asc)) || (claws_c1_get))) {
if (claws_c1_hp == 1) {
claws_c1_hp = 0;
if (claws_c1_dec) {
claw1.claw.claw.gotoAndPlay(claws_1_hurt1);
} else {
claw1.claw.claw.gotoAndPlay(claws_1_hurt2);
}
} else {
claws_c1_hp = -1;
claws_c1_diedWithMoney = claws_c1_asc;
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claw1.claw.claw.gotoAndPlay(claws_1_die);
}
}
if ((((claw2.claw.claw.hit.hitTest(_root.smasher.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (claw2.claw.claw._currentframe <= claws_1_endGrab)) && ((claws_c2_dec || (claws_c2_asc)) || (claws_c2_get))) {
if (claws_c2_hp == 1) {
claws_c2_hp = 0;
if (claws_c2_dec) {
claw2.claw.claw.gotoAndPlay(claws_1_hurt1);
} else {
claw2.claw.claw.gotoAndPlay(claws_1_hurt2);
}
} else {
claws_c2_hp = -1;
claws_c2_diedWithMoney = claws_c2_asc;
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claw2.claw.claw.gotoAndPlay(claws_1_die);
}
}
if (claw1.claw.claw.armHurt != undefined) {
if (claws_c1_diedWithMoney != null) {
if (claws_c1_diedWithMoney) {
claw1.claw.claw.armHurt.gotoAndStop(1);
claws_c1_fallSpeed = claws_speed * -1.5;
} else {
claw1.claw.claw.armHurt.gotoAndStop(2);
claws_c1_fallSpeed = claws_speed;
}
claws_c1_diedWithMoney = null;
}
claws_c1_fallSpeed = claws_c1_fallSpeed + claws_fallSpeed_int;
claw1.claw.claw.armHurt._y = claw1.claw.claw.armHurt._y + claws_c1_fallSpeed;
}
if (claw2.claw.claw.armHurt != undefined) {
if (claws_c2_diedWithMoney != null) {
if (claws_c2_diedWithMoney) {
claw2.claw.claw.armHurt.gotoAndStop(1);
claws_c2_fallSpeed = claws_speed * -1.5;
} else {
claw2.claw.claw.armHurt.gotoAndStop(2);
claws_c2_fallSpeed = claws_speed;
}
claws_c2_diedWithMoney = null;
}
claws_c2_fallSpeed = claws_c2_fallSpeed + claws_fallSpeed_int;
claw2.claw.claw.armHurt._y = claw2.claw.claw.armHurt._y + claws_c2_fallSpeed;
}
if ((((claw1.claw.claw._currentframe == claws_1_endDie) && (claw2.claw.claw._currentframe == claws_1_endDie)) && (claws_c1_hp == -1)) && (claws_c2_hp == -1)) {
claws_init = false;
chooseState();
}
}
}
if (currentState == "rope") {
if (!rope_init) {
rope_falling = false;
rope_fall_current = 0;
rope_gotMoney = false;
rope_backToDef = false;
rope_back_wait = rope_back_wait_max;
rope_goingUp = false;
rope_up_current = 0;
rope_ropeDying = false;
arm._y = rope_y_def;
arm.gotoAndPlay(rope_startFrame);
hitHeadTimer = 0;
hitHeadTimer_started = false;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
moveSmasherDown_first = false;
rope_init = true;
if (((!_root.smasher.moveReady) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) {
_root.smasher.moveReady = true;
}
} else if (rope_init) {
if (rope_goingUp && (((!rope_gotMoney) && (arm._y > rope_y_def)) || (rope_gotMoney && (arm._y > rope_y_def2)))) {
if (rope_up_current < rope_up_max) {
rope_up_current = rope_up_current + rope_up_int;
} else if (rope_up_current > rope_up_max) {
rope_up_current = rope_up_max;
}
arm._y = arm._y - rope_up_current;
rope_fall_current = 0;
if ((!rope_gotMoney) && (arm._y <= (rope_y_def + 25))) {
rope_up_current = rope_up_current / 2;
}
if (rope_gotMoney && (arm._y <= rope_y_def2)) {
arm._y = rope_y_def2;
rope_goingUp = false;
rope_backToDef = true;
arm.gotoAndStop(rope_startFrame);
} else if ((!rope_gotMoney) && (arm._y <= rope_y_def)) {
arm._y = rope_y_def;
rope_goingUp = false;
rope_gotMoney = false;
rope_fall_current = 0;
rope_up_current = 0;
rope_falling = false;
arm.gotoAndPlay(rope_startFrame + 1);
}
} else if (rope_falling && (arm._y < rope_y_max)) {
if (rope_fall_current < rope_fall_max) {
rope_fall_current = rope_fall_current + rope_fall_int;
} else if (rope_fall_current > rope_fall_max) {
rope_fall_current = rope_fall_max;
}
arm._y = arm._y + rope_fall_current;
if (arm._y >= rope_y_max) {
arm._y = rope_y_max;
arm.gotoAndPlay(rope_grabFrame);
rope_falling = false;
}
} else if (rope_backToDef && (arm._y < rope_y_def)) {
if (rope_back_wait > 0) {
rope_back_wait--;
} else {
arm._y = arm._y + ((rope_y_def - arm._y) * 0.2);
if (arm._y >= (rope_y_def - 1)) {
arm._y = rope_y_def;
rope_gotMoney = false;
rope_backToDef = false;
rope_back_wait = rope_back_wait_max;
rope_fall_current = 0;
rope_up_current = 0;
arm.gotoAndPlay(rope_startFrame);
}
}
}
if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb1))) && (arm.orb1._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb1.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
} else if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb2))) && (arm.orb2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb2.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
} else if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb3))) && (arm.orb3._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb3.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
}
if (((((arm.orb1._currentframe == 2) && (arm.orb2._currentframe == 2)) && (arm.orb3._currentframe == 2)) && (!rope_ropeDying)) && (!_root.b2_moveSmasherDown_started)) {
rope_ropeDying = true;
rope_goingUp = false;
rope_falling = false;
rope_backToDef = false;
arm.gotoAndPlay(rope_dieFrame);
}
if (rope_ropeDying && (rope_fall_current > 0)) {
rope_ropeDieFall = -1;
rope_ropeDieFall_int = 1;
rope_fall_current = 0;
}
if (rope_ropeDying) {
rope_ropeDieFall = rope_ropeDieFall + rope_ropeDieFall_int;
arm.clawPiece._y = arm.clawPiece._y + rope_ropeDieFall;
}
if (((((_root.smasher.hit.hitTest(arm.elec1.hit) || (_root.smasher.hit.hitTest(arm.elec2.hit))) || (_root.smasher.hit.hitTest(arm.elec3.hit))) && (_root.smasher._currentframe > 4)) && (_root.smasher._currentframe < 10)) && (_root.smasher._currentframe < 32)) {
_root.smasher.moveReady = false;
_root.smasher_wheels.light.gotoAndPlay("off");
_root.smasher.gotoAndPlay("stunned");
}
}
}
if ((currentState == null) && (_currentframe < 40)) {
if (hitHeadTimer_started && (hitHeadTimer < hitHeadTimer_max)) {
hitHeadTimer++;
} else if ((hitHeadTimer >= hitHeadTimer_max) && (!_root.b2_moveSmasherDown_started)) {
_root.b2_moveSmasherDown_started = true;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
moveSmasherDown_ease = false;
moveSmasherDown = 0;
hitHeadTimer = 0;
hitHeadTimer_started = false;
_root.smasher.bound_top = 189;
if (bump1._currentframe == bump1._totalframes) {
bump1.gotoAndPlay(2);
}
if (bump2._currentframe == bump2._totalframes) {
bump2.gotoAndPlay(2);
}
if (claw1._currentframe == 1) {
claw1.gotoAndPlay("enter");
}
if (claw2._currentframe == 1) {
claw2.gotoAndPlay("enter");
}
arm._y = rope_y_def;
arm.gotoAndPlay(rope_anotherFrame);
}
if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 1)) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
this.gotoAndPlay("hurt1");
}
if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 2)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 2)) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
this.gotoAndPlay("hurt2");
} else if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 3)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 3)) {
hitHeadTimer = 0;
hitHeadTimer_started = false;
_root.b2_moveSmasherDown_started = false;
this.gotoAndPlay("die");
}
if (_root.b2_moveSmasherDown_started) {
if ((_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
if (moveSmasherDown < moveSmasherDown_max) {
moveSmasherDown = moveSmasherDown + moveSmasherDown_int;
}
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if ((_root.smasher._y >= (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
moveSmasherDown_ease = true;
}
if ((moveSmasherDown > 0) && (moveSmasherDown_ease)) {
moveSmasherDown = moveSmasherDown - moveSmasherDown_int;
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if (((moveSmasherDown <= 0) && (moveSmasherDown_ease)) && (bump1._currentframe == 31)) {
moveSmasherDown = 0;
moveSmasherDown_ease = false;
_root.b2_moveSmasherDown_started = false;
_root.smasher.moveReady = true;
chooseState("claws");
}
}
}
}
Frame 8
currentLevel = 3;
currentKills = 0;
smasher.moveReady = true;
enemies.enemy_fly1.bound_top = 0;
enemies.enemy_fly2.bound_top = 0;
enemies.enemy_fly3.bound_top = 0;
enemies.enemy_flybot1.bound_top = 0;
enemies.enemy_taser1.bound_top = 0;
enemy_rope_int = 2;
enemy_fly_int = 2;
enemy_claw_int = 2;
enemy_clawbot_int = 3;
enemy_flybot_int = 3;
_root.music(_root.music_main);
com.newgrounds.API.unlockMedal("Double Defense");
_root.saveData.data.medal_beatSecond = true;
Frame 9
smasher.moveReady = true;
enemies.enemy_fly1.bound_top = 150;
enemies.enemy_fly2.bound_top = 150;
enemies.enemy_fly3.bound_top = 150;
enemies.enemy_flybot1.bound_top = 150;
enemy_fly_int = 5;
enemy_flybot_int = 25;
_root.music(_root.music_boss);
Instance of Symbol 1421 MovieClip "boss" in Frame 9
onClipEvent (load) {
function chooseState(choice) {
rope_init = false;
claws_init = false;
vac_init = false;
_root.b3_moveSmasherDown_started = false;
if (choice == null) {
if (states.length > 0) {
var _local4 = Math.floor(Math.random() * states.length);
currentState = states[_local4];
states.splice(_local4, 1);
} else {
currentState = null;
states = new Array("claws", "rope", "vac");
taser.gotoAndPlay("off");
}
} else {
currentState = choice;
var _local2 = 0;
while (_local2 < states.length) {
if (states[_local2] == choice) {
states.splice(_local2, 1);
}
_local2++;
}
}
}
var states = new Array("claws", "rope", "vac");
var currentState = null;
var currentRound = 1;
chooseState();
var hitHeadTimer = 0;
var hitHeadTimer_max = 150;
var hitHeadTimer_started = false;
var moveSmasherDown_int = 1;
var moveSmasherDown = 0;
var moveSmasherDown_max = 10;
var moveSmasherDown_ease = false;
var moveSmasherDown_first = false;
var claws_init = false;
var claws_speed = 5;
var claws_fallSpeed_int = 1;
var claws_c1_fallSpeed = 0;
var claws_c2_fallSpeed = 0;
var claws_c1_diedWithMoney = null;
var claws_c2_diedWithMoney = null;
var claws_c1_dec = false;
var claws_c1_asc = false;
var claws_c1_get = false;
var claws_c1_put = false;
var claws_c1_hp = 1;
var claws_c2_dec = false;
var claws_c2_asc = false;
var claws_c2_get = false;
var claws_c2_put = false;
var claws_c2_hp = 1;
var claws_rand = null;
var claws_top = 109.3;
var claws_bottom = 470;
var claws_1_start = 1;
var claws_1_choose = 39;
var claws_1_realGrab = 40;
var claws_1_grab = 44;
var claws_1_endGrab = 52;
var claws_1_hurt1 = 56;
var claws_1_endHurt1 = 66;
var claws_1_hurt2 = 67;
var claws_1_endHurt2 = 77;
var claws_1_put = 78;
var claws_1_endPut = 111;
var claws_1_die = 112;
var claws_1_endDie = 146;
var claws_1_start2 = 147;
var claws_1_start3 = 283;
var rope_init = false;
var rope_falling = false;
var rope_fall_max = 20;
var rope_fall_current = 0;
var rope_fall_int = 2;
var rope_y_def = 81;
var rope_y_max = 470;
var rope_y_def2 = 34;
var rope_gotMoney = false;
var rope_backToDef = false;
var rope_back_wait_max = 10;
var rope_back_wait = rope_back_wait_max;
var rope_goingUp = false;
var rope_up_max = 15;
var rope_up_current = 0;
var rope_up_int = 1;
var rope_ropeDying = false;
var rope_ropeDieFall = -12.5;
var rope_ropeDieFall_int = 0.75;
var rope_startFrame = 1;
var rope_grabFrame = 113;
var rope_dieFrame = 135;
var rope_anotherFrame = 182;
var rope_anotherFrame2 = 361;
var rope_anotherFrame3 = 514;
var vac_sucking = false;
var vac_m1_rising = false;
var vac_m1_falling = false;
var vac_m2_rising = false;
var vac_m2_falling = false;
var vac_m3_rising = false;
var vac_m3_falling = false;
var vac_hp_total = 10;
var vac_hp = vac_hp_total;
var vac_m1_speed = 0;
var vac_m2_speed = 0;
var vac_m3_speed = 0;
var vac_m1_xSpeed = 0;
var vac_m2_xSpeed = 0;
var vac_m3_xSpeed = 0;
var vac_fall_int = 0.5;
var vac_speed_max = 5;
var vac_y_start = 267.3;
var vac_y_end = -28.7;
}
onClipEvent (enterFrame) {
if (((((((taser._currentframe == 1) && (_root.smasher.hit.hitTest(taser))) && (!moveSmasherDown_ease)) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) && (!_root.b3_moveSmasherDown_started)) && (!_root.boss.hitHeadTimer_started)) {
taser.gotoAndPlay(2);
_root.smasher.moveReady = false;
}
if (((currentRound == 1) && (head._currentframe != 1)) && (head != null)) {
head.gotoAndStop(1);
} else if (((currentRound == 2) && (head._currentframe != 2)) && (head != null)) {
head.gotoAndStop(2);
} else if (((currentRound == 3) && (head._currentframe != 3)) && (head != null)) {
head.gotoAndStop(3);
}
if (currentState == "claws") {
if (!claws_init) {
claw1.claw._y = claws_top;
claw2.claw._y = claws_top;
claw1.claw.claw.gotoAndPlay(claws_1_start);
claw2.claw.claw.gotoAndPlay(claws_1_start);
claws_c1_fallSpeed = 0;
claws_c2_fallSpeed = 0;
claws_c1_hp = 1;
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claws_c2_hp = 1;
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claws_c1_diedWithMoney = false;
claws_c2_diedWithMoney = false;
hitHeadTimer = 0;
hitHeadTimer_started = false;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
moveSmasherDown_first = false;
claws_init = true;
if (((!_root.smasher.moveReady) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) {
_root.smasher.moveReady = true;
}
} else if (claws_init) {
if (claw1.claw.claw._currentframe == (claws_1_put + 1)) {
putAway_left.gotoAndPlay(2);
}
if (claw2.claw.claw._currentframe == (claws_1_put + 1)) {
putAway_right.gotoAndPlay(2);
}
if (((((((((((!claws_c1_put) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c2_put)) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (claws_c1_hp == 1)) && (claws_c2_hp == 1)) && ((claw1.claw.claw._currentframe == claws_1_choose) || (claw2.claw.claw._currentframe == claws_1_choose))) {
claws_rand = Math.round(Math.random());
if (claws_rand == 1) {
claws_c1_dec = true;
claw1.claw.claw.gotoAndStop(claws_1_start);
claw2.claw.claw.gotoAndPlay(claws_1_start + 1);
} else {
claws_c2_dec = true;
claw1.claw.claw.gotoAndPlay(claws_1_start + 1);
claw2.claw.claw.gotoAndStop(claws_1_start);
}
}
if ((((((claws_c2_hp != -1) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (!claws_c2_put)) && (claw2.claw.claw._currentframe == claws_1_choose)) {
claws_c2_dec = true;
claw2.claw.claw.gotoAndStop(claws_1_start);
}
if ((((((claws_c1_hp != -1) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c1_put)) && (claw1.claw.claw._currentframe == claws_1_choose)) {
claws_c1_dec = true;
claw1.claw.claw.gotoAndStop(claws_1_start);
}
if ((((((claws_c2_hp != -1) && (!claws_c2_asc)) && (!claws_c2_get)) && (!claws_c2_dec)) && (!claws_c2_put)) && (claw2.claw.claw._currentframe == claws_1_start)) {
claw2.claw.claw.gotoAndPlay(claws_1_start);
}
if ((((((claws_c1_hp != -1) && (!claws_c1_asc)) && (!claws_c1_get)) && (!claws_c1_dec)) && (!claws_c1_put)) && (claw1.claw.claw._currentframe == claws_1_start)) {
claw1.claw.claw.gotoAndPlay(claws_1_start);
}
if (claws_c1_dec && (claw1.claw._y < claws_bottom)) {
claw1.claw._y = claw1.claw._y + claws_speed;
claw1.ball._rotation = claw1.ball._rotation + (claws_speed * 2);
claw1.ball2._rotation = claw1.ball2._rotation + (claws_speed * 2);
claw1.ball3._rotation = claw1.ball3._rotation + (claws_speed * 2);
} else if (((claw1.claw._y >= claws_bottom) && (!claws_c1_get)) && (!claws_c1_asc)) {
claw1.claw._y = claws_bottom;
claws_c1_dec = false;
claws_c1_get = true;
claw1.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claw1.claw._y >= claws_bottom) {
claw1.claw._y = claws_bottom - 1;
claws_c1_dec = false;
claws_c1_get = true;
claw1.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claws_c1_get && (claw1.claw.claw._currentframe == claws_1_grab)) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = true;
_root.trump._xscale = -100;
_root.modScore(-1 * _root.score2);
}
} else if (claws_c1_get && (claw1.claw.claw._currentframe == claws_1_endGrab)) {
claws_c1_get = false;
claws_c1_asc = true;
} else if (claws_c1_asc && (claw1.claw._y > claws_top)) {
claw1.claw._y = claw1.claw._y - claws_speed;
claw1.ball._rotation = claw1.ball._rotation - (claws_speed * 2);
claw1.ball2._rotation = claw1.ball2._rotation - (claws_speed * 2);
claw1.ball3._rotation = claw1.ball3._rotation - (claws_speed * 2);
} else if (((claw1.claw._y <= claws_top) && claws_c1_asc) && (!claws_c1_put)) {
claw1.claw._y = claws_top;
claws_c1_asc = false;
claws_c1_put = true;
claw1.claw.claw.gotoAndPlay(claws_1_put);
} else if (claws_c1_put && (claw1.claw.claw._currentframe == claws_1_endPut)) {
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claw1.claw.claw.gotoAndStop(claws_1_start);
}
if (claws_c2_dec && (claw2.claw._y < claws_bottom)) {
claw2.claw._y = claw2.claw._y + claws_speed;
claw2.ball._rotation = claw2.ball._rotation + (claws_speed * 2);
claw2.ball2._rotation = claw2.ball2._rotation + (claws_speed * 2);
claw2.ball3._rotation = claw2.ball3._rotation + (claws_speed * 2);
} else if (((claw2.claw._y >= claws_bottom) && (!claws_c2_get)) && (!claws_c2_asc)) {
claw2.claw._y = claws_bottom;
claws_c2_dec = false;
claws_c2_get = true;
claw2.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claw2.claw._y >= claws_bottom) {
claw2.claw._y = claws_bottom - 1;
claws_c2_dec = false;
claws_c2_get = true;
claw2.claw.claw.gotoAndPlay(claws_1_realGrab);
} else if (claws_c2_get && (claw2.claw.claw._currentframe == claws_1_grab)) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
_root.modScore(-1 * _root.score2);
}
} else if (claws_c2_get && (claw2.claw.claw._currentframe == claws_1_endGrab)) {
claws_c2_get = false;
claws_c2_asc = true;
} else if (claws_c2_asc && (claw2.claw._y > claws_top)) {
claw2.claw._y = claw2.claw._y - claws_speed;
claw2.ball._rotation = claw2.ball._rotation - (claws_speed * 2);
claw2.ball2._rotation = claw2.ball2._rotation - (claws_speed * 2);
claw2.ball3._rotation = claw2.ball3._rotation - (claws_speed * 2);
} else if (((claw2.claw._y <= claws_top) && claws_c2_asc) && (!claws_c2_put)) {
claw2.claw._y = claws_top;
claws_c2_asc = false;
claws_c2_put = true;
claw2.claw.claw.gotoAndPlay(claws_1_put);
} else if (claws_c2_put && (claw2.claw.claw._currentframe == claws_1_endPut)) {
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claw2.claw.claw.gotoAndStop(claws_1_start);
}
if ((((claw1.claw.claw.hit.hitTest(_root.smasher.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (claw1.claw.claw._currentframe <= claws_1_endGrab)) && ((claws_c1_dec || (claws_c1_asc)) || (claws_c1_get))) {
if (claws_c1_hp == 1) {
claws_c1_hp = 0;
if (claws_c1_dec) {
claw1.claw.claw.gotoAndPlay(claws_1_hurt1);
} else {
claw1.claw.claw.gotoAndPlay(claws_1_hurt2);
}
} else {
claws_c1_hp = -1;
claws_c1_diedWithMoney = claws_c1_asc;
claws_c1_dec = false;
claws_c1_asc = false;
claws_c1_get = false;
claws_c1_put = false;
claw1.claw.claw.gotoAndPlay(claws_1_die);
}
}
if ((((claw2.claw.claw.hit.hitTest(_root.smasher.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (claw2.claw.claw._currentframe <= claws_1_endGrab)) && ((claws_c2_dec || (claws_c2_asc)) || (claws_c2_get))) {
if (claws_c2_hp == 1) {
claws_c2_hp = 0;
if (claws_c2_dec) {
claw2.claw.claw.gotoAndPlay(claws_1_hurt1);
} else {
claw2.claw.claw.gotoAndPlay(claws_1_hurt2);
}
} else {
claws_c2_hp = -1;
claws_c2_diedWithMoney = claws_c2_asc;
claws_c2_dec = false;
claws_c2_asc = false;
claws_c2_get = false;
claws_c2_put = false;
claw2.claw.claw.gotoAndPlay(claws_1_die);
}
}
if (claw1.claw.claw.armHurt != undefined) {
if (claws_c1_diedWithMoney != null) {
if (claws_c1_diedWithMoney) {
claw1.claw.claw.armHurt.gotoAndStop(1);
claws_c1_fallSpeed = claws_speed * -1.5;
} else {
claw1.claw.claw.armHurt.gotoAndStop(2);
claws_c1_fallSpeed = claws_speed;
}
claws_c1_diedWithMoney = null;
}
claws_c1_fallSpeed = claws_c1_fallSpeed + claws_fallSpeed_int;
claw1.claw.claw.armHurt._y = claw1.claw.claw.armHurt._y + claws_c1_fallSpeed;
}
if (claw2.claw.claw.armHurt != undefined) {
if (claws_c2_diedWithMoney != null) {
if (claws_c2_diedWithMoney) {
claw2.claw.claw.armHurt.gotoAndStop(1);
claws_c2_fallSpeed = claws_speed * -1.5;
} else {
claw2.claw.claw.armHurt.gotoAndStop(2);
claws_c2_fallSpeed = claws_speed;
}
claws_c2_diedWithMoney = null;
}
claws_c2_fallSpeed = claws_c2_fallSpeed + claws_fallSpeed_int;
claw2.claw.claw.armHurt._y = claw2.claw.claw.armHurt._y + claws_c2_fallSpeed;
}
if ((((claw1.claw.claw._currentframe == claws_1_endDie) && (claw2.claw.claw._currentframe == claws_1_endDie)) && (claws_c1_hp == -1)) && (claws_c2_hp == -1)) {
claws_init = false;
chooseState();
}
}
}
if (currentState == "rope") {
if (!rope_init) {
rope_falling = false;
rope_fall_current = 0;
rope_gotMoney = false;
rope_backToDef = false;
rope_back_wait = rope_back_wait_max;
rope_goingUp = false;
rope_up_current = 0;
rope_ropeDying = false;
arm._y = rope_y_def;
arm.gotoAndPlay(rope_startFrame);
hitHeadTimer = 0;
hitHeadTimer_started = false;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
moveSmasherDown_first = false;
rope_init = true;
if (((!_root.smasher.moveReady) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) {
_root.smasher.moveReady = true;
}
} else if (rope_init) {
if (rope_goingUp && (((!rope_gotMoney) && (arm._y > rope_y_def)) || (rope_gotMoney && (arm._y > rope_y_def2)))) {
if (rope_up_current < rope_up_max) {
rope_up_current = rope_up_current + rope_up_int;
} else if (rope_up_current > rope_up_max) {
rope_up_current = rope_up_max;
}
arm._y = arm._y - rope_up_current;
rope_fall_current = 0;
if ((!rope_gotMoney) && (arm._y <= (rope_y_def + 25))) {
rope_up_current = rope_up_current / 2;
}
if (rope_gotMoney && (arm._y <= rope_y_def2)) {
arm._y = rope_y_def2;
rope_goingUp = false;
rope_backToDef = true;
arm.gotoAndStop(rope_startFrame);
} else if ((!rope_gotMoney) && (arm._y <= rope_y_def)) {
arm._y = rope_y_def;
rope_goingUp = false;
rope_gotMoney = false;
rope_fall_current = 0;
rope_up_current = 0;
rope_falling = false;
arm.gotoAndPlay(rope_startFrame + 1);
}
} else if (rope_falling && (arm._y < rope_y_max)) {
if (rope_fall_current < rope_fall_max) {
rope_fall_current = rope_fall_current + rope_fall_int;
} else if (rope_fall_current > rope_fall_max) {
rope_fall_current = rope_fall_max;
}
arm._y = arm._y + rope_fall_current;
if (arm._y >= rope_y_max) {
arm._y = rope_y_max;
arm.gotoAndPlay(rope_grabFrame);
rope_falling = false;
}
} else if (rope_backToDef && (arm._y < rope_y_def)) {
if (rope_back_wait > 0) {
rope_back_wait--;
} else {
arm._y = arm._y + ((rope_y_def - arm._y) * 0.2);
if (arm._y >= (rope_y_def - 1)) {
arm._y = rope_y_def;
rope_gotMoney = false;
rope_backToDef = false;
rope_back_wait = rope_back_wait_max;
rope_fall_current = 0;
rope_up_current = 0;
arm.gotoAndPlay(rope_startFrame);
}
}
}
if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb1))) && (arm.orb1._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb1.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
} else if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb2))) && (arm.orb2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb2.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
} else if ((((_root.smasher.moveReady && (_root.smasher.hit.hitTest(arm.orb3))) && (arm.orb3._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
arm.orb3.gotoAndStop(2);
rope_goingUp = true;
rope_falling = false;
if (!rope_gotMoney) {
rope_up_current = -5;
}
}
if (((((arm.orb1._currentframe == 2) && (arm.orb2._currentframe == 2)) && (arm.orb3._currentframe == 2)) && (!rope_ropeDying)) && (!_root.b3_moveSmasherDown_started)) {
rope_ropeDying = true;
rope_goingUp = false;
rope_falling = false;
rope_backToDef = false;
arm.gotoAndPlay(rope_dieFrame);
}
if (rope_ropeDying && (rope_fall_current > 0)) {
rope_ropeDieFall = -1;
rope_ropeDieFall_int = 1;
rope_fall_current = 0;
}
if (rope_ropeDying) {
rope_ropeDieFall = rope_ropeDieFall + rope_ropeDieFall_int;
arm.clawPiece._y = arm.clawPiece._y + rope_ropeDieFall;
}
if (((((_root.smasher.hit.hitTest(arm.elec1.hit) || (_root.smasher.hit.hitTest(arm.elec2.hit))) || (_root.smasher.hit.hitTest(arm.elec3.hit))) && (_root.smasher._currentframe > 4)) && (_root.smasher._currentframe < 10)) && (_root.smasher._currentframe < 32)) {
_root.smasher.moveReady = false;
_root.smasher_wheels.light.gotoAndPlay("off");
_root.smasher.gotoAndPlay("stunned");
}
}
}
if (currentState == "vac") {
if (!vac_init) {
vac.gotoAndPlay("in");
vac_sucking = false;
vac_m1_rising = false;
vac_m1_falling = false;
vac_m2_rising = false;
vac_m2_falling = false;
vac_m3_rising = false;
vac_m3_falling = false;
vac_hp = vac_hp_total;
vac_m1_speed = vac_speed_max;
vac_m2_speed = vac_speed_max;
vac_m3_speed = vac_speed_max;
hitHeadTimer = 0;
hitHeadTimer_started = false;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
moveSmasherDown_first = false;
vac_init = true;
if (((!_root.smasher.moveReady) && (!_root.smasher.stunned)) && (!_root.smasher.scooching)) {
_root.smasher.moveReady = true;
}
} else if (vac_init) {
if ((vac._currentframe == 59) && (!vac_sucking)) {
vac_sucking = true;
_root.b3_m.gotoAndPlay(2);
}
if ((vac_m1_rising && (!vac_m1_falling)) && (_root.b3_m.m1._y > vac_y_end)) {
vac_m1_xSpeed = _root.b3_m.m1._x / 50;
_root.b3_m.m1._y = _root.b3_m.m1._y - vac_m1_speed;
_root.b3_m.m1._x = _root.b3_m.m1._x - vac_m1_xSpeed;
}
if ((vac_m2_rising && (!vac_m2_falling)) && (_root.b3_m.m2._y > vac_y_end)) {
vac_m2_xSpeed = _root.b3_m.m2._x / 50;
_root.b3_m.m2._y = _root.b3_m.m2._y - vac_m2_speed;
_root.b3_m.m2._x = _root.b3_m.m2._x - vac_m2_xSpeed;
}
if ((vac_m3_rising && (!vac_m3_falling)) && (_root.b3_m.m3._y > vac_y_end)) {
vac_m3_xSpeed = _root.b3_m.m3._x / 50;
_root.b3_m.m3._y = _root.b3_m.m3._y - vac_m3_speed;
_root.b3_m.m3._x = _root.b3_m.m3._x - vac_m3_xSpeed;
}
if (((vac_m1_rising && (!vac_m1_falling)) && (_root.b3_m.m1._y <= vac_y_end)) && (_root.b3_m.m1._currentframe < 10)) {
_root.b3_m.m1.gotoAndPlay("suck");
}
if (((vac_m2_rising && (!vac_m2_falling)) && (_root.b3_m.m2._y <= vac_y_end)) && (_root.b3_m.m2._currentframe < 10)) {
_root.b3_m.m2.gotoAndPlay("suck");
}
if (((vac_m3_rising && (!vac_m3_falling)) && (_root.b3_m.m3._y <= vac_y_end)) && (_root.b3_m.m3._currentframe < 10)) {
_root.b3_m.m3.gotoAndPlay("suck");
}
if ((((_root.smasher.hit.hitTest(_root.b3_m.m1) && (vac_m1_rising)) && (!vac_m1_falling)) && (_root.smasher._currentframe > 4)) && (_root.smasher._currentframe < 10)) {
vac_m1_rising = false;
vac_m1_falling = true;
}
if ((((_root.smasher.hit.hitTest(_root.b3_m.m2) && (vac_m2_rising)) && (!vac_m2_falling)) && (_root.smasher._currentframe > 4)) && (_root.smasher._currentframe < 10)) {
vac_m2_rising = false;
vac_m2_falling = true;
}
if ((((_root.smasher.hit.hitTest(_root.b3_m.m3) && (vac_m3_rising)) && (!vac_m3_falling)) && (_root.smasher._currentframe > 4)) && (_root.smasher._currentframe < 10)) {
vac_m3_rising = false;
vac_m3_falling = true;
}
if (((!vac_m1_rising) && (vac_m1_falling)) && (_root.b3_m.m1._y < vac_y_start)) {
if (vac_m1_speed > (vac_speed_max * -2)) {
vac_m1_speed = vac_m1_speed - vac_fall_int;
}
_root.b3_m.m1._y = _root.b3_m.m1._y - vac_m1_speed;
_root.b3_m.m1._x = _root.b3_m.m1._x - vac_m1_xSpeed;
}
if (((!vac_m2_rising) && (vac_m2_falling)) && (_root.b3_m.m2._y < vac_y_start)) {
if (vac_m2_speed > (vac_speed_max * -2)) {
vac_m2_speed = vac_m2_speed - vac_fall_int;
}
_root.b3_m.m2._y = _root.b3_m.m2._y - vac_m2_speed;
_root.b3_m.m2._x = _root.b3_m.m2._x - vac_m2_xSpeed;
}
if (((!vac_m3_rising) && (vac_m3_falling)) && (_root.b3_m.m3._y < vac_y_start)) {
if (vac_m3_speed > (vac_speed_max * -2)) {
vac_m3_speed = vac_m3_speed - vac_fall_int;
}
_root.b3_m.m3._y = _root.b3_m.m3._y - vac_m3_speed;
_root.b3_m.m3._x = _root.b3_m.m3._x - vac_m3_xSpeed;
}
if (((!vac_m1_rising) && (vac_m1_falling)) && (_root.b3_m.m1._y >= vac_y_start)) {
_root.modScore(_root.score1);
vac_m1_falling = false;
_root.b3_m.m1._y = vac_y_start;
_root.b3_m.m1.gotoAndPlay(1);
}
if (((!vac_m2_rising) && (vac_m2_falling)) && (_root.b3_m.m2._y >= vac_y_start)) {
_root.modScore(_root.score1);
vac_m2_falling = false;
_root.b3_m.m2._y = vac_y_start;
_root.b3_m.m2.gotoAndPlay(1);
}
if (((!vac_m3_rising) && (vac_m3_falling)) && (_root.b3_m.m3._y >= vac_y_start)) {
_root.modScore(_root.score1);
vac_m3_falling = false;
_root.b3_m.m3._y = vac_y_start;
_root.b3_m.m3.gotoAndPlay(1);
}
if (((vac_hp <= 0) && (vac._currentframe != 1)) && (vac._currentframe < 66)) {
vac.gotoAndPlay("out");
_root.b3_m.gotoAndStop(_root.b3_m._totalframes);
} else if (((vac_hp <= 0) && (vac._currentframe == 1)) && (vac_init)) {
vac_sucking = false;
vac_init = false;
chooseState();
}
}
}
if ((currentState == null) && (_currentframe < 36)) {
if (hitHeadTimer_started && (hitHeadTimer < hitHeadTimer_max)) {
hitHeadTimer++;
} else if ((hitHeadTimer >= hitHeadTimer_max) && (!_root.b3_moveSmasherDown_started)) {
_root.b3_moveSmasherDown_started = true;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
moveSmasherDown_ease = false;
moveSmasherDown = 0;
hitHeadTimer = 0;
hitHeadTimer_started = false;
_root.smasher.bound_top = 189;
taser.gotoAndPlay("on");
if (claw1._currentframe == 1) {
claw1.gotoAndPlay("enter");
}
if (claw2._currentframe == 1) {
claw2.gotoAndPlay("enter");
}
arm._y = rope_y_def;
arm.gotoAndPlay(rope_anotherFrame);
}
if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 1)) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
this.gotoAndPlay("hurt1");
}
if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 2)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 2)) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
this.gotoAndPlay("hurt2");
} else if (((((((hitHeadTimer < hitHeadTimer_max) && (arm._currentframe < rope_anotherFrame)) && (_root.smasher.hit.hitTest(head.head1.head2))) && (head._currentframe == 3)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (currentRound == 3)) {
_root.enemy_taser1_leave = true;
_root.enemy_taser1_init = false;
_root.enemy_taser2_leave = true;
_root.enemy_taser2_init = false;
hitHeadTimer = 0;
hitHeadTimer_started = false;
_root.b3_moveSmasherDown_started = false;
_root.b3_dead = true;
this.gotoAndPlay("die");
}
if (_root.b3_moveSmasherDown_started) {
if ((_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
if (moveSmasherDown < moveSmasherDown_max) {
moveSmasherDown = moveSmasherDown + moveSmasherDown_int;
}
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if ((_root.smasher._y >= (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
moveSmasherDown_ease = true;
}
if ((moveSmasherDown > 0) && (moveSmasherDown_ease)) {
moveSmasherDown = moveSmasherDown - moveSmasherDown_int;
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if ((moveSmasherDown <= 0) && (moveSmasherDown_ease)) {
_root.smasher.bound_top = 0;
moveSmasherDown = 0;
moveSmasherDown_ease = false;
_root.b3_moveSmasherDown_started = false;
_root.smasher.moveReady = true;
chooseState("vac");
}
}
}
}
Instance of Symbol 1502 MovieClip "crack" in Frame 13
onClipEvent (enterFrame) {
this._y = _root.wallbur._y;
this._x = _root.wallbur._x;
}
Instance of Symbol 1507 MovieClip in Frame 13
onClipEvent (load) {
_root.money = 1000000 /* 0x0F4240 */;
_root.spd2 = 4;
_root.dead1 = false;
_root.fall = 0;
_root.kill = 0;
}
Instance of Symbol 1535 MovieClip in Frame 13
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 855000)) {
gotoAndStop (1);
}
if ((_root.money < 855000) && (_root.money > 710000)) {
gotoAndStop (2);
}
if ((_root.money < 710000) && (_root.money > 565000)) {
gotoAndStop (3);
}
if ((_root.money < 565000) && (_root.money > 420000)) {
gotoAndStop (4);
}
if ((_root.money < 42000) && (_root.money > 275000)) {
gotoAndStop (5);
}
if ((_root.money < 275000) && (_root.money > 130000)) {
gotoAndStop (6);
}
if ((_root.money < 13000) && (_root.money > 0)) {
gotoAndStop (7);
}
if (_root.money < 1) {
gotoAndStop (8);
}
}
Instance of Symbol 1565 MovieClip in Frame 13
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 666666)) {
gotoAndStop (1);
}
if ((_root.money < 666666) && (_root.money > 333333)) {
gotoAndStop (2);
}
if ((_root.money < 333333) && (_root.money > 0)) {
gotoAndStop (3);
}
if (_root.money < 1) {
gotoAndStop (4);
}
}
Instance of Symbol 1606 MovieClip "bur" in Frame 13
onClipEvent (enterFrame) {
if (_name == "bur") {
d = random(45) + 1;
if (d == 1) {
this.d2 = this.d2 + 1;
duplicateMovieClip (this, this.d2, this.d2);
}
}
if (_name != "bur") {
if (((_root.kill > 25) && (this.dead1 == false)) || (_root.money < 1)) {
this.spd2 = this.spd2 - 2;
}
this._y = this._y + this.spd2;
if (this.hitTest(_root.smasher.smash.hammer1) || (this.bur.hitTest(_root.smasher.smash.hammer2))) {
this.dead1 = true;
this.spd2 = 15;
play();
}
if (this.hitTest(_root.diezone) && (this.dead1 == true)) {
this.spd2 = 0;
gotoAndStop (43);
}
if (this.hitTest(_root.diezone) && (this.dead1 == false)) {
this.spd2 = 0;
gotoAndStop (45);
}
if (((this.hitTest(_root.border) || (this.hitTest(_root.borderr))) || (this.dead2 == true)) || (this._y < -300)) {
removeMovieClip(this);
}
if (this._x > 100) {
_xscale = 100;
}
if (this._x < 100) {
_xscale = -100;
}
}
}
onClipEvent (load) {
if (_name == "bur") {
this.d2 = 10;
}
if (_name != "bur") {
this.dead1 = false;
this.spd2 = 3;
gotoAndStop (1);
this._y = -80;
_x = (random(140) + 30);
}
}
Instance of Symbol 1681 MovieClip "wallbur" in Frame 13
onClipEvent (enterFrame) {
this._y = this._y - up;
if ((this.hitTest(_root.border) || (this.hitTest(_root.borderr))) || (this.hitTest(_root.borderu))) {
gotoAndPlay (1);
this._y = random(240) + 80;
this._x = random(140) + 30;
}
if ((_root.money < 1) && (this._currentframe != 28)) {
up = up + 3;
}
}
onClipEvent (load) {
up = 0;
}
Instance of Symbol 1687 MovieClip "monay" in Frame 13
onClipEvent (load) {
this._x = random(140) + 30;
this._y = random(240) + 80;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
gotoAndStop (70);
}
}
Instance of Symbol 1691 MovieClip in Frame 13
onClipEvent (enterFrame) {
this._y = _root.smasher._y;
}
Instance of Symbol 1700 MovieClip "smasher" in Frame 13
onClipEvent (enterFrame) {
_y = (_y + _root.spd);
if (_root.kill > 25) {
_root.gotoAndPlay("classic2");
}
_root.smay = this._y;
_root.spd3 = 20;
if (this._y < 80) {
_root.spd = _root.spd * -0.5;
_y = 80;
}
if (this._y > 345) {
_root.spd = _root.spd * -0.5;
_y = 345;
}
if (Key.isDown(38) && (_root.spd > -7.5)) {
_root.spd = _root.spd - 1.5;
}
if (Key.isDown(40) && (_root.spd < 7.5)) {
_root.spd = _root.spd + 1.5;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
if ((_root.spd > -1) && (_root.spd < 1)) {
_root.spd = 0;
}
if (_root.spd < 0) {
_root.spd = _root.spd + 1.5;
}
if (_root.spd > 0) {
_root.spd = _root.spd - 1.5;
}
}
}
on (keyPress "<Space>") {
if (_root.sma == true) {
play();
}
}
onClipEvent (load) {
_root.spd = 0;
}
Instance of Symbol 1820 MovieClip in Frame 230
onClipEvent (enterFrame) {
this._x = _root.cam._x;
this._y = _root.cam._y;
}
Frame 365
gotoAndStop ("classic1");
Instance of Symbol 1691 MovieClip "wheels" in Frame 367
onClipEvent (enterFrame) {
this._y = _root.smasher._y;
}
Instance of Symbol 1535 MovieClip in Frame 367
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 855000)) {
gotoAndStop (1);
}
if ((_root.money < 855000) && (_root.money > 710000)) {
gotoAndStop (2);
}
if ((_root.money < 710000) && (_root.money > 565000)) {
gotoAndStop (3);
}
if ((_root.money < 565000) && (_root.money > 420000)) {
gotoAndStop (4);
}
if ((_root.money < 42000) && (_root.money > 275000)) {
gotoAndStop (5);
}
if ((_root.money < 275000) && (_root.money > 130000)) {
gotoAndStop (6);
}
if ((_root.money < 13000) && (_root.money > 0)) {
gotoAndStop (7);
}
if (_root.money < 1) {
gotoAndStop (8);
}
}
Instance of Symbol 1700 MovieClip "smasher" in Frame 367
onClipEvent (enterFrame) {
if (_root.wheels.hitTest(_root.boss.bump2.bumper)) {
this._y = 190;
}
_y = (_y + _root.spd);
_root.smay = this._y;
_root.spd3 = 20;
if (this._y < 80) {
_root.spd = _root.spd * -0.5;
_y = 80;
}
if (this._y > 345) {
_root.spd = _root.spd * -0.5;
_y = 345;
}
if (Key.isDown(38) && (_root.spd > -7.5)) {
_root.spd = _root.spd - 1.5;
}
if (Key.isDown(40) && (_root.spd < 7.5)) {
_root.spd = _root.spd + 1.5;
}
if ((!Key.isDown(38)) && (!Key.isDown(40))) {
if ((_root.spd > -1) && (_root.spd < 1)) {
_root.spd = 0;
}
if (_root.spd < 0) {
_root.spd = _root.spd + 1.5;
}
if (_root.spd > 0) {
_root.spd = _root.spd - 1.5;
}
}
}
on (keyPress "<Space>") {
if (_root.sma == true) {
play();
}
}
onClipEvent (load) {
_root.spd = 0;
}
Instance of Symbol 1691 MovieClip in Frame 368
onClipEvent (enterFrame) {
this._y = _root.smasher._y;
}
Instance of Symbol 1535 MovieClip in Frame 368
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 855000)) {
gotoAndStop (1);
}
if ((_root.money < 855000) && (_root.money > 710000)) {
gotoAndStop (2);
}
if ((_root.money < 710000) && (_root.money > 565000)) {
gotoAndStop (3);
}
if ((_root.money < 565000) && (_root.money > 420000)) {
gotoAndStop (4);
}
if ((_root.money < 42000) && (_root.money > 275000)) {
gotoAndStop (5);
}
if ((_root.money < 275000) && (_root.money > 130000)) {
gotoAndStop (6);
}
if (_root.money < 13000) {
gotoAndStop (7);
}
if (_root.money < 1) {
gotoAndStop (8);
}
}
Instance of Symbol 1565 MovieClip in Frame 368
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 666666)) {
gotoAndStop (1);
}
if ((_root.money < 666666) && (_root.money > 333333)) {
gotoAndStop (2);
}
if ((_root.money < 333333) && (_root.money > 0)) {
gotoAndStop (3);
}
if (_root.money < 1) {
gotoAndStop (4);
}
}
Instance of Symbol 1700 MovieClip "smasher" in Frame 368
onClipEvent (enterFrame) {
if (not_set_yet) {
}
}
Instance of Symbol 1691 MovieClip in Frame 421
onClipEvent (enterFrame) {
this._y = _root.smasher._y;
}
Instance of Symbol 1535 MovieClip in Frame 421
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 855000)) {
gotoAndStop (1);
}
if ((_root.money < 855000) && (_root.money > 710000)) {
gotoAndStop (2);
}
if ((_root.money < 710000) && (_root.money > 565000)) {
gotoAndStop (3);
}
if ((_root.money < 565000) && (_root.money > 420000)) {
gotoAndStop (4);
}
if ((_root.money < 42000) && (_root.money > 275000)) {
gotoAndStop (5);
}
if ((_root.money < 275000) && (_root.money > 130000)) {
gotoAndStop (6);
}
if (_root.money < 13000) {
gotoAndStop (7);
}
if (_root.money < 1) {
gotoAndStop (8);
}
}
Instance of Symbol 1565 MovieClip in Frame 421
onClipEvent (enterFrame) {
if ((_root.money < 1000000) && (_root.money > 666666)) {
gotoAndStop (1);
}
if ((_root.money < 666666) && (_root.money > 333333)) {
gotoAndStop (2);
}
if ((_root.money < 333333) && (_root.money > 0)) {
gotoAndStop (3);
}
if (_root.money < 1) {
gotoAndStop (4);
}
}
Instance of Symbol 1700 MovieClip "smasher" in Frame 421
onClipEvent (enterFrame) {
_root.spd3 = 20;
if (this._y < 80) {
_root.spd = 0;
_y = 80;
} else if (this._y < 345) {
_root.spd = 6;
}
if (this._y > 345) {
_root.spd = 0;
_y = 345;
} else if (this._y > 80) {
_root.spd = 6;
}
if (Key.isDown(38)) {
_y = (_y - _root.spd);
}
if (Key.isDown(40)) {
_y = (_y + _root.spd);
}
}
on (keyPress "<Space>") {
if (_root.sma == true) {
play();
}
}
Frame 470
gotoAndStop ("bossfight");
Frame 471
com.newgrounds.API.unlockMedal("Young Trump");
_root.saveData.data.medal_beatClassic = true;
Symbol 11 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 22 MovieClip [Preloader] Frame 1
function enterFrameHandler() {
var _local2 = 0;
_local2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (loadingBar) {
loadingBar.gotoAndStop(int(_local2 * (loadingBar._totalframes - 1)) + 1);
}
if (_local2 >= 1) {
onEnterFrame = null;
gotoAndStop ("loaded");
}
}
stop();
var autoPlay;
var className;
onEnterFrame = enterFrameHandler;
Symbol 22 MovieClip [Preloader] Frame 10
function _onPlayClick() {
_root.nextFrame();
_root.play();
_parent._onLoaded();
}
if (playButton) {
playButton.onRelease = _onPlayClick;
playButton.stop();
}
if (autoPlay) {
_onPlayClick(null);
}
Symbol 24 MovieClip [Newgrounds API Classes] Frame 1
#initclip 26
Object.registerClass("Newgrounds API Classes", com.newgrounds.shims.APIShim);
#endinitclip
Symbol 79 MovieClip [FlashAd] Frame 1
#initclip 27
Object.registerClass("FlashAd", com.newgrounds.components.FlashAdBase);
#endinitclip
stop();
Symbol 79 MovieClip [FlashAd] Frame 30
function onPlayClick() {
removeAd();
_visible = false;
}
if (this.playButton) {
this.playButton.onRelease = onPlayClick;
}
Symbol 80 MovieClip [APIConnector] Frame 1
function _onLoaded() {
gotoAndStop ("invisible");
if (_redirect) {
com.newgrounds.API.loadOfficialVersion();
return(undefined);
}
}
function _apiConnect() {
var _local2 = com.newgrounds.API;
if (_local2 && (!_local2.connected)) {
if (!apiId) {
com.newgrounds.Logger.logError("No API ID entered in the API Connector component.", "You can create an API ID for this submission at http://newgrounds.com/account/flashapi", "Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector).");
return(undefined);
}
switch (debugMode) {
case "Off" :
default :
_local2.debugMode = _local2.RELEASE_MODE;
break;
case "Simulate Logged-in User" :
_local2.debugMode = _local2.DEBUG_MODE_LOGGED_IN;
break;
case "Simulate Logged-out User" :
_local2.debugMode = _local2.DEBUG_MODE_LOGGED_OUT;
break;
case "Simulate New Version" :
_local2.debugMode = _local2.DEBUG_MODE_NEW_VERSION;
break;
case "Simulate Host Blocked" :
_local2.debugMode = _local2.DEBUG_MODE_HOST_BLOCKED;
}
_local2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected);
_local2.connect(_root, apiId, encryptionKey, movieVersion);
}
}
function _onConnected(event) {
if ((redirectOnNewVersion && (event.__get__success())) && (event.__get__data().newVersion)) {
_redirect = true;
}
if ((redirectOnHostBlocked && (!event.__get__success())) && (event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED)) {
_redirect = true;
}
if (_redirect) {
gotoAndStop ("adPreloader");
forceAlwaysOnTop();
}
}
function forceAlwaysOnTop() {
var _local2 = getNextHighestDepth();
swapDepths(_local2);
if (Stage) {
_x = ((Stage.width - _width) / 2);
_y = ((Stage.height - _height) / 2);
_visible = true;
}
if (_root && (_root instanceof MovieClip)) {
MovieClip(_root).stop();
}
}
stop();
if (_root && (_root instanceof MovieClip)) {
MovieClip(_root).stop();
}
var apiId;
var encryptionKey;
var movieVersion;
var debugMode;
var connectorType;
var redirectOnHostBlocked;
var redirectOnNewVersion;
var adType;
var className;
var _redirect;
_x = int(_x);
_y = int(_y);
if (!debugMode) {
debugMode = "Simulate Logged-in User";
}
if (!connectorType) {
connectorType = "Flash Ad + Preloader";
}
if (!adType) {
adType = "Video";
}
if (ad) {
ad.adType = adType;
}
switch (connectorType) {
case "Flash Ad + Preloader" :
gotoAndStop ("adPreloader");
break;
case "Flash Ad Only" :
gotoAndStop ("ad");
break;
case "Invisible" :
gotoAndStop ("invisible");
}
_apiConnect();
Instance of Symbol 79 MovieClip [FlashAd] "ad" in Symbol 80 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
apiId = "";
showBorder = true;
adType = "Video";
}
Instance of Symbol 22 MovieClip [Preloader] "loader" in Symbol 80 MovieClip [APIConnector] Frame 1
//component parameters
onClipEvent (construct) {
autoPlay = false;
mainClass = "";
}
Symbol 85 Button
on (release) {
getURL ("http://newgrounds.com", "_blank");
}
Symbol 87 Button
on (release) {
getURL ("http://ansel.newgrounds.com", "_blank");
}
Symbol 89 Button
on (release) {
getURL ("http://snubbyland.com", "_blank");
}
Instance of Symbol 98 MovieClip in Symbol 99 MovieClip Frame 103
onClipEvent (load) {
this.stop();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.gotoAndStop(1);
}
on (release) {
_parent._parent.play();
}
Symbol 101 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 117 MovieClip Frame 1
stop();
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip Frame 1
on (release) {
getURL ("http://www.DefendYourTrump.com", "_blank");
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(1);
}
Symbol 126 Button
on (release) {
if (_parent.medalsPop._currentframe == 1) {
_parent.medalsPop.gotoAndStop(2);
} else {
_parent.medalsPop.gotoAndStop(1);
}
}
Symbol 135 Button
on (release) {
_root.goClassic = true;
if (_root.black1 != undefined) {
_root.black1.gotoAndPlay(2);
} else {
_root.black2.gotoAndPlay(2);
}
}
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 129 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.black1 != undefined) {
if (Key.isDown(32) && (_parent._parent._currentframe == _parent._parent._totalframes)) {
_root.black1.gotoAndPlay(2);
}
} else if (Key.isDown(32)) {
_root.black2.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.black1 != undefined) && (_parent._parent._currentframe == _parent._parent._totalframes)) {
_root.black1.gotoAndPlay(2);
} else {
_root.black2.gotoAndPlay(2);
}
}
Instance of Symbol 129 MovieClip in Symbol 136 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if ((_root.black1 != undefined) && (_parent._parent._currentframe == _parent._parent._totalframes)) {
if (Key.isDown(32)) {
_root.black1.gotoAndPlay(2);
}
} else if (Key.isDown(32)) {
_root.black2.gotoAndPlay(2);
}
}
on (release) {
_root.black1.gotoAndPlay(2);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut, dragOut) {
this.gotoAndStop(1);
}
on (release) {
if ((_root.black1 != undefined) && (_parent._parent._currentframe == _parent._parent._totalframes)) {
_root.black1.gotoAndPlay(2);
} else {
_root.black2.gotoAndPlay(2);
}
}
Symbol 171 MovieClip Frame 1
stop();
Instance of Symbol 147 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatGame) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 150 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatMoney) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 153 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatClassic) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 156 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatFirst) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 159 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatSecond) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 153 MovieClip in Symbol 171 MovieClip Frame 2
onClipEvent (load) {
if (_root.saveData.data.medal_beatClassic) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 80 MovieClip [APIConnector] in Symbol 172 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
apiId = "20624:F60Rz7Bz";
encryptionKey = "Bd9O6qDGSDjv7C41IUW2CvUOEHd7VaQX";
debugMode = "Simulate Logged-in User";
movieVersion = "";
connectorType = "Flash Ad Only";
redirectOnNewVersion = true;
redirectOnHostBlocked = true;
adType = "Video";
}
Instance of Symbol 99 MovieClip in Symbol 172 MovieClip Frame 1
onClipEvent (load) {
function r_menu_1_ng() {
getURL ("http://www.newgrounds.com/", "_blank");
}
function r_menu_2_as() {
getURL ("http://ansel.newgrounds.com/", "_blank");
}
function r_menu_3_sl() {
getURL ("http://www.snubbyland.com/", "_blank");
}
_root.stop();
_parent.stop();
this.stop();
var r_menu = new ContextMenu();
r_menu.hideBuiltInItems();
var r_menu_1 = new ContextMenuItem("Newgrounds", r_menu_1_ng);
var r_menu_2 = new ContextMenuItem("Ansel", r_menu_2_as);
var r_menu_3 = new ContextMenuItem("Snubby Land", r_menu_3_sl);
r_menu.customItems.push(r_menu_1);
r_menu.customItems.push(r_menu_2);
r_menu.customItems.push(r_menu_3);
_root.menu = r_menu;
}
onClipEvent (enterFrame) {
if (_parent.getBytesTotal() > 0) {
var percentage = Math.floor((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100);
if (percentage >= 100) {
this.gotoAndStop(_totalframes);
} else if (percentage > 0) {
this.gotoAndStop(percentage);
}
}
}
Instance of Symbol 136 MovieClip in Symbol 172 MovieClip Frame 3
onClipEvent (load) {
stop();
if (_root.saveData.data.medal_beatGame) {
this.gotoAndStop(2);
}
}
Symbol 172 MovieClip Frame 29
play();
Instance of Symbol 171 MovieClip "medalsPop" in Symbol 172 MovieClip Frame 30
onClipEvent (enterFrame) {
if ((_currentframe == 2) && (!hitTest(_root._xmouse, _root._ymouse, true))) {
this.gotoAndStop(1);
}
}
Symbol 172 MovieClip Frame 78
stop();
Symbol 201 MovieClip [MedalPopup] Frame 1
function onMedalUnlocked(event) {
if (event.__get__success()) {
_medalQueue.push(event.__get__data());
showNextUnlock();
}
}
function showNextUnlock() {
if (_unlockedMedal) {
return(undefined);
}
if (!_medalQueue.length) {
gotoAndStop ("hidden");
onEnterFrame = null;
return(undefined);
}
_unlockedMedal = com.newgrounds.Medal(_medalQueue.shift());
gotoAndPlay ("medalUnlocked");
}
gotoAndStop ("hidden");
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
var alwaysOnTop;
_x = int(_x);
_y = int(_y);
var _unlockedMedal;
var _medalQueue = [];
var _alwaysOnTop = true;
if (alwaysOnTop) {
_alwaysOnTop = alwaysOnTop == "true";
}
Symbol 201 MovieClip [MedalPopup] Frame 15
function medalPopupEnterFrame() {
if (_alwaysOnTop) {
var _local1 = getNextHighestDepth();
swapDepths(_local1);
}
if (_medalScrollRect) {
_medalScrollRect.offset(2, 0);
medalNameClip.scrollRect = _medalScrollRect;
if (_medalScrollRect.left >= (medalNameClip.textField.textWidth + 10)) {
_medalScrollRect = null;
play();
}
}
}
var _medalScrollRect;
if (_unlockedMedal) {
if (medalNameClip && (medalNameClip.textField)) {
medalNameClip.textField.text = _unlockedMedal.name;
}
if (medalPointsText) {
medalPointsText.text = _unlockedMedal.value.toString();
}
if (medalNameClip.textField.textWidth > medalNameClip._width) {
_medalScrollRect = new flash.geom.Rectangle(-medalNameClip._width, 0, medalNameClip._width, medalNameClip._height);
medalNameClip.textField._width = 1000;
medalNameClip.scrollRect = _medalScrollRect;
}
onEnterFrame = medalPopupEnterFrame;
}
Symbol 201 MovieClip [MedalPopup] Frame 23
if (_unlockedMedal && (medalIcon)) {
_unlockedMedal.attachIcon(medalIcon);
}
Symbol 201 MovieClip [MedalPopup] Frame 84
if (_medalScrollRect) {
stop();
}
Symbol 201 MovieClip [MedalPopup] Frame 105
stop();
_unlockedMedal = null;
showNextUnlock();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 5
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(90);
}
Symbol 205 MovieClip Frame 9
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(80);
}
Symbol 205 MovieClip Frame 13
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(70);
}
Symbol 205 MovieClip Frame 17
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(60);
}
Symbol 205 MovieClip Frame 21
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(50);
}
Symbol 205 MovieClip Frame 25
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(40);
}
Symbol 205 MovieClip Frame 29
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(30);
}
Symbol 205 MovieClip Frame 33
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(20);
}
Symbol 205 MovieClip Frame 37
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(10);
}
Symbol 205 MovieClip Frame 41
if ((!_root.goClassic) && (!_root.mutedA)) {
_root.music_current.setVolume(0);
}
stopAllSounds();
Symbol 205 MovieClip Frame 42
if (_root.justDied) {
_root.justDied = false;
_root.gotoAndStop("die");
} else if (_root.goMain2) {
_root.music(_root.music_main);
_root.music_current.setVolume(100);
_root.goMain2 = false;
_root.gotoAndStop("l1i");
} else if (_root.goMain) {
_root.goMain = false;
_root.gotoAndStop("l1i");
} else if (_root.goMenu) {
_root.goMenu = false;
_root.gotoAndStop("menu");
} else if (_root.goClassic) {
_root.goClassic = false;
_root.gotoAndStop("classicpreloader");
} else if (_root._currentframe == 2) {
_root.music(_root.music_main);
_root.gotoAndStop("l1i");
} else if (_root._currentframe == 5) {
_root.music(_root.music_menu);
_root.gotoAndStop("menu");
} else if (_root._currentframe == 9) {
_root.music(_root.music_menu);
_root.gotoAndStop("win");
} else {
_root.gotoAndStop("l1i");
}
Symbol 205 MovieClip Frame 43
if ((!_root._currentframe) >= 14) {
stopAllSounds();
}
Symbol 205 MovieClip Frame 73
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 32 MovieClip [__Packages.com.newgrounds.APIConnection] Frame 0
class com.newgrounds.APIConnection
{
var _hostURL, hostDomain, sessionId, publisherId, encryptionKey, userEmail, username, userId, userpageFormat, initialized;
function APIConnection () {
reset();
}
function get hostURL() {
return(_hostURL);
}
function set hostURL(value) {
_hostURL = value;
hostDomain = null;
if (_hostURL) {
var _local2 = _hostURL.split("/");
if ((_local2[0] != "file:") && (_hostURL != "localhost")) {
hostDomain = _local2[2];
}
}
if (!hostDomain) {
hostDomain = "localhost";
}
//return(hostURL);
}
function get sandboxType() {
return(System.security.sandboxType);
}
function get isNetworkHost() {
switch (sandboxType) {
case "localWithFile" :
case "localWithNetwork" :
case "localTrusted" :
case "application" :
return(false);
case "remote" :
}
return(true);
}
function get hasUserSession() {
return(((sessionId != null) && (sessionId != "")) && (publisherId != 0));
}
function get connected() {
return(connectionState == CONNECTED);
}
function reset() {
connectionState = NOT_CONNECTED;
encryptionKey = null;
sessionId = null;
userEmail = null;
username = null;
userId = 0;
userpageFormat = 0;
}
function assertInitialized() {
if (!initialized) {
com.newgrounds.Logger.logError("You must initialized the API using API.connect() before using this command.");
return(false);
}
return(true);
}
function assertConnected() {
if ((!connectionState) == CONNECTED) {
com.newgrounds.Logger.logError("You must establish a connection using API.connect() before using this command.");
return(false);
}
return(true);
}
function sendSimpleCommand(command, completeHandler, parameters, secureParameters) {
if (parameters == undefined) {
parameters = null;
}
if (secureParameters == undefined) {
secureParameters = null;
}
var _local2 = new com.newgrounds.APICommand(command);
_local2.__set__parameters(parameters);
_local2.__set__secureParameters(secureParameters);
if (completeHandler != null) {
_local2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler);
}
_local2.send(this);
}
function sendCommand(command) {
command.send(this);
}
function loadInBrowser(command, newWindow, parameters) {
if (newWindow == undefined) {
newWindow = true;
}
if (parameters == undefined) {
parameters = null;
}
var _local2 = new com.newgrounds.APICommand(command);
_local2.__set__parameters(parameters);
_local2.loadInBrowser(this, newWindow);
}
static var NOT_CONNECTED = "notConnected";
static var CONNECTING = "connecting";
static var CONNECTED = "connected";
var connectionState = NOT_CONNECTED;
var apiURL = "http://www.ngads.com/gateway_v2.php";
}
Symbol 26 MovieClip [__Packages.com.newgrounds.EventDispatcher] Frame 0
class com.newgrounds.EventDispatcher
{
var _listeners;
function EventDispatcher () {
_listeners = {};
}
function addEventListener(type, listener) {
if (!_listeners[type]) {
_listeners[type] = [];
}
if (typeof(listener) == "function") {
_listeners[type].push({target:null, func:listener});
} else {
_listeners[type].push(listener);
}
}
function removeEventListener(type, listener) {
var _local3 = _listeners[type];
if (_local3) {
var _local5 = _local3.length;
var _local2 = 0;
while (_local2 < _local5) {
if ((_local3[_local2].func == listener) || (_local3[_local2] == listener)) {
_local3.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
}
function dispatchEvent(event) {
var _local4 = _listeners[event.__get__type()];
if (_local4) {
var _local5 = _local4.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = _local4[_local2];
_local3.func.call(_local3.target, event);
_local2++;
}
}
return(true);
}
}
Symbol 25 MovieClip [__Packages.com.newgrounds.Event] Frame 0
class com.newgrounds.Event
{
var _type;
function Event (type) {
_type = type;
}
function get type() {
return(_type);
}
}
Symbol 27 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
class com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher
{
static var _globalDispatcher;
function APIEventDispatcher () {
super();
}
static function get globalDispatcher() {
return(_globalDispatcher);
}
static function set globalDispatcher(value) {
_globalDispatcher = value;
//return(globalDispatcher);
}
static function initEventQueue() {
setInterval(runEventQueue, 50);
return([]);
}
function dispatchEvent(event) {
_eventQueue.push({dispatcher:this, event:event});
return(true);
}
function actualDispatchEvent(event) {
var _local3 = super.dispatchEvent(event);
if (_globalDispatcher && (this != _globalDispatcher)) {
_globalDispatcher.dispatchEvent(event);
}
}
static function runEventQueue(event) {
var _local3 = _eventQueue.length;
if (_local3) {
var _local4 = _eventQueue;
_eventQueue = [];
var _local1 = 0;
while (_local1 < _local3) {
var _local2 = _local4[_local1];
_local2.dispatcher.actualDispatchEvent(_local2.event);
_local1++;
}
}
}
static var _eventQueue = initEventQueue();
}
Symbol 30 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
class com.newgrounds.encoders.BaseN
{
var _hash, _base, _reverseHash;
function BaseN (hash) {
if (hash) {
_hash = hash;
} else {
_hash = DEFAULT_HASH;
}
_base = _hash.length;
_reverseHash = new Object();
var _local2 = 0;
while (_local2 < _hash.length) {
_reverseHash[_hash.charAt(_local2)] = _local2;
_local2++;
}
}
function encodeUint(number, minimumChars) {
if (minimumChars == undefined) {
minimumChars = 1;
}
var _local2 = "";
var _local3 = number;
while (_local3 != 0) {
_local2 = _hash.charAt(_local3 % _base) + _local2;
_local3 = _local3 / _base;
_local3 = int(_local3);
}
while (_local2.length < minimumChars) {
_local2 = _hash.charAt(0) + _local2;
}
return(_local2);
}
function decodeUint(encodedNumber) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < encodedNumber.length) {
_local3 = _local3 * _base;
_local3 = _local3 + _reverseHash[encodedNumber.charAt(_local2)];
_local2++;
}
return(_local3);
}
static var DEFAULT_HASH = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/";
}
Symbol 36 MovieClip [__Packages.com.newgrounds.APICommand] Frame 0
class com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher
{
static var _throttleTimestamp, bridge;
var _command, _parameters, _secureParameters, _hasTimeout, _preventCache, _files, _loader, _timeoutTimer, dispatchEvent;
function APICommand (command) {
super();
_command = command;
_parameters = new Object();
_secureParameters = new Object();
_hasTimeout = true;
}
static function stopPendingCommands() {
for (var _local2 in _pendingCommands) {
var _local1 = _pendingCommands[_local2];
_local1.close();
}
_pendingCommands = [];
}
static function onThrottleTimer(event) {
if ((getTimer() - _throttleTimestamp) >= THROTTLE_INTERVAL) {
_throttleCount = 0;
_throttleCount = 0;
while (_commandQueue.length && (_throttleCount < THROTTLE_THRESHOLD)) {
var _local1 = _commandQueue.shift();
_local1.command.send(_local1.connection);
_throttleCount++;
}
}
}
static function encryptHex(hexValue) {
var _local4 = hexValue.length % 6;
var _local3 = "";
var _local1 = 0;
while (_local1 < hexValue.length) {
_local3 = _local3 + _encryptor.encodeUint(int("0x" + hexValue.substr(_local1, 6)), 4);
_local1 = _local1 + 6;
}
return(_local4.toString() + _local3);
}
function get command() {
return(_command);
}
function set command(value) {
_command = value;
//return(command);
}
function get hasTimeout() {
return(_hasTimeout);
}
function set hasTimeout(val) {
_hasTimeout = val;
//return(hasTimeout);
}
function get parameters() {
return(_parameters);
}
function set parameters(object) {
_parameters = new Object();
if (object) {
for (var _local3 in object) {
_parameters[_local3] = object[_local3];
}
}
//return(parameters);
}
function get preventCache() {
return(_preventCache);
}
function set preventCache(value) {
_preventCache = value;
//return(preventCache);
}
function get secureParameters() {
return(_secureParameters);
}
function set secureParameters(object) {
_secureParameters = new Object();
if (object) {
for (var _local3 in object) {
_secureParameters[_local3] = object[_local3];
}
}
//return(secureParameters);
}
function get hasSecureParameters() {
for (var _local2 in _secureParameters) {
return(true);
}
return(false);
}
function addFile(filename, data, dataField, contentType) {
if (contentType == undefined) {
contentType = "application/octet-stream";
}
if (!_files) {
_files = new Object();
}
var _local3 = {filename:filename, data:data, dataField:dataField, contentType:contentType};
_files[filename] = _local3;
}
function removeFile(filename) {
if (_files) {
delete _files[filename];
}
}
function clearFiles() {
_files = null;
}
function close() {
if (_loader) {
clearInterval(_timeoutTimer);
var _local2 = 0;
while (_local2 < _pendingCommands.length) {
if (_pendingCommands[_local2] == this) {
_pendingCommands.splice(_local2, 1);
break;
}
_local2++;
}
_loader = null;
}
}
function loadInBrowser(connection, newWindow) {
_parameters.command_id = _command;
_parameters.tracker_id = (connection.apiId ? (connection.apiId) : 1);
if (connection.debug) {
_parameters.debug = 1;
}
var _local3 = (connection.apiURL + "?host=") + escape(connection.hostDomain);
for (var _local4 in _parameters) {
_local3 = _local3 + ((("&" + escape(_local4)) + "=") + escape(_parameters[_local4]));
}
var _local6;
if (newWindow) {
_local6 = "_blank";
} else {
_local6 = "_top";
}
_root.getURL(_local3, _local6);
}
function send(connection) {
if (_throttleCount >= THROTTLE_THRESHOLD) {
_commandQueue.push({connection:connection, command:this});
} else {
sendInternal(connection);
}
}
function sendInternal(connection) {
var _local4;
_local4 = new LoadVars();
_local4.command_id = _command;
_local4.tracker_id = connection.apiId;
if (connection.debug) {
_local4.debug = 1;
}
if (_preventCache) {
_local4.seed = Math.random();
}
var _local2;
var _local3;
var _local7;
for (_local2 in _parameters) {
_local3 = _parameters[_local2];
if (_local3 != null) {
if (typeof(_local3) == "boolean") {
_local4[_local2] = int(_local3);
} else {
_local4[_local2] = _local3;
}
}
}
if (hasSecureParameters) {
var _local6 = new Object();
for (_local2 in _secureParameters) {
_local3 = _secureParameters[_local2];
if (_local3 != null) {
if (typeof(_local3) == "boolean") {
_local6[_local2] = int(_local3);
} else {
_local6[_local2] = _local3;
}
}
}
var _local8 = "";
_local7 = 0;
while (_local7 < 16) {
_local8 = _local8 + ENCRYPTOR_RADIX.charAt(int(Math.random() * ENCRYPTOR_RADIX.length));
_local7++;
}
_local4.command_id = "securePacket";
_local6.command_id = _command;
_local6.as_version = 3;
_local6.session_id = connection.sessionId;
_local6.user_email = connection.userEmail;
_local6.publisher_id = connection.publisherId;
_local6.seed = _local8;
var _local13 = com.newgrounds.crypto.MD5.hash(_local8);
var _local11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(_local6), connection.encryptionKey);
_local4.secure = encryptHex(_local13 + _local11);
}
com.newgrounds.Logger.logInternal("Sending packet:", _local4);
var _local12;
_local12 = "application/x-www-form-urlencoded";
for (_local2 in _local4) {
if (typeof(_local4[_local2]) == "object") {
_local4[_local2] = com.newgrounds.encoders.json.JSON.encode(_local4[_local2]);
}
}
if (_files) {
for (var _local10 in _files) {
var _local5 = _files[_local10];
if (typeof(_local5.data) == "string") {
_local4[_local10] = _local5.data;
} else {
_local4[_local10] = com.newgrounds.encoders.json.JSON.encode(_local5.data);
}
}
}
_pendingCommands.push(this);
_throttleCount++;
_throttleTimestamp = getTimer();
startLoader(connection.apiURL, _local4, _local12);
}
function startLoader(url, data, contentType) {
_loader = LoadVars(data);
_loader.onData = as2CompleteHandler;
_loader.contentType = contentType;
_loader.sendAndLoad(url, _loader, "POST");
if (_hasTimeout) {
setInterval(this, onTimeout, TIMEOUT_INTERVAL);
}
}
function as2CompleteHandler(data) {
var _local3;
var _local2 = 0;
while (_local2 < _pendingCommands.length) {
if (_pendingCommands[_local2]._loader == this) {
_local3 = _pendingCommands[_local2];
break;
}
_local2++;
}
_local3.onComplete(data);
}
function onTimeout(event) {
close();
com.newgrounds.Logger.logError("Command timed out.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT));
}
function onError(error) {
com.newgrounds.Logger.logError("Error when sending command:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN));
close();
}
function onComplete(data) {
try {
if ((!data) || (data == "")) {
throw new Error();
}
com.newgrounds.Logger.logInternal("Received packet:", data);
var _local2 = com.newgrounds.encoders.json.JSON.decode(data);
if (!_local2) {
throw new Error();
}
if (bridge) {
bridge.sendEvent(_local2.command_id, _local2);
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, _local2, ((_local2 && (_local2.success)) ? (com.newgrounds.APIEvent.ERROR_NONE) : (com.newgrounds.APIEvent.ERROR_COMMAND_FAILED))));
} catch(e) {
com.newgrounds.Logger.logError("Invalid response returned from server: " + data);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE));
}
close();
}
static var TIMEOUT_INTERVAL = 10000;
static var THROTTLE_INTERVAL = 10050;
static var THROTTLE_TICK_INTERVAL = 1000;
static var THROTTLE_THRESHOLD = 24;
static var _throttleCount = 0;
static var _commandQueue = [];
static var _throttleTimer = setInterval(onThrottleTimer, THROTTLE_TICK_INTERVAL);
static var ENCRYPTOR_RADIX = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X";
static var _encryptor = new com.newgrounds.encoders.BaseN(ENCRYPTOR_RADIX);
static var _pendingCommands = [];
static var CRLF = "\r\n";
}
Symbol 31 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
class com.newgrounds.Bridge
{
var _widgetId, _inConnection, _outConnection;
function Bridge (id) {
_widgetId = id;
_inConnection = new LocalConnection();
_outConnection = new LocalConnection();
_inConnection.receiveEvent = receiveEvent;
try {
_inConnection.connect("rec_" + _widgetId);
} catch(error) {
}
com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {target:this, func:onLogMessage});
}
function onLogMessage(event) {
try {
_outConnection.send(_widgetId, "sendEvent", "trace", String(event.__get__data()));
} catch(error) {
}
}
function sendEvent(command, parameters) {
if (_outConnection) {
parameters = {data:parameters};
_outConnection.send(_widgetId, "sendEvent", command, parameters);
}
}
function receiveEvent(event, parameters) {
}
function onStatus(event) {
}
}
Symbol 28 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
class com.newgrounds.APIEvent extends com.newgrounds.Event
{
var _error, _success, _data, __get__type;
function APIEvent (type, data, error) {
super(type);
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
if (((!error) || (error == "")) || (error == ERROR_NONE)) {
_error = ERROR_NONE;
_success = true;
} else {
_error = error;
_success = false;
}
if (data) {
_data = data;
} else {
_data = {};
}
}
function clone() {
return(new com.newgrounds.APIEvent(__get__type(), _data, _error));
}
function get success() {
return(_success);
}
function get data() {
return(_data);
}
function get error() {
return(_error);
}
static var COMMAND_COMPLETE = "commandComplete";
static var MEDAL_UNLOCK_CONFIRMED = "medalUnlockConfirmed";
static var ICON_LOADED = "iconLoaded";
static var API_CONNECTED = "movieConnected";
static var LOG = "log";
static var MEDAL_UNLOCKED = "medalUnlocked";
static var SCORES_LOADED = "scoresLoaded";
static var SCORE_POSTED = "scorePosted";
static var QUERY_COMPLETE = "queryComplete";
static var FILE_LOADED = "fileLoaded";
static var FILE_SAVED = "fileSaved";
static var FILE_REQUESTED = "fileRequested";
static var VOTE_COMPLETE = "voteComplete";
static var ERROR_NONE = "noError";
static var ERROR_UNKNOWN = "unknownError";
static var ERROR_COMMAND_FAILED = "commandFailed";
static var ERROR_NOT_CONNECTED = "notConnected";
static var ERROR_INVALID_ARGUMENT = "invalidArgument";
static var ERROR_TIMED_OUT = "timedOut";
static var ERROR_BAD_FILE = "badFile";
static var ERROR_BAD_RESPONSE = "badResponse";
static var ERROR_SENDING_COMMAND = "errorSendingCommand";
static var ERROR_HOST_BLOCKED = "hostBlocked";
static var ERROR_ALREADY_VOTED = "alreadyVoted";
static var ERROR_NOT_LOGGED_IN = "notLoggedIn";
static var ERROR_WRONG_ENCRYPTION_KEY = "wrongEncryptionKey";
}
Symbol 47 MovieClip [__Packages.com.newgrounds.API] Frame 0
class com.newgrounds.API
{
static var _adFeedURL, _movieVersion, _bridge, _requestedSaveGroupId, _requestedSaveFileId, _movieName, _newVersion, _saveFilePath, _imageFilePath;
function API () {
}
static function get connected() {
return(_connection.__get__connected());
}
static function get isNetworkHost() {
return(_connection.__get__isNetworkHost());
}
static function get apiId() {
_connection.assertInitialized();
return(_connection.apiId);
}
static function get debugMode() {
return(_debugMode);
}
static function set debugMode(val) {
_debugMode = val;
//return(debugMode);
}
static function get publisherId() {
_connection.assertInitialized();
return(_connection.publisherId);
}
static function get sessionId() {
_connection.assertInitialized();
return(_connection.sessionId);
}
static function get hostDomain() {
_connection.assertInitialized();
return(_connection.hostDomain);
}
static function get hostURL() {
_connection.assertInitialized();
return(_connection.__get__hostURL());
}
static function get isNewgrounds() {
return(_connection.publisherId == 1);
}
static function get hasUserSession() {
_connection.assertInitialized();
return(_connection.__get__hasUserSession());
}
static function get username() {
_connection.assertInitialized();
return(_connection.username);
}
static function get userId() {
_connection.assertInitialized();
return(_connection.userId);
}
static function assertConnected(eventType) {
if (eventType == undefined) {
eventType = null;
}
if (_connection.assertConnected()) {
return(true);
}
if (eventType) {
dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
}
return(false);
}
static function get adsApproved() {
return(_adsApproved);
}
static function get adFeedURL() {
return(_adFeedURL);
}
static function get medals() {
return(_medalsArray);
}
static function get scoreBoards() {
return(_scoreBoardsArray);
}
static function get saveGroups() {
return(_saveGroupsArray);
}
static function connect(_root, apiId, encryptionKey, movieVersion) {
if (encryptionKey == undefined) {
encryptionKey = null;
}
if (movieVersion == undefined) {
movieVersion = "";
}
com.newgrounds.APIEventDispatcher.__set__globalDispatcher(_dispatcher);
System.security.loadPolicyFile("http://apifiles.ngfiles.com/crossdomain.xml");
if (_connection.initialized) {
com.newgrounds.Logger.logError("Connection already in progress. Please call API.disconnect() before attempting another connection.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED);
return(undefined);
}
apiId = trimWhitespace(apiId);
if (encryptionKey) {
encryptionKey = trimWhitespace(encryptionKey);
}
if ((!apiId) || (apiId == "")) {
com.newgrounds.Logger.logError("No apiId given. Please use the API ID from your API settings page.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
com.newgrounds.Logger.logMessage(("====== Newgrounds API v" + VERSION) + " ======");
_connection.connectionState = com.newgrounds.APIConnection.CONNECTING;
_root=_root;//parameter overwritten
_movieVersion = movieVersion;
_connection.apiId = apiId;
var _local4;
_local4 = apiId.indexOf(":");
if (_local4 != -1) {
_connection.trackerId = int(apiId.substring(0, _local4));
} else {
_connection.trackerId = int(apiId);
}
if (!_connection.trackerId) {
com.newgrounds.Logger.logError("Invalid API ID: " + apiId);
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
_connection.encryptionKey = encryptionKey;
_connection.initialized = true;
_connection.__set__hostURL(_root._url);
doConnect(_root);
}
static function doConnect(flashVars) {
if (isNetworkHost && (_debugMode != RELEASE_MODE)) {
com.newgrounds.Logger.logMessage("Live file detected, turning off debug mode.");
_debugMode = RELEASE_MODE;
}
if (flashVars && (flashVars.NewgroundsAPI_SandboxID)) {
_bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID);
com.newgrounds.APICommand.bridge = _bridge;
}
if (_debugMode == RELEASE_MODE) {
if (flashVars) {
if (flashVars.NewgroundsAPI_UserName) {
_connection.username = flashVars.NewgroundsAPI_UserName;
}
if (flashVars.NewgroundsAPI_UserID) {
_connection.userId = flashVars.NewgroundsAPI_UserID;
}
if (flashVars.NewgroundsAPI_PublisherID) {
_connection.publisherId = flashVars.NewgroundsAPI_PublisherID;
}
if (flashVars.NewgroundsAPI_UserpageFormat) {
_connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat;
}
if (flashVars.NewgroundsAPI_SessionID) {
_connection.sessionId = flashVars.NewgroundsAPI_SessionID;
}
if (flashVars.NewgroundsAPI_SaveGroupID) {
_requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID;
}
if (flashVars.NewgroundsAPI_SaveFileID) {
_requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID;
}
}
} else {
_connection.debug = true;
if ((_debugMode == DEBUG_MODE_LOGGED_IN) || (_debugMode == DEBUG_MODE_LOGGED_OUT)) {
_connection.publisherId = 1;
}
if (_debugMode == DEBUG_MODE_LOGGED_IN) {
_connection.sessionId = "D3bu64p1U53R";
_connection.userId = 10;
_connection.username = "API-Debugger";
}
}
_connection.sendSimpleCommand("connectMovie", onConnect, {host:_connection.hostDomain, movie_version:_movieVersion, publisher_id:_connection.publisherId});
}
static function onConnect(event) {
var _local1 = event.__get__data();
if (!event.__get__success()) {
com.newgrounds.Logger.logError("Unable to connect to the API.");
_connection.reset();
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error());
return(undefined);
}
if (debugMode != RELEASE_MODE) {
_adFeedURL = TEST_AD_FEED_URL;
} else if (_local1.ad_url) {
_adFeedURL = unescape(_local1.ad_url);
}
switch (_local1.ad_status) {
case -1 :
com.newgrounds.Logger.logWarning("Your movie is not approved to run Flash Ads.");
break;
case 0 :
com.newgrounds.Logger.logWarning("Your movie is still awaiting approval to run Flash Ads.");
break;
case 1 :
com.newgrounds.Logger.logMessage("Your movie is approved to run Flash Ads!");
}
_adsApproved = _local1.ad_status == 1;
if ((_debugMode == DEBUG_MODE_HOST_BLOCKED) || (_local1.deny_host)) {
com.newgrounds.Logger.logWarning(_connection.hostDomain + " does not have permission to host this movie!", "Update your API configuration to allow this host.");
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {officialURL:unescape(_local1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED);
_connection.reset();
return(undefined);
}
_movieName = (_local1.movieName ? (_local1.movieName) : "");
com.newgrounds.Logger.logMessage("Connecting to the Newgrounds API Gateway...", ("----- " + _local1.movie_name) + " -----");
if (_debugMode == DEBUG_MODE_NEW_VERSION) {
_local1.movie_version = "Debug Mode";
}
if (_local1.movie_version) {
com.newgrounds.Logger.logMessage("A new version of this movie is available.", "Current version:\t" + _movieVersion, "Newest version:\t" + _local1.movie_version, "Use API.loadOfficialVersion() to link to the latest version.");
_newVersion = true;
} else {
_newVersion = false;
}
if (_local1.request_portal_url) {
_connection.sendSimpleCommand("setPortalID", null, {portal_url:_connection.__get__hostURL()});
}
_connection.sendSimpleCommand("preloadSettings", onMetadataLoaded, {publisher_id:_connection.publisherId, user_id:_connection.userId});
}
static function onMetadataLoaded(event) {
var _local11 = event.__get__data();
var _local1;
var _local7;
if (!event.__get__success()) {
com.newgrounds.Logger.logWarning("Unable to load movie metadata.");
disconnect();
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error());
return(undefined);
}
var _local10 = 0;
if (_local11.medals) {
_local10 = _local11.medals.length;
var _local18;
if (hasUserSession) {
_local18 = loadLocal("medals_unlocked_" + username);
} else {
_local18 = loadLocal("medals_unlocked");
}
_local1 = 0;
while (_local1 < _local10) {
var _local4 = _local11.medals[_local1];
var _local15 = _local4.medal_unlocked;
var _local17 = _local18 && (_local18[_local4.medal_id]);
var _local14 = (hasUserSession ? (_local15) : (_local17));
if (debugMode != RELEASE_MODE) {
_local14 = false;
}
var _local5 = new com.newgrounds.Medal(_connection, _local4.medal_id, _local4.medal_name, _local4.medal_description, Boolean(int(_local4.secret)), _local14, _local4.medal_value, _local4.medal_difficulty, _local4.medal_icon);
_local5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, false, 0, true);
_local5.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed, false, 0, true);
_medals[_local5.__get__name()] = _local5;
_medalsArray.push(_local5);
com.newgrounds.Logger.logMessage(_local5);
if ((hasUserSession && (_local17)) && (!_local15)) {
com.newgrounds.Logger.logMessage(("Server missed the \"" + _local5.__get__name()) + "\" unlock. Resending...");
_local5.unlock();
}
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " medal") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.score_boards) {
_local10 = _local11.score_boards.length;
_local1 = 0;
while (_local1 < _local10) {
var _local16 = _local11.score_boards[_local1];
var _local9 = new com.newgrounds.ScoreBoard(_connection, _local16.name, _local16.id);
_scoreBoards[_local9.__get__name()] = _local9;
_scoreBoardsArray.push(_local9);
com.newgrounds.Logger.logMessage(_local9);
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " scoreboard") + ((_local10 != 1) ? "s" : "")) + " initialized.");
_local10 = 0;
if (_local11.save_groups) {
_local10 = _local11.save_groups.length;
_local1 = 0;
while (_local1 < _local10) {
var _local2 = _local11.save_groups[_local1];
var _local13 = [];
if (_local2.keys) {
_local7 = 0;
while (_local7 < _local2.keys.length) {
var _local6 = _local2.keys[_local7];
_local13.push(new com.newgrounds.SaveKey(_local6.name, _local6.id, _local6.type));
_local7++;
}
}
var _local12 = [];
if (_local2.ratings) {
_local1 = 0;
while (_local1 < _local2.ratings.length) {
var _local3 = _local2.ratings[_local1];
_local12.push(new com.newgrounds.SaveRating(_local3.name, _local3.id, _local3.float, _local3.min, _local3.max));
_local1++;
}
}
var _local8 = new com.newgrounds.SaveGroup(_connection, _local2.group_name, _local2.group_id, _local2.group_type, _local13, _local12);
_saveGroups[_local8.__get__name()] = _local8;
_saveGroupsArray.push(_local8);
com.newgrounds.Logger.logMessage(_local8);
_local1++;
}
}
com.newgrounds.Logger.logMessage(((_local10 + " save group") + ((_local10 != 1) ? "s" : "")) + " initialized.");
if (_local11.save_file_path) {
_saveFilePath = _local11.save_file_path + "/";
com.newgrounds.SaveFile._saveFilePath = _saveFilePath;
com.newgrounds.Logger.logInternal("Save file path: " + _saveFilePath);
}
if (_local11.image_file_path) {
_imageFilePath = _local11.image_file_path + "/";
com.newgrounds.SaveFile._imageFilePath = _imageFilePath;
com.newgrounds.Logger.logInternal("Image file path: " + _imageFilePath);
}
com.newgrounds.Logger.logMessage("Connection complete!");
_connection.connectionState = com.newgrounds.APIConnection.CONNECTED;
dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {movieName:_movieName, newVersion:_newVersion});
if (_requestedSaveFileId && (_requestedSaveGroupId)) {
addEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded);
loadSaveFile(_requestedSaveFileId, false);
}
}
static function disconnect() {
if (!_connection.__get__connected()) {
com.newgrounds.Logger.logWarning("The Newgrounds API is already disconnected.");
return(undefined);
}
_connection.reset();
for (var _local2 in _medals) {
var _local1 = _medals[_local2];
_local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked);
_local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed);
}
_newVersion = false;
_medals = new Object();
_medalsArray = [];
_scoreBoards = new Object();
_scoreBoardsArray = [];
_saveGroups = new Object();
_saveGroupsArray = [];
_sharedObjects = new Object();
_imageFilePath = null;
_saveFilePath = null;
com.newgrounds.Logger.logMessage("Disconnected from the Newgrounds API.");
}
static function loadNewgrounds() {
_connection.loadInBrowser("loadNewgrounds");
}
static function loadOfficialVersion() {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadOfficialVersion", false);
}
}
static function loadMySite() {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadMySite");
}
}
static function loadCustomLink(linkName) {
if (_connection.assertInitialized()) {
_connection.loadInBrowser("loadCustomLink", true, {link:linkName});
}
}
static function getMedal(medalName) {
return(_medals[medalName]);
}
static function unlockMedal(medalName) {
if (!assertConnected()) {
return(undefined);
}
var _local1 = _medals[medalName];
if (!_local1) {
com.newgrounds.Logger.logError(("No medal named \"" + medalName) + "\" w.");
return(undefined);
}
_local1.unlock();
}
static function onMedalUnlocked(event) {
if (event.__get__success()) {
var _local2 = com.newgrounds.Medal(event.__get__data());
var _local1;
if (hasUserSession) {
_local1 = loadLocal("medals_unlocked_" + username);
if (!_local1) {
_local1 = new Object();
}
_local1[_local2.__get__id()] = true;
saveLocal("medals_unlocked_" + username, _local1);
} else {
_local1 = loadLocal("medals_unlocked");
if (!_local1) {
_local1 = new Object();
}
_local1[com.newgrounds.Medal(event.__get__data()).__get__id()] = true;
saveLocal("medals_unlocked", _local1);
com.newgrounds.Logger.logMessage(("User instanceof not logged in. Medal \"" + _local2.__get__name()) + "\" unlocked locally.");
}
}
}
static function onMedalUnlockConfirmed(event) {
if (hasUserSession) {
var _local1 = loadLocal("medals_unlocked_" + username);
if (!_local1) {
_local1 = new Object();
} else {
delete _local1[com.newgrounds.Medal(event.__get__data()).__get__id()];
}
saveLocal("medals_unlocked_" + username, _local1);
}
}
static function clearLocalMedals() {
for (var _local2 in _medals) {
var _local1 = _medals[_local2];
_local1.setUnlocked(false);
}
if (!hasUserSession) {
saveLocal("medals_unlocked", new Object());
}
}
static function getScoreBoard(scoreBoardName) {
if (!assertConnected()) {
return(null);
}
return(_scoreBoards[scoreBoardName]);
}
static function loadScores(scoreBoardName, period, firstResult, numResults, tag) {
if (period == undefined) {
period = "All-Time";
}
if (firstResult == undefined) {
firstResult = 1;
}
if (numResults == undefined) {
numResults = 10;
}
if (tag == undefined) {
tag = null;
}
if (!assertConnected()) {
return(null);
}
var _local1 = _scoreBoards[scoreBoardName];
if (!_local1) {
com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w.");
dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(null);
}
_local1.__set__period(period);
_local1.__set__firstResult(firstResult);
_local1.__set__numResults(numResults);
_local1.__set__tag(tag);
_local1.loadScores();
return(_local1);
}
static function postScore(scoreBoardName, numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (!assertConnected()) {
return(undefined);
}
if (!hasUserSession) {
com.newgrounds.Logger.logError("The user must be logged-in to post a score.");
dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN);
return(undefined);
}
var _local1 = _scoreBoards[scoreBoardName];
if (!_local1) {
com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w.");
dispatchEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT);
return(undefined);
}
_local1.postScore(numericScore, tag);
}
static function getSaveGroup(groupName) {
if (!assertConnected()) {
return(null);
}
return(_saveGroups[groupName]);
}
static function getSaveGroupById(id) {
for (var _local3 in _saveGroups) {
var _local1 = _saveGroups[_local3];
if (_local1.__get__id() == id) {
return(_local1);
}
}
return(null);
}
static function createSaveFile(groupName) {
if (!assertConnected()) {
return(null);
}
var _local1 = getSaveGroup(groupName);
if (!_local1) {
com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found.");
return(null);
}
return(new com.newgrounds.SaveFile(_local1));
}
static function loadSaveFile(saveId, loadContents) {
if (loadContents == undefined) {
loadContents = true;
}
_connection.sendSimpleCommand("loadSaveFile", onFileLoaded, {save_id:saveId, get_contents:loadContents});
}
static function onFileLoaded(event) {
var _local2;
if (event.__get__success()) {
_local2 = com.newgrounds.SaveFile.fromObject(getSaveGroupById(event.__get__data().group_id), event.__get__data().file);
if (event.__get__data().get_contents) {
_local2.load();
} else {
dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, _local2);
}
} else {
com.newgrounds.Logger.logError("Unable to load file:", event.__get__error());
dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error());
}
}
static function createSaveQuery(groupName) {
if (!assertConnected()) {
return(null);
}
var _local1 = getSaveGroup(groupName);
if (!_local1) {
com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found.");
return(null);
}
var _local2 = new com.newgrounds.SaveQuery(_local1);
return(_local2);
}
static function createSaveQueryByDate(groupName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var _local1 = createSaveQuery(groupName);
if (!_local1) {
return(null);
}
_local1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending);
return(_local1);
}
static function createSaveQueryByName(groupName, filename, exactMatch, sortDescending) {
if (exactMatch == undefined) {
exactMatch = false;
}
if (sortDescending == undefined) {
sortDescending = false;
}
var _local1 = createSaveQuery(groupName);
_local1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, (exactMatch ? (com.newgrounds.SaveQuery.OPERATOR_EQUAL) : (com.newgrounds.SaveQuery.OPERATOR_CONTAINS)), filename);
return(_local1);
}
static function createSaveQueryByRating(groupName, ratingName, sortDescending) {
if (sortDescending == undefined) {
sortDescending = true;
}
var _local1 = createSaveQuery(groupName);
_local1.sortOn(ratingName, sortDescending);
return(_local1);
}
static function onRequestedFileLoaded(event) {
removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded);
if (event.__get__success()) {
var _local1 = event.__get__data();
if (_local1) {
dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, _local1);
}
}
}
static function addEventListener(eventType, listener, priority, useWeakReference) {
if (priority == undefined) {
priority = 0;
}
if (useWeakReference == undefined) {
useWeakReference = true;
}
_dispatcher.addEventListener(eventType, listener, false, priority, useWeakReference);
}
static function removeEventListener(eventType, listener) {
_dispatcher.removeEventListener(eventType, listener);
}
static function dispatchEvent(event, data, error) {
if (data == undefined) {
data = null;
}
if (error == undefined) {
error = null;
}
_dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error));
}
static function saveLocal(saveId, saveData) {
try {
var _local3;
var _local2 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey);
if (!_sharedObjects[saveId]) {
_sharedObjects[saveId] = SharedObject.getLocal(_local2);
}
_local3 = _sharedObjects[saveId];
_local3.data.data = encodeData(saveData);
} catch(_local) {
if (Error( /* Error999 */
) != null) {
var error = Error( /* Error999 */
);
com.newgrounds.Logger.logError("Unable to save local data.", error);
return(false);
}
Error( /* Error999 */
);
throw /* Error999 */
;
}
return(true);
}
static function loadLocal(saveId) {
try {
var _local1;
var _local3 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey);
if (!_sharedObjects[saveId]) {
_sharedObjects[saveId] = SharedObject.getLocal(_local3);
}
_local1 = _sharedObjects[saveId];
if ((_local1 && (_local1.data)) && (_local1.data.data)) {
return(decodeData(_local1.data.data));
}
return(null);
} catch(error:Error) {
com.newgrounds.Logger.logError("Unable to load local data.", error);
}
return(null);
}
static function logCustomEvent(eventName) {
if (assertConnected()) {
com.newgrounds.Logger.logMessage("Logged event: " + eventName);
_connection.sendSimpleCommand("logCustomEvent", null, {event:eventName});
}
}
static function encodeData(data) {
if (!_connection.assertInitialized()) {
return(null);
}
return(com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), _connection.encryptionKey));
}
static function decodeData(data) {
if (!_connection.assertInitialized()) {
return(null);
}
try {
return(com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, _connection.encryptionKey)));
} catch(error:Error) {
}
return(null);
}
static function stopPendingCommands() {
com.newgrounds.APICommand.stopPendingCommands();
com.newgrounds.Logger.logMessage("Pending commands stopped.");
}
static function trimWhitespace(string) {
if (!string) {
return(null);
}
var _local3 = 0;
while (string.charAt(_local3) == " ") {
_local3++;
}
var _local1 = string.length - 1;
while ((string.charAt(_local1) == " ") && (_local1 >= 0)) {
_local1--;
}
return(string.slice(_local3, _local1 + 1));
}
static var VERSION = "3.1.0 AS2";
static var RELEASE_MODE = "releaseMode";
static var DEBUG_MODE_LOGGED_IN = "debugModeLoggedIn";
static var DEBUG_MODE_LOGGED_OUT = "debugModeLoggedOut";
static var DEBUG_MODE_NEW_VERSION = "debugModeNewVersion";
static var DEBUG_MODE_HOST_BLOCKED = "debugModeHostBlocked";
static var TEST_AD_FEED_URL = "http://www.ngads.com/adtest.php";
static var _dispatcher = new com.newgrounds.APIEventDispatcher();
static var _connection = new com.newgrounds.APIConnection();
static var _debugMode = DEBUG_MODE_LOGGED_IN;
static var _adsApproved = false;
static var _medals = new Object();
static var _medalsArray = [];
static var _scoreBoards = new Object();
static var _scoreBoardsArray = [];
static var _saveGroups = new Object();
static var _saveGroupsArray = [];
static var _sharedObjects = new Object();
}
Symbol 44 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
class com.newgrounds.encoders.ImageScanner
{
var _baseN, _encodeAlpha, _maxPerChannel;
function ImageScanner (hashLength, charsPerPixel) {
if (hashLength) {
_hash = DEFAULT_HASH.substr(0, hashLength);
}
_baseN = new com.newgrounds.encoders.BaseN(_hash);
if (charsPerPixel) {
_charsPerPixel = charsPerPixel;
}
encodeAlpha = (false);
}
function get encodeAlpha() {
return(_encodeAlpha);
}
function set encodeAlpha(v) {
_encodeAlpha = v;
_maxPerChannel = int(Math.pow(_hash.length, _charsPerPixel / (_encodeAlpha ? 4 : 3)));
if (_maxPerChannel > 256) {
_maxPerChannel = 256;
}
//return(encodeAlpha);
}
function encode(source, callbackFunction, callbackObject) {
var _local4 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, x:0, y:0, output:null};
var _local2 = source.width.toString();
var _local3 = source.height.toString();
while (_local2.length < 3) {
_local2 = "0" + _local2;
}
while (_local3.length < 3) {
_local3 = "0" + _local3;
}
_local4.output = _local2 + _local3;
var _local6 = setInterval(this, "doEncode", WORK_INTERVAL, _local4);
_local4.interval = _local6;
}
function decode(source, callbackFunction, callbackObject) {
var _local2 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, i:6, x:0, y:0, output:null};
var _local5 = int(source.substr(0, 3));
var _local6 = int(source.substr(3, 3));
_local2.output = new flash.display.BitmapData(_local5, _local6, _encodeAlpha);
var _local4 = setInterval(this, "doDecode", WORK_INTERVAL, _local2);
_local2.interval = _local4;
}
function doEncode(state) {
var _local3 = getTimer();
while ((state.y < state.source.height) && ((getTimer() - _local3) < WORK_INTERVAL)) {
state.output = state.output + encodePixel(state.source.getPixel32(state.x, state.y));
state.x++;
if (state.x == state.source.width) {
state.x = 0;
state.y++;
}
}
if (state.y == state.source.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
}
function doDecode(state) {
var _local4 = getTimer();
while ((state.y < state.output.height) && ((getTimer() - _local4) < WORK_INTERVAL)) {
var _local3 = decodePixel(state.source.substr(state.i, _charsPerPixel));
state.output.setPixel32(state.x, state.y, _local3);
state.i = state.i + _charsPerPixel;
state.x++;
if (state.x == state.output.width) {
state.x = 0;
state.y++;
}
}
if (state.y == state.output.height) {
clearInterval(state.interval);
state.callbackFunction.call(state.callbackObject, state.output);
}
}
function encodePixel(pixel) {
var _local3 = (pixel >> 24) & 255;
var _local4 = (pixel >> 16) & 255;
var _local5 = (pixel >> 8) & 255;
var _local2 = pixel & 255;
_local3 = int((_local3 / 256) * _maxPerChannel);
_local4 = int((_local4 / 256) * _maxPerChannel);
_local5 = int((_local5 / 256) * _maxPerChannel);
_local2 = int((_local2 / 256) * _maxPerChannel);
var _local7 = (((_local4 * _maxPerChannel) * _maxPerChannel) + (_local5 * _maxPerChannel)) + _local2;
if (_encodeAlpha) {
_local7 = _local7 + (((_local3 * _maxPerChannel) * _maxPerChannel) * _maxPerChannel);
}
return(_baseN.encodeUint(_local7, _charsPerPixel));
}
function decodePixel(encodedPixel) {
var _local3 = 255;
var _local5;
var _local6;
var _local4;
var _local7 = 0;
var _local2 = _baseN.decodeUint(encodedPixel);
_local4 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
_local6 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
_local5 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
if (_encodeAlpha) {
_local3 = _local2 % _maxPerChannel;
_local2 = _local2 / int(_maxPerChannel);
}
return((((_local3 << 24) | (_local5 << 16)) | (_local6 << 8)) | _local4);
}
static var DEFAULT_HASH = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&";
var _hash = DEFAULT_HASH;
var _charsPerPixel = 2;
static var WORK_INTERVAL = 33.3333333333333;
}
Symbol 45 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
class com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher
{
static var _currentFile;
var _iconLoader, _group, _keys, _ratings, _name, _description, _id, _data, _dataLoader, _fileSize, _readOnly, _draft, _authorId, _authorName, _views, _createdDate, _modifiedDate, dispatchEvent, _encodedIcon, _encodedData, _encoderQueue, _encoding, _dataLoaded, _encodingParent, _encodingProperty, _dataURL;
function SaveFile (group) {
super();
_iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, null);
_group = group;
_keys = {};
_ratings = {};
}
static function get currentFile() {
return(_currentFile);
}
static function fromObject(group, fileData) {
var _local4 = new com.newgrounds.SaveFile(group);
_local4._name = fileData.filename;
_local4._description = fileData.description;
_local4._id = fileData.save_id;
_local4._authorId = fileData.user_id;
_local4._authorName = fileData.user_name;
_local4._createdDate = fileData.created;
_local4._modifiedDate = fileData.last_update;
_local4._views = fileData.views;
if (fileData.thumb && (fileData.thumb != "")) {
_local4._iconLoader.__set__url(_imageFilePath + fileData.thumb);
}
_local4._dataURL = _saveFilePath + fileData.file;
_local4._fileSize = fileData.file_size;
_local4._approved = fileData.status != STATUS_UNAPPROVED;
_local4._readOnly = false;
_local4._public = (fileData.status != STATUS_PRIVATE) && (fileData.status != STATUS_UNAPPROVED);
for (var _local8 in fileData.keys) {
var _local6 = fileData.keys[_local8];
var _local2 = group.getKeyById(_local6.id);
if (_local2) {
_local4._keys[_local2.__get__name()] = _local2.validateValue(_local6.value);
}
}
for (var _local9 in fileData.ratings) {
var _local5 = fileData.ratings[_local9];
var _local3 = group.getRatingById(_local5.id);
if (_local3) {
_local4._ratings[_local3.__get__name()] = _local3.validateValue(_local5.score);
}
}
return(_local4);
}
function get group() {
return(_group);
}
function get name() {
return(_name);
}
function set name(val) {
_name = val;
//return(name);
}
function get description() {
return(_description);
}
function set description(val) {
_description = val;
//return(description);
}
function get id() {
return(_id);
}
function get data() {
return(_data);
}
function set data(val) {
_data = val;
//return(data);
}
function get bytesLoaded() {
if (_data) {
return(bytesTotal);
}
if (!_dataLoader) {
return(0);
}
return(_dataLoader.getBytesLoaded());
}
function get bytesTotal() {
return(_fileSize);
}
function get readOnly() {
return(_readOnly);
}
function get draft() {
return(_draft);
}
function set draft(v) {
_draft = v;
//return(draft);
}
function get authorId() {
return(_authorId);
}
function get authorName() {
return(_authorName);
}
function get keys() {
return(_keys);
}
function get ratings() {
return(_ratings);
}
function get views() {
return(_views);
}
function get createdDate() {
return(_createdDate);
}
function get updatedDate() {
return(_modifiedDate);
}
function toString() {
return("Save File: " + _name);
}
function get icon() {
return(_iconLoader.__get__bitmapData());
}
function set icon(v) {
createIcon(v);
//return(icon);
}
function get iconLoaded() {
return(_iconLoader.__get__loaded());
}
function createIcon(source) {
var _local9 = new flash.display.BitmapData(ICON_WIDTH, ICON_HEIGHT, false, 0);
var _local6;
var _local5;
var _local10 = 0;
var _local8 = 0;
if (source instanceof flash.display.BitmapData) {
_local6 = source.width;
_local5 = source.height;
} else if (source instanceof MovieClip) {
_local6 = source._width;
_local5 = source._height;
var _local7 = MovieClip(source).getBounds(source);
_local10 = _local7.xMin;
_local8 = _local7.yMin;
}
var _local3 = new flash.geom.Matrix();
var _local4;
_local4 = Math.min(ICON_WIDTH / _local6, ICON_HEIGHT / _local5);
_local3.translate(-_local10, -_local8);
_local3.scale(_local4, _local4);
_local3.translate((ICON_WIDTH - (_local6 * _local4)) / 2, (ICON_HEIGHT - (_local5 * _local4)) / 2);
_local9.draw(source, _local3);
_iconLoader.__set__bitmapData(_local9);
}
function attachIcon(parent) {
if (_iconLoader) {
return(_iconLoader.attachBitmap(parent));
}
com.newgrounds.Logger.logError("No icon available for this sumbission.");
return(null);
}
function save() {
if (!_group.__get__connection().__get__hasUserSession()) {
com.newgrounds.Logger.logError("The user must be logged-in to save a file.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN));
return(undefined);
}
com.newgrounds.BitmapLoader._cacheSeed++;
_currentFile = this;
if (iconLoaded) {
ICON_IMAGE_SCANNER.encode(icon, onIconEncoded, this);
} else {
encodeData(true);
}
}
function onIconEncoded(encodedIcon) {
_encodedIcon = encodedIcon;
encodeData(true);
}
function doSave() {
var _local4 = new com.newgrounds.APICommand("saveFile");
_local4.__get__secureParameters().group = _group.id;
_local4.__get__secureParameters().user_name = _group.__get__connection().username;
_local4.__get__secureParameters().filename = _name;
_local4.__get__secureParameters().description = _description;
if (_draft) {
_local4.__get__secureParameters().draft = true;
}
if (_id && (!_readOnly)) {
_local4.__get__secureParameters().overwrite = 1;
_local4.__get__secureParameters().save_id = _id;
}
var _local8 = [];
for (var _local9 in _keys) {
var _local2 = _group.getKey(_local9);
if (_local2) {
_local8.push({id:_local2.__get__id(), value:_local2.validateValue(_keys[_local9])});
} else {
com.newgrounds.Logger.logError(((("No key named \"" + _local9) + "\" in save group \"") + _group.__get__name()) + "\".");
}
}
_local4.__get__secureParameters().keys = _local8;
var _local7 = [];
for (var _local10 in _ratings) {
var _local3 = _group.getRating(_local10);
if (_local3) {
_local7.push({id:_local3.__get__id(), value:_local3.validateValue(_ratings[_local10])});
} else {
com.newgrounds.Logger.logError(((("No rating named \"" + _local10) + "\" in save group \"") + _group.__get__name()) + "\".");
}
}
_local4.__get__secureParameters().ratings = _local7;
if (typeof(_encodedData) == "string") {
_local4.addFile("file", _encodedData, "file");
} else {
_local4.addFile("file", com.newgrounds.encoders.json.JSON.encode(_encodedData), "file");
}
if (iconLoaded) {
_local4.addFile("thumbnail", _encodedIcon, "thumbnail");
}
_local4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {target:this, func:onSaveComplete});
_group.__get__connection().sendCommand(_local4);
}
function encodeData(encode) {
_encoderQueue = [];
_encoding = encode;
if (encode) {
_encodedData = _data;
preEncodeObject(this, "_encodedData");
} else {
preEncodeObject(this, "_data");
}
encodeObject();
}
function preEncodeObject(parent, property) {
var _local3 = parent[property];
var _local5;
try {
if (_encoding) {
_local5 = _local3 instanceof flash.display.BitmapData;
} else {
_local5 = _local3.type == "__bitmap";
}
} catch(error) {
}
var _local2 = _local3;
var _local8;
if (_local5) {
_encoderQueue.push({parent:parent, property:property});
} else if ((typeof(_local3) == "object") && (!_local8)) {
if (_encoding) {
if (_local3 instanceof Array) {
_local2 = [];
} else {
_local2 = {};
}
for (var _local4 in _local3) {
_local2[_local4] = _local3[_local4];
}
parent[property] = _local2;
}
for (var _local4 in _local2) {
preEncodeObject(_local2, _local4);
}
}
}
function encodeObject() {
if (!_encoderQueue.length) {
if (_encoding) {
doSave();
} else {
_dataLoaded = true;
checkLoadComplete();
}
return(undefined);
}
var _local6 = _encoderQueue.pop();
var _local4 = _local6.parent;
var _local3 = _local6.property;
var _local2 = _local4[_local3];
var _local5;
if (_encoding) {
_local5 = {type:"__bitmap", width:_local2.width, height:_local2.height, transparent:_local2.transparent};
_local4[_local3] = _local5;
_encodingParent = _local5;
_encodingProperty = "data";
DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent);
DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(_local2), encodeBitmapComplete, this);
} else {
_encodingParent = _local4;
_encodingProperty = _local3;
DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent);
DATA_IMAGE_SCANNER.decode(String(_local2.data), encodeBitmapComplete, this);
}
}
function encodeBitmapComplete(data) {
_encodingParent[_encodingProperty] = data;
encodeObject();
}
function load() {
_currentFile = this;
_dataLoaded = false;
_data = null;
if (!iconLoaded) {
_iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {target:this, func:onIconLoaded});
_iconLoader.load();
}
_dataLoader = new LoadVars();
var file = this;
_dataLoader.onData = function (data) {
file.onDataLoaded(data);
};
_dataLoader.load(_dataURL);
}
function onIconLoaded(event) {
if ((!event.__get__success()) && (_iconLoader.__get__url())) {
com.newgrounds.Logger.logWarning("Unable to load the icon for this save file.");
}
_iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, onIconLoaded);
checkLoadComplete();
}
function checkLoadComplete() {
if (_dataLoaded && (iconLoaded)) {
com.newgrounds.Logger.logMessage("Data loaded.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this));
}
}
function onDataLoaded(data) {
try {
if (data) {
if (data.charAt(0) == "{") {
_data = com.newgrounds.encoders.json.JSON.decode(String(data));
} else {
_data = String(data);
}
encodeData(false);
}
} catch(error:Error) {
com.newgrounds.Logger.logError("Error while loading data:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
}
}
function onDataError(error) {
com.newgrounds.Logger.logError("Unable to load data:", error);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE));
}
function onSaveComplete(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage(("File \"" + _name) + "\" saved!");
if (event.__get__data()) {
_id = event.__get__data().save_id;
_dataURL = unescape(event.__get__data().file_url);
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this));
} else {
com.newgrounds.Logger.logError(("Error saving file \"" + _name) + "\":", event.__get__error());
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error()));
}
}
function sendVote(ratingName, vote) {
var _local2 = _group.getRating(ratingName);
if (!_local2) {
com.newgrounds.Logger.logError(("No save rating named \"" + ratingName) + "\" exists for this save group.");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
vote = _local2.validateValue(vote);
if (isNaN(vote)) {
com.newgrounds.Logger.logError(((((((("Invalid vote (" + vote) + "). ") + ratingName) + " allows a range of ") + _local2.__get__minimum()) + "-") + _local2.__get__maximum()) + ".");
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
com.newgrounds.Logger.logMessage(((((("Voting " + vote) + " for ") + ratingName) + " on ") + _name) + "...");
_group.__get__connection().sendSimpleCommand("rateSaveFile", {target:this, func:onVoteComplete}, null, {group:_group.__get__id(), save_id:_id, rating_id:_local2.__get__id(), vote:vote});
}
function onVoteComplete(event) {
var _local2 = event.__get__error();
if (event.__get__data().already_voted) {
com.newgrounds.Logger.logError("Vote failed. You've already voted on this rating today.");
_local2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED;
}
if (_local2 == com.newgrounds.APIEvent.ERROR_NONE) {
var _local3 = _group.getRatingById(event.__get__data().rating_id);
if (_local3) {
_ratings[_local3.__get__name()] = _local3.validateValue(event.__get__data().score);
}
com.newgrounds.Logger.logMessage("Vote complete!");
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, _local2));
}
function clone() {
var _local3 = new com.newgrounds.SaveFile(_group);
_local3._data = _data;
_local3._description = _description;
_local3._draft = _draft;
_local3._fileSize = _fileSize;
_local3._iconLoader.__set__bitmapData(_iconLoader.bitmapData);
var _local2;
for (_local2 in _keys) {
_local3._keys[_local2] = _keys[_local2];
}
for (_local2 in _ratings) {
_local3._ratings[_local2] = _ratings[_local2];
}
_local3._name = _name;
return(_local3);
}
static var ICON_WIDTH = 90;
static var ICON_HEIGHT = 90;
static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultSaveIcon");
static var STATUS_PRIVATE = 0;
static var STATUS_SHARED = 1;
static var STATUS_UNAPPROVED = 2;
static var STATUS_APPROVED = 3;
static var _imageFilePath = "";
static var _saveFilePath = "";
static var ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner();
static var DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6);
}
Symbol 43 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
class com.newgrounds.SaveGroup
{
var _connection, _id, _name, _type, _keysArray, _ratingsArray, _keys, _ratings;
function SaveGroup (connection, name, id, type, keys, ratings) {
_connection = connection;
_id = id;
_name = name;
_type = type;
_keysArray = keys;
_ratingsArray = ratings;
_keys = new Object();
_ratings = new Object();
var _local11;
for (var _local7 in keys) {
var _local2 = keys[_local7];
_keys[_local2.__get__name()] = _local2;
}
for (var _local6 in ratings) {
var _local3 = ratings[_local6];
_ratings[_local3.__get__name()] = _local3;
}
}
function get connection() {
return(_connection);
}
function get name() {
return(_name);
}
function get type() {
return(_type);
}
function get id() {
return(_id);
}
function get keys() {
return(_keysArray);
}
function get ratings() {
return(_ratingsArray);
}
function getKey(name) {
return(_keys[name]);
}
function getRating(name) {
return(_ratings[name]);
}
function getKeyById(id) {
for (var _local4 in _keys) {
var _local2 = _keys[_local4];
if (_local2.__get__id() == id) {
return(_local2);
}
}
return(null);
}
function getRatingById(id) {
for (var _local4 in _ratings) {
var _local2 = _ratings[_local4];
if (_local2.__get__id() == id) {
return(_local2);
}
}
return(null);
}
function toString() {
return((((("SaveGroup: " + name) + " Keys: ") + _keysArray) + " Ratings: ") + _ratingsArray);
}
static var TYPE_SYSTEM = 0;
static var TYPE_PRIVATE = 1;
static var TYPE_PUBLIC = 2;
static var TYPE_MODERATED = 3;
}
Symbol 41 MovieClip [__Packages.com.newgrounds.SaveKey] Frame 0
class com.newgrounds.SaveKey
{
var _name, _id, _type;
function SaveKey (name, id, type) {
_name = name;
_id = id;
_type = type;
}
function get name() {
return(_name);
}
function get id() {
return(_id);
}
function get type() {
return(_type);
}
function validateValue(value) {
switch (_type) {
case TYPE_INTEGER :
value = Number(value);
if (!isNaN(value)) {
var _local3 = int(value);
if (_local3 != value) {
com.newgrounds.Logger.logWarning(((((("Float value " + value) + " given for integer key \"") + _name) + "\". Clamping to ") + _local3) + ".");
}
return(_local3);
}
break;
case TYPE_FLOAT :
value = Number(value);
if (!isNaN(value)) {
return(isNaN(Number(value)));
}
break;
case TYPE_BOOLEAN :
return(Boolean(value));
case TYPE_STRING :
return((value ? (value.toString()) : ""));
}
return(null);
}
function toString() {
return(_name);
}
static var TYPE_FLOAT = 1;
static var TYPE_INTEGER = 2;
static var TYPE_STRING = 3;
static var TYPE_BOOLEAN = 4;
}
Symbol 42 MovieClip [__Packages.com.newgrounds.SaveRating] Frame 0
class com.newgrounds.SaveRating
{
var _name, _id, _isFloat, _minimum, _maximum;
function SaveRating (name, id, isFloat, minimum, maximum) {
_name = name;
_id = id;
_isFloat = isFloat;
_minimum = minimum;
_maximum = maximum;
}
function get name() {
return(_name);
}
function get id() {
return(_id);
}
function get isFloat() {
return(_isFloat);
}
function get minimum() {
return(_minimum);
}
function get maximum() {
return(_maximum);
}
function validateValue(value) {
var _local2 = Number(value);
if (isNaN(_local2)) {
com.newgrounds.Logger.logError(("Invalid value for rating \"" + _name) + "\".");
return(NaN);
}
if (_local2 < _minimum) {
com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _minimum) + ".");
return(_minimum);
}
if (_local2 > _maximum) {
com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _maximum) + ".");
return(_maximum);
}
if (!isFloat) {
var _local3 = int(_local2);
if (_local3 != _local2) {
com.newgrounds.Logger.logWarning(((((("Float value " + _local2) + " given for integer rating \"") + _name) + "\". Clamping to ") + _local3) + ".");
}
return(_local3);
}
return(_local2);
}
function toString() {
return(_name);
}
}
Symbol 37 MovieClip [__Packages.com.newgrounds.BitmapLoader] Frame 0
class com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher
{
var _bitmapData, _url, _loader, _loaderClip, dispatchEvent;
function BitmapLoader (defaultBitmap, url) {
super();
_bitmapData = defaultBitmap;
_url = url;
}
function get url() {
return(_url);
}
function set url(v) {
_loaded = false;
_url = v;
//return(url);
}
function get bitmapData() {
return(_bitmapData);
}
function set bitmapData(v) {
_bitmapData = v;
_loaded = true;
//return(bitmapData);
}
function get loaded() {
return(_loaded);
}
function disposeLoader() {
if (_loader) {
if (_loaderClip._parent == _root) {
_loader.unloadClip(_loaderClip.bitmap);
_loaderClip.removeMovieClip();
}
_loader = null;
_loaderClip = null;
}
}
function load() {
if ((!_url) || (_url == "")) {
onLoadComplete();
return(undefined);
}
_loaded = false;
if (_bitmapData) {
_bitmapData.dispose();
_bitmapData = null;
}
disposeLoader();
attachBitmap(null);
}
function attachBitmap(parent) {
if (!parent) {
parent = _root;
}
var _local5 = parent.getNextHighestDepth();
var _local3 = parent.createEmptyMovieClip("__bitmap" + _local5, _local5);
if (((!_loaded) && (_url)) && (_url != "")) {
_local3.createEmptyMovieClip("bitmap", 0);
_loader = new MovieClipLoader();
_loaderClip = _local3;
if (parent == _root) {
_loaderClip._visible = false;
}
var thisObj = this;
_loaderClip.onEnterFrame = function () {
thisObj.pollLoad();
};
_loader.addListener({onLoadError:function () {
thisObj.onLoadComplete();
}});
_loader.loadClip(_url, _local3.bitmap);
} else {
_local3.attachBitmap(_bitmapData, 0);
}
return(_local3);
}
function pollLoad() {
if (_loaderClip._width) {
onLoadComplete();
}
}
function onLoadComplete() {
var _local2;
if ((_loader && (_loaderClip)) && (_loaderClip._width)) {
try {
_loaderClip.onEnterFrame = null;
_local2 = new flash.display.BitmapData(_loaderClip._width, _loaderClip._height, true, 0);
_local2.draw(_loaderClip);
_bitmapData = _local2;
_loaded = true;
} catch(error) {
if (_local2) {
_local2.dispose();
}
}
}
disposeLoader();
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, (_loaded ? null : (com.newgrounds.APIEvent.ERROR_BAD_FILE))));
}
static var _cacheSeed = 0;
var _loaded = true;
}
Symbol 46 MovieClip [__Packages.com.newgrounds.SaveQuery] Frame 0
class com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher
{
var _group, _connection, _files, _lookupKeys, _lookupRatings, _fileConditions, _keyConditions, _ratingConditions, _sortFields, dispatchEvent;
function SaveQuery (group) {
super();
_group = group;
_connection = group.connection;
reset();
}
function get group() {
return(_group);
}
function get resultsPerPage() {
return(_resultsPerPage);
}
function set resultsPerPage(val) {
_resultsPerPage = Math.min(Math.max(val, 1), 100);
//return(resultsPerPage);
}
function get page() {
return(_page);
}
function set page(val) {
_page = Math.max(val, 1);
//return(page);
}
function prevPage() {
page = ((page-1));
}
function nextPage() {
page = ((page+1));
}
function get isRandomized() {
return(_isRandomized);
}
function set isRandomized(val) {
_isRandomized = val;
//return(isRandomized);
}
function get files() {
return(_files);
}
function reset() {
_page = 1;
_resultsPerPage = 10;
_isRandomized = false;
_lookupKeys = [];
_lookupRatings = [];
_fileConditions = [];
_keyConditions = [];
_ratingConditions = [];
_sortFields = [];
_files = [];
includeAllFields();
}
function clone() {
var _local2 = new com.newgrounds.SaveQuery(_group);
_local2._page = _page;
_local2._resultsPerPage = _resultsPerPage;
_local2._isRandomized = _isRandomized;
_local2._lookupKeys = _lookupKeys.concat();
_local2._lookupRatings = _lookupRatings.concat();
_local2._fileConditions = _fileConditions.concat();
_local2._keyConditions = _keyConditions.concat();
_local2._ratingConditions = _ratingConditions.concat();
return(_local2);
}
function includeAllFields() {
for (var _local5 in _group.__get__keys()) {
var _local2 = _group.__get__keys()[_local5];
_lookupKeys.push(_local2.__get__id());
}
for (var _local4 in _group.__get__ratings()) {
var _local3 = _group.__get__ratings()[_local4];
_lookupRatings.push(_local3.__get__id());
}
}
function addCondition(field, operator, value) {
var _local2;
_local2 = 0;
while (_local2 < FILE_FIELDS.length) {
if (FILE_FIELDS[_local2] == field) {
break;
}
_local2++;
}
if (_local2 == FILE_FIELDS.length) {
_local2 = -1;
}
if (_local2 >= 0) {
_fileConditions.push({field:_local2, operator:operator, value:value});
} else {
var _local3 = _group.getKey(field);
if (_local3) {
value = _local3.validateValue(value);
_keyConditions.push({key_id:_local3.__get__id(), operator:operator, value:value});
return(undefined);
}
var _local4 = field.split(".");
var _local6 = _group.getRating(_local4[0]);
if (_local6) {
value = _local6.validateValue(value);
_ratingConditions.push({rating_id:_local6.__get__id(), operator:operator, value:value, column:(_local4[1] ? (_local4[1]) : "score")});
return(undefined);
}
com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\".");
}
}
function sortOn(field, sortDescending) {
if (sortDescending == undefined) {
sortDescending = false;
}
var _local2;
_local2 = 0;
while (_local2 < FILE_FIELDS.length) {
if (FILE_FIELDS[_local2] == field) {
break;
}
_local2++;
}
if (_local2 == FILE_FIELDS.length) {
_local2 = -1;
}
if (_local2 >= 0) {
_sortFields.push({table:TABLE_FILES, field:_local2, desc:sortDescending});
} else {
var _local5 = _group.getKey(field);
if (_local5) {
_sortFields.push({table:TABLE_KEYS, field:_local5.__get__id(), desc:sortDescending});
return(undefined);
}
var _local3 = field.split(".");
var _local6 = _group.getRating(_local3[0]);
if (_local6) {
_sortFields.push({table:TABLE_RATINGS, field:_local6.__get__id(), desc:sortDescending, extra:(_local3[1] ? (_local3[1]) : "score")});
return(undefined);
}
com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\".");
}
}
function execute() {
var _local5 = {};
_local5.page = _page;
_local5.num_results = _resultsPerPage;
if (_isRandomized) {
_local5.randomize = 1;
}
if (_lookupKeys && (_lookupKeys.length)) {
_local5.lookup_keys = _lookupKeys;
}
if (_lookupRatings && (_lookupRatings.length)) {
_local5.lookup_ratings = _lookupRatings;
}
if (_fileConditions && (_fileConditions.length)) {
_local5.file_conditions = _fileConditions;
}
if (_keyConditions && (_keyConditions.length)) {
_local5.key_conditions = _keyConditions;
}
if (_ratingConditions && (_ratingConditions.length)) {
_local5.rating_conditions = _ratingConditions;
}
if (_sortFields && (_sortFields.length)) {
_local5.sort_conditions = _sortFields;
}
_connection.sendSimpleCommand("lookupSaveFiles", {target:this, func:onQueryComplete}, {publisher_id:_connection.publisherId, group_id:_group.__get__id(), query:_local5});
}
function onQueryComplete(event) {
if (event.__get__success()) {
var _local4 = event.__get__data();
_files = [];
if (_local4.files) {
var _local2 = 0;
while (_local2 < _local4.files.length) {
var _local3 = com.newgrounds.SaveFile.fromObject(_group, _local4.files[_local2]);
if (_local3) {
_files.push(_local3);
}
_local2++;
}
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this));
} else {
com.newgrounds.Logger.logError("Query failed: " + event.__get__error());
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error()));
}
}
static var FILE_ID = "fileId";
static var AUTHOR_ID = "authorId";
static var AUTHOR_NAME = "authorName";
static var FILE_NAME = "fileName";
static var CREATED_ON = "createdOn";
static var UPDATED_ON = "updatedOn";
static var FILE_VIEWS = "fileViews";
static var FILE_STATUS = "fileStatus";
static var FILE_FIELDS = [FILE_ID, AUTHOR_ID, AUTHOR_NAME, FILE_NAME, CREATED_ON, UPDATED_ON, FILE_VIEWS, FILE_STATUS];
static var OPERATOR_EQUAL = "=";
static var OPERATOR_LESS_THAN = "<";
static var OPERATOR_GREATER_THAN = ">";
static var OPERATOR_NOT_EQUAL = "!=";
static var OPERATOR_LESS_OR_EQUAL = "<=";
static var OPERATOR_GREATER_OR_EQUAL = ">=";
static var OPERATOR_CONTAINS = "*";
static var OPERATOR_NOT_CONTAINS = "!*";
static var OPERATOR_NOT_BEGINS_WITH = "!*=";
static var OPERATOR_NOT_ENDS_WITH = "!=*";
static var OPERATOR_BEGINS_WITH = "*=";
static var OPERATOR_ENDS_WITH = "=*";
static var TABLE_FILES = 1;
static var TABLE_KEYS = 2;
static var TABLE_RATINGS = 3;
var _page = 1;
var _resultsPerPage = 10;
var _isRandomized = false;
}
Symbol 38 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
class com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher
{
var _connection, _id, _name, _description, _secret, _unlocked, _value, _difficulty, _iconLoader, dispatchEvent;
function Medal (connection, id, name, description, secret, unlocked, value, difficultyId, iconURL) {
super();
_connection = connection;
_id = id;
_name = name;
_description = description;
_secret = secret;
_unlocked = unlocked;
_value = value;
_difficulty = DIFFICULTIES[difficultyId];
_iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, iconURL);
_iconLoader.load();
}
function get difficulty() {
return(_difficulty);
}
function get icon() {
return(_iconLoader.__get__bitmapData());
}
function get id() {
return(_id);
}
function get name() {
return(_name);
}
function get description() {
return(_description);
}
function get secret() {
return(_secret);
}
function get unlocked() {
return(_unlocked);
}
function get value() {
return(_value);
}
function toString() {
return((((((("Medal: " + _name) + "\t\t(") + (_unlocked ? "unlocked, " : "locked, ")) + _value) + "pts, ") + _difficulty) + ")");
}
function attachIcon(parent) {
return(_iconLoader.attachBitmap(parent));
}
function unlock() {
if (_unlocked) {
com.newgrounds.Logger.logWarning(("Medal \"" + _name) + "\" is already unlocked.");
return(undefined);
}
com.newgrounds.Logger.logMessage(("Unlocking medal \"" + name) + "\"...");
_unlocked = true;
if (_connection.__get__hasUserSession()) {
_connection.sendSimpleCommand("unlockMedal", {target:this, func:onUnlockConfirmed}, null, {medal_id:id});
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this));
}
function setUnlocked(unlocked) {
_unlocked = unlocked;
}
function onUnlockConfirmed(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage(("Medal \"" + name) + "\" unlocked.");
} else {
com.newgrounds.Logger.logError(("Failed to unlock \"" + name) + "\"!");
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error()));
}
static var ICON_WIDTH = 50;
static var ICON_HEIGHT = 50;
static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultMedalIcon");
static var DIFFICULTY_EASY = "Easy";
static var DIFFICULTY_MODERATE = "Moderate";
static var DIFFICULTY_CHALLENGING = "Challenging";
static var DIFFICULTY_DIFFICULT = "Difficult";
static var DIFFICULTY_BRUTAL = "Brutal";
static var DIFFICULTIES = ["Unknown", DIFFICULTY_EASY, DIFFICULTY_MODERATE, DIFFICULTY_CHALLENGING, DIFFICULTY_DIFFICULT, DIFFICULTY_BRUTAL];
}
Symbol 40 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
class com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher
{
var _connection, _name, _id, _scores, _tag, dispatchEvent;
function ScoreBoard (connection, name, id) {
super();
_connection = connection;
_name = name;
_id = id;
}
function get name() {
return(_name);
}
function get scores() {
return(_scores);
}
function get period() {
return(_period);
}
function set period(val) {
_period = val;
//return(period);
}
function get firstResult() {
return(_firstResult);
}
function set firstResult(val) {
_firstResult = Math.max(1, val);
//return(firstResult);
}
function get numResults() {
return(_numResults);
}
function set numResults(val) {
_numResults = val;
//return(numResults);
}
function get tag() {
return(_tag);
}
function set tag(val) {
_tag = val;
//return(tag);
}
function get page() {
return(Math.ceil((_firstResult - 1) / _numResults) + 1);
}
function prevPage() {
if (firstResult > _numResults) {
firstResult = firstResult - _numResults;
}
}
function nextPage() {
firstResult = firstResult + _numResults;
}
function loadScores() {
_connection.sendSimpleCommand("loadScores", {target:this, func:onScoresLoaded}, {publisher_id:_connection.publisherId, board:_id, page:((_firstResult - 1) / _numResults) + 1, num_results:_numResults, period:_period, tag:_tag});
}
function postScore(numericScore, tag) {
if (tag == undefined) {
tag = null;
}
if (isNaN(numericScore)) {
com.newgrounds.Logger.logError("Cannot post invalid score: " + numericScore);
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT));
return(undefined);
}
com.newgrounds.Logger.logMessage(((((("Posting a score of " + numericScore) + " by ") + _connection.username) + " to scoreboard \"") + _name) + "\"...");
_connection.sendSimpleCommand("postScore", {target:this, func:onScorePosted}, null, {user_name:_connection.username, board:_id, value:numericScore, tag:tag});
}
function onScoresLoaded(event) {
var _local4 = event.__get__data();
_scores = [];
var _local5;
if (_local4.first_result) {
_local5 = _local4.first_result;
} else {
_local5 = _firstResult;
}
if (_local4.scores) {
var _local3 = 0;
while (_local3 < _local4.scores.length) {
var _local2 = _local4.scores[_local3];
if (_local2) {
_scores[_local3] = new com.newgrounds.Score(_local5, _local2.username, _local2.value, _local2.numeric_value, _local2.tag);
}
_local3++;
_local5++;
}
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this));
}
function onScorePosted(event) {
if (event.__get__success()) {
com.newgrounds.Logger.logMessage("Score posted!");
var _local4 = event.__get__data();
var _local2 = {};
_local2.score = _local4.value;
_local2.scoreBoard = this;
} else {
com.newgrounds.Logger.logError("Error posting score: " + event.__get__error());
}
dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, _local2, event.__get__error()));
}
function toString() {
return("Scoreboard: " + _name);
}
static var TODAY = "Today";
static var THIS_WEEK = "This Week";
static var THIS_MONTH = "This Month";
static var THIS_YEAR = "This Year";
static var ALL_TIME = "All-Time";
var _period = ALL_TIME;
var _firstResult = 1;
var _numResults = 10;
}
Symbol 29 MovieClip [__Packages.com.newgrounds.Logger] Frame 0
class com.newgrounds.Logger
{
function Logger () {
}
static function logInternal() {
var _local2 = arguments;
log(PRIORITY_INTERNAL, _local2);
}
static function logMessage() {
var _local2 = arguments;
log(PRIORITY_MESSAGE, _local2);
}
static function logWarning() {
var _local2 = arguments;
log(PRIORITY_WARNING, _local2);
}
static function logError() {
var _local2 = arguments;
log(PRIORITY_ERROR, _local2);
}
static function log(priority, messages) {
if (priority == undefined) {
priority = PRIORITY_MESSAGE;
}
if (messages == undefined) {
messages = null;
}
if (priority >= _messageLevel) {
var _local1 = 0;
while (_local1 < messages.length) {
trace(HEADER + messages[_local1]);
_eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[_local1]));
_local1++;
}
}
if (priority >= _throwLevel) {
throw new Error(messages.join(newline));
}
}
static function addEventListener(event, listener) {
_eventDispatcher.addEventListener(event, listener, false, 0, false);
}
static var PRIORITY_INTERNAL = 0;
static var PRIORITY_MESSAGE = 1;
static var PRIORITY_WARNING = 2;
static var PRIORITY_ERROR = 3;
static var PRIORITY_MAX = 4;
static var HEADER = "[Newgrounds API] :: ";
static var _eventDispatcher = new com.newgrounds.EventDispatcher();
static var _messageLevel = PRIORITY_MESSAGE;
static var _throwLevel = PRIORITY_MAX;
}
Symbol 48 MovieClip [__Packages.com.newgrounds.components.FlashAdBase] Frame 0
class com.newgrounds.components.FlashAdBase extends MovieClip
{
var _x, _y, stop, onUnload, _adListener, adContainer, newgroundsButton, _fullScreen, clear, _ad, showPlayButton, gotoAndStop, _adFeedLoader, _width, _height, beginFill, moveTo, lineTo, endFill;
function FlashAdBase () {
super();
try {
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
} catch(error) {
}
_x = int(_x);
_y = int(_y);
stop();
if (_newgroundsButton) {
_newgroundsButton.onRelease = onNGClick;
}
onUnload = removeAd;
var _local4 = this;
_adListener = {onLoadError:function (target, error, httpStatus) {
target._parent.onAdError(target, error, httpStatus);
}};
if (fullScreen) {
drawFullScreenRect();
}
if (com.newgrounds.API.__get__adFeedURL()) {
loadAdFeed();
} else {
com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {target:this, func:loadAdFeed});
}
}
function get _adContainer() {
return(adContainer);
}
function get _newgroundsButton() {
return(newgroundsButton);
}
function get fullScreen() {
return(_fullScreen);
}
function set fullScreen(v) {
_fullScreen = v;
if (v) {
drawFullScreenRect();
} else {
clear();
}
//return(fullScreen);
}
function get showBorder() {
return(_showBorder);
}
function set showBorder(value) {
_showBorder = value;
if (_showBorder) {
if (_ad) {
var _local2 = _ad.getProgress(_adContainer);
if (_local2.bytesLoaded >= _local2.bytesTotal) {
if (showPlayButton) {
gotoAndStop("loadedPlay");
} else {
gotoAndStop("loaded");
}
} else {
gotoAndStop("loading");
}
} else {
gotoAndStop("idle");
}
} else {
gotoAndStop("noBorder");
}
//return(showBorder);
}
function loadAdFeed(event) {
if (event == undefined) {
event = null;
}
_adFeedLoader = new LoadVars();
var target = this;
_adFeedLoader.onData = function (data) {
target.onAdFeedLoaded(data);
};
_adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), _adFeedLoader);
}
function onAdFeedLoaded(data) {
if (data && (data != "")) {
loadAd(data);
} else {
onAdError();
}
}
function loadAd(adURL) {
if (showPlayButton) {
gotoAndStop("loadedPlay");
}
if (adType != VIDEO_ADS) {
if (adURL.indexOf("?") >= 0) {
adURL = adURL + "&";
} else {
adURL = adURL + "?";
}
adURL = adURL + "blockoverlays=1";
}
_ad = new MovieClipLoader();
_ad.addListener(_adListener);
_adContainer._lockroot = true;
_ad.loadClip(adURL, _adContainer);
}
function removeAd() {
_adFeedLoader.onData = null;
_adFeedLoader = null;
_ad.removeListener(_adListener);
if (_adContainer) {
_ad.unloadClip(_adContainer);
}
_ad = null;
}
function onAdError(target, error, httpStatus) {
com.newgrounds.Logger.logError("Unable to load ad.");
removeAd();
}
function onNGClick() {
com.newgrounds.API.loadNewgrounds();
}
function drawFullScreenRect() {
_x = (Stage.width - _width) / 2;
_y = (Stage.height - _height) / 2;
beginFill(0);
moveTo(-Stage.width, -Stage.height);
lineTo(Stage.width, -Stage.height);
lineTo(Stage.width, Stage.height);
lineTo(-Stage.width, Stage.height);
lineTo(-Stage.width, -Stage.height);
endFill();
}
var _showBorder = true;
var adType = com.newgrounds.components.FlashAdBase.prototype.VIDEO_ADS;
var VIDEO_ADS = "Video";
var SIMPLE_ADS = "Simple";
}
Symbol 23 MovieClip [__Packages.com.newgrounds.shims.APIShim] Frame 0
class com.newgrounds.shims.APIShim extends MovieClip
{
function APIShim () {
super();
}
}
Symbol 33 MovieClip [__Packages.com.newgrounds.crypto.MD5] Frame 0
class com.newgrounds.crypto.MD5
{
function MD5 () {
}
static function hash(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 34 MovieClip [__Packages.com.newgrounds.crypto.RC4] Frame 0
class com.newgrounds.crypto.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 35 MovieClip [__Packages.com.newgrounds.encoders.json.JSON] Frame 0
class com.newgrounds.encoders.json.JSON
{
static var start, cache, interval;
function JSON () {
}
static function encode(arg, noquotes) {
var _local3;
var _local2;
var _local6;
var _local1 = "";
var _local4;
if (arg.isSServerVar()) {
var _local8 = "sservervariable";
} else {
var _local8 = typeof(arg);
}
switch (_local8) {
case "sservervariable" :
return("?" + arg.getEncodedValue());
case "object" :
if (arg) {
if (arg instanceof Array) {
_local2 = 0;
while (_local2 < arg.length) {
_local4 = encode(arg[_local2]);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + _local4;
_local2++;
}
return(("[" + _local1) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local2 in arg) {
_local4 = arg[_local2];
if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) {
_local4 = encode(_local4);
if (_local1) {
_local1 = _local1 + ",";
}
_local1 = _local1 + ((encode(_local2) + ":") + _local4);
}
}
return(("{" + _local1) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local6 = arg.length;
if (noquotes) {
var _local7 = "";
} else {
var _local7 = "\"";
}
_local1 = _local7;
_local2 = 0;
while (_local2 < _local6) {
_local3 = arg.charAt(_local2);
if (_local3 >= " ") {
if ((_local3 == "\\") || (_local3 == "\"")) {
_local1 = _local1 + "\\";
}
_local1 = _local1 + _local3;
} else {
switch (_local3) {
case "\b" :
_local1 = _local1 + "\\b";
break;
case "\f" :
_local1 = _local1 + "\\f";
break;
case newline :
_local1 = _local1 + "\\n";
break;
case "\r" :
_local1 = _local1 + "\\r";
break;
case "\t" :
_local1 = _local1 + "\\t";
break;
default :
_local3 = _local3.charCodeAt();
_local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16));
}
}
_local2 = _local2 + 1;
}
return(_local1 + _local7);
case "boolean" :
return(String(arg));
}
return("null");
}
static function background_encode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping encode");
return(false);
}
busy = true;
var _local2 = new Date();
start = _local2.getTime();
cache = {busy:false, complete:false, arg:arg, target:arg, parents:[], encoded:"", callback:callback, encode_chunk:function () {
com.newgrounds.encoders.json.JSON.encode_chunk();
}};
if (getType(arg) == "object") {
cache.encoded = "{";
} else if (getType(arg) == "array") {
cache.encoded = "[";
}
interval = setInterval(cache, "encode_chunk", 25);
return(true);
}
static function background_decode(arg, callback) {
if (busy) {
trace("[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed");
return(false);
}
if (!callback) {
trace("[Newgrounds Encoder] :: Missing a callback function, skipping decode");
return(false);
}
busy = true;
var _local1 = new Date();
start = _local1.getTime();
cache = {busy:false, callback:callback, complete:false, arg:arg, pos:0, parents:["root"], target:null, scratch:"", decode_chunk:function () {
com.newgrounds.encoders.json.JSON.decode_chunk();
}};
interval = setInterval(cache, "decode_chunk", 25);
return(true);
}
static function decode(text) {
var at = 0;
var ch = " ";
var _value;
var _error = function (m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
};
var _next = function () {
ch = text.charAt(at);
at = at + 1;
return(ch);
};
var _white = function () {
while (ch) {
if (ch <= " ") {
_next();
} else if (ch == "/") {
switch (_next()) {
case "/" :
while ((_next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
_next();
for(;;){
if (ch) {
if (ch == "*") {
if (_next() == "/") {
_next();
// unexpected jump
}
} else {
_next();
}
} else {
_error("Unterminated comment");
}
};
break;
default :
_error("Syntax error");
}
} else {
return;
}
}
};
var _string = function () {
var _local4;
var _local1 = "";
var _local3;
var _local2;
var _local5 = false;
if (ch == "\"") {
while (_next()) {
if (ch == "\"") {
_next();
return(_local1);
}
if (ch == "\\") {
switch (_next()) {
case "b" :
_local1 = _local1 + "\b";
break;
case "f" :
_local1 = _local1 + "\f";
break;
case "n" :
_local1 = _local1 + newline;
break;
case "r" :
_local1 = _local1 + "\r";
break;
case "t" :
_local1 = _local1 + "\t";
break;
case "u" :
_local2 = 0;
_local4 = 0;
while (_local4 < 4) {
_local3 = parseInt(_next(), 16);
if (!isFinite(_local3)) {
_local5 = true;
break;
}
_local2 = (_local2 * 16) + _local3;
_local4 = _local4 + 1;
}
if (_local5) {
_local5 = false;
break;
}
_local1 = _local1 + String.fromCharCode(_local2);
break;
default :
_local1 = _local1 + ch;
}
} else {
_local1 = _local1 + ch;
}
}
}
_error("Bad string");
};
var _array = function () {
var _local1 = [];
if (ch == "[") {
_next();
_white();
if (ch == "]") {
_next();
return(_local1);
}
while (ch) {
_local1.push(_value());
_white();
if (ch == "]") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad array");
};
var _object = function () {
var _local2;
var _local1 = {};
if (ch == "{") {
_next();
_white();
if (ch == "}") {
_next();
return(_local1);
}
while (ch) {
_local2 = _string();
_white();
if (ch != ":") {
break;
}
_next();
_local1[_local2] = _value();
_white();
if (ch == "}") {
_next();
return(_local1);
}
if (ch != ",") {
break;
}
_next();
_white();
}
}
_error("Bad object");
};
var _number = function () {
var _local1 = "";
var _local2;
if (ch == "-") {
_local1 = "-";
_next();
}
while ((ch >= "0") && (ch <= "9")) {
_local1 = _local1 + ch;
_next();
}
if (ch == ".") {
_local1 = _local1 + ".";
while ((_next() && (ch >= "0")) && (ch <= "9")) {
_local1 = _local1 + ch;
}
}
_local2 = 1 * _local1;
if (!isFinite(_local2)) {
_error("Bad number");
} else {
return(_local2);
}
};
var _word = function () {
switch (ch) {
case "t" :
if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) {
_next();
return(true);
}
break;
case "f" :
if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) {
_next();
return(false);
}
break;
case "n" :
if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) {
break;
}
_next();
return(null);
}
_error("Syntax error");
};
_value = function () {
_white();
switch (ch) {
case "{" :
return(_object());
case "[" :
return(_array());
case "\"" :
return(_string());
case "-" :
return(_number());
}
return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word())));
};
return(_value());
}
static function getType(v) {
if (v instanceof Array) {
return("array");
}
return(typeof(v));
}
static function decode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < decode_chunks) {
chunk_decoder();
if (cache.complete) {
break;
}
_local1++;
}
trace(Math.round((cache.pos / cache.arg.length) * 100) + "% decoded");
cache.busy = false;
}
if (cache.complete) {
var _local2 = new Date();
busy = false;
clearInterval(interval);
cache.callback(cache.root, _local2.getTime() - start);
cache.arg = "";
}
}
static function encode_chunk() {
if ((!cache.busy) && (!cache.complete)) {
cache.busy = true;
var _local1 = 0;
while (_local1 < encode_chunks) {
chunk_encoder();
if (cache.complete) {
break;
}
_local1++;
}
cache.busy = false;
}
if (cache.complete) {
var _local3 = new Date();
var _local2 = _local3.getTime();
busy = false;
clearInterval(interval);
cache.callback(cache.encoded, _local2 - start);
cache.encoded = "";
}
}
static function chunk_decoder() {
function _object() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "object";
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
_setTargetValue({});
} else if (_local1 == ",") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != "\"") {
throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
} else if (_local1 == "}") {
_useParent();
} else if (_local1 == "\"") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 != ":") {
throw "Malformed object notation. Object keys and values must be separated by colons(:)";
}
_addParent(com.newgrounds.encoders.json.JSON.cache.scratch);
com.newgrounds.encoders.json.JSON.cache.mode = null;
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
}
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _array() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "array";
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
_setTargetValue([]);
if (_local1 != "]") {
_addArrayKey();
} else {
_useParent();
}
return(undefined);
}
if (_local1 == ",") {
_addArrayKey();
} else if (_local1 == "]") {
_useParent();
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _boolean() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 == "t") {
_setTargetValue(true);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 3;
} else if (_local1 == "f") {
_setTargetValue(false);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 4;
} else {
throw "Bool values must be true or false";
}
_useParent();
}
function _null() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (_local1 == "n") {
_setTargetValue(null);
com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 2;
} else {
throw "Null values must be null";
}
_useParent();
}
function _string() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
if (_local1 != "\"") {
throw "Strings must be wrapped in quotes (\"\")";
}
com.newgrounds.encoders.json.JSON.cache.scratch = "";
com.newgrounds.encoders.json.JSON.cache.mode = "string";
} else if (_local1 == "\"") {
_setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch);
_useParent();
} else {
if (_local1 == "\\") {
com.newgrounds.encoders.json.JSON.cache.pos++;
_local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
switch (_local1) {
case "n" :
_local1 = newline;
break;
case "r" :
_local1 = newline;
break;
case "t" :
_local1 = "\t";
break;
case "u" :
_local1 = "\\" + _local1;
}
}
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
}
com.newgrounds.encoders.json.JSON.cache.pos++;
}
function _number() {
var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos);
var _local2 = "01234567890.-";
if (!com.newgrounds.encoders.json.JSON.cache.mode) {
com.newgrounds.encoders.json.JSON.cache.mode = "number";
com.newgrounds.encoders.json.JSON.cache.scratch = "";
}
if (_local2.indexOf(_local1) < 0) {
_setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch));
_useParent();
} else {
com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1;
com.newgrounds.encoders.json.JSON.cache.pos++;
}
}
function _setTargetValue(newval) {
var _local2 = _getParent().obj;
var _local1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1];
_local2[_local1] = newval;
}
function _useParent() {
com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType(_getParent().obj);
com.newgrounds.encoders.json.JSON.cache.parents.pop();
}
function _getParent() {
var _local2 = com.newgrounds.encoders.json.JSON.cache;
var _local1 = 0;
while (_local1 < (com.newgrounds.encoders.json.JSON.cache.parents.length - 1)) {
_local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]});
}
function _getCurrent() {
var _local2 = com.newgrounds.encoders.json.JSON.cache;
var _local1 = 0;
while (_local1 < com.newgrounds.encoders.json.JSON.cache.parents.length) {
_local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]];
_local1++;
}
return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]});
}
function _addParent(child) {
com.newgrounds.encoders.json.JSON.cache.parents.push(child);
}
function _addArrayKey() {
var _local1 = _getCurrent().obj.length;
com.newgrounds.encoders.json.JSON.cache.parents.push(_local1);
com.newgrounds.encoders.json.JSON.cache.mode = null;
}
if (cache.pos >= cache.arg.length) {
cache.complete = true;
return(undefined);
}
if (cache.mode) {
eval ("_" + cache.mode)();
} else {
var char = cache.arg.charAt(cache.pos);
switch (char) {
case "{" :
_object();
return;
case "[" :
_array();
return;
case "\"" :
_string();
return;
case "n" :
_null();
return;
case "t" :
_boolean();
return;
case "f" :
_boolean();
return;
default :
_number();
}
}
}
static function chunk_encoder() {
if (cache.complete) {
return(undefined);
}
var _local2 = getType(cache.target);
switch (_local2) {
case "number" :
cache.encoded = cache.encoded + cache.target;
getParent();
break;
case "string" :
cache.encoded = cache.encoded + (("\"" + cache.target.split("\"").join("\\\"")) + "\"");
getParent();
break;
case "boolean" :
cache.encoded = cache.encoded + ((cache.target == true) ? "true" : "false");
getParent();
break;
case "null" :
cache.encoded = cache.encoded + "null";
getParent();
break;
case "array" :
if (cache.target.length < 1) {
cache.encoded = cache.encoded + "]";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[0];
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
case "object" :
for (var _local1 in cache.target) {
break;
}
if (_local1 === undefined) {
cache.encoded = cache.encoded + "}";
getParent();
} else {
cache.parents.push(cache.target);
cache.target = cache.target[_local1];
cache.encoded = cache.encoded + (("\"" + _local1.split("\"").join("\\\"")) + "\":");
if (getType(cache.target) == "array") {
cache.encoded = cache.encoded + "[";
} else if (getType(cache.target) == "object") {
cache.encoded = cache.encoded + "{";
}
}
break;
default :
cache.encoded = cache.encoded + "null";
getParent();
}
}
static function getParent() {
if (cache.parents.length > 0) {
var _local1 = cache.parents.pop();
if (getType(_local1) == "array") {
_local1.shift();
} else {
for (var _local3 in _local1) {
delete _local1[_local3];
break;
}
}
if ((getType(_local1) == "object") or (getType(_local1) == "array")) {
for (var _local2 in _local1) {
break;
}
if (!(_local2 === undefined)) {
cache.encoded = cache.encoded + ",";
}
}
cache.target = _local1;
} else {
cache.complete = true;
}
}
static var encode_chunks = 20000;
static var decode_chunks = 20000;
static var busy = false;
}
Symbol 39 MovieClip [__Packages.com.newgrounds.Score] Frame 0
class com.newgrounds.Score
{
var _rank, _username, _score, _numericValue, _tag;
function Score (rank, username, score, numericValue, tag) {
(_rank = rank);
(_username = username);
_score = score;
_numericValue = numericValue;
_tag = tag;
}
function get numericValue() {
return(_numericValue);
}
function get rank() {
return(_rank);
}
function get score() {
return(_score);
}
function get tag() {
return(_tag);
}
function get username() {
return(_username);
}
function toString() {
return((((_rank + ".\t") + _username) + "\t") + _score);
}
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 42
gotoAndStop (1);
Symbol 341 MovieClip Frame 74
gotoAndStop (1);
Instance of Symbol 299 MovieClip in Symbol 341 MovieClip Frame 197
onClipEvent (load) {
var elev = 10;
var elev_var = 5;
var dist = 7.5;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 2));
var dist_debris2 = ((Math.random() * dist) - (dist / 2));
var dist_debris3 = ((Math.random() * dist) - (dist / 2));
var dist_debris4 = ((Math.random() * dist) - (dist / 2));
var dist_debris5 = ((Math.random() * dist) - (dist / 2));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
}
Symbol 341 MovieClip Frame 249
Symbol 341 MovieClip Frame 292
gotoAndPlay ("replay win");
Symbol 364 MovieClip Frame 1
stop();
_root.smasher.moveReady = true;
Symbol 364 MovieClip Frame 22
stop();
Symbol 364 MovieClip Frame 23
_root.smasher.moveReady = true;
_root.smasher.scooching = false;
_root.smasher.shocked = false;
_root.smasher.gotoAndStop(1);
Instance of Symbol 366 MovieClip "wheel3" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel4" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel1" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel2" in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Symbol 386 MovieClip Frame 1
_name = "smash2";
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 31
gotoAndStop (1);
Symbol 425 MovieClip Frame 32
play();
Symbol 425 MovieClip Frame 60
_root.smasher.stunned = true;
Symbol 425 MovieClip Frame 67
_root.smasher.stunned = true;
Symbol 425 MovieClip Frame 143
play();
Symbol 425 MovieClip Frame 144
_root.smasher._y = _root.smasher._y - 3;
_root.smasher_wheels._y = _root.smasher_wheels._y - 3;
_root.smasher_bg._y = _root.smasher_bg._y - 3;
Symbol 425 MovieClip Frame 145
_root.smasher._y = _root.smasher._y - 2;
_root.smasher_wheels._y = _root.smasher_wheels._y - 2;
_root.smasher_bg._y = _root.smasher_bg._y - 2;
Symbol 425 MovieClip Frame 146
_root.smasher._y = _root.smasher._y - 1;
_root.smasher_wheels._y = _root.smasher_wheels._y - 1;
_root.smasher_bg._y = _root.smasher_bg._y - 1;
Symbol 425 MovieClip Frame 148
_root.smasher._y = _root.smasher._y + 1;
_root.smasher_wheels._y = _root.smasher_wheels._y + 1;
_root.smasher_bg._y = _root.smasher_bg._y + 1;
Symbol 425 MovieClip Frame 149
_root.smasher._y = _root.smasher._y + 2;
_root.smasher_wheels._y = _root.smasher_wheels._y + 2;
_root.smasher_bg._y = _root.smasher_bg._y + 2;
Symbol 425 MovieClip Frame 150
_root.smasher._y = _root.smasher._y + 3;
_root.smasher_wheels._y = _root.smasher_wheels._y + 3;
_root.smasher_bg._y = _root.smasher_bg._y + 3;
Symbol 425 MovieClip Frame 159
_root.smasher.scooching = true;
stop();
Instance of Symbol 428 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = Math.floor((_root.score / 1000000000000) * 100);
}
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 210
stop();
_root.smasher.scooching = true;
_root.trump.gotoAndPlay("cheer");
Symbol 525 MovieClip Frame 20
stop();
Symbol 541 MovieClip Frame 22
stop();
Symbol 621 MovieClip Frame 2
if (_root.frameBox._currentframe == 1) {
_root.frameBox.gotoAndStop(2);
stopAllSounds();
_root.gotoAndStop("menu");
}
Instance of Symbol 508 MovieClip in Symbol 621 MovieClip Frame 94
onClipEvent (load) {
var elev = 10;
var elev_var = 5;
var dist = 6;
var grav = 0.5;
var grav_var = 0.3;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 2));
var dist_debris2 = ((Math.random() * dist) - (dist / 2));
var dist_debris3 = ((Math.random() * dist) - (dist / 2));
var dist_debris4 = ((Math.random() * dist) - (dist / 2));
var dist_debris5 = ((Math.random() * dist) - (dist / 2));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
}
Instance of Symbol 374 MovieClip "smasher_wheels" in Symbol 621 MovieClip Frame 223
onClipEvent (load) {
light.gotoAndStop(22);
}
Instance of Symbol 425 MovieClip "smasher" in Symbol 621 MovieClip Frame 223
onClipEvent (load) {
var speed_max = 7;
var speed_acc = 1;
var speed_cur = 0;
var moveReady = false;
var bound_top = 55;
var bound_bottom = 455;
}
onClipEvent (enterFrame) {
if (moveReady) {
if (Key.isDown(32) && (_currentframe == 1)) {
this.play();
}
if (speed_cur != 0) {
_y = (_y + speed_cur);
_root.smasher_wheels._y = _root.smasher_wheels._y + speed_cur;
_root.smasher_bg._y = _root.smasher_bg._y + speed_cur;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation + (speed_cur * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation - (speed_cur * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation - (speed_cur * 3);
}
if ((Key.isDown(38) && (moveReady)) && (speed_cur > (speed_max * -1))) {
speed_cur = speed_cur - speed_acc;
} else if ((Key.isDown(40) && (moveReady)) && (speed_cur < speed_max)) {
speed_cur = speed_cur + speed_acc;
} else if (speed_cur != 0) {
if (speed_cur > 0) {
speed_cur = speed_cur - speed_acc;
} else if (speed_cur < 0) {
speed_cur = speed_cur + speed_acc;
}
}
if (((_y - (_height / 2)) <= bound_top) && (speed_cur != 0)) {
speed_cur = 0;
_y = (_y + speed_acc);
_root.smasher_wheels._y = _root.smasher_wheels._y + speed_acc;
_root.smasher_bg._y = _root.smasher_bg._y + speed_acc;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation - (speed_acc * 3);
} else if (((_y + (_height / 2)) >= bound_bottom) && (speed_cur != 0)) {
speed_cur = 0;
_y = (_y - speed_acc);
_root.smasher_wheels._y = _root.smasher_wheels._y - speed_acc;
_root.smasher_bg._y = _root.smasher_bg._y - speed_acc;
_root.smasher_wheels.wheel1._rotation = _root.smasher_wheels.wheel1._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel2._rotation = _root.smasher_wheels.wheel2._rotation - (speed_acc * 3);
_root.smasher_wheels.wheel3._rotation = _root.smasher_wheels.wheel3._rotation + (speed_acc * 3);
_root.smasher_wheels.wheel4._rotation = _root.smasher_wheels.wheel4._rotation + (speed_acc * 3);
}
}
}
Instance of Symbol 429 MovieClip "scoreBar" in Symbol 621 MovieClip Frame 223
onClipEvent (load) {
scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
}
Symbol 621 MovieClip Frame 280
stop();
_root.stop();
_root.instr.play();
Symbol 643 MovieClip Frame 20
_parent.nextFrame();
Symbol 645 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 83
stop();
Symbol 695 MovieClip Frame 1
stop();
Instance of Symbol 652 MovieClip "fly_debris1" in Symbol 695 MovieClip Frame 2
onClipEvent (load) {
var elev = 7.5;
var elev_var = 7.5;
var dist = 3.5;
var dist_var = 1;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_brick1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_brick1 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick2 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick3 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var elev_brick1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_brick1 = ((Math.random() * rot) - (rot / 2));
var rot_brick2 = ((Math.random() * rot) - (rot / 2));
var rot_brick3 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 9) && (_root.boss.currentState == "vac")) {
if (debris1.hitTest(_root.boss.vac.hit1) || (debris1.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris1._x = 10000;
debris1._y = 10000;
}
if (debris2.hitTest(_root.boss.vac.hit1) || (debris2.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris2._x = 10000;
debris2._y = 10000;
}
if (debris3.hitTest(_root.boss.vac.hit1) || (debris3.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris3._x = 10000;
debris3._y = 10000;
}
}
brick1._x = brick1._x + dist_brick1;
brick1._y = brick1._y - elev_brick1;
brick1._rotation = brick1._rotation + rot_brick1;
elev_brick1 = elev_brick1 - grav_brick1;
brick2._x = brick2._x + dist_brick2;
brick2._y = brick2._y - elev_brick2;
brick2._rotation = brick2._rotation + rot_brick2;
elev_brick2 = elev_brick2 - grav_brick2;
brick3._x = brick3._x + dist_brick3;
brick3._y = brick3._y - elev_brick3;
brick3._rotation = brick3._rotation + rot_brick3;
elev_brick3 = elev_brick3 - grav_brick3;
}
Symbol 695 MovieClip Frame 3
_root.currentKills++;
_root.enemiesOnScreen--;
Instance of Symbol 663 MovieClip "debris" in Symbol 695 MovieClip Frame 3
onClipEvent (load) {
var elev = 7.5;
var elev_var = 7.5;
var dist = 10;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris6 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris7 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris8 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris9 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris10 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 2));
var dist_debris2 = ((Math.random() * dist) - (dist / 2));
var dist_debris3 = ((Math.random() * dist) - (dist / 2));
var dist_debris4 = ((Math.random() * dist) - (dist / 2));
var dist_debris5 = ((Math.random() * dist) - (dist / 2));
var dist_debris6 = ((Math.random() * dist) - (dist / 2));
var dist_debris7 = ((Math.random() * dist) - (dist / 2));
var dist_debris8 = ((Math.random() * dist) - (dist / 2));
var dist_debris9 = ((Math.random() * dist) - (dist / 2));
var dist_debris10 = ((Math.random() * dist) - (dist / 2));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris6 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris7 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris8 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris9 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris10 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
var rot_debris6 = ((Math.random() * rot) - (rot / 2));
var rot_debris7 = ((Math.random() * rot) - (rot / 2));
var rot_debris8 = ((Math.random() * rot) - (rot / 2));
var rot_debris9 = ((Math.random() * rot) - (rot / 2));
var rot_debris10 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 9) && (_root.boss.currentState == "vac")) {
if (debris1.hitTest(_root.boss.vac.hit1) || (debris1.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris1._x = 10000;
debris1._y = 10000;
}
if (debris2.hitTest(_root.boss.vac.hit1) || (debris2.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris2._x = 10000;
debris2._y = 10000;
}
if (debris3.hitTest(_root.boss.vac.hit1) || (debris3.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris3._x = 10000;
debris3._y = 10000;
}
if (debris4.hitTest(_root.boss.vac.hit1) || (debris4.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris4._x = 10000;
debris4._y = 10000;
}
if (debris5.hitTest(_root.boss.vac.hit1) || (debris5.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris5._x = 10000;
debris5._y = 10000;
}
if (debris6.hitTest(_root.boss.vac.hit1) || (debris6.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris6._x = 10000;
debris6._y = 10000;
}
if (debris7.hitTest(_root.boss.vac.hit1) || (debris7.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris7._x = 10000;
debris7._y = 10000;
}
if (debris8.hitTest(_root.boss.vac.hit1) || (debris8.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris8._x = 10000;
debris8._y = 10000;
}
if (debris9.hitTest(_root.boss.vac.hit1) || (debris9.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris9._x = 10000;
debris9._y = 10000;
}
if (debris10.hitTest(_root.boss.vac.hit1) || (debris10.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris10._x = 10000;
debris10._y = 10000;
}
}
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
debris6._x = debris6._x + dist_debris6;
debris6._y = debris6._y - elev_debris6;
debris6._rotation = debris6._rotation + rot_debris6;
elev_debris6 = elev_debris6 - grav_debris6;
debris7._x = debris7._x + dist_debris7;
debris7._y = debris7._y - elev_debris7;
debris7._rotation = debris7._rotation + rot_debris7;
elev_debris7 = elev_debris7 - grav_debris7;
debris8._x = debris8._x + dist_debris8;
debris8._y = debris8._y - elev_debris8;
debris8._rotation = debris8._rotation + rot_debris8;
elev_debris8 = elev_debris8 - grav_debris8;
debris9._x = debris9._x + dist_debris9;
debris9._y = debris9._y - elev_debris9;
debris9._rotation = debris9._rotation + rot_debris9;
elev_debris9 = elev_debris9 - grav_debris9;
debris10._x = debris10._x + dist_debris10;
debris10._y = debris10._y - elev_debris10;
debris10._rotation = debris10._rotation + rot_debris10;
elev_debris10 = elev_debris10 - grav_debris10;
}
Symbol 695 MovieClip Frame 30
_root.modScore(-1 * _root.score1);
Symbol 695 MovieClip Frame 115
_root.enemiesOnScreen--;
Symbol 731 MovieClip Frame 52
stop();
_root.currentKills++;
_root.enemiesOnScreen--;
Symbol 732 MovieClip Frame 1
stop();
Symbol 733 MovieClip Frame 13
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 12
_root.modScore(-1 * _root.score1);
Symbol 740 MovieClip Frame 101
_root.enemiesOnScreen--;
Symbol 754 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 6
stop();
Symbol 766 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 1
stop();
Symbol 771 MovieClip Frame 8
_root.modScore(-1 * _root.score1);
Symbol 771 MovieClip Frame 31
stop();
Symbol 806 MovieClip Frame 20
_parent.explosion.play();
Symbol 806 MovieClip Frame 42
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 21
stop();
Symbol 812 MovieClip Frame 1
stop();
Instance of Symbol 811 MovieClip "explosion" in Symbol 812 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 817 MovieClip Frame 107
stop();
Symbol 818 MovieClip Frame 1
stop();
Instance of Symbol 812 MovieClip "claw" in Symbol 818 MovieClip Frame 3
onClipEvent (load) {
var speed = (_root.claw_speed_temp / 2);
var grav = (_root.claw_grav_temp / 2);
var addedScore = false;
var speed2 = 0;
var grav2 = 1;
_root.claw_speed_temp = null;
_root.claw_grav_temp = null;
}
onClipEvent (enterFrame) {
speed2 = speed2 + grav2;
_y = (_y + speed2);
if (rope._currentframe >= 17) {
speed = speed + grav;
_y = (_y + speed);
}
if ((hitTest(_parent._parent.bottomHit) && (!addedScore)) && (_currentframe == 2)) {
_root.modScore(_root.score1);
addedScore = true;
}
}
Instance of Symbol 817 MovieClip "debris" in Symbol 818 MovieClip Frame 3
onClipEvent (load) {
var elev = 7.5;
var elev_var = 7.5;
var dist = 7;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris6 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris7 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris8 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris9 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris10 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 3));
var dist_debris2 = ((Math.random() * dist) - (dist / 3));
var dist_debris3 = ((Math.random() * dist) - (dist / 3));
var dist_debris4 = ((Math.random() * dist) - (dist / 3));
var dist_debris5 = ((Math.random() * dist) - (dist / 3));
var dist_debris6 = ((Math.random() * dist) - (dist / 3));
var dist_debris7 = ((Math.random() * dist) - (dist / 3));
var dist_debris8 = ((Math.random() * dist) - (dist / 3));
var dist_debris9 = ((Math.random() * dist) - (dist / 3));
var dist_debris10 = ((Math.random() * dist) - (dist / 3));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris6 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris7 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris8 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris9 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris10 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
var rot_debris6 = ((Math.random() * rot) - (rot / 2));
var rot_debris7 = ((Math.random() * rot) - (rot / 2));
var rot_debris8 = ((Math.random() * rot) - (rot / 2));
var rot_debris9 = ((Math.random() * rot) - (rot / 2));
var rot_debris10 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
debris6._x = debris6._x + dist_debris6;
debris6._y = debris6._y - elev_debris6;
debris6._rotation = debris6._rotation + rot_debris6;
elev_debris6 = elev_debris6 - grav_debris6;
debris7._x = debris7._x + dist_debris7;
debris7._y = debris7._y - elev_debris7;
debris7._rotation = debris7._rotation + rot_debris7;
elev_debris7 = elev_debris7 - grav_debris7;
debris8._x = debris8._x + dist_debris8;
debris8._y = debris8._y - elev_debris8;
debris8._rotation = debris8._rotation + rot_debris8;
elev_debris8 = elev_debris8 - grav_debris8;
debris9._x = debris9._x + dist_debris9;
debris9._y = debris9._y - elev_debris9;
debris9._rotation = debris9._rotation + rot_debris9;
elev_debris9 = elev_debris9 - grav_debris9;
debris10._x = debris10._x + dist_debris10;
debris10._y = debris10._y - elev_debris10;
debris10._rotation = debris10._rotation + rot_debris10;
elev_debris10 = elev_debris10 - grav_debris10;
}
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 8
_root.modScore(-1 * _root.score1_5);
_root.enemies.enemy_clawbot1.grabbedMoney = true;
Symbol 831 MovieClip Frame 31
stop();
Symbol 846 MovieClip Frame 99
stop();
Symbol 847 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 10
stop();
Instance of Symbol 812 MovieClip "claw" in Symbol 847 MovieClip Frame 27
onClipEvent (load) {
var speed = (_root.claw_speed_temp / 2);
var grav = (_root.claw_grav_temp / 2);
var addedScore = false;
var speed2 = 0;
var grav2 = 1;
_root.claw_speed_temp = null;
_root.claw_grav_temp = null;
if (_root.enemies.enemy_clawbot1.grabbedMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
speed2 = speed2 + grav2;
_y = (_y + speed2);
if (rope._currentframe >= 17) {
speed = speed + grav;
_y = (_y + speed);
}
if ((hitTest(_root.enemies.bottomHit) && (!addedScore)) && (_currentframe == 2)) {
_root.modScore(_root.score1_5);
addedScore = true;
}
}
Instance of Symbol 846 MovieClip "debris" in Symbol 847 MovieClip Frame 27
onClipEvent (load) {
var elev = 7;
var elev_var = 6;
var dist = 7;
var grav = 0.5;
var grav_var = 0.3;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris6 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris7 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris8 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris9 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris10 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris11 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris12 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris13 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 3));
var dist_debris2 = ((Math.random() * dist) - (dist / 3));
var dist_debris3 = ((Math.random() * dist) - (dist / 3));
var dist_debris4 = ((Math.random() * dist) - (dist / 3));
var dist_debris5 = ((Math.random() * dist) - (dist / 3));
var dist_debris6 = ((Math.random() * dist) - (dist / 3));
var dist_debris7 = ((Math.random() * dist) - (dist / 3));
var dist_debris8 = ((Math.random() * dist) - (dist / 3));
var dist_debris9 = ((Math.random() * dis) - (dist / 3));
var dist_debris10 = ((Math.random() * dist) - (dist / 3));
var dist_debris11 = ((Math.random() * dist) - (dist / 3));
var dist_debris12 = ((Math.random() * dist) - (dist / 3));
var dist_debris13 = ((Math.random() * dist) - (dist / 3));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris6 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris7 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris8 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris9 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris10 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris11 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris12 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris13 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
var rot_debris6 = ((Math.random() * rot) - (rot / 2));
var rot_debris7 = ((Math.random() * rot) - (rot / 2));
var rot_debris8 = ((Math.random() * rot) - (rot / 2));
var rot_debris9 = ((Math.random() * rot) - (rot / 2));
var rot_debris10 = ((Math.random() * rot) - (rot / 2));
var rot_debris11 = ((Math.random() * rot) - (rot / 2));
var rot_debris12 = ((Math.random() * rot) - (rot / 2));
var rot_debris13 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
debris6._x = debris6._x + dist_debris6;
debris6._y = debris6._y - elev_debris6;
debris6._rotation = debris6._rotation + rot_debris6;
elev_debris6 = elev_debris6 - grav_debris6;
debris7._x = debris7._x + dist_debris7;
debris7._y = debris7._y - elev_debris7;
debris7._rotation = debris7._rotation + rot_debris7;
elev_debris7 = elev_debris7 - grav_debris7;
debris8._x = debris8._x + dist_debris8;
debris8._y = debris8._y - elev_debris8;
debris8._rotation = debris8._rotation + rot_debris8;
elev_debris8 = elev_debris8 - grav_debris8;
debris9._x = debris9._x + dist_debris9;
debris9._y = debris9._y - elev_debris9;
debris9._rotation = debris9._rotation + rot_debris9;
elev_debris9 = elev_debris9 - grav_debris9;
debris10._x = debris10._x + dist_debris10;
debris10._y = debris10._y - elev_debris10;
debris10._rotation = debris10._rotation + rot_debris10;
elev_debris10 = elev_debris10 - grav_debris10;
debris11._x = debris11._x + dist_debris11;
debris11._y = debris11._y - elev_debris11;
debris11._rotation = debris11._rotation + rot_debris11;
elev_debris11 = elev_debris11 - grav_debris11;
debris12._x = debris12._x + dist_debris12;
debris12._y = debris12._y - elev_debris12;
debris12._rotation = debris12._rotation + rot_debris12;
elev_debris12 = elev_debris12 - grav_debris12;
debris13._x = debris13._x + dist_debris13;
debris13._y = debris13._y - elev_debris13;
debris13._rotation = debris13._rotation + rot_debris13;
elev_debris13 = elev_debris13 - grav_debris13;
}
Symbol 847 MovieClip Frame 122
stop();
Symbol 848 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 18
stop();
Symbol 878 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 2
play();
Symbol 901 MovieClip Frame 12
gotoAndStop (1);
Symbol 901 MovieClip Frame 13
play();
Instance of Symbol 857 MovieClip "claw" in Symbol 901 MovieClip Frame 28
onClipEvent (load) {
var speed = 0;
var grav = 1.25;
var addedScore = false;
}
onClipEvent (enterFrame) {
speed = speed + grav;
_y = (_y + speed);
if ((hitTest(_root.enemies.bottomHit) && (!addedScore)) && (_currentframe == _totalframes)) {
_root.modScore(_root.score1_5);
addedScore = true;
}
}
Instance of Symbol 846 MovieClip "debris" in Symbol 901 MovieClip Frame 29
onClipEvent (load) {
var elev = 7.5;
var elev_var = 7.5;
var dist = 10;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_debris1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris6 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris7 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris8 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris9 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris10 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris11 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris12 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_debris13 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_debris1 = ((Math.random() * dist) - (dist / 2));
var dist_debris2 = ((Math.random() * dist) - (dist / 2));
var dist_debris3 = ((Math.random() * dist) - (dist / 2));
var dist_debris4 = ((Math.random() * dist) - (dist / 2));
var dist_debris5 = ((Math.random() * dist) - (dist / 2));
var dist_debris6 = ((Math.random() * dist) - (dist / 2));
var dist_debris7 = ((Math.random() * dist) - (dist / 2));
var dist_debris8 = ((Math.random() * dist) - (dist / 2));
var dist_debris9 = ((Math.random() * dist) - (dist / 2));
var dist_debris10 = ((Math.random() * dist) - (dist / 2));
var dist_debris11 = ((Math.random() * dist) - (dist / 2));
var dist_debris12 = ((Math.random() * dist) - (dist / 2));
var dist_debris13 = ((Math.random() * dist) - (dist / 2));
var elev_debris1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris6 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris7 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris8 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris9 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris10 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris11 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris12 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_debris13 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_debris1 = ((Math.random() * rot) - (rot / 2));
var rot_debris2 = ((Math.random() * rot) - (rot / 2));
var rot_debris3 = ((Math.random() * rot) - (rot / 2));
var rot_debris4 = ((Math.random() * rot) - (rot / 2));
var rot_debris5 = ((Math.random() * rot) - (rot / 2));
var rot_debris6 = ((Math.random() * rot) - (rot / 2));
var rot_debris7 = ((Math.random() * rot) - (rot / 2));
var rot_debris8 = ((Math.random() * rot) - (rot / 2));
var rot_debris9 = ((Math.random() * rot) - (rot / 2));
var rot_debris10 = ((Math.random() * rot) - (rot / 2));
var rot_debris11 = ((Math.random() * rot) - (rot / 2));
var rot_debris12 = ((Math.random() * rot) - (rot / 2));
var rot_debris13 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 9) && (_root.boss.currentState == "vac")) {
if (debris1.hitTest(_root.boss.vac.hit1) || (debris1.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris1._x = 10000;
debris1._y = 10000;
}
if (debris2.hitTest(_root.boss.vac.hit1) || (debris2.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris2._x = 10000;
debris2._y = 10000;
}
if (debris3.hitTest(_root.boss.vac.hit1) || (debris3.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris3._x = 10000;
debris3._y = 10000;
}
if (debris4.hitTest(_root.boss.vac.hit1) || (debris4.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris4._x = 10000;
debris4._y = 10000;
}
if (debris5.hitTest(_root.boss.vac.hit1) || (debris5.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris5._x = 10000;
debris5._y = 10000;
}
if (debris6.hitTest(_root.boss.vac.hit1) || (debris6.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris6._x = 10000;
debris6._y = 10000;
}
if (debris7.hitTest(_root.boss.vac.hit1) || (debris7.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris7._x = 10000;
debris7._y = 10000;
}
if (debris8.hitTest(_root.boss.vac.hit1) || (debris8.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris8._x = 10000;
debris8._y = 10000;
}
if (debris9.hitTest(_root.boss.vac.hit1) || (debris9.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris9._x = 10000;
debris9._y = 10000;
}
if (debris10.hitTest(_root.boss.vac.hit1) || (debris10.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris10._x = 10000;
debris10._y = 10000;
}
if (debris11.hitTest(_root.boss.vac.hit1) || (debris11.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris11._x = 10000;
debris11._y = 10000;
}
if (debris12.hitTest(_root.boss.vac.hit1) || (debris12.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris12._x = 10000;
debris12._y = 10000;
}
if (debris13.hitTest(_root.boss.vac.hit1) || (debris13.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris13._x = 10000;
debris13._y = 10000;
}
}
debris1._x = debris1._x + dist_debris1;
debris1._y = debris1._y - elev_debris1;
debris1._rotation = debris1._rotation + rot_debris1;
elev_debris1 = elev_debris1 - grav_debris1;
debris2._x = debris2._x + dist_debris2;
debris2._y = debris2._y - elev_debris2;
debris2._rotation = debris2._rotation + rot_debris2;
elev_debris2 = elev_debris2 - grav_debris2;
debris3._x = debris3._x + dist_debris3;
debris3._y = debris3._y - elev_debris3;
debris3._rotation = debris3._rotation + rot_debris3;
elev_debris3 = elev_debris3 - grav_debris3;
debris4._x = debris4._x + dist_debris4;
debris4._y = debris4._y - elev_debris4;
debris4._rotation = debris4._rotation + rot_debris4;
elev_debris4 = elev_debris4 - grav_debris4;
debris5._x = debris5._x + dist_debris5;
debris5._y = debris5._y - elev_debris5;
debris5._rotation = debris5._rotation + rot_debris5;
elev_debris5 = elev_debris5 - grav_debris5;
debris6._x = debris6._x + dist_debris6;
debris6._y = debris6._y - elev_debris6;
debris6._rotation = debris6._rotation + rot_debris6;
elev_debris6 = elev_debris6 - grav_debris6;
debris7._x = debris7._x + dist_debris7;
debris7._y = debris7._y - elev_debris7;
debris7._rotation = debris7._rotation + rot_debris7;
elev_debris7 = elev_debris7 - grav_debris7;
debris8._x = debris8._x + dist_debris8;
debris8._y = debris8._y - elev_debris8;
debris8._rotation = debris8._rotation + rot_debris8;
elev_debris8 = elev_debris8 - grav_debris8;
debris9._x = debris9._x + dist_debris9;
debris9._y = debris9._y - elev_debris9;
debris9._rotation = debris9._rotation + rot_debris9;
elev_debris9 = elev_debris9 - grav_debris9;
debris10._x = debris10._x + dist_debris10;
debris10._y = debris10._y - elev_debris10;
debris10._rotation = debris10._rotation + rot_debris10;
elev_debris10 = elev_debris10 - grav_debris10;
debris11._x = debris11._x + dist_debris11;
debris11._y = debris11._y - elev_debris11;
debris11._rotation = debris11._rotation + rot_debris11;
elev_debris11 = elev_debris11 - grav_debris11;
debris12._x = debris12._x + dist_debris12;
debris12._y = debris12._y - elev_debris12;
debris12._rotation = debris12._rotation + rot_debris12;
elev_debris12 = elev_debris12 - grav_debris12;
debris13._x = debris13._x + dist_debris13;
debris13._y = debris13._y - elev_debris13;
debris13._rotation = debris13._rotation + rot_debris13;
elev_debris13 = elev_debris13 - grav_debris13;
}
Symbol 901 MovieClip Frame 107
stop();
Symbol 902 MovieClip Frame 24
_parent.gotoAndStop(2);
Symbol 903 MovieClip Frame 1
stop();
Symbol 905 MovieClip Frame 1
stop();
Instance of Symbol 904 MovieClip "fly_debris1" in Symbol 905 MovieClip Frame 2
onClipEvent (load) {
var elev = 7.5;
var elev_var = 7.5;
var dist = 5;
var dist_var = 1.5;
var grav = 0.5;
var grav_var = 0.25;
var rot = 25;
var grav_brick1 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick2 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick3 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick4 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var grav_brick5 = (grav + ((Math.random() * grav_var) - (grav_var / 2)));
var dist_brick1 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick2 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick3 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick4 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var dist_brick5 = (dist + ((Math.random() * dist_var) - (dist_var / 2)));
var elev_brick1 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick2 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick3 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick4 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var elev_brick5 = (elev + ((Math.random() * elev_var) - (elev_var / 2)));
var rot_brick1 = ((Math.random() * rot) - (rot / 2));
var rot_brick2 = ((Math.random() * rot) - (rot / 2));
var rot_brick3 = ((Math.random() * rot) - (rot / 2));
var rot_brick4 = ((Math.random() * rot) - (rot / 2));
var rot_brick5 = ((Math.random() * rot) - (rot / 2));
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 9) && (_root.boss.currentState == "vac")) {
if (debris1.hitTest(_root.boss.vac.hit1) || (debris1.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris1._x = 10000;
debris1._y = 10000;
}
if (debris2.hitTest(_root.boss.vac.hit1) || (debris2.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris2._x = 10000;
debris2._y = 10000;
}
if (debris3.hitTest(_root.boss.vac.hit1) || (debris3.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris3._x = 10000;
debris3._y = 10000;
}
if (debris4.hitTest(_root.boss.vac.hit1) || (debris4.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris4._x = 10000;
debris4._y = 10000;
}
if (debris5.hitTest(_root.boss.vac.hit1) || (debris5.hitTest(_root.boss.vac.hit2))) {
_root.boss.vac.hurt1.gotoAndPlay(2);
_root.boss.vac.hurt2.gotoAndPlay(2);
_root.boss.vac.hurt3.gotoAndPlay(2);
_root.boss.vac.hurt4.gotoAndPlay(2);
_root.boss.vac.hurt5.gotoAndPlay(2);
_root.boss.vac_hp--;
debris5._x = 10000;
debris5._y = 10000;
}
}
brick1._x = brick1._x + dist_brick1;
brick1._y = brick1._y - elev_brick1;
brick1._rotation = brick1._rotation + rot_brick1;
elev_brick1 = elev_brick1 - grav_brick1;
brick2._x = brick2._x + dist_brick2;
brick2._y = brick2._y - elev_brick2;
brick2._rotation = brick2._rotation + rot_brick2;
elev_brick2 = elev_brick2 - grav_brick2;
brick3._x = brick3._x + dist_brick3;
brick3._y = brick3._y - elev_brick3;
brick3._rotation = brick3._rotation + rot_brick3;
elev_brick3 = elev_brick3 - grav_brick3;
brick4._x = brick4._x + dist_brick4;
brick4._y = brick4._y - elev_brick4;
brick4._rotation = brick4._rotation + rot_brick4;
elev_brick4 = elev_brick4 - grav_brick4;
brick5._x = brick5._x + dist_brick5;
brick5._y = brick5._y - elev_brick5;
brick5._rotation = brick5._rotation + rot_brick5;
elev_brick5 = elev_brick5 - grav_brick5;
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 931 MovieClip Frame 1
stop();
Instance of Symbol 695 MovieClip "enemy_fly1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var speed_ease = 0;
var speed_int = 0.2;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
_y = ((Math.random() * (320 - bound_top)) + (175 + bound_top));
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
_x = ((Math.random() * 140) - 120);
} else {
_xscale = 100;
_x = ((Math.random() * 140) - 20);
}
speed = _root.enemy_fly_speed + ((Math.random() * _root.enemy_fly_speed_range) - (_root.enemy_fly_speed_range / 2));
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if ((_currentframe == 2) && (intro._currentframe == 2)) {
_y = (_y + speed_ease);
if (speed_ease < speed) {
speed_ease = speed_ease + speed_int;
}
}
if ((_y >= 620) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (_currentframe == 30) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (_xscale == -100) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (_currentframe == _totalframes) {
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if ((debris._currentframe > 1) && (debris._currentframe == debris._totalframes)) {
this.gotoAndStop(1);
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
}
Instance of Symbol 695 MovieClip "enemy_fly2" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var speed_ease = 0;
var speed_int = 0.2;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
_y = ((Math.random() * (320 - bound_top)) + (175 + bound_top));
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
_x = ((Math.random() * 140) - 120);
} else {
_xscale = 100;
_x = ((Math.random() * 140) - 20);
}
speed = _root.enemy_fly_speed + ((Math.random() * _root.enemy_fly_speed_range) - (_root.enemy_fly_speed_range / 2));
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if ((_currentframe == 2) && (intro._currentframe == 2)) {
_y = (_y + speed_ease);
if (speed_ease < speed) {
speed_ease = speed_ease + speed_int;
}
}
if ((_y >= 620) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (_currentframe == 30) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (_xscale == -100) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (_currentframe == _totalframes) {
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if ((debris._currentframe > 1) && (debris._currentframe == debris._totalframes)) {
this.gotoAndStop(1);
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
}
Instance of Symbol 695 MovieClip "enemy_fly3" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var speed_ease = 0;
var speed_int = 0.2;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
_y = ((Math.random() * (320 - bound_top)) + (175 + bound_top));
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
_x = ((Math.random() * 140) - 120);
} else {
_xscale = 100;
_x = ((Math.random() * 140) - 20);
}
speed = _root.enemy_fly_speed + ((Math.random() * _root.enemy_fly_speed_range) - (_root.enemy_fly_speed_range / 2));
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if ((_currentframe == 2) && (intro._currentframe == 2)) {
_y = (_y + speed_ease);
if (speed_ease < speed) {
speed_ease = speed_ease + speed_int;
}
}
if ((_y >= 620) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (_currentframe == 30) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (_xscale == -100) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (_currentframe == _totalframes) {
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if ((debris._currentframe > 1) && (debris._currentframe == debris._totalframes)) {
this.gotoAndStop(1);
_y = 0;
flip = null;
_xscale = 100;
inPosition = false;
}
}
Instance of Symbol 740 MovieClip "enemy_rope1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var elev_debris1 = (((Math.random() * 4) + 7.5) * -1);
var hor = null;
var inc = ((Math.random() * 0.2) + 0.55);
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
elev_debris1 = ((Math.random() * 4) + 7.5) * -1;
inc = (Math.random() * 0.2) + 0.55;
_x = ((Math.random() * 240) - 120);
_y = 40;
hor = _x / 18.5;
if (Math.abs(hor) <= 0.5) {
hor = 0;
}
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
} else {
_xscale = 100;
}
speed = _root.enemy_rope_speed + ((Math.random() * (_root.enemy_rope_speed_range * 2)) - _root.enemy_rope_speed_range);
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (_currentframe == 2) {
_y = (_y + speed);
} else if ((_currentframe == 3) && (fallguy._currentframe == 1)) {
fallguy._y = fallguy._y + elev_debris1;
elev_debris1 = elev_debris1 + inc;
if (flip == 1) {
fallguy._x = fallguy._x + hor;
} else {
fallguy._x = fallguy._x - hor;
}
}
if ((_y >= 610) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (fallguy.hit.hitTest(_parent.bottomHit) && (_currentframe == 3)) {
fallguy.gotoAndStop(2);
}
if (_currentframe == _totalframes) {
_y = 40;
}
if (((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (_currentframe == 12) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (flip == 1) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (((_currentframe == 3) && (fallguy._currentframe == 2)) && (fallguy.fallguy2._currentframe == fallguy.fallguy2._totalframes)) {
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 740 MovieClip "enemy_rope2" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var elev_debris1 = (((Math.random() * 4) + 7.5) * -1);
var hor = null;
var inc = ((Math.random() * 0.2) + 0.55);
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
elev_debris1 = ((Math.random() * 4) + 7.5) * -1;
inc = (Math.random() * 0.2) + 0.55;
_x = ((Math.random() * 240) - 120);
_y = 40;
hor = _x / 18.5;
if (Math.abs(hor) <= 0.5) {
hor = 0;
}
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
} else {
_xscale = 100;
}
speed = _root.enemy_rope_speed + ((Math.random() * (_root.enemy_rope_speed_range * 2)) - _root.enemy_rope_speed_range);
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (_currentframe == 2) {
_y = (_y + speed);
} else if ((_currentframe == 3) && (fallguy._currentframe == 1)) {
fallguy._y = fallguy._y + elev_debris1;
elev_debris1 = elev_debris1 + inc;
if (flip == 1) {
fallguy._x = fallguy._x + hor;
} else {
fallguy._x = fallguy._x - hor;
}
}
if ((_y >= 610) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (fallguy.hit.hitTest(_parent.bottomHit) && (_currentframe == 3)) {
fallguy.gotoAndStop(2);
}
if (_currentframe == _totalframes) {
_y = 40;
}
if (((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (_currentframe == 12) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (flip == 1) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (((_currentframe == 3) && (fallguy._currentframe == 2)) && (fallguy.fallguy2._currentframe == fallguy.fallguy2._totalframes)) {
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 740 MovieClip "enemy_rope3" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var flip = null;
var speed = null;
var elev_debris1 = (((Math.random() * 4) + 7.5) * -1);
var hor = null;
var inc = ((Math.random() * 0.2) + 0.55);
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
elev_debris1 = ((Math.random() * 4) + 7.5) * -1;
inc = (Math.random() * 0.2) + 0.55;
_x = ((Math.random() * 240) - 120);
_y = 40;
hor = _x / 18.5;
if (Math.abs(hor) <= 0.5) {
hor = 0;
}
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
} else {
_xscale = 100;
}
speed = _root.enemy_rope_speed + ((Math.random() * (_root.enemy_rope_speed_range * 2)) - _root.enemy_rope_speed_range);
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (_currentframe == 2) {
_y = (_y + speed);
} else if ((_currentframe == 3) && (fallguy._currentframe == 1)) {
fallguy._y = fallguy._y + elev_debris1;
elev_debris1 = elev_debris1 + inc;
if (flip == 1) {
fallguy._x = fallguy._x + hor;
} else {
fallguy._x = fallguy._x - hor;
}
}
if ((_y >= 610) && (_currentframe == 2)) {
this.gotoAndPlay(4);
}
if (fallguy.hit.hitTest(_parent.bottomHit) && (_currentframe == 3)) {
fallguy.gotoAndStop(2);
}
if (_currentframe == _totalframes) {
_y = 40;
}
if (((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (_currentframe == 12) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (flip == 1) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (((_root.smasher.hit.hitTest(intro.hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
this.gotoAndStop(3);
}
if (((_currentframe == 3) && (fallguy._currentframe == 2)) && (fallguy.fallguy2._currentframe == fallguy.fallguy2._totalframes)) {
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 818 MovieClip "enemy_claw1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var flip = null;
var speed = null;
var speed_ease = 0;
var speed_int = 1.5;
var speed_claw = 7.5;
var destination = null;
var inPosition = false;
var wait = false;
var cranking = false;
var goUp = false;
var clawHeight = null;
var grabbedMoney = false;
var elev_debris1 = (((Math.random() * 4) + 8.5) * -1);
var hor = ((Math.random() * 3.5) + 3.5);
var inc = ((Math.random() * 0.2) + 0.55);
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
flip = Math.round(Math.random());
hor = (Math.random() * 3.5) + 3.5;
elev_debris1 = ((Math.random() * 4) + 8.5) * -1;
inc = (Math.random() * 0.2) + 0.55;
if (flip == 1) {
_xscale = -100;
_x = 137;
_y = 30;
hor = hor * -1;
} else {
_xscale = 100;
_x = -140;
_y = 30;
}
speed = _root.enemy_claw_speed + ((Math.random() * _root.enemy_claw_speed_range) - (_root.enemy_claw_speed_range / 2));
destination = (Math.random() * 250) + 175;
enemy.stop();
inPosition = true;
}
if ((((_currentframe == 2) && (_y > (destination - speed))) && (speed_ease != 0)) && (!goUp)) {
if (!wait) {
wait = true;
}
if (speed_ease > 0) {
speed_ease = speed_ease - speed_int;
_y = (_y + speed_ease);
if (sparks._currentframe == 1) {
sparks.gotoAndPlay(2);
}
} else if (speed < 0) {
speed_ease = 0;
}
}
if ((((_currentframe == 2) && (inPosition)) && (!wait)) && (!goUp)) {
_y = (_y + speed_ease);
if (speed_ease < speed) {
speed_ease = speed_ease + speed_int;
}
}
if ((_currentframe == 2) && (goUp)) {
if (_y > 10) {
_y = (_y - speed_ease);
if (speed_ease < (speed * 0.4)) {
speed_ease = speed_ease + (speed_int * 0.4);
}
} else {
_root.enemiesOnScreen--;
wait = false;
cranking = false;
goUp = false;
_xscale = 100;
flip = null;
inPosition = false;
this.gotoAndStop(1);
}
}
if ((((_currentframe == 2) && (wait)) && (enemy.claw._currentframe == 1)) && (!goUp)) {
if (!cranking) {
cranking = true;
enemy.play();
}
if (!enemy.claw.hitTest(_root.money.hit)) {
enemy.claw._y = enemy.claw._y + speed_claw;
clawHeight = enemy.claw._y - 39.4;
} else {
enemy.claw.play();
cranking = false;
enemy.stop();
}
}
if ((((_currentframe == 2) && (wait)) && (enemy.claw._currentframe == enemy.claw._totalframes)) && (!goUp)) {
if (!cranking) {
cranking = true;
enemy.play();
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (flip == 1) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (enemy.claw._y > 90) {
enemy.claw._y = enemy.claw._y - speed_claw;
clawHeight = enemy.claw._y - 39.4;
} else {
clawHeight = 39.4;
enemy.claw._y = 87;
cranking = false;
enemy.stop();
wait = false;
goUp = true;
}
}
if (((speed_ease != 0) && (!cranking)) && ((enemy.claw._currentframe == 1) || (enemy.claw._currentframe == enemy.claw._totalframes))) {
if (flip == 1) {
enemy.wheel._rotation = enemy.wheel._rotation - (speed_ease * 3);
} else {
enemy.wheel._rotation = enemy.wheel._rotation + (speed_ease * 3);
}
}
if (((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) {
if (enemy.claw._currentframe >= 8) {
grabbedMoney = true;
}
this.gotoAndStop(3);
if (grabbedMoney) {
claw.gotoAndStop(2);
}
if (cranking && (!grabbedMoney)) {
_root.claw_speed_temp = speed_claw * 0.6;
_root.claw_grav_temp = speed_int * 0.6;
} else if (goUp) {
_root.claw_speed_temp = 0;
_root.claw_grav_temp = speed_int * 0.6;
} else {
_root.claw_speed_temp = speed_ease * 0.6;
_root.claw_grav_temp = speed_int * 0.6;
}
claw._y = clawHeight;
}
if ((_currentframe == 3) && (fallguy._currentframe == 1)) {
fallguy._y = fallguy._y + elev_debris1;
elev_debris1 = elev_debris1 + inc;
if (flip == 1) {
fallguy._x = fallguy._x - hor;
} else {
fallguy._x = fallguy._x + hor;
}
}
if (fallguy.hit.hitTest(_parent.bottomHit) && (_currentframe == 3)) {
fallguy.gotoAndStop(2);
}
if (((_currentframe == 3) && (fallguy._currentframe == 2)) && (fallguy.fallguy2._currentframe == fallguy.fallguy2._totalframes)) {
wait = false;
cranking = false;
goUp = false;
_xscale = 100;
flip = null;
inPosition = false;
clawHeight = null;
grabbedMoney = false;
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 848 MovieClip "enemy_clawbot1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var flip = null;
var speed = null;
var speed_ease = 0;
var speed_int = 1.5;
var speed_claw = 6;
var destination = null;
var inPosition = false;
var wait = false;
var cranking = false;
var goUp = false;
var clawHeight = null;
var grabbedMoney = false;
var hp = 1;
var elev_debris1 = ((Math.random() * 8) + -11);
var hor = ((Math.random() * 3) + 3);
var inc = ((Math.random() * 0.4) + 0.5);
var dieFrame = 11;
}
onClipEvent (enterFrame) {
if ((_currentframe > 1) && (!inPosition)) {
flip = Math.round(Math.random());
hp = 1;
hor = (Math.random() * 3) + 3;
speed_int = 1.5;
speed_claw = 6;
var elev_debris1 = ((Math.random() * 8) + -11);
if (flip == 1) {
_xscale = -100;
_x = 203;
_y = 57;
hor = hor * -1;
} else {
_xscale = 100;
_x = -106;
_y = 57;
}
speed = _root.enemy_clawbot_speed + ((Math.random() * _root.enemy_clawbot_speed_range) - (_root.enemy_clawbot_speed_range / 2));
destination = (Math.random() * 225) + 200;
inPosition = true;
}
if (((((_currentframe == 2) && (_y > (destination - speed))) && (speed_ease != 0)) && (!goUp)) && (enemy._currentframe < dieFrame)) {
if (!wait) {
wait = true;
}
if (speed_ease > 0) {
speed_ease = speed_ease - speed_int;
_y = (_y + speed_ease);
if (sparks._currentframe == 1) {
sparks.gotoAndPlay(2);
}
} else if (speed < 0) {
speed_ease = 0;
}
}
if (((((_currentframe == 2) && (inPosition)) && (!wait)) && (!goUp)) && (enemy._currentframe < dieFrame)) {
_y = (_y + speed_ease);
if (speed_ease < speed) {
speed_ease = speed_ease + speed_int;
}
}
if (((_currentframe == 2) && (goUp)) && (enemy._currentframe < dieFrame)) {
if (_y > 10) {
_y = (_y - speed_ease);
if (speed_ease < (speed * 0.4)) {
speed_ease = speed_ease + (speed_int * 0.4);
}
} else {
_root.enemiesOnScreen--;
hp = 1;
wait = false;
cranking = false;
goUp = false;
_xscale = 100;
flip = null;
inPosition = false;
this.gotoAndStop(1);
}
}
if (((((_currentframe == 2) && (wait)) && (enemy.claw._currentframe == 1)) && (!goUp)) && (enemy._currentframe < dieFrame)) {
if (!cranking) {
cranking = true;
}
if (!enemy.claw.hitTest(_root.money.hit)) {
enemy.claw._y = enemy.claw._y + speed_claw;
enemy.ball._rotation = enemy.ball._rotation + (speed_claw * 2);
enemy.ball2._rotation = enemy.ball2._rotation + (speed_claw * 2);
enemy.ball3._rotation = enemy.ball3._rotation + (speed_claw * 2);
clawHeight = enemy.claw._y - 0;
} else {
enemy.claw.play();
cranking = false;
}
}
if (((((_currentframe == 2) && (wait)) && (enemy.claw._currentframe == enemy.claw._totalframes)) && (!goUp)) && (enemy._currentframe < dieFrame)) {
if (!cranking) {
cranking = true;
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (flip == 1) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
}
if (enemy.claw._y > 83.5) {
enemy.claw._y = enemy.claw._y - speed_claw;
enemy.ball._rotation = enemy.ball._rotation - (speed_claw * 2);
enemy.ball2._rotation = enemy.ball2._rotation - (speed_claw * 2);
enemy.ball3._rotation = enemy.ball3._rotation - (speed_claw * 2);
clawHeight = enemy.claw._y - 0;
} else {
clawHeight = 78.5;
enemy.claw._y = 78.5;
cranking = false;
wait = false;
goUp = true;
}
}
if ((((speed_ease != 0) && (!cranking)) && (enemy._currentframe < dieFrame)) && ((enemy.claw._currentframe == 1) || (enemy.claw._currentframe == enemy.claw._totalframes))) {
if (flip == 1) {
enemy.wheel._rotation = enemy.wheel._rotation - (speed_ease * 3);
} else {
enemy.wheel._rotation = enemy.wheel._rotation + (speed_ease * 3);
}
}
if (((((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) && (enemy._currentframe == 1)) && (hp == 1)) {
hp = 0;
speed_int = 4;
speed_claw = 8;
enemy.gotoAndPlay("hurt");
} else if (((((_root.smasher.hit.hitTest(hit) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) && (enemy._currentframe == 10)) && (hp == 0)) {
if (enemy.claw._currentframe >= 8) {
grabbedMoney = true;
}
_root.currentKills++;
_root.enemiesOnScreen--;
enemy.gotoAndPlay("die");
hp = -1;
if (cranking && (!grabbedMoney)) {
_root.clawbot_speed_temp = speed_claw * 0.6;
_root.clawbot_grav_temp = speed_int * 0.6;
} else if (goUp) {
_root.clawbot_speed_temp = 0;
_root.clawbot_grav_temp = speed_int * 0.6;
} else {
_root.clawbot_speed_temp = speed_ease * 0.6;
_root.clawbot_grav_temp = speed_int * 0.6;
}
}
if ((_currentframe == 2) && (enemy._currentframe == 27)) {
enemy.claw._y = clawHeight;
if (grabbedMoney) {
enemy.claw.gotoAndStop(2);
}
}
if ((_currentframe == 2) && (enemy._currentframe == enemy._totalframes)) {
hp = 1;
wait = false;
cranking = false;
goUp = false;
_xscale = 100;
flip = null;
inPosition = false;
clawHeight = null;
grabbedMoney = false;
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 905 MovieClip "enemy_flybot1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var speed = null;
var speed_ease = 1;
var speed_int = 0.2;
var speed_int2 = 0.75;
var des = false;
var asc = false;
var dieFrame = 13;
var top = 0;
var xSpeed = 0;
var flip = null;
var hp = 1;
var grabbedMoney = false;
var enemyFrame = null;
var dieUpEase = null;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if ((intro.enemy._currentframe == 28) && (grabbedMoney)) {
intro.enemy.claw.gotoAndStop(intro.enemy.claw._totalframes);
}
if ((_currentframe > 1) && (!inPosition)) {
_y = ((Math.random() * (320 - bound_top)) + (175 + bound_top));
des = true;
flip = Math.round(Math.random());
if (flip == 1) {
_xscale = -100;
_x = ((Math.random() * 140) - 120);
} else {
_xscale = 100;
_x = ((Math.random() * 140) - 20);
}
hp = 1;
grabbedMoney = false;
speed = _root.enemy_flybot_speed + ((Math.random() * _root.enemy_flybot_speed_range) - (_root.enemy_flybot_speed_range / 2));
xSpeed = (Math.random() * 1) - 0.5;
speed_ease = 1;
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if ((des && (_currentframe == 2)) && (intro._currentframe == 1)) {
_y = (_y + (_root.enemy_flybot_speed / 2));
} else if ((((des && (_currentframe == 2)) && (intro._currentframe == 2)) && (_y < 617)) && (intro.enemy._currentframe < dieFrame)) {
_y = (_y + speed_ease);
if (((hp == 1) && (speed_ease < _root.enemy_flybot_speed)) || ((hp == 0) && (speed_ease < (_root.enemy_flybot_speed * 1.75)))) {
speed_ease = speed_ease + speed_int;
}
}
if (((_y >= 617) && (_currentframe == 2)) && (intro.enemy.claw._currentframe == 1)) {
_y = 617;
speed_ease = 0;
intro.enemy.claw.play();
}
if ((((_currentframe == 2) && (intro._currentframe == 2)) && (intro.enemy.claw._currentframe == intro.enemy.claw._totalframes)) && (des)) {
des = false;
asc = true;
}
if ((intro.enemy.claw._currentframe == 7) && (!grabbedMoney)) {
if (_root.trump._currentframe == 1) {
_root.trump.gotoAndPlay("curse");
if (_x > 0) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
grabbedMoney = true;
_root.modScore(-1 * _root.score1_5);
}
if ((hp < 1) && (intro.enemy.head._currentframe == 1)) {
intro.enemy.head.gotoAndStop(2);
}
if ((intro.enemy._currentframe >= dieFrame) && (asc)) {
_y = (_y - dieUpEase);
if (dieUpEase > 0) {
dieUpEase--;
}
}
if ((asc && (_y > top)) && (intro.enemy._currentframe < dieFrame)) {
_y = (_y - speed_ease);
_x = (_x + xSpeed);
if (((hp == 1) && (speed_ease < _root.enemy_flybot_speed2)) || ((hp == 0) && (speed_ease < (_root.enemy_flybot_speed2 * 1.75)))) {
speed_ease = speed_ease + speed_int2;
}
} else if ((asc && (_y <= top)) && (intro.enemy._currentframe < dieFrame)) {
_root.enemiesOnScreen--;
des = false;
asc = false;
_xscale = 100;
flip = null;
hp = 1;
inPosition = false;
grabbedMoney = false;
enemyFrame = null;
this.gotoAndStop(1);
_y = 0;
}
if (((((((intro._currentframe == 2) && (intro.enemy._currentframe == 1)) && (_root.smasher.hit.hitTest(intro.hit))) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (_currentframe == 2)) && (hp == 1)) {
hp = 0;
intro.enemy.gotoAndPlay("hurt");
}
if ((((((intro._currentframe == 2) && (intro.enemy._currentframe == 1)) && (_root.smasher.hit.hitTest(intro.hit))) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (hp == 0)) {
dieUpEase = speed_ease;
hp = -1;
_root.currentKills++;
_root.enemiesOnScreen--;
intro.enemy.gotoAndPlay("die");
}
if ((hp == -1) && (intro.enemy._currentframe == intro.enemy._totalframes)) {
des = false;
asc = false;
_xscale = 100;
hp = 1;
flip = null;
inPosition = false;
grabbedMoney = false;
enemyFrame = null;
this.gotoAndStop(1);
_y = 0;
}
}
Instance of Symbol 931 MovieClip "enemy_taser1" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var speed = 0;
var dest = 0;
var tasing = false;
var comingToStop = false;
var moving = false;
var moving_up = false;
var moving_down = false;
var top = 50;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if (_root.enemy_taser1_leave && (dest != 0)) {
dest = 0;
tasing = false;
taser.gotoAndStop(1);
comingToStop = false;
moving = true;
moving_up = true;
} else if ((_root.enemy_taser1_leave && (dest == 0)) && (_y <= top)) {
dest = 0;
_y = 0;
speed = 0;
_root.enemy_taser1_leave = false;
_root.enemy_taser1_init = false;
inPosition = false;
speed = 0;
moving = false;
moving_up = false;
moving_down = false;
taser.gotoAndStop(1);
tasing = false;
comingToStop = false;
this.gotoAndStop(1);
}
if (((!_root.enemy_taser1_leave) && (_root.enemy_taser1_init)) && (!inPosition)) {
inPosition = true;
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
moving = true;
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
comingToStop = false;
tasing = false;
this.gotoAndStop(2);
_x = -50;
_y = top;
speed = 0;
_root.enemy_taser1_init = false;
}
if ((_currentframe > 1) && (!inPosition)) {
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (!_root.enemy_taser1_leave) {
if ((((_currentframe == 2) && (!tasing)) && (!comingToStop)) && (moving)) {
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
if ((moving_down && (_y >= dest)) || (moving_up && (_y <= dest))) {
comingToStop = true;
moving = false;
tasing = false;
}
}
} else {
dest = 0;
moving = true;
moving_up = true;
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
}
if ((((_currentframe == 2) && (!tasing)) && (comingToStop)) && (!moving)) {
if (speed > 0) {
speed = speed - _root.enemy_taser_speed_int;
} else {
speed = 0;
moving = false;
moving_down = false;
moving_up = false;
tasing = true;
comingToStop = false;
taser.gotoAndPlay(2);
}
}
if (tasing && (taser._currentframe == 1)) {
if (dest >= ((Math.round(0.8 * (280 - bound_top)) + 220) + bound_top)) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
}
} else {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
}
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
tasing = false;
speed = 0;
moving = true;
comingToStop = false;
taser.gotoAndStop(1);
}
if ((speed != 0) && (moving || (comingToStop))) {
if (moving_up) {
_y = (_y - speed);
enemy.wheel1._rotation = enemy.wheel1._rotation - (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation + (speed * 2);
} else {
_y = (_y + speed);
enemy.wheel1._rotation = enemy.wheel1._rotation + (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation - (speed * 2);
}
}
}
Instance of Symbol 931 MovieClip "enemy_taser2" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var speed = 0;
var dest = 0;
var tasing = false;
var comingToStop = false;
var moving = false;
var moving_up = false;
var moving_down = false;
var top = 50;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if (_root.enemy_taser2_leave && (dest != 0)) {
dest = 0;
tasing = false;
taser.gotoAndStop(1);
comingToStop = false;
moving = true;
moving_up = true;
} else if ((_root.enemy_taser2_leave && (dest == 0)) && (_y <= top)) {
dest = 0;
_y = 0;
speed = 0;
_root.enemy_taser2_leave = false;
_root.enemy_taser2_init = false;
inPosition = false;
speed = 0;
moving = false;
moving_up = false;
moving_down = false;
taser.gotoAndStop(1);
tasing = false;
comingToStop = false;
this.gotoAndStop(1);
}
if (((!_root.enemy_taser2_leave) && (_root.enemy_taser2_init)) && (!inPosition)) {
inPosition = true;
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
moving = true;
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
comingToStop = false;
tasing = false;
this.gotoAndStop(2);
_x = -50;
_y = top;
speed = 0;
_root.enemy_taser2_init = false;
}
if ((_currentframe > 1) && (!inPosition)) {
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (!_root.enemy_taser2_leave) {
if ((((_currentframe == 2) && (!tasing)) && (!comingToStop)) && (moving)) {
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
if ((moving_down && (_y >= dest)) || (moving_up && (_y <= dest))) {
comingToStop = true;
moving = false;
tasing = false;
}
}
} else {
dest = 0;
moving = true;
moving_up = true;
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
}
if ((((_currentframe == 2) && (!tasing)) && (comingToStop)) && (!moving)) {
if (speed > 0) {
speed = speed - _root.enemy_taser_speed_int;
} else {
speed = 0;
moving = false;
moving_down = false;
moving_up = false;
tasing = true;
comingToStop = false;
taser.gotoAndPlay(2);
}
}
if (tasing && (taser._currentframe == 1)) {
if (dest >= ((Math.round(0.8 * (280 - bound_top)) + 220) + bound_top)) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
}
} else {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
}
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
tasing = false;
speed = 0;
moving = true;
comingToStop = false;
taser.gotoAndStop(1);
}
if ((speed != 0) && (moving || (comingToStop))) {
if (moving_up) {
_y = (_y - speed);
enemy.wheel1._rotation = enemy.wheel1._rotation - (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation + (speed * 2);
} else {
_y = (_y + speed);
enemy.wheel1._rotation = enemy.wheel1._rotation + (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation - (speed * 2);
}
}
}
Instance of Symbol 931 MovieClip "enemy_taser3" in Symbol 932 MovieClip Frame 1
onClipEvent (load) {
var inPosition = false;
var speed = 0;
var dest = 0;
var tasing = false;
var comingToStop = false;
var moving = false;
var moving_up = false;
var moving_down = false;
var top = 50;
var bound_top = 0;
}
onClipEvent (enterFrame) {
if (_root.enemy_taser3_leave && (dest != 0)) {
dest = 0;
tasing = false;
taser.gotoAndStop(1);
comingToStop = false;
moving = true;
moving_up = true;
} else if ((_root.enemy_taser3_leave && (dest == 0)) && (_y <= top)) {
dest = 0;
_y = 0;
speed = 0;
_root.enemy_taser3_leave = false;
_root.enemy_taser3_init = false;
inPosition = false;
speed = 0;
moving = false;
moving_up = false;
moving_down = false;
taser.gotoAndStop(1);
tasing = false;
comingToStop = false;
this.gotoAndStop(1);
}
if (((!_root.enemy_taser3_leave) && (_root.enemy_taser3_init)) && (!inPosition)) {
inPosition = true;
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
moving = true;
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
comingToStop = false;
tasing = false;
this.gotoAndStop(2);
_x = -50;
_y = top;
speed = 0;
_root.enemy_taser3_init = false;
}
if ((_currentframe > 1) && (!inPosition)) {
inPosition = true;
} else if ((_currentframe == 1) && (inPosition)) {
inPosition = false;
}
if (!_root.enemy_taser3_leave) {
if ((((_currentframe == 2) && (!tasing)) && (!comingToStop)) && (moving)) {
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
if ((moving_down && (_y >= dest)) || (moving_up && (_y <= dest))) {
comingToStop = true;
moving = false;
tasing = false;
}
}
} else {
dest = 0;
moving = true;
moving_up = true;
if (speed < _root.enemy_taser_speed) {
speed = speed + _root.enemy_taser_speed_int;
}
}
if ((((_currentframe == 2) && (!tasing)) && (comingToStop)) && (!moving)) {
if (speed > 0) {
speed = speed - _root.enemy_taser_speed_int;
} else {
speed = 0;
moving = false;
moving_down = false;
moving_up = false;
tasing = true;
comingToStop = false;
taser.gotoAndPlay(2);
}
}
if (tasing && (taser._currentframe == 1)) {
if (dest >= ((Math.round(0.8 * (280 - bound_top)) + 220) + bound_top)) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (180 - bound_top)) + 220) + bound_top;
}
} else {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
while ((dest % _root.enemy_taser_speed_int) != 0) {
dest = (Math.round(Math.random() * (280 - bound_top)) + 220) + bound_top;
}
}
if (_y > dest) {
moving_up = true;
moving_down = false;
} else {
moving_up = false;
moving_down = true;
}
tasing = false;
speed = 0;
moving = true;
comingToStop = false;
taser.gotoAndStop(1);
}
if ((speed != 0) && (moving || (comingToStop))) {
if (moving_up) {
_y = (_y - speed);
enemy.wheel1._rotation = enemy.wheel1._rotation - (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation + (speed * 2);
} else {
_y = (_y + speed);
enemy.wheel1._rotation = enemy.wheel1._rotation + (speed * 2);
enemy.wheel2._rotation = enemy.wheel2._rotation - (speed * 2);
}
}
}
Symbol 932 MovieClip Frame 12
enemy_clawbot_spawn = Math.floor((Math.random() * _root.enemy_clawbot_int) + 1);
if ((enemy_clawbot_spawn == 1) && (((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills2) && (_root._currentframe == 6)) && (_root.boss2Intro._currentframe == 1)) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills3) && (_root._currentframe == 8)) && (_root.boss3Intro._currentframe == 1)))) {
if (enemy_clawbot1._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_clawbot1.gotoAndStop(2);
}
}
Symbol 932 MovieClip Frame 25
if ((_root._currentframe == 4) && (_root.currentKills == 15)) {
_root.enemy_rope_int = 1;
_root.enemy_fly_int = 1;
_root.enemy_claw_int = 2;
} else if ((_root._currentframe == 6) && (_root.currentKills == 22)) {
_root.enemy_rope_int = 1;
_root.enemy_fly_int = 2;
_root.enemy_claw_int = 2;
_root.enemy_clawbot_int = 3;
_root.enemy_flybot_int = 3;
} else if ((_root._currentframe == 8) && (_root.currentKills == 28)) {
_root.enemy_rope_int = 1;
_root.enemy_fly_int = 2;
_root.enemy_claw_int = 2;
_root.enemy_clawbot_int = 3;
_root.enemy_flybot_int = 3;
} else if ((_root._currentframe == 8) && (_root.currentKills == 56)) {
_root.enemy_rope_int = 1;
_root.enemy_fly_int = 1;
_root.enemy_claw_int = 2;
_root.enemy_clawbot_int = 2;
_root.enemy_flybot_int = 2;
}
enemy_rope_spawn = Math.floor((Math.random() * _root.enemy_rope_int) + 1);
if ((enemy_rope_spawn == 1) && ((((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills1) && (_root.boss1Intro._currentframe == 1)) && (_root._currentframe == 4)) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills2) && (_root.boss2Intro._currentframe == 1)) && (_root._currentframe == 6))) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills3) && (_root.boss3Intro._currentframe == 1)) && (_root._currentframe == 8)))) {
if (enemy_rope1._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_rope1.gotoAndStop(2);
} else if (enemy_rope2._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_rope2.gotoAndStop(2);
} else if (enemy_rope3._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_rope3.gotoAndStop(2);
}
}
enemy_fly_spawn = Math.floor((Math.random() * _root.enemy_fly_int) + 1);
if (((!_root.b3_dead) && (enemy_fly_spawn == 1)) && ((((_root._currentframe == 5) || (_root._currentframe == 7)) || (_root._currentframe == 9)) || ((((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills1) && (_root.boss1Intro._currentframe == 1)) && (_root._currentframe == 4)) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills2) && (_root.boss2Intro._currentframe == 1)) && (_root._currentframe == 6))) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills3) && (_root.boss3Intro._currentframe == 1)) && (_root._currentframe == 8))))) {
if (enemy_fly1._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_fly1.gotoAndStop(2);
} else if (enemy_fly2._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_fly2.gotoAndStop(2);
} else if (enemy_fly3._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_fly3.gotoAndStop(2);
}
}
enemy_flybot_spawn = Math.floor((Math.random() * _root.enemy_flybot_int) + 1);
if (((!_root.b3_dead) && (enemy_flybot_spawn == 1)) && (((_root._currentframe == 7) || (_root._currentframe == 9)) || (((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills2) && (_root.boss2Intro._currentframe == 1)) && (_root._currentframe == 6)) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills3) && (_root.boss3Intro._currentframe == 1)) && (_root._currentframe == 8))))) {
if (enemy_flybot1._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_flybot1.gotoAndStop(2);
} else if (enemy_flybot2._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_flybot2.gotoAndStop(2);
} else if (enemy_flybot3._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_flybot3.gotoAndStop(2);
}
}
enemy_claw_spawn = Math.floor((Math.random() * _root.enemy_claw_int) + 1);
if ((enemy_claw_spawn == 1) && ((((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills1) && (_root.boss1Intro._currentframe == 1)) && (_root._currentframe == 4)) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills2) && (_root.boss2Intro._currentframe == 1)) && (_root._currentframe == 6))) || ((((_root.currentKills + _root.enemiesOnScreen) < _root.totalKills3) && (_root.boss3Intro._currentframe == 1)) && (_root._currentframe == 8)))) {
if (enemy_claw1._currentframe == 1) {
_root.enemiesOnScreen++;
enemy_claw1.gotoAndStop(2);
}
}
if (!_root.b3_dead) {
if ((((_root.currentLevel == 1) && (_root.currentKills >= _root.totalKills1)) && (_root.enemiesOnScreen == 0)) && (_root.boss1Intro._currentframe == 1)) {
_root.boss1Intro.play();
} else if ((((((_root.currentLevel == 2) && (_root.currentKills >= _root.totalKills2)) && (_root.enemiesOnScreen == 0)) && (enemy_taser1._currentframe == 1)) && (enemy_taser1._y <= 50)) && (_root.boss2Intro._currentframe == 1)) {
_root.boss2Intro.play();
} else if ((((((((((_root.currentLevel == 3) && (_root.currentKills >= _root.totalKills3)) && (_root.enemiesOnScreen == 0)) && (enemy_taser1._currentframe == 1)) && (enemy_taser1._y <= 50)) && (enemy_taser2._currentframe == 1)) && (enemy_taser2._y <= 50)) && (enemy_taser3._currentframe == 1)) && (enemy_taser3._y <= 50)) && (_root.boss3Intro._currentframe == 1)) {
_root.boss3Intro.play();
}
if (((((_root._currentframe == 6) && (_root.currentLevel == 2)) && (_root.currentKills >= (_root.totalKills2 / 2))) && (_root.currentKills < _root.totalKills2)) && (!_root.enemy_taser1_init)) {
_root.enemy_taser1_init = true;
}
if ((((((_root._currentframe == 6) && (_root.currentLevel == 2)) && (_root.currentKills >= _root.totalKills2)) && (_root.enemiesOnScreen <= 0)) && (!_root.enemy_taser1_leave)) && (enemy_taser1._y > 25)) {
_root.enemy_taser1_leave = true;
}
if ((((_root._currentframe == 7) && (_root.boss.currentRound >= 2)) && (!_root.enemy_taser1_init)) && (enemy_taser1._currentframe == 1)) {
_root.enemy_taser1_init = true;
enemy_taser1.bound_top = 120;
}
if ((((((_root.boss3Intro._currentframe == 1) && (_root._currentframe == 8)) && (_root.currentLevel == 3)) && (_root.currentKills <= (_root.totalKills3 / 3))) && (!_root.enemy_taser1_init)) && (enemy_taser1._currentframe == 1)) {
_root.enemy_taser1_init = true;
}
if (((((((_root.boss3Intro._currentframe == 1) && (_root._currentframe == 8)) && (_root.currentLevel == 3)) && (_root.currentKills >= (_root.totalKills3 / 3))) && (_root.currentKills < _root.totalKills3)) && (!_root.enemy_taser2_init)) && (enemy_taser2._currentframe == 1)) {
_root.enemy_taser2_init = true;
}
if (((((((_root.boss3Intro._currentframe == 1) && (_root._currentframe == 8)) && (_root.currentLevel == 3)) && (_root.currentKills >= ((_root.totalKills3 / 3) * 2))) && (_root.currentKills < _root.totalKills3)) && (!_root.enemy_taser3_init)) && (enemy_taser3._currentframe == 1)) {
_root.enemy_taser3_init = true;
}
if ((((((_root.boss3Intro._currentframe == 1) && (_root._currentframe == 8)) && (_root.currentLevel == 3)) && (_root.currentKills >= _root.totalKills3)) && (_root.enemiesOnScreen <= 0)) && (((!_root.enemy_taser1_leave) || (!_root.enemy_taser2_leave)) || (!_root.enemy_taser3_leave))) {
_root.enemy_taser1_leave = true;
_root.enemy_taser2_leave = true;
_root.enemy_taser3_leave = true;
}
if ((((_root._currentframe == 9) && (_root.boss.currentRound >= 1)) && (!_root.enemy_taser1_init)) && (enemy_taser1._currentframe == 1)) {
enemy_taser1.gotoAndStop(2);
enemy_taser1.inPosition = false;
enemy_taser1.bound_top = 120;
_root.enemy_taser1_init = true;
_root.enemy_taser1_leave = false;
}
if ((((_root._currentframe == 9) && (_root.boss.currentRound >= 3)) && (!_root.enemy_taser2_init)) && (enemy_taser2._currentframe == 1)) {
enemy_taser2.gotoAndStop(2);
enemy_taser2.inPosition = false;
enemy_taser2.bound_top = 120;
_root.enemy_taser2_init = true;
_root.enemy_taser2_leave = false;
}
}
Symbol 961 MovieClip Frame 20
stop();
Symbol 962 MovieClip Frame 1
stop();
Symbol 980 MovieClip Frame 1
stop();
Symbol 1015 MovieClip Frame 1
if (_root.b1_hitHeadOnce) {
gotoAndPlay ("start2");
}
Symbol 1015 MovieClip Frame 128
_parent.arm.falling = true;
Symbol 1015 MovieClip Frame 137
stop();
Symbol 1015 MovieClip Frame 142
_parent.arm.gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1015 MovieClip Frame 158
stop();
_parent.arm.goingUp = true;
Symbol 1015 MovieClip Frame 159
play();
Symbol 1015 MovieClip Frame 167
gotoAndStop (1);
Symbol 1015 MovieClip Frame 168
play();
Instance of Symbol 980 MovieClip "clawPiece" in Symbol 1015 MovieClip Frame 168
onClipEvent (load) {
if (_root.boss.arm.gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1015 MovieClip Frame 214
_parent.bump1.gotoAndPlay("die");
_parent.bump2.gotoAndPlay("die");
_parent.arm.ropeDying = false;
stop();
Symbol 1015 MovieClip Frame 242
gotoAndStop (1);
Symbol 1015 MovieClip Frame 243
if (_root.b1_moveSmasherDown_started) {
gotoAndPlay ("another2");
} else {
_root.smasher.moveReady = true;
}
Symbol 1015 MovieClip Frame 315
_parent.arm.falling = true;
Symbol 1015 MovieClip Frame 319
stop();
Symbol 1015 MovieClip Frame 323
_parent.arm.gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1015 MovieClip Frame 334
stop();
_parent.arm.goingUp = true;
Symbol 1015 MovieClip Frame 335
play();
Symbol 1015 MovieClip Frame 339
gotoAndStop ("start2");
Symbol 1015 MovieClip Frame 340
play();
Instance of Symbol 980 MovieClip "clawPiece" in Symbol 1015 MovieClip Frame 340
onClipEvent (load) {
if (_root.boss.arm.gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1015 MovieClip Frame 386
_parent.bump1.gotoAndPlay("die");
_parent.bump2.gotoAndPlay("die");
_parent.arm.ropeDying = false;
stop();
Symbol 1015 MovieClip Frame 405
_root.b1_moveSmasherDown_started = false;
gotoAndPlay ("start2");
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1034 MovieClip Frame 1
arm.stop();
head.head1.stop();
Instance of Symbol 1015 MovieClip "arm" in Symbol 1034 MovieClip Frame 1
onClipEvent (load) {
var falling = false;
var fall_max = 20;
var fall_current = 0;
var fall_int = 2;
var fall_max2 = 30;
var fall_int2 = 3;
var y_def = 150.5;
var y_max = 500.5;
var y_def2 = 64.5;
var gotMoney = false;
var backToDef = false;
var back_wait_max = 10;
var back_wait = back_wait_max;
var goingUp = false;
var up_max = 15;
var up_current = 0;
var up_int = 1;
var up_max2 = 22.5;
var up_int2 = 2;
var ropeDying = false;
var hitHeadTimer = 0;
var hitHeadTimer_max = 60;
var hitHeadTimer_started = false;
var moveSmasherDown_int = 1;
var moveSmasherDown = 0;
var moveSmasherDown_max = 10;
var moveSmasherDown_ease = false;
var moveSmasherDown_first = false;
var ropeDieFall = -12.5;
var ropeDieFall_int = 0.75;
var anotherFrame = 209;
var anotherFrame2 = 375;
if (_root.b1_moveSmasherDown_started) {
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("another");
} else {
head.gotoAndStop(2);
this.gotoAndPlay("another2");
}
justHit = false;
_parent.bump1.gotoAndPlay("in");
_parent.bump2.gotoAndPlay("in");
if (_root.b1_hitHeadOnce) {
_parent.head.head1.head2.gotoAndStop(2);
}
orb1.gotoAndStop(1);
orb2.gotoAndStop(1);
orb3.gotoAndStop(1);
_root.smasher.bound_top = 189;
moveSmasherDown_first = true;
}
}
onClipEvent (enterFrame) {
if (_currentframe < anotherFrame2) {
if (((((!(((orb1._currentframe == 2) && (orb2._currentframe == 2)) && (orb3._currentframe == 2))) && (orb1 != undefined)) && (!ropeDying)) && (!_root.b1_moveSmasherDown_started)) && (!hitHeadTimer_started)) {
if (goingUp && (((!gotMoney) && (_y > y_def)) || (gotMoney && (_y > y_def2)))) {
if (((!_root.b1_hitHeadOnce) && (up_current < up_max)) || (_root.b1_hitHeadOnce && (up_current < up_max2))) {
if (!_root.b1_hitHeadOnce) {
up_current = up_current + up_int;
} else {
up_current = up_current + up_int2;
}
} else if (((!_root.b1_hitHeadOnce) && (up_current > up_max)) || (_root.b1_hitHeadOnce && (up_current > up_max2))) {
if (!_root.b1_hitHeadOnce) {
up_current = up_max;
} else {
up_current = up_max2;
}
}
_y = (_y - up_current);
fall_current = 0;
if ((!gotMoney) && (_y <= (y_def + 25))) {
up_current = up_current / 2;
}
if (gotMoney && (_y <= y_def2)) {
_y = y_def2;
goingUp = false;
backToDef = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndStop(1);
} else {
this.gotoAndStop("start2");
}
} else if ((!gotMoney) && (_y <= y_def)) {
_y = y_def;
goingUp = false;
gotMoney = false;
fall_current = 0;
up_current = 0;
falling = false;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
} else if (falling && (_y < y_max)) {
if (((!_root.b1_hitHeadOnce) && (fall_current < fall_max)) || (_root.b1_hitHeadOnce && (fall_current < fall_max2))) {
if (!_root.b1_hitHeadOnce) {
fall_current = fall_current + fall_int;
} else {
fall_current = fall_current + fall_int2;
}
} else if (((!_root.b1_hitHeadOnce) && (fall_current > fall_max)) || (_root.b1_hitHeadOnce && (fall_current > fall_max2))) {
if (!_root.b1_hitHeadOnce) {
fall_current = fall_max;
} else {
fall_current = fall_max2;
}
}
_y = (_y + fall_current);
if (_y >= y_max) {
_y = y_max;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("grab");
} else {
this.gotoAndPlay("grab2");
}
falling = false;
}
} else if (backToDef && (_y < y_def)) {
if (back_wait > 0) {
back_wait--;
} else {
_y = (_y + ((y_def - _y) * 0.2));
if (_y >= (y_def - 1)) {
_y = y_def;
gotMoney = false;
backToDef = false;
back_wait = back_wait_max;
fall_current = 0;
up_current = 0;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
}
}
}
if (((_root.smasher.hitTest(orb1) && (orb1._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb1.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
} else if (((_root.smasher.hitTest(orb2) && (orb2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb2.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
} else if (((_root.smasher.hitTest(orb3) && (orb3._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb3.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
}
if (((((orb1._currentframe == 2) && (orb2._currentframe == 2)) && (orb3._currentframe == 2)) && (!ropeDying)) && (!_root.b1_moveSmasherDown_started)) {
ropeDying = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("die");
} else {
this.gotoAndPlay("die2");
}
}
if (hitHeadTimer_started && (hitHeadTimer < hitHeadTimer_max)) {
hitHeadTimer++;
} else if (hitHeadTimer >= hitHeadTimer_max) {
_parent.play();
}
if ((((_root.smasher.hitTest(_parent.head.head1.head2) && (_parent.head.head1.head2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (!_root.b1_hitHeadOnce)) {
_root.b1_hitHeadOnce = true;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_parent.gotoAndPlay("hurt");
} else if (((_root.smasher.hitTest(_parent.head.head1.head2) && (_parent.head.head1.head2._currentframe == 2)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
hitHeadTimer = 0;
hitHeadTimer_started = false;
_parent.gotoAndPlay("dieBoss");
}
}
if (_root.b1_moveSmasherDown_started) {
if ((_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
if (moveSmasherDown < moveSmasherDown_max) {
moveSmasherDown = moveSmasherDown + moveSmasherDown_int;
}
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if ((_root.smasher._y >= (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
moveSmasherDown_ease = true;
}
if ((moveSmasherDown > 0) && (moveSmasherDown_ease)) {
moveSmasherDown = moveSmasherDown - moveSmasherDown_int;
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if (((moveSmasherDown <= 0) && (moveSmasherDown_ease)) && (((!_root.b1_hitHeadOnce) && (_currentframe < anotherFrame)) || (_root.b1_hitHeadOnce && (_currentframe < anotherFrame2)))) {
moveSmasherDown = 0;
moveSmasherDown_ease = false;
_root.b1_moveSmasherDown_started = false;
_root.smasher.moveReady = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
}
if (ropeDying && (fall_current > 0)) {
ropeDieFall = -1;
ropeDieFall_int = 1;
fall_current = 0;
}
if (ropeDying) {
ropeDieFall = ropeDieFall + ropeDieFall_int;
_y = (_y + ropeDieFall);
}
}
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1036 MovieClip Frame 44
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.smasher.bound_top = 189;
Instance of Symbol 217 MovieClip "bg2" in Symbol 1036 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher_bg._y - 300);
}
Instance of Symbol 341 MovieClip in Symbol 1036 MovieClip Frame 44
onClipEvent (load) {
if (_root.trumpFlipped) {
_xscale = -100;
}
}
Instance of Symbol 374 MovieClip "wheels2" in Symbol 1036 MovieClip Frame 44
onClipEvent (load) {
light.gotoAndStop(1);
_y = (_root.smasher_wheels._y - 300);
wheel1._rotation = _root.smasher_wheels.wheel1._rotation;
wheel2._rotation = _root.smasher_wheels.wheel2._rotation;
wheel3._rotation = _root.smasher_wheels.wheel3._rotation;
wheel4._rotation = _root.smasher_wheels.wheel4._rotation;
}
Instance of Symbol 425 MovieClip "smash2" in Symbol 1036 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher._y - 300);
}
Instance of Symbol 429 MovieClip "scoreBar" in Symbol 1036 MovieClip Frame 44
onClipEvent (load) {
scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
}
Symbol 1036 MovieClip Frame 52
if (!_root.mutedA) {
_root.music_current.setVolume(90);
}
Symbol 1036 MovieClip Frame 56
if (!_root.mutedA) {
_root.music_current.setVolume(80);
}
Symbol 1036 MovieClip Frame 60
if (!_root.mutedA) {
_root.music_current.setVolume(70);
}
Symbol 1036 MovieClip Frame 64
if (!_root.mutedA) {
_root.music_current.setVolume(60);
}
Symbol 1036 MovieClip Frame 68
if (!_root.mutedA) {
_root.music_current.setVolume(50);
}
Symbol 1036 MovieClip Frame 72
if (!_root.mutedA) {
_root.music_current.setVolume(40);
}
Symbol 1036 MovieClip Frame 76
if (!_root.mutedA) {
_root.music_current.setVolume(30);
}
Symbol 1036 MovieClip Frame 80
if (!_root.mutedA) {
_root.music_current.setVolume(20);
}
Symbol 1036 MovieClip Frame 84
if (!_root.mutedA) {
_root.music_current.setVolume(10);
}
Symbol 1036 MovieClip Frame 88
if (!_root.mutedA) {
_root.music_current.setVolume(0);
}
_root.smasher._y = 365;
_root.smasher_wheels._y = 368;
_root.smasher_bg._y = 337.7;
smash2._y = _root.smasher._y - 300;
wheels2._y = _root.smasher_wheels._y - 300;
bg2._y = _root.smasher_bg._y - 300;
Symbol 1036 MovieClip Frame 138
_root.gotoAndStop("l1b");
Symbol 1044 MovieClip Frame 1
arm.stop();
bump1.gotoAndPlay("in");
bump2.gotoAndPlay("in");
Symbol 1047 MovieClip Frame 1
boss.head.head1.stop();
boss.arm.stop();
boss.bump1.gotoAndPlay(2);
boss.bump2.gotoAndPlay(2);
Symbol 1047 MovieClip Frame 27
_root.smasher.moveReady = true;
_parent.gotoAndStop("main");
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 26
stop();
Symbol 1064 MovieClip Frame 47
_root.smasher.bound_top = 55;
_parent.arm.hitHeadTimer_started = true;
Symbol 1064 MovieClip Frame 67
stop();
Symbol 1096 MovieClip Frame 25
stop();
Symbol 1106 MovieClip Frame 31
stop();
Instance of Symbol 1144 MovieClip in Symbol 1145 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (20);
}
Symbol 1146 MovieClip Frame 1
stop();
Symbol 1146 MovieClip Frame 2
if (_root.b1_hitHeadOnce) {
arm.gotoAndPlay("another2");
head.gotoAndStop(2);
}
Instance of Symbol 1015 MovieClip "arm" in Symbol 1146 MovieClip Frame 2
onClipEvent (load) {
var falling = false;
var fall_max = 20;
var fall_current = 0;
var fall_int = 2;
var fall_max2 = 30;
var fall_int2 = 3;
var y_def = 150.5;
var y_max = 500.5;
var y_def2 = 64.5;
var gotMoney = false;
var backToDef = false;
var back_wait_max = 10;
var back_wait = back_wait_max;
var goingUp = false;
var up_max = 15;
var up_current = 0;
var up_int = 1;
var up_max2 = 22.5;
var up_int2 = 2;
var ropeDying = false;
var hitHeadTimer = 0;
var hitHeadTimer_max = 150;
var hitHeadTimer_started = false;
var moveSmasherDown_int = 1;
var moveSmasherDown = 0;
var moveSmasherDown_max = 10;
var moveSmasherDown_ease = false;
var moveSmasherDown_first = false;
var ropeDieFall = -12.5;
var ropeDieFall_int = 0.75;
var anotherFrame = 215;
var anotherFrame2 = 387;
if (_root.b1_moveSmasherDown_started) {
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("another");
} else {
head.gotoAndStop(2);
this.gotoAndPlay("another2");
}
justHit = false;
_parent.bump1.gotoAndPlay("in");
_parent.bump2.gotoAndPlay("in");
if (_root.b1_hitHeadOnce) {
_parent.head.head1.head2.gotoAndStop(2);
}
orb1.gotoAndStop(1);
orb2.gotoAndStop(1);
orb3.gotoAndStop(1);
_root.smasher.bound_top = 189;
moveSmasherDown_first = true;
}
}
onClipEvent (enterFrame) {
if (_currentframe < anotherFrame2) {
if (((((!(((orb1._currentframe == 2) && (orb2._currentframe == 2)) && (orb3._currentframe == 2))) && (orb1 != undefined)) && (!ropeDying)) && (!_root.b1_moveSmasherDown_started)) && (!hitHeadTimer_started)) {
if (goingUp && (((!gotMoney) && (_y > y_def)) || (gotMoney && (_y > y_def2)))) {
if (((!_root.b1_hitHeadOnce) && (up_current < up_max)) || (_root.b1_hitHeadOnce && (up_current < up_max2))) {
if (!_root.b1_hitHeadOnce) {
up_current = up_current + up_int;
} else {
up_current = up_current + up_int2;
}
} else if (((!_root.b1_hitHeadOnce) && (up_current > up_max)) || (_root.b1_hitHeadOnce && (up_current > up_max2))) {
if (!_root.b1_hitHeadOnce) {
up_current = up_max;
} else {
up_current = up_max2;
}
}
_y = (_y - up_current);
fall_current = 0;
if ((!gotMoney) && (_y <= (y_def + 25))) {
up_current = up_current / 2;
}
if (gotMoney && (_y <= y_def2)) {
_y = y_def2;
goingUp = false;
backToDef = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndStop(1);
} else {
this.gotoAndStop("start2");
}
} else if ((!gotMoney) && (_y <= y_def)) {
_y = y_def;
goingUp = false;
gotMoney = false;
fall_current = 0;
up_current = 0;
falling = false;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
} else if (falling && (_y < y_max)) {
if (((!_root.b1_hitHeadOnce) && (fall_current < fall_max)) || (_root.b1_hitHeadOnce && (fall_current < fall_max2))) {
if (!_root.b1_hitHeadOnce) {
fall_current = fall_current + fall_int;
} else {
fall_current = fall_current + fall_int2;
}
} else if (((!_root.b1_hitHeadOnce) && (fall_current > fall_max)) || (_root.b1_hitHeadOnce && (fall_current > fall_max2))) {
if (!_root.b1_hitHeadOnce) {
fall_current = fall_max;
} else {
fall_current = fall_max2;
}
}
_y = (_y + fall_current);
if (_y >= y_max) {
_y = y_max;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("grab");
} else {
this.gotoAndPlay("grab2");
}
falling = false;
}
} else if (backToDef && (_y < y_def)) {
if (back_wait > 0) {
back_wait--;
} else {
_y = (_y + ((y_def - _y) * 0.2));
if (_y >= (y_def - 1)) {
_y = y_def;
gotMoney = false;
backToDef = false;
back_wait = back_wait_max;
fall_current = 0;
up_current = 0;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
}
}
}
if (((_root.smasher.hit.hitTest(orb1) && (orb1._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb1.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
} else if (((_root.smasher.hit.hitTest(orb2) && (orb2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb2.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
} else if (((_root.smasher.hit.hitTest(orb3) && (orb3._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
orb3.gotoAndStop(2);
goingUp = true;
falling = false;
if (!gotMoney) {
up_current = -5;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("shut");
} else {
this.gotoAndPlay("shut2");
}
}
}
if (((((orb1._currentframe == 2) && (orb2._currentframe == 2)) && (orb3._currentframe == 2)) && (!ropeDying)) && (!_root.b1_moveSmasherDown_started)) {
ropeDying = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay("die");
} else {
this.gotoAndPlay("die2");
}
}
if (hitHeadTimer_started && (hitHeadTimer < hitHeadTimer_max)) {
hitHeadTimer++;
} else if (hitHeadTimer >= hitHeadTimer_max) {
_parent.play();
}
if ((((_root.smasher.hit.hitTest(_parent.head.head1.head2) && (_parent.head.head1.head2._currentframe == 1)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) && (!_root.b1_hitHeadOnce)) {
_root.b1_hitHeadOnce = true;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_parent.gotoAndPlay("hurt");
} else if (((_root.smasher.hit.hitTest(_parent.head.head1.head2) && (_parent.head.head1.head2._currentframe == 2)) && (_root.smasher._currentframe > 1)) && (_root.smasher._currentframe < 10)) {
hitHeadTimer = 0;
hitHeadTimer_started = false;
_parent.gotoAndPlay("dieBoss");
}
}
if (_root.b1_moveSmasherDown_started) {
if ((_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
if (moveSmasherDown < moveSmasherDown_max) {
moveSmasherDown = moveSmasherDown + moveSmasherDown_int;
}
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if ((_root.smasher._y >= (_root.smasher.bound_top + (_root.smasher._height / 2))) && (!moveSmasherDown_ease)) {
moveSmasherDown_ease = true;
}
if ((moveSmasherDown > 0) && (moveSmasherDown_ease)) {
moveSmasherDown = moveSmasherDown - moveSmasherDown_int;
_root.smasher._y = _root.smasher._y + moveSmasherDown;
_root.smasher_wheels._y = _root.smasher_wheels._y + moveSmasherDown;
_root.smasher_bg._y = _root.smasher_bg._y + moveSmasherDown;
} else if (((moveSmasherDown <= 0) && (moveSmasherDown_ease)) && (((!_root.b1_hitHeadOnce) && (_currentframe < anotherFrame)) || (_root.b1_hitHeadOnce && (_currentframe < anotherFrame2)))) {
moveSmasherDown = 0;
moveSmasherDown_ease = false;
_root.b1_moveSmasherDown_started = false;
_root.smasher.moveReady = true;
if (!_root.b1_hitHeadOnce) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay("start2");
}
}
}
if (ropeDying && (fall_current > 0)) {
ropeDieFall = -1;
ropeDieFall_int = 1;
fall_current = 0;
}
if (ropeDying) {
ropeDieFall = ropeDieFall + ropeDieFall_int;
clawPiece._y = clawPiece._y + ropeDieFall;
}
}
Symbol 1146 MovieClip Frame 4
_root.b1_moveSmasherDown_started = true;
if (_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
}
gotoAndStop ("main");
Symbol 1146 MovieClip Frame 35
_root.b1_moveSmasherDown_started = true;
if (_root.smasher._y < (_root.smasher.bound_top + (_root.smasher._height / 2))) {
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
}
gotoAndStop ("main");
Symbol 1146 MovieClip Frame 163
if (!_root.mutedA) {
_root.music_current.setVolume(90);
}
Symbol 1146 MovieClip Frame 167
if (!_root.mutedA) {
_root.music_current.setVolume(80);
}
Symbol 1146 MovieClip Frame 171
if (!_root.mutedA) {
_root.music_current.setVolume(70);
}
Symbol 1146 MovieClip Frame 175
if (!_root.mutedA) {
_root.music_current.setVolume(60);
}
Symbol 1146 MovieClip Frame 179
if (!_root.mutedA) {
_root.music_current.setVolume(50);
}
Symbol 1146 MovieClip Frame 180
_root.trump.gotoAndPlay("cheer");
Symbol 1146 MovieClip Frame 183
if (!_root.mutedA) {
_root.music_current.setVolume(40);
}
Symbol 1146 MovieClip Frame 187
if (!_root.mutedA) {
_root.music_current.setVolume(30);
}
Symbol 1146 MovieClip Frame 191
if (!_root.mutedA) {
_root.music_current.setVolume(20);
}
Symbol 1146 MovieClip Frame 195
if (!_root.mutedA) {
_root.music_current.setVolume(10);
}
Symbol 1146 MovieClip Frame 199
if (!_root.mutedA) {
_root.music_current.setVolume(0);
}
Symbol 1146 MovieClip Frame 240
_root.gotoAndStop("l2");
Symbol 1183 MovieClip Frame 1
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1198 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1198 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1198 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1204 MovieClip Frame 1
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1204 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1204 MovieClip Frame 81
_root.boss.rope_falling = true;
Symbol 1204 MovieClip Frame 97
stop();
Symbol 1204 MovieClip Frame 102
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1204 MovieClip Frame 112
stop();
_root.boss.rope_goingUp = true;
Symbol 1204 MovieClip Frame 113
play();
Symbol 1204 MovieClip Frame 119
gotoAndStop (1);
Symbol 1204 MovieClip Frame 120
play();
Instance of Symbol 1183 MovieClip "clawPiece" in Symbol 1204 MovieClip Frame 120
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1204 MovieClip Frame 166
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1204 MovieClip Frame 167
play();
Symbol 1204 MovieClip Frame 187
if (_root.boss._currentframe == 1) {
gotoAndStop (1);
} else {
stop();
}
Symbol 1204 MovieClip Frame 189
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1204 MovieClip Frame 189
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1204 MovieClip Frame 189
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1204 MovieClip Frame 189
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1204 MovieClip Frame 254
_root.boss.rope_falling = true;
Symbol 1204 MovieClip Frame 267
stop();
Symbol 1204 MovieClip Frame 272
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1204 MovieClip Frame 282
stop();
_root.boss.rope_goingUp = true;
Symbol 1204 MovieClip Frame 283
play();
Symbol 1204 MovieClip Frame 288
gotoAndStop ("start2");
Symbol 1204 MovieClip Frame 289
play();
Instance of Symbol 1183 MovieClip "clawPiece" in Symbol 1204 MovieClip Frame 289
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1204 MovieClip Frame 335
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1204 MovieClip Frame 336
play();
Symbol 1204 MovieClip Frame 356
if (_root.boss._currentframe == 1) {
gotoAndStop ("start2");
} else {
stop();
}
Symbol 1204 MovieClip Frame 358
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1204 MovieClip Frame 358
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1204 MovieClip Frame 358
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1204 MovieClip Frame 358
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1204 MovieClip Frame 408
_root.boss.rope_falling = true;
Symbol 1204 MovieClip Frame 418
stop();
Symbol 1204 MovieClip Frame 423
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1204 MovieClip Frame 433
stop();
_root.boss.rope_goingUp = true;
Symbol 1204 MovieClip Frame 434
play();
Symbol 1204 MovieClip Frame 438
gotoAndStop ("start3");
Symbol 1204 MovieClip Frame 439
play();
Instance of Symbol 1183 MovieClip "clawPiece" in Symbol 1204 MovieClip Frame 439
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1204 MovieClip Frame 485
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1204 MovieClip Frame 486
play();
Symbol 1204 MovieClip Frame 506
if (_root.boss._currentframe == 1) {
gotoAndStop ("start3");
} else {
stop();
}
Symbol 1214 MovieClip Frame 1
stop();
Symbol 1214 MovieClip Frame 31
stop();
Symbol 1214 MovieClip Frame 48
_root.smasher.bound_top = 55;
_root.boss.hitHeadTimer_started = true;
Symbol 1214 MovieClip Frame 68
stop();
Symbol 1216 MovieClip Frame 50
stop();
Symbol 1226 MovieClip Frame 1
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 1226 MovieClip Frame 48
stop();
Symbol 1226 MovieClip Frame 59
stop();
Symbol 1226 MovieClip Frame 69
play();
Symbol 1226 MovieClip Frame 77
gotoAndStop (59);
Symbol 1226 MovieClip Frame 87
play();
Symbol 1226 MovieClip Frame 96
gotoAndStop ("choose");
Symbol 1226 MovieClip Frame 140
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 141
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 1225 MovieClip "armHurt" in Symbol 1226 MovieClip Frame 141
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(_root.score2);
this.gotoAndStop(3);
}
}
Symbol 1226 MovieClip Frame 175
stop();
Symbol 1226 MovieClip Frame 176
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 176
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 1226 MovieClip Frame 211
stop();
Symbol 1226 MovieClip Frame 222
stop();
Symbol 1226 MovieClip Frame 232
play();
Symbol 1226 MovieClip Frame 240
gotoAndStop (222);
Symbol 1226 MovieClip Frame 250
play();
Symbol 1226 MovieClip Frame 259
gotoAndStop ("choose2");
Symbol 1226 MovieClip Frame 303
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 304
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 1225 MovieClip "armHurt" in Symbol 1226 MovieClip Frame 304
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(_root.score2);
this.gotoAndStop(3);
}
}
Symbol 1226 MovieClip Frame 338
stop();
Symbol 1226 MovieClip Frame 339
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 339
onClipEvent (load) {
this.gotoAndStop(1);
}
Symbol 1226 MovieClip Frame 362
stop();
Symbol 1226 MovieClip Frame 373
stop();
Symbol 1226 MovieClip Frame 383
play();
Symbol 1226 MovieClip Frame 391
gotoAndStop (373);
Symbol 1226 MovieClip Frame 401
play();
Symbol 1226 MovieClip Frame 410
gotoAndStop ("choose3");
Symbol 1226 MovieClip Frame 454
stop();
Instance of Symbol 1216 MovieClip in Symbol 1226 MovieClip Frame 455
onClipEvent (load) {
this.gotoAndPlay(1);
}
Instance of Symbol 1225 MovieClip "armHurt" in Symbol 1226 MovieClip Frame 455
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(_root.score2);
this.gotoAndStop(3);
}
}
Symbol 1226 MovieClip Frame 489
stop();
Symbol 1230 MovieClip Frame 1
stop();
Symbol 1235 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 1
head2.gotoAndStop(1);
Symbol 1248 MovieClip Frame 1
head2.gotoAndStop(2);
Symbol 1249 MovieClip Frame 1
head2.gotoAndStop(3);
Symbol 1250 MovieClip Frame 1
stop();
Symbol 1280 MovieClip Frame 25
stop();
Symbol 1285 MovieClip Frame 1
stop();
Instance of Symbol 1250 MovieClip "head" in Symbol 1285 MovieClip Frame 1
onClipEvent (load) {
if (_root.boss.currentRound == 1) {
this.gotoAndStop(1);
} else if (_root.boss.currentRound == 2) {
this.gotoAndStop(2);
} else if (_root.boss.currentRound == 3) {
this.gotoAndStop(3);
}
}
Symbol 1285 MovieClip Frame 20
_root.b2_moveSmasherDown_started = true;
_root.boss.currentRound = 2;
_root.boss.claws_speed = 7.5;
_root.boss.claws_fallSpeed_int = 1.5;
_root.boss.claws_1_start = 176;
_root.boss.claws_1_choose = 211;
_root.boss.claws_1_realGrab = 212;
_root.boss.claws_1_grab = 215;
_root.boss.claws_1_endGrab = 222;
_root.boss.claws_1_hurt2 = 232;
_root.boss.claws_1_endHurt2 = 249;
_root.boss.claws_1_hurt1 = 250;
_root.boss.claws_1_endHurt1 = 269;
_root.boss.claws_1_put = 270;
_root.boss.claws_1_endPut = 303;
_root.boss.claws_1_die = 304;
_root.boss.claws_1_endDie = 338;
_root.boss.rope_fall_max = 30;
_root.boss.rope_fall_int = 3;
_root.boss.rope_up_max = 20;
_root.boss.rope_up_int = 1.5;
_root.boss.rope_ropeDieFall = -15;
_root.boss.rope_ropeDieFall_int = 1;
_root.boss.rope_startFrame = 189;
_root.boss.rope_grabFrame = 268;
_root.boss.rope_dieFrame = 289;
_root.boss.rope_anotherFrame = 336;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.boss.moveSmasherDown_ease = false;
_root.boss.moveSmasherDown = 0;
_root.boss.hitHeadTimer = 0;
_root.boss.hitHeadTimer_started = false;
_root.smasher.bound_top = 189;
if (_root.boss.bump1._currentframe == _root.boss.bump1._totalframes) {
_root.boss.bump1.gotoAndPlay(2);
}
if (_root.boss.bump2._currentframe == _root.boss.bump2._totalframes) {
_root.boss.bump2.gotoAndPlay(2);
}
if (_root.boss.claw1._currentframe == 1) {
_root.boss.claw1.gotoAndPlay("enter");
}
if (_root.boss.claw2._currentframe == 1) {
_root.boss.claw2.gotoAndPlay("enter");
}
if (_root.boss.currentRound == 1) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another");
} else if (_root.boss.currentRound == 2) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another2");
} else {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another3");
}
gotoAndStop ("main");
Symbol 1285 MovieClip Frame 39
_root.b2_moveSmasherDown_started = true;
_root.boss.currentRound = 3;
_root.boss.claws_speed = 10;
_root.boss.claws_fallSpeed_int = 2;
_root.boss.claws_1_start = 339;
_root.boss.claws_1_choose = 362;
_root.boss.claws_1_realGrab = 363;
_root.boss.claws_1_grab = 366;
_root.boss.claws_1_endGrab = 373;
_root.boss.claws_1_hurt2 = 383;
_root.boss.claws_1_endHurt2 = 400;
_root.boss.claws_1_hurt1 = 401;
_root.boss.claws_1_endHurt1 = 420;
_root.boss.claws_1_put = 421;
_root.boss.claws_1_endPut = 454;
_root.boss.claws_1_die = 455;
_root.boss.claws_1_endDie = 489;
_root.boss.rope_fall_max = 40;
_root.boss.rope_fall_int = 4;
_root.boss.rope_up_max = 25;
_root.boss.rope_up_int = 2;
_root.boss.rope_ropeDieFall = -20;
_root.boss.rope_ropeDieFall_int = 1.5;
_root.boss.rope_startFrame = 358;
_root.boss.rope_grabFrame = 419;
_root.boss.rope_dieFrame = 439;
_root.boss.rope_anotherFrame = 486;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.boss.moveSmasherDown_ease = false;
_root.boss.moveSmasherDown = 0;
_root.boss.hitHeadTimer = 0;
_root.boss.hitHeadTimer_started = false;
_root.smasher.bound_top = 189;
if (_root.boss.bump1._currentframe == _root.boss.bump1._totalframes) {
_root.boss.bump1.gotoAndPlay(2);
}
if (_root.boss.bump2._currentframe == _root.boss.bump2._totalframes) {
_root.boss.bump2.gotoAndPlay(2);
}
if (_root.boss.claw1._currentframe == 1) {
_root.boss.claw1.gotoAndPlay("enter");
}
if (_root.boss.claw2._currentframe == 1) {
_root.boss.claw2.gotoAndPlay("enter");
}
if (_root.boss.currentRound == 1) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another");
} else if (_root.boss.currentRound == 2) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another2");
} else {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another3");
}
gotoAndStop ("main");
Instance of Symbol 366 MovieClip "wheel1" in Symbol 1285 MovieClip Frame 76
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel2" in Symbol 1285 MovieClip Frame 76
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel2" in Symbol 1285 MovieClip Frame 76
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Instance of Symbol 366 MovieClip "wheel2" in Symbol 1285 MovieClip Frame 78
onClipEvent (enterFrame) {
this._rotation = this._rotation + (_root.spd * 4);
}
Symbol 1285 MovieClip Frame 117
if (!_root.mutedA) {
_root.music_current.setVolume(90);
}
Symbol 1285 MovieClip Frame 121
if (!_root.mutedA) {
_root.music_current.setVolume(80);
}
Symbol 1285 MovieClip Frame 125
if (!_root.mutedA) {
_root.music_current.setVolume(70);
}
Symbol 1285 MovieClip Frame 129
if (!_root.mutedA) {
_root.music_current.setVolume(60);
}
Symbol 1285 MovieClip Frame 133
if (!_root.mutedA) {
_root.music_current.setVolume(50);
}
Symbol 1285 MovieClip Frame 136
_root.trump.gotoAndPlay("cheer");
Symbol 1285 MovieClip Frame 137
if (!_root.mutedA) {
_root.music_current.setVolume(40);
}
Symbol 1285 MovieClip Frame 141
if (!_root.mutedA) {
_root.music_current.setVolume(30);
}
Symbol 1285 MovieClip Frame 145
if (!_root.mutedA) {
_root.music_current.setVolume(20);
}
Symbol 1285 MovieClip Frame 149
if (!_root.mutedA) {
_root.music_current.setVolume(10);
}
Symbol 1285 MovieClip Frame 153
if (!_root.mutedA) {
_root.music_current.setVolume(0);
}
Symbol 1285 MovieClip Frame 174
stop();
_root.gotoAndStop("l3");
Symbol 1289 MovieClip Frame 1
stop();
Symbol 1289 MovieClip Frame 43
if (_root._currentframe != 6) {
stop();
}
Symbol 1289 MovieClip Frame 44
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.smasher.bound_top = 189;
Instance of Symbol 217 MovieClip "bg2" in Symbol 1289 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher_bg._y - 299);
}
Instance of Symbol 341 MovieClip in Symbol 1289 MovieClip Frame 44
onClipEvent (load) {
if (_root.trumpFlipped) {
_xscale = -100;
}
}
Instance of Symbol 374 MovieClip "wheels2" in Symbol 1289 MovieClip Frame 44
onClipEvent (load) {
light.gotoAndStop(1);
_y = (_root.smasher_wheels._y - 299);
wheel1._rotation = _root.smasher_wheels.wheel1._rotation;
wheel2._rotation = _root.smasher_wheels.wheel2._rotation;
wheel3._rotation = _root.smasher_wheels.wheel3._rotation;
wheel4._rotation = _root.smasher_wheels.wheel4._rotation;
}
Instance of Symbol 425 MovieClip "smash2" in Symbol 1289 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher._y - 299);
}
Instance of Symbol 429 MovieClip "scoreBar" in Symbol 1289 MovieClip Frame 44
onClipEvent (load) {
scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
}
Symbol 1289 MovieClip Frame 52
if (!_root.mutedA) {
_root.music_current.setVolume(90);
}
Symbol 1289 MovieClip Frame 56
if (!_root.mutedA) {
_root.music_current.setVolume(80);
}
Symbol 1289 MovieClip Frame 60
if (!_root.mutedA) {
_root.music_current.setVolume(70);
}
Symbol 1289 MovieClip Frame 64
if (!_root.mutedA) {
_root.music_current.setVolume(60);
}
Symbol 1289 MovieClip Frame 68
if (!_root.mutedA) {
_root.music_current.setVolume(50);
}
Symbol 1289 MovieClip Frame 72
if (!_root.mutedA) {
_root.music_current.setVolume(40);
}
Symbol 1289 MovieClip Frame 76
if (!_root.mutedA) {
_root.music_current.setVolume(30);
}
Symbol 1289 MovieClip Frame 80
if (!_root.mutedA) {
_root.music_current.setVolume(20);
}
Symbol 1289 MovieClip Frame 84
if (!_root.mutedA) {
_root.music_current.setVolume(10);
}
Symbol 1289 MovieClip Frame 88
if (!_root.mutedA) {
_root.music_current.setVolume(0);
}
_root.smasher._y = 365;
_root.smasher_wheels._y = 368;
_root.smasher_bg._y = 337.7;
smash2._y = _root.smasher._y - 300;
wheels2._y = _root.smasher_wheels._y - 300;
bg2._y = _root.smasher_bg._y - 300;
Symbol 1289 MovieClip Frame 151
_root.gotoAndStop("l2b");
Symbol 1289 MovieClip Frame 152
stop();
Symbol 1312 MovieClip Frame 1
stop();
Symbol 1312 MovieClip Frame 23
_root.smasher.gotoAndPlay("stunned");
_root.smasher_wheels.light.gotoAndPlay("off");
Symbol 1312 MovieClip Frame 37
gotoAndStop (1);
Symbol 1312 MovieClip Frame 39
_root.boss.hitHeadTimer_started = true;
Symbol 1312 MovieClip Frame 49
stop();
_root.boss.hitHeadTimer_started = true;
Symbol 1318 MovieClip Frame 1
stop();
Symbol 1318 MovieClip Frame 2
play();
Symbol 1318 MovieClip Frame 3
play();
Symbol 1322 MovieClip Frame 1
stop();
Symbol 1322 MovieClip Frame 2
play();
Symbol 1322 MovieClip Frame 3
play();
Symbol 1328 MovieClip Frame 1
stop();
Symbol 1328 MovieClip Frame 2
play();
Symbol 1328 MovieClip Frame 3
play();
Symbol 1332 MovieClip Frame 1
stop();
Symbol 1332 MovieClip Frame 2
play();
Symbol 1332 MovieClip Frame 3
play();
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 2
play();
Symbol 1338 MovieClip Frame 3
play();
Symbol 1339 MovieClip Frame 1
stop();
Symbol 1339 MovieClip Frame 65
gotoAndPlay ("replay");
Symbol 1349 MovieClip Frame 1
stop();
Symbol 1352 MovieClip Frame 1
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1352 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1352 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1352 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1352 MovieClip Frame 96
_root.boss.rope_falling = true;
Symbol 1352 MovieClip Frame 112
stop();
Symbol 1352 MovieClip Frame 117
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1352 MovieClip Frame 127
stop();
_root.boss.rope_goingUp = true;
Symbol 1352 MovieClip Frame 128
play();
Symbol 1352 MovieClip Frame 134
gotoAndStop (1);
Symbol 1352 MovieClip Frame 135
play();
Instance of Symbol 1349 MovieClip "clawPiece" in Symbol 1352 MovieClip Frame 135
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1352 MovieClip Frame 181
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1352 MovieClip Frame 182
play();
Symbol 1352 MovieClip Frame 202
if (_root.boss._currentframe == 1) {
gotoAndStop (1);
} else {
stop();
}
Symbol 1352 MovieClip Frame 204
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1352 MovieClip Frame 204
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1352 MovieClip Frame 204
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1352 MovieClip Frame 204
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1352 MovieClip Frame 279
_root.boss.rope_falling = true;
Symbol 1352 MovieClip Frame 291
stop();
Symbol 1352 MovieClip Frame 296
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1352 MovieClip Frame 306
stop();
_root.boss.rope_goingUp = true;
Symbol 1352 MovieClip Frame 307
play();
Symbol 1352 MovieClip Frame 313
gotoAndStop ("start2");
Symbol 1352 MovieClip Frame 314
play();
Instance of Symbol 1349 MovieClip "clawPiece" in Symbol 1352 MovieClip Frame 314
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1352 MovieClip Frame 360
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1352 MovieClip Frame 361
play();
Symbol 1352 MovieClip Frame 381
if (_root.boss._currentframe == 1) {
gotoAndStop ("start2");
} else {
stop();
}
Symbol 1352 MovieClip Frame 383
stop();
Instance of Symbol 1176 MovieClip "elec3" in Symbol 1352 MovieClip Frame 383
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec2" in Symbol 1352 MovieClip Frame 383
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Instance of Symbol 1176 MovieClip "elec1" in Symbol 1352 MovieClip Frame 383
onClipEvent (load) {
gotoAndPlay(random(21) + 1);
}
Symbol 1352 MovieClip Frame 438
_root.boss.rope_falling = true;
Symbol 1352 MovieClip Frame 446
stop();
Symbol 1352 MovieClip Frame 450
_root.boss.rope_gotMoney = true;
_root.modScore(-1 * _root.score2);
_root.trump.gotoAndPlay("curse");
_root.trumpFlipped = false;
_root.trump._xscale = 100;
Symbol 1352 MovieClip Frame 459
stop();
_root.boss.rope_goingUp = true;
Symbol 1352 MovieClip Frame 460
play();
Symbol 1352 MovieClip Frame 466
gotoAndStop ("start3");
Symbol 1352 MovieClip Frame 467
play();
Instance of Symbol 1349 MovieClip "clawPiece" in Symbol 1352 MovieClip Frame 467
onClipEvent (load) {
if (_root.boss.rope_gotMoney) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 2)) {
_root.modScore(_root.score2);
nextFrame();
}
}
Symbol 1352 MovieClip Frame 513
_root.boss.rope_ropeDying = false;
_root.boss.rope_init = false;
_root.boss.chooseState();
stop();
Symbol 1352 MovieClip Frame 514
play();
Symbol 1352 MovieClip Frame 534
if (_root.boss._currentframe == 1) {
gotoAndStop ("start3");
} else {
stop();
}
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1368 MovieClip Frame 1
stop();
Symbol 1368 MovieClip Frame 39
stop();
Symbol 1368 MovieClip Frame 52
stop();
Symbol 1368 MovieClip Frame 56
play();
Symbol 1368 MovieClip Frame 66
gotoAndStop ("choose");
Symbol 1368 MovieClip Frame 67
play();
Symbol 1368 MovieClip Frame 77
gotoAndStop (52);
Symbol 1368 MovieClip Frame 111
stop();
Instance of Symbol 1365 MovieClip "armHurt" in Symbol 1368 MovieClip Frame 112
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(10000);
this.gotoAndStop(3);
}
}
Symbol 1368 MovieClip Frame 146
stop();
Symbol 1368 MovieClip Frame 147
stop();
Symbol 1368 MovieClip Frame 177
stop();
Symbol 1368 MovieClip Frame 190
stop();
Symbol 1368 MovieClip Frame 194
play();
Symbol 1368 MovieClip Frame 203
gotoAndStop ("choose2");
Symbol 1368 MovieClip Frame 204
play();
Symbol 1368 MovieClip Frame 213
gotoAndStop (190);
Symbol 1368 MovieClip Frame 247
stop();
Instance of Symbol 1365 MovieClip "armHurt" in Symbol 1368 MovieClip Frame 248
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(10000);
this.gotoAndStop(3);
}
}
Symbol 1368 MovieClip Frame 282
stop();
Symbol 1368 MovieClip Frame 283
stop();
Symbol 1368 MovieClip Frame 303
stop();
Symbol 1368 MovieClip Frame 315
stop();
Symbol 1368 MovieClip Frame 319
play();
Symbol 1368 MovieClip Frame 328
gotoAndStop ("choose3");
Symbol 1368 MovieClip Frame 329
play();
Symbol 1368 MovieClip Frame 338
gotoAndStop (315);
Symbol 1368 MovieClip Frame 372
stop();
Instance of Symbol 1365 MovieClip "armHurt" in Symbol 1368 MovieClip Frame 373
onClipEvent (enterFrame) {
if (hitTest(_root.enemies.bottomHit) && (_currentframe == 1)) {
_root.modScore(10000);
this.gotoAndStop(3);
}
}
Symbol 1368 MovieClip Frame 407
stop();
Symbol 1372 MovieClip Frame 1
stop();
Symbol 1391 MovieClip Frame 1
stop();
Symbol 1392 MovieClip Frame 1
head2.gotoAndStop(1);
Instance of Symbol 1391 MovieClip "head2" in Symbol 1392 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.boss.currentRound);
}
Symbol 1393 MovieClip Frame 1
head2.gotoAndStop(2);
Instance of Symbol 1391 MovieClip "head2" in Symbol 1393 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.boss.currentRound);
}
Symbol 1394 MovieClip Frame 1
head2.gotoAndStop(3);
Instance of Symbol 1391 MovieClip "head2" in Symbol 1394 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.boss.currentRound);
}
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1421 MovieClip Frame 1
stop();
Symbol 1421 MovieClip Frame 15
_root.b3_moveSmasherDown_started = true;
_root.boss.currentRound = 2;
_root.smasher.bound_top = 189;
_root.boss.claws_speed = 7.5;
_root.boss.claws_fallSpeed_int = 1.5;
_root.boss.claws_1_start = 147;
_root.boss.claws_1_choose = 177;
_root.boss.claws_1_realGrab = 178;
_root.boss.claws_1_grab = 182;
_root.boss.claws_1_endGrab = 190;
_root.boss.claws_1_hurt1 = 194;
_root.boss.claws_1_endHurt1 = 203;
_root.boss.claws_1_hurt2 = 204;
_root.boss.claws_1_endHurt2 = 213;
_root.boss.claws_1_put = 214;
_root.boss.claws_1_endPut = 247;
_root.boss.claws_1_die = 248;
_root.boss.claws_1_endDie = 282;
_root.boss.rope_fall_max = 30;
_root.boss.rope_fall_int = 3;
_root.boss.rope_up_max = 20;
_root.boss.rope_up_int = 1.5;
_root.boss.rope_ropeDieFall = -15;
_root.boss.rope_ropeDieFall_int = 1;
_root.boss.rope_startFrame = 204;
_root.boss.rope_grabFrame = 292;
_root.boss.rope_dieFrame = 314;
_root.boss.rope_anotherFrame = 361;
_root.boss.vac_fall_int = 0.65;
_root.boss.vac_speed_max = 6.5;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.boss.moveSmasherDown_ease = false;
_root.boss.moveSmasherDown = 0;
_root.boss.hitHeadTimer = 0;
_root.boss.hitHeadTimer_started = false;
if (taser._currentframe == 49) {
taser.gotoAndPlay("on");
}
if (_root.boss.claw1._currentframe == 1) {
_root.boss.claw1.gotoAndPlay("enter");
}
if (_root.boss.claw2._currentframe == 1) {
_root.boss.claw2.gotoAndPlay("enter");
}
if (_root.boss.currentRound == 1) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another");
} else if (_root.boss.currentRound == 2) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another2");
} else {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another3");
}
gotoAndStop ("main");
Symbol 1421 MovieClip Frame 35
_root.b3_moveSmasherDown_started = true;
_root.boss.currentRound = 3;
_root.smasher.bound_top = 189;
_root.boss.claws_speed = 10;
_root.boss.claws_fallSpeed_int = 2;
_root.boss.claws_1_start = 283;
_root.boss.claws_1_choose = 303;
_root.boss.claws_1_realGrab = 304;
_root.boss.claws_1_grab = 307;
_root.boss.claws_1_endGrab = 315;
_root.boss.claws_1_hurt1 = 319;
_root.boss.claws_1_endHurt1 = 328;
_root.boss.claws_1_hurt2 = 329;
_root.boss.claws_1_endHurt2 = 338;
_root.boss.claws_1_put = 339;
_root.boss.claws_1_endPut = 372;
_root.boss.claws_1_die = 373;
_root.boss.claws_1_endDie = 407;
_root.boss.rope_fall_max = 40;
_root.boss.rope_fall_int = 4;
_root.boss.rope_up_max = 25;
_root.boss.rope_up_int = 2;
_root.boss.rope_ropeDieFall = -20;
_root.boss.rope_ropeDieFall_int = 1.5;
_root.boss.rope_startFrame = 383;
_root.boss.rope_grabFrame = 447;
_root.boss.rope_dieFrame = 467;
_root.boss.rope_anotherFrame = 514;
_root.boss.vac_fall_int = 0.8;
_root.boss.vac_speed_max = 8;
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
_root.boss.moveSmasherDown_ease = false;
_root.boss.moveSmasherDown = 0;
_root.boss.hitHeadTimer = 0;
_root.boss.hitHeadTimer_started = false;
if (taser._currentframe == 49) {
taser.gotoAndPlay("on");
}
if (_root.boss.claw1._currentframe == 1) {
_root.boss.claw1.gotoAndPlay("enter");
}
if (_root.boss.claw2._currentframe == 1) {
_root.boss.claw2.gotoAndPlay("enter");
}
if (_root.boss.currentRound == 1) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another");
} else if (_root.boss.currentRound == 2) {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another2");
} else {
_root.boss.arm._y = _root.boss.rope_y_def;
_root.boss.arm.gotoAndPlay("another3");
}
gotoAndStop ("main");
Symbol 1421 MovieClip Frame 130
_root.saveData.data.gotClassic = true;
_root.saveData.data.medal_beatGame = true;
com.newgrounds.API.unlockMedal("Triumphant Trump");
if (_root.score >= 100000000000) {
_root.saveData.data.medal_beatMoney = true;
com.newgrounds.API.unlockMedal("Trumped-Up");
}
_root.saveData.flush();
Symbol 1421 MovieClip Frame 167
_root.smasher.moveReady = false;
stop();
_root.outroCut.gotoAndPlay(2);
Symbol 1422 MovieClip Frame 1
stop();
Symbol 1422 MovieClip Frame 43
if (_root._currentframe != 8) {
stop();
}
Symbol 1422 MovieClip Frame 44
_root.smasher.moveReady = false;
_root.smasher.speed_cur = 0;
Instance of Symbol 217 MovieClip "bg2" in Symbol 1422 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher_bg._y - 300);
}
Instance of Symbol 341 MovieClip in Symbol 1422 MovieClip Frame 44
onClipEvent (load) {
if (_root.trumpFlipped) {
_xscale = -100;
}
}
Instance of Symbol 374 MovieClip "wheels2" in Symbol 1422 MovieClip Frame 44
onClipEvent (load) {
light.gotoAndStop(1);
_y = (_root.smasher_wheels._y - 300);
wheel1._rotation = _root.smasher_wheels.wheel1._rotation;
wheel2._rotation = _root.smasher_wheels.wheel2._rotation;
wheel3._rotation = _root.smasher_wheels.wheel3._rotation;
wheel4._rotation = _root.smasher_wheels.wheel4._rotation;
}
Instance of Symbol 425 MovieClip "smash2" in Symbol 1422 MovieClip Frame 44
onClipEvent (load) {
_y = (_root.smasher._y - 300);
}
Instance of Symbol 429 MovieClip "scoreBar" in Symbol 1422 MovieClip Frame 44
onClipEvent (load) {
scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
}
Symbol 1422 MovieClip Frame 52
if (!_root.mutedA) {
_root.music_current.setVolume(90);
}
Symbol 1422 MovieClip Frame 56
if (!_root.mutedA) {
_root.music_current.setVolume(80);
}
Symbol 1422 MovieClip Frame 60
if (!_root.mutedA) {
_root.music_current.setVolume(70);
}
Symbol 1422 MovieClip Frame 64
if (!_root.mutedA) {
_root.music_current.setVolume(60);
}
Symbol 1422 MovieClip Frame 68
if (!_root.mutedA) {
_root.music_current.setVolume(50);
}
Symbol 1422 MovieClip Frame 72
if (!_root.mutedA) {
_root.music_current.setVolume(40);
}
Symbol 1422 MovieClip Frame 76
if (!_root.mutedA) {
_root.music_current.setVolume(30);
}
Symbol 1422 MovieClip Frame 80
if (!_root.mutedA) {
_root.music_current.setVolume(20);
}
Symbol 1422 MovieClip Frame 84
if (!_root.mutedA) {
_root.music_current.setVolume(10);
}
Symbol 1422 MovieClip Frame 88
if (!_root.mutedA) {
_root.music_current.setVolume(0);
}
_root.smasher._y = 365;
_root.smasher_wheels._y = 368;
_root.smasher_bg._y = 337.7;
smash2._y = _root.smasher._y - 300;
wheels2._y = _root.smasher_wheels._y - 300;
bg2._y = _root.smasher_bg._y - 300;
Symbol 1422 MovieClip Frame 150
_root.gotoAndStop("l3b");
Symbol 1422 MovieClip Frame 151
stop();
Symbol 1426 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1426 MovieClip Frame 14
stop();
_root.boss.vac_m1_rising = false;
Symbol 1427 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1427 MovieClip Frame 14
stop();
_root.boss.vac_m2_rising = false;
Symbol 1428 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1428 MovieClip Frame 14
stop();
_root.boss.vac_m3_rising = false;
Symbol 1429 MovieClip Frame 1
if (!_root.boss.vac_init) {
stop();
}
Symbol 1429 MovieClip Frame 2
if ((_root.boss.vac_sucking && (!_root.boss.vac_m1_rising)) && (!_root.boss.vac_m1_falling)) {
_root.boss.vac_m1_rising = true;
m1._x = (Math.random() * 180) - 90;
m1._y = _root.boss.vac_y_start;
m1.gotoAndPlay(1);
_root.boss.vac_m1_speed = _root.boss.vac_speed_max;
_root.boss.vac_m1_xSpeed = m1._x / 50;
_root.modScore(-1 * _root.score1);
_root.trump.gotoAndPlay("curse");
if (m1._x > 0) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
} else if ((_root.boss.vac_sucking && (!_root.boss.vac_m2_rising)) && (!_root.boss.vac_m2_falling)) {
_root.boss.vac_m2_rising = true;
m2._x = (Math.random() * 180) - 90;
m2._y = _root.boss.vac_y_start;
m2.gotoAndPlay(1);
_root.boss.vac_m2_speed = _root.boss.vac_speed_max;
_root.boss.vac_m2_xSpeed = m2._x / 50;
_root.modScore(-1 * _root.score1);
_root.trump.gotoAndPlay("curse");
if (m2._x > 0) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
} else if ((_root.boss.vac_sucking && (!_root.boss.vac_m3_rising)) && (!_root.boss.vac_m3_falling)) {
_root.boss.vac_m3_rising = true;
m3._x = (Math.random() * 180) - 90;
m3._y = _root.boss.vac_y_start;
m3.gotoAndPlay(1);
_root.boss.vac_m3_speed = _root.boss.vac_speed_max;
_root.boss.vac_m3_xSpeed = m3._x / 50;
_root.modScore(-1 * _root.score1);
_root.trump.gotoAndPlay("curse");
if (m3._x > 0) {
_root.trumpFlipped = false;
_root.trump._xscale = 100;
} else {
_root.trumpFlipped = true;
_root.trump._xscale = -100;
}
}
Symbol 1437 MovieClip Frame 43
gotoAndPlay ("replay win");
Symbol 1453 MovieClip Frame 1
stop();
Instance of Symbol 217 MovieClip "bg2" in Symbol 1453 MovieClip Frame 2
onClipEvent (load) {
_y = (_root.smasher_bg._y - 300);
}
Instance of Symbol 1437 MovieClip in Symbol 1453 MovieClip Frame 2
onClipEvent (load) {
if (_root.trumpFlipped) {
_xscale = -100;
}
}
Instance of Symbol 374 MovieClip "wheels2" in Symbol 1453 MovieClip Frame 2
onClipEvent (load) {
light.gotoAndStop(1);
_y = (_root.smasher_wheels._y - 300);
wheel1._rotation = _root.smasher_wheels.wheel1._rotation;
wheel2._rotation = _root.smasher_wheels.wheel2._rotation;
wheel3._rotation = _root.smasher_wheels.wheel3._rotation;
wheel4._rotation = _root.smasher_wheels.wheel4._rotation;
}
Instance of Symbol 425 MovieClip "smash2" in Symbol 1453 MovieClip Frame 2
onClipEvent (load) {
_y = (_root.smasher._y - 300);
}
Instance of Symbol 429 MovieClip "scoreBar" in Symbol 1453 MovieClip Frame 2
onClipEvent (load) {
scoreText = ("$" + _root.addCommas(_root.score)) + ".00";
}
Symbol 1453 MovieClip Frame 473
_root.black1.gotoAndPlay(2);
stop();
Symbol 1466 Button
on (press) {
_root.goMain = true;
_root.black1.gotoAndPlay(2);
}
Symbol 1472 Button
on (release) {
_root.goMenu = true;
_root.black1.gotoAndPlay(2);
}
Symbol 1474 Button
on (release) {
_root.goMain2 = true;
_root.black1.gotoAndPlay(2);
}
Symbol 1475 MovieClip Frame 69
stop();
Symbol 1480 MovieClip Frame 72
stop();
Symbol 1489 Button
on (release) {
_root.gotoAndPlay(_root._currentframe + 3);
}
Symbol 1490 MovieClip Frame 1
_root.stop();
PercentLoaded = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 1490 MovieClip Frame 2
gotoAndPlay (1);
Symbol 1492 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 1502 MovieClip Frame 28
stop();
Symbol 1511 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}
Symbol 1514 Button
on (release) {
gotoAndStop ("classicpreloader");
}
Symbol 1528 MovieClip Frame 1
stop();
_root.sma = true;
Symbol 1528 MovieClip Frame 2
_root.sma = false;
Symbol 1535 MovieClip Frame 1
stop();
Symbol 1535 MovieClip Frame 8
_root.trump.gotoAndPlay(26);
Symbol 1564 MovieClip Frame 1
stop();
Symbol 1564 MovieClip Frame 13
gotoAndStop (1);
Symbol 1564 MovieClip Frame 25
gotoAndStop (1);
Symbol 1564 MovieClip Frame 89
_root.gotoAndStop("lose");
Symbol 1565 MovieClip Frame 1
stop();
Symbol 1584 MovieClip Frame 26
_parent.dead2 = true;
Symbol 1605 MovieClip Frame 13
if (_root.money > 0) {
_root.trump.gotoAndPlay(2);
_root.money = _root.money - 50000;
}
Symbol 1605 MovieClip Frame 18
stop();
Instance of Symbol 1604 MovieClip in Symbol 1605 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x - 6;
}
Symbol 1606 MovieClip Frame 1
stop();
_root.dead2 = false;
Symbol 1606 MovieClip Frame 9
_root.kill = _root.kill + 1;
Symbol 1606 MovieClip Frame 42
stop();
Symbol 1606 MovieClip Frame 43
_root.trump.gotoAndPlay(14);
Symbol 1637 MovieClip Frame 19
gotoAndStop (1);
Symbol 1646 MovieClip Frame 11
stop();
Symbol 1675 MovieClip Frame 13
if (_root.money > 0) {
_root.money = _root.money - 50000;
_root.trump.gotoAndPlay(2);
}
Symbol 1675 MovieClip Frame 18
stop();
Instance of Symbol 1674 MovieClip in Symbol 1675 MovieClip Frame 18
onClipEvent (enterFrame) {
this._x = this._x - 6;
}
Symbol 1676 MovieClip Frame 1
stop();
Symbol 1676 MovieClip Frame 2
_root.wallx = random(10) + -5;
Symbol 1676 MovieClip Frame 4
_root.kill = _root.kill + 1;
Symbol 1676 MovieClip Frame 5
stop();
Instance of Symbol 1657 MovieClip in Symbol 1676 MovieClip Frame 5
onClipEvent (enterFrame) {
this._rotation = this._rotation + 36;
}
Symbol 1681 MovieClip Frame 1
_root.crack.gotoAndPlay(1);
_root.wallx = 0;
Symbol 1681 MovieClip Frame 2
_root.wallspd = 4;
Instance of Symbol 1676 MovieClip in Symbol 1681 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.diezone)) {
_root.wallspd = 0;
gotoAndStop (60);
}
this._x = this._x + _root.wallx;
this._y = this._y + _root.wallspd;
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
if (_root.wallspd > -20) {
_root.wallspd--;
}
}
}
Symbol 1681 MovieClip Frame 28
stop();
Symbol 1686 MovieClip Frame 56
_root.monay._x = random(140) + 30;
_root.monay._y = random(240) + 80;
_root.monay.gotoAndPlay(1);
Symbol 1687 MovieClip Frame 69
gotoAndPlay (76);
Symbol 1687 MovieClip Frame 70
_root.money = _root.money + 25000;
Instance of Symbol 1689 MovieClip "wheel" in Symbol 1691 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_root.spd * 5));
}
Instance of Symbol 1689 MovieClip in Symbol 1691 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_root.spd * 5));
}
Instance of Symbol 1689 MovieClip in Symbol 1691 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - (_root.spd * 5));
}
Instance of Symbol 1689 MovieClip in Symbol 1691 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - (_root.spd * 5));
}
Symbol 1700 MovieClip Frame 1
stop();
Symbol 1704 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 1705 Button
on (release) {
gotoAndStop ("classicpreloader");
}
Symbol 1766 MovieClip Frame 33
stop();
Symbol 1819 Button
on (release) {
_root.gotoAndPlay(335);
}
Symbol 1844 MovieClip Frame 1
stop();
Symbol 1844 MovieClip Frame 14
_root.boss.bump.play();
_root.boss.bump2.play();
_root.boss.arm.play();
Symbol 1844 MovieClip Frame 15
stop();
_root.supp2 = true;
Symbol 1853 MovieClip Frame 1
stop();
Symbol 1853 MovieClip Frame 14
_root.boss.bump.play();
_root.boss.bump2.play();
_root.boss.arm.play();
Symbol 1853 MovieClip Frame 15
stop();
Symbol 1862 MovieClip Frame 1
stop();
Symbol 1862 MovieClip Frame 14
_root.boss.bump.play();
_root.boss.bump2.play();
_root.boss.arm.play();
Symbol 1862 MovieClip Frame 15
stop();
_root.supp3 = true;
Instance of Symbol 1844 MovieClip "supp2" in Symbol 1863 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
}
}
Instance of Symbol 1853 MovieClip in Symbol 1863 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
}
}
Instance of Symbol 1862 MovieClip "supp3" in Symbol 1863 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
}
}
Instance of Symbol 1869 MovieClip "claw" in Symbol 1877 MovieClip Frame 142
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1877 MovieClip Frame 146
_root.money = _root.money - 50000;
Symbol 1878 MovieClip Frame 1
stop();
Symbol 1878 MovieClip Frame 2
stop();
Symbol 1878 MovieClip Frame 3
stop();
Symbol 1878 MovieClip Frame 22
stop();
Symbol 1907 MovieClip Frame 1
stop();
Symbol 1907 MovieClip Frame 2
stop();
Symbol 1907 MovieClip Frame 3
stop();
Symbol 1907 MovieClip Frame 23
stop();
Symbol 1929 MovieClip Frame 1
stop();
Symbol 1929 MovieClip Frame 2
stop();
Symbol 1929 MovieClip Frame 3
stop();
Symbol 1929 MovieClip Frame 23
stop();
Symbol 1989 MovieClip Frame 1
stop();
Symbol 1989 MovieClip Frame 2
_root.boss.gotoAndPlay(22);
Symbol 1989 MovieClip Frame 9
stop();
Symbol 1989 MovieClip Frame 107
_root.gotoAndStop("end");
Instance of Symbol 1989 MovieClip in Symbol 1998 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
}
}
Symbol 1998 MovieClip Frame 21
gotoAndPlay (1);
Instance of Symbol 1867 MovieClip "claw" in Symbol 1998 MovieClip Frame 22
onClipEvent (enterFrame) {
if (_root.smasher._y < 190) {
_root.smasher._y = _root.smasher._y + 10;
}
}
Symbol 1999 MovieClip Frame 1
_root.smasher._y = _root.smay;
Symbol 1999 MovieClip Frame 2
stop();
Symbol 2002 MovieClip Frame 1
stop();
Instance of Symbol 1989 MovieClip in Symbol 2008 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.smasher.smash.hammer1) || (this.hitTest(_root.smasher.smash.hammer2))) {
play();
}
}
Symbol 2014 Button
on (release) {
gotoAndStop ("classicpreloader");
}
Symbol 2015 Button
on (release) {
stopAllSounds();
gotoAndStop ("menu");
}