Section 1
//ag_intro_mc_477 (blastrpg_fla.ag_intro_mc_477)
package blastrpg_fla {
import flash.display.*;
public dynamic class ag_intro_mc_477 extends MovieClip {
public function ag_intro_mc_477(){
addFrameScript(0, frame1, 217, frame218);
}
function frame218(){
(parent as MovieClip).gotoAndStop("nitrome");
}
function frame1(){
gotoAndPlay(2);
}
}
}//package blastrpg_fla
Section 2
//beartrap_369 (blastrpg_fla.beartrap_369)
package blastrpg_fla {
import flash.display.*;
public dynamic class beartrap_369 extends MovieClip {
public function beartrap_369(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 3
//bionic_341 (blastrpg_fla.bionic_341)
package blastrpg_fla {
import flash.display.*;
public dynamic class bionic_341 extends MovieClip {
public function bionic_341(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 4
//blue_flag_121 (blastrpg_fla.blue_flag_121)
package blastrpg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class blue_flag_121 extends MovieClip {
public var msg:TextField;
public var middle:MovieClip;
public var end:MovieClip;
}
}//package blastrpg_fla
Section 5
//boing_bounce1_342 (blastrpg_fla.boing_bounce1_342)
package blastrpg_fla {
import flash.display.*;
public dynamic class boing_bounce1_342 extends MovieClip {
public function boing_bounce1_342(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 6
//boing_bounce2_343 (blastrpg_fla.boing_bounce2_343)
package blastrpg_fla {
import flash.display.*;
public dynamic class boing_bounce2_343 extends MovieClip {
public function boing_bounce2_343(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 7
//boing_bounce3_344 (blastrpg_fla.boing_bounce3_344)
package blastrpg_fla {
import flash.display.*;
public dynamic class boing_bounce3_344 extends MovieClip {
public function boing_bounce3_344(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 8
//boom_345 (blastrpg_fla.boom_345)
package blastrpg_fla {
import flash.display.*;
public dynamic class boom_345 extends MovieClip {
public function boom_345(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 9
//boost_359 (blastrpg_fla.boost_359)
package blastrpg_fla {
import flash.display.*;
public dynamic class boost_359 extends MovieClip {
public function boost_359(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 10
//bowang_360 (blastrpg_fla.bowang_360)
package blastrpg_fla {
import flash.display.*;
public dynamic class bowang_360 extends MovieClip {
public function bowang_360(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 11
//buy_item_339 (blastrpg_fla.buy_item_339)
package blastrpg_fla {
import flash.display.*;
public dynamic class buy_item_339 extends MovieClip {
public function buy_item_339(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 12
//cannon_358 (blastrpg_fla.cannon_358)
package blastrpg_fla {
import flash.display.*;
public dynamic class cannon_358 extends MovieClip {
public function cannon_358(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 13
//cannon_454 (blastrpg_fla.cannon_454)
package blastrpg_fla {
import flash.display.*;
public dynamic class cannon_454 extends MovieClip {
public var smoke:MovieClip;
}
}//package blastrpg_fla
Section 14
//CannonSmokeAnim_455 (blastrpg_fla.CannonSmokeAnim_455)
package blastrpg_fla {
import flash.display.*;
public dynamic class CannonSmokeAnim_455 extends MovieClip {
public function CannonSmokeAnim_455(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 15
//chicken_361 (blastrpg_fla.chicken_361)
package blastrpg_fla {
import flash.display.*;
public dynamic class chicken_361 extends MovieClip {
public function chicken_361(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 16
//ching_367 (blastrpg_fla.ching_367)
package blastrpg_fla {
import flash.display.*;
public dynamic class ching_367 extends MovieClip {
public function ching_367(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 17
//crash_362 (blastrpg_fla.crash_362)
package blastrpg_fla {
import flash.display.*;
public dynamic class crash_362 extends MovieClip {
public function crash_362(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 18
//crying_340 (blastrpg_fla.crying_340)
package blastrpg_fla {
import flash.display.*;
public dynamic class crying_340 extends MovieClip {
public function crying_340(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 19
//death_366 (blastrpg_fla.death_366)
package blastrpg_fla {
import flash.display.*;
public dynamic class death_366 extends MovieClip {
public function death_366(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 20
//enemy_bar_516 (blastrpg_fla.enemy_bar_516)
package blastrpg_fla {
import flash.display.*;
public dynamic class enemy_bar_516 extends MovieClip {
public var health:MovieClip;
public var enemy_name:BlastRPGFont;
public function enemy_bar_516(){
__setProp_enemy_name_enemy_bar_Layer2_1();
}
function __setProp_enemy_name_enemy_bar_Layer2_1(){
try {
enemy_name["componentInspectorSetting"] = true;
} catch(e:Error) {
};
enemy_name.align = "right";
enemy_name.align_vert = "bottom";
enemy_name.color = 0xFFFFFF;
enemy_name.line_spacing = 22;
enemy_name.preview_text = "+1|FIRE|slime";
enemy_name.tracking = -2;
try {
enemy_name["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 21
//fanfare_338 (blastrpg_fla.fanfare_338)
package blastrpg_fla {
import flash.display.*;
public dynamic class fanfare_338 extends MovieClip {
public function fanfare_338(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 22
//game_music_holder_335 (blastrpg_fla.game_music_holder_335)
package blastrpg_fla {
import flash.display.*;
public dynamic class game_music_holder_335 extends MovieClip {
public function game_music_holder_335(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package blastrpg_fla
Section 23
//green_flag_118 (blastrpg_fla.green_flag_118)
package blastrpg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class green_flag_118 extends MovieClip {
public var msg:TextField;
public var middle:MovieClip;
public var end:MovieClip;
}
}//package blastrpg_fla
Section 24
//help_movie_311 (blastrpg_fla.help_movie_311)
package blastrpg_fla {
import flash.display.*;
import com.nitrome.ui.*;
public dynamic class help_movie_311 extends MovieClip {
public var left:HelpArrowButtonLeft;
public var right:HelpArrowButtonRight;
public function help_movie_311(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 25
//help1_312 (blastrpg_fla.help1_312)
package blastrpg_fla {
import flash.display.*;
public dynamic class help1_312 extends MovieClip {
public var __id3_:BlastRPGFont;
public function help1_312(){
__setProp___id3__help1_keyson_1();
}
function __setProp___id3__help1_keyson_1(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.align = "center";
__id3_.align_vert = "top";
__id3_.color = 0xFFFFFF;
__id3_.line_spacing = 22;
__id3_.preview_text = "shoot the knight past|the target distance and|land safely to progress";
__id3_.tracking = -2;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 26
//help2_313 (blastrpg_fla.help2_313)
package blastrpg_fla {
import flash.display.*;
public dynamic class help2_313 extends MovieClip {
public var __id4_:BlastRPGFont;
public function help2_313(){
__setProp___id4__help2_keyson_1();
}
function __setProp___id4__help2_keyson_1(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.align = "center";
__id4_.align_vert = "top";
__id4_.color = 0xFFFFFF;
__id4_.line_spacing = 22;
__id4_.preview_text = "steer the knight in the air by|holding down the mouse button in|the area you want him to move to";
__id4_.tracking = -2;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 27
//help3_314 (blastrpg_fla.help3_314)
package blastrpg_fla {
import flash.display.*;
public dynamic class help3_314 extends MovieClip {
public var __id5_:BlastRPGFont;
public function help3_314(){
__setProp___id5__help3_Layer15_1();
}
function __setProp___id5__help3_Layer15_1(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.align = "center";
__id5_.align_vert = "top";
__id5_.color = 0xFFFFFF;
__id5_.line_spacing = 22;
__id5_.preview_text = "you get an extra boost|each time you kill a monster";
__id5_.tracking = -2;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 28
//help4_315 (blastrpg_fla.help4_315)
package blastrpg_fla {
import flash.display.*;
public dynamic class help4_315 extends MovieClip {
public var __id6_:BlastRPGFont;
public function help4_315(){
__setProp___id6__help4_Layer15_1();
}
function __setProp___id6__help4_Layer15_1(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.align = "center";
__id6_.align_vert = "top";
__id6_.color = 0xFFFFFF;
__id6_.line_spacing = 22;
__id6_.preview_text = "select weapons and cast spells|to kill monsters and help|keep you in the air";
__id6_.tracking = -2;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 29
//help5_316 (blastrpg_fla.help5_316)
package blastrpg_fla {
import flash.display.*;
public dynamic class help5_316 extends MovieClip {
public var __id7_:BlastRPGFont;
public function help5_316(){
__setProp___id7__help5_Layer15_1();
}
function __setProp___id7__help5_Layer15_1(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.align = "center";
__id7_.align_vert = "top";
__id7_.color = 0xFFFFFF;
__id7_.line_spacing = 22;
__id7_.preview_text = "increase your abilities each time|you level up. buy and sell items in|the shop to help you get further";
__id7_.tracking = -2;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 30
//hit_346 (blastrpg_fla.hit_346)
package blastrpg_fla {
import flash.display.*;
public dynamic class hit_346 extends MovieClip {
public function hit_346(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 31
//knight_bounce1_347 (blastrpg_fla.knight_bounce1_347)
package blastrpg_fla {
import flash.display.*;
public dynamic class knight_bounce1_347 extends MovieClip {
public function knight_bounce1_347(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 32
//knight_bounce2_348 (blastrpg_fla.knight_bounce2_348)
package blastrpg_fla {
import flash.display.*;
public dynamic class knight_bounce2_348 extends MovieClip {
public function knight_bounce2_348(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 33
//knight_bounce3_349 (blastrpg_fla.knight_bounce3_349)
package blastrpg_fla {
import flash.display.*;
public dynamic class knight_bounce3_349 extends MovieClip {
public function knight_bounce3_349(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 34
//level_image_375 (blastrpg_fla.level_image_375)
package blastrpg_fla {
import flash.display.*;
public dynamic class level_image_375 extends MovieClip {
public function level_image_375(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 35
//linkage_clip_2 (blastrpg_fla.linkage_clip_2)
package blastrpg_fla {
import flash.display.*;
public dynamic class linkage_clip_2 extends MovieClip {
public function linkage_clip_2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 36
//loading_black_330 (blastrpg_fla.loading_black_330)
package blastrpg_fla {
import flash.display.*;
import flash.utils.*;
public dynamic class loading_black_330 extends MovieClip {
public var loading_text:BlastRPGBigFont;
public var __setPropDict:Dictionary;
public function loading_black_330(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 9, frame10, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function __setProp_loading_text_loading_black_Layer1_2(){
try {
loading_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
loading_text.align = "center";
loading_text.align_vert = "center";
loading_text.color = 0xFFFFFF;
loading_text.line_spacing = 40;
loading_text.preview_text = "loading";
loading_text.tracking = -1;
try {
loading_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
NitromeGame.timeline.gotoAndStop(((NitromeGame.timeline.currentLabel == "submit_score")) ? "view_scores" : "view_scores_survival");
}
function frame3(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame6(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame7(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame1(){
stop();
}
function frame4(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame5(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame9(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame8(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
function frame2(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 2)) && ((int(__setPropDict[loading_text]) <= 10))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_loading_black_Layer1_2();
};
}
}
}//package blastrpg_fla
Section 37
//loading_clip_522 (blastrpg_fla.loading_clip_522)
package blastrpg_fla {
import flash.display.*;
public dynamic class loading_clip_522 extends MovieClip {
public var __id21_:BlastRPGBigFont;
public function loading_clip_522(){
__setProp___id21__loading_clip_Layer2_1();
}
function __setProp___id21__loading_clip_Layer2_1(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.align = "center";
__id21_.align_vert = "center";
__id21_.color = 0xFFFFFF;
__id21_.line_spacing = 40;
__id21_.preview_text = "loading";
__id21_.tracking = -1;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 38
//loading_screen_521 (blastrpg_fla.loading_screen_521)
package blastrpg_fla {
import flash.display.*;
import com.nitrome.ui.*;
public dynamic class loading_screen_521 extends MovieClip {
public var tt:Transition;
public function loading_screen_521(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
this.tt.doTween("clear");
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 39
//MainTimeline (blastrpg_fla.MainTimeline)
package blastrpg_fla {
import flash.display.*;
import flash.events.*;
import com.nitrome.engine.*;
import flash.geom.*;
import com.nitrome.ui.items.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import com.nitrome.sound.*;
import flash.ui.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var triangle:MovieClip;
public var dist_str:String;
public var __id17_:BlastRPGBigFont;
public var slot_1:SaveSlotButton;
public var slot_2:SaveSlotButton;
public var slot_3:SaveSlotButton;
public var clicker:MovieClip;
public var level_1:LevelChooserButton;
public var level_2:LevelChooserButton;
public var level_3:LevelChooserButton;
public var level_6:LevelChooserButton;
public var __id18_:BlastRPGFont;
public var agility:IntStepper;
public var level_4:LevelChooserButton;
public var level_5:LevelChooserButton;
public var strength:IntStepper;
public var attack:IntStepper;
public var shop_equipment_bar:EquipmentBar1;
public var shop_keeper:MovieClip;
public var defence:IntStepper;
public var __id19_:BlastRPGFont;
public var custom_mouse:CustomMouse;
public var loading_clip:MovieClip;
public var tt:Transition;
public var charisma:IntStepper;
public var preloader:Preloader;
public var game_holder:MovieClip;
public var delete_1:DeleteSlotButton;
public var delete_3:DeleteSlotButton;
public var __setPropDict:Dictionary;
public var delete_2:DeleteSlotButton;
public var popup_holder:PopUpHolder;
public var draggable_item_holder:MovieClip;
public var music_toggle:MusicToggle;
public var info:InfoBox;
public var enemy_bar:MovieClip;
public var points:BlastRPGFont;
public var back:Background;
public var level_text:BlastRPGFont;
public var level_status:BlastRPGFont;
public var __id22_:BlastRPGFont;
public var distance_text:BlastRPGFont;
public var pause_game_button:PauseButton;
public var decimal:int;
public var fx_toggle:FxToggle;
public var __id23_:BlastRPGFont;
public var shop_stock_bar:ShopStockBarClip;
public var msg:MovieClip;
public var __id24_:BlastRPGFont;
public var __id25_:BlastRPGFont;
public var __id13_:BlastRPGBigFont;
public var grats_score:BlastRPGFont;
public var shop_gold_text:BlastRPGFont;
public var gold_text:BlastRPGFont;
public var player_bar:MovieClip;
public var __id26_:BlastRPGFont;
public var __id14_:BlastRPGBigFont;
public var boost_holder:MovieClip;
public var __id15_:BlastRPGBigFont;
public var equipment_bar:EquipmentBar1;
public var __id27_:BlastRPGBigFont;
public var game:Game;
public var __id16_:BlastRPGBigFont;
public function MainTimeline(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(2, frame3, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 129, frame130, 139, frame140, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137, 137, frame138, 138, frame139, 80, frame81, 81, frame82, 82, frame83, 83, frame84, 84, frame85, 85, frame86, 86, frame87, 87, frame88, 88, frame89, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58, 58, frame59, 100, frame101, 101, frame102, 102, frame103, 103, frame104, 104, frame105, 105, frame106, 106, frame107, 107, frame108, 108, frame109, 110, frame111, 111, frame112, 112, frame113, 113, frame114, 114, frame115, 115, frame116, 116, frame117, 117, frame118, 118, frame119, 90, frame91, 91, frame92, 92, frame93, 93, frame94, 94, frame95, 95, frame96, 96, frame97, 97, frame98, 98, frame99, 140, frame141, 141, frame142, 142, frame143, 143, frame144, 144, frame145, 145, frame146, 146, frame147, 147, frame148, 148, frame149, 149, frame150, 120, frame121, 121, frame122, 122, frame123, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 70, frame71, 71, frame72, 72, frame73, 73, frame74, 74, frame75, 75, frame76, 76, frame77, 77, frame78, 78, frame79);
}
function frame143(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function __setProp_level_status_Scene1_interface_130(){
try {
level_status["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_status.align = "center";
level_status.align_vert = "center";
level_status.color = 0xFFFFFF;
level_status.line_spacing = 22;
level_status.preview_text = "level: 1 health: 20";
level_status.tracking = -2;
try {
level_status["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame150(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function __setProp___id27__Scene1_interface_130(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.align = "center";
__id27_.align_vert = "center";
__id27_.color = 0xFFFFFF;
__id27_.line_spacing = 40;
__id27_.preview_text = "abilities";
__id27_.tracking = -1;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_grats_score_Scene1_interface_90(){
try {
grats_score["componentInspectorSetting"] = true;
} catch(e:Error) {
};
grats_score.align = "center";
grats_score.align_vert = "top";
grats_score.color = 0xFFFFFF;
grats_score.line_spacing = 22;
grats_score.preview_text = "your score is 0.0";
grats_score.tracking = -2;
try {
grats_score["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
stop();
NitromeGame.init(this, "blastrpgdistro", "none", 6, null, null, true);
}
function __setProp___id24__Scene1_interface_130(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.align = "left";
__id24_.align_vert = "center";
__id24_.color = 0xFFFFFF;
__id24_.line_spacing = 22;
__id24_.preview_text = "agility";
__id24_.tracking = -2;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id27__Scene1_interface_140(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.align = "center";
__id27_.align_vert = "center";
__id27_.color = 0xFFFFFF;
__id27_.line_spacing = 40;
__id27_.preview_text = "save slots";
__id27_.tracking = -1;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame3(){
preloader.addEventListener(Event.COMPLETE, function (_arg1:Event){
(root as MovieClip).gotoAndStop("armor");
});
stop();
}
function __setProp_points_Scene1_interface_130(){
try {
points["componentInspectorSetting"] = true;
} catch(e:Error) {
};
points.align = "center";
points.align_vert = "center";
points.color = 0xFFFFFF;
points.line_spacing = 22;
points.preview_text = "0";
points.tracking = -2;
try {
points["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id17__Scene1_interface_70(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.align = "center";
__id17_.align_vert = "center";
__id17_.color = 0xFFFFFF;
__id17_.line_spacing = 40;
__id17_.preview_text = "help";
__id17_.tracking = -1;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame20(){
stop();
}
function __setProp___id17__Scene1_interface_80(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.align = "center";
__id17_.align_vert = "center";
__id17_.color = 0xFFFFFF;
__id17_.line_spacing = 40;
__id17_.preview_text = "level select";
__id17_.tracking = -1;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame40(){
NitromeGame.sound_manager.playMusic(SoundManager.MENU);
stop();
}
function frame30(){
Lock.urlLock(stage);
gotoAndStop("title_screen");
stop();
}
function __setProp_gold_text_Scene1_corporate_100(){
try {
gold_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
gold_text.align = "left";
gold_text.align_vert = "center";
gold_text.color = 0xFFFFFF;
gold_text.line_spacing = 22;
gold_text.preview_text = "gold: 0";
gold_text.tracking = -2;
try {
gold_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame53(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame54(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame56(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame50(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
stop();
}
function frame51(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame52(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame55(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function __setProp___id14__Scene1_interface_50(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.align = "center";
__id14_.align_vert = "center";
__id14_.color = 0xFFFFFF;
__id14_.line_spacing = 40;
__id14_.preview_text = "aaron steed";
__id14_.tracking = -1;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame58(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame57(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function frame59(){
if ((((__setPropDict[__id15_] == undefined)) || (!((((int(__setPropDict[__id15_]) >= 50)) && ((int(__setPropDict[__id15_]) <= 59))))))){
__setPropDict[__id15_] = currentFrame;
__setProp___id15__Scene1_interface_50();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((((int(__setPropDict[__id16_]) >= 50)) && ((int(__setPropDict[__id16_]) <= 59))))))){
__setPropDict[__id16_] = currentFrame;
__setProp___id16__Scene1_interface_50();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((((int(__setPropDict[__id14_]) >= 50)) && ((int(__setPropDict[__id14_]) <= 59))))))){
__setPropDict[__id14_] = currentFrame;
__setProp___id14__Scene1_interface_50();
};
if ((((__setPropDict[__id13_] == undefined)) || (!((((int(__setPropDict[__id13_]) >= 50)) && ((int(__setPropDict[__id13_]) <= 59))))))){
__setPropDict[__id13_] = currentFrame;
__setProp___id13__Scene1_interface_50();
};
}
function __setProp___id26__Scene1_interface_130(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.align = "left";
__id26_.align_vert = "center";
__id26_.color = 0xFFFFFF;
__id26_.line_spacing = 22;
__id26_.preview_text = "strength";
__id26_.tracking = -2;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame60(){
stop();
}
function frame70(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
stop();
}
function __setProp___id15__Scene1_interface_50(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.align = "center";
__id15_.align_vert = "center";
__id15_.color = 0xFFFFFF;
__id15_.line_spacing = 40;
__id15_.preview_text = "dave cowen";
__id15_.tracking = -1;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame75(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame71(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame73(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame77(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame78(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame72(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame74(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame76(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame79(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 70)) && ((int(__setPropDict[__id17_]) <= 79))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_70();
};
}
function frame80(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
NitromeGame.sound_manager.crossFade(SoundManager.SHOP);
stop();
}
function __setProp_distance_text_Scene1_corporate_100(){
try {
distance_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
distance_text.align = "left";
distance_text.align_vert = "center";
distance_text.color = 0xFFFFFF;
distance_text.line_spacing = 22;
distance_text.preview_text = "dist: 0.0";
distance_text.tracking = -2;
try {
distance_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame84(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame85(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function __setProp___id23__Scene1_interface_130(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.align = "left";
__id23_.align_vert = "center";
__id23_.color = 0xFFFFFF;
__id23_.line_spacing = 22;
__id23_.preview_text = "defence";
__id23_.tracking = -2;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame87(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame81(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame82(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame89(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame86(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame93(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame94(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function __setProp_level_text_Scene1_corporate_100(){
try {
level_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_text.align = "left";
level_text.align_vert = "center";
level_text.color = 0xFFFFFF;
level_text.line_spacing = 22;
level_text.preview_text = "lvl 1";
level_text.tracking = -2;
try {
level_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame97(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame91(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame83(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function frame88(){
if ((((__setPropDict[__id17_] == undefined)) || (!((((int(__setPropDict[__id17_]) >= 80)) && ((int(__setPropDict[__id17_]) <= 89))))))){
__setPropDict[__id17_] = currentFrame;
__setProp___id17__Scene1_interface_80();
};
}
function __setProp___id18__Scene1_interface_90(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.align = "center";
__id18_.align_vert = "top";
__id18_.color = 0xFFFFFF;
__id18_.line_spacing = 22;
__id18_.preview_text = "you have defeated all monsters|and randomly saved a princess";
__id18_.tracking = -2;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame96(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame100(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
stage.quality = StageQuality.HIGH;
back.gotoAndStop(("level_" + NitromeGame.selected_level));
equipment_bar.setCurrentInstance();
game = new Game();
game_holder.addChild(game);
stop();
}
function frame101(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame90(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
NitromeGame.sound_manager.crossFade(SoundManager.MENU);
dist_str = ("" + (0.1 * Score.value));
decimal = dist_str.indexOf(".");
if (decimal == -1){
dist_str = (dist_str + ".0");
} else {
dist_str = dist_str.substr(0, (decimal + 2));
};
grats_score.text = ("your score is " + dist_str);
stop();
}
function frame102(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame103(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame104(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame106(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame108(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame95(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame105(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame107(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame109(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame92(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame110(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
game.clearAll();
if (game.parent){
game.parent.removeChild(game);
};
game = null;
back.reset();
loading_clip.gotoAndStop("loading");
gotoAndStop("play_game");
}
function frame111(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame112(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame117(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame118(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame114(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame115(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function __setProp_shop_gold_text_Scene1_interface_120(){
try {
shop_gold_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
shop_gold_text.align = "left";
shop_gold_text.align_vert = "center";
shop_gold_text.color = 0xFFFFFF;
shop_gold_text.line_spacing = 22;
shop_gold_text.preview_text = "0";
shop_gold_text.tracking = -2;
try {
shop_gold_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame98(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame113(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame116(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame119(){
if ((((__setPropDict[level_text] == undefined)) || (!((((int(__setPropDict[level_text]) >= 100)) && ((int(__setPropDict[level_text]) <= 119))))))){
__setPropDict[level_text] = currentFrame;
__setProp_level_text_Scene1_corporate_100();
};
if ((((__setPropDict[distance_text] == undefined)) || (!((((int(__setPropDict[distance_text]) >= 100)) && ((int(__setPropDict[distance_text]) <= 119))))))){
__setPropDict[distance_text] = currentFrame;
__setProp_distance_text_Scene1_corporate_100();
};
if ((((__setPropDict[gold_text] == undefined)) || (!((((int(__setPropDict[gold_text]) >= 100)) && ((int(__setPropDict[gold_text]) <= 119))))))){
__setPropDict[gold_text] = currentFrame;
__setProp_gold_text_Scene1_corporate_100();
};
}
function frame122(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function __setProp___id25__Scene1_interface_130(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.align = "left";
__id25_.align_vert = "center";
__id25_.color = 0xFFFFFF;
__id25_.line_spacing = 22;
__id25_.preview_text = "charisma";
__id25_.tracking = -2;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame125(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame120(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
NitromeGame.sound_manager.crossFade(SoundManager.SHOP);
shop_equipment_bar.setCurrentInstance();
NitromeGame.timeline.shop_gold_text.text = ("" + PlayerStats.gold.value);
stop();
}
function frame124(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame126(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function __setProp_shop_gold_text_Scene1_interface_130(){
try {
shop_gold_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
shop_gold_text.align = "left";
shop_gold_text.align_vert = "center";
shop_gold_text.color = 0xFFFFFF;
shop_gold_text.line_spacing = 22;
shop_gold_text.preview_text = "points left to spend";
shop_gold_text.tracking = -2;
try {
shop_gold_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame128(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame121(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame123(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function __setProp___id16__Scene1_interface_50(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.align = "center";
__id16_.align_vert = "center";
__id16_.color = 0xFFFFFF;
__id16_.line_spacing = 40;
__id16_.preview_text = "credits";
__id16_.tracking = -1;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame129(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame131(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame132(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame134(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame138(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame139(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame99(){
if ((((__setPropDict[grats_score] == undefined)) || (!((((int(__setPropDict[grats_score]) >= 90)) && ((int(__setPropDict[grats_score]) <= 99))))))){
__setPropDict[grats_score] = currentFrame;
__setProp_grats_score_Scene1_interface_90();
};
if ((((__setPropDict[__id19_] == undefined)) || (!((((int(__setPropDict[__id19_]) >= 90)) && ((int(__setPropDict[__id19_]) <= 99))))))){
__setPropDict[__id19_] = currentFrame;
__setProp___id19__Scene1_interface_90();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((((int(__setPropDict[__id18_]) >= 90)) && ((int(__setPropDict[__id18_]) <= 99))))))){
__setPropDict[__id18_] = currentFrame;
__setProp___id18__Scene1_interface_90();
};
}
function frame135(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame136(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame137(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
function frame130(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
NitromeGame.sound_manager.crossFade(SoundManager.SHOP);
level_status.text = ((("level: " + PlayerStats.level.value) + " health: ") + PlayerStats.total_health.value);
PlayerStats.bindSteppers(points, attack, defence, strength, agility, charisma);
stop();
}
function frame141(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function __setProp___id22__Scene1_interface_130(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.align = "left";
__id22_.align_vert = "center";
__id22_.color = 0xFFFFFF;
__id22_.line_spacing = 22;
__id22_.preview_text = "attack";
__id22_.tracking = -2;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame145(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame140(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
stop();
}
function frame148(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame142(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame144(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame146(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame147(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function frame127(){
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 120)) && ((int(__setPropDict[shop_gold_text]) <= 129))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_120();
};
}
function frame149(){
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 140)) && ((int(__setPropDict[__id27_]) <= 150))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_140();
};
}
function __setProp___id13__Scene1_interface_50(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.align = "center";
__id13_.align_vert = "center";
__id13_.color = 0xFFFFFF;
__id13_.line_spacing = 40;
__id13_.preview_text = "jay d. smith";
__id13_.tracking = -1;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id19__Scene1_interface_90(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.align = "center";
__id19_.align_vert = "top";
__id19_.color = 0xFFFFFF;
__id19_.line_spacing = 22;
__id19_.preview_text = "congratulations!";
__id19_.tracking = -2;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame133(){
if ((((__setPropDict[__id23_] == undefined)) || (!((((int(__setPropDict[__id23_]) >= 130)) && ((int(__setPropDict[__id23_]) <= 139))))))){
__setPropDict[__id23_] = currentFrame;
__setProp___id23__Scene1_interface_130();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((((int(__setPropDict[__id26_]) >= 130)) && ((int(__setPropDict[__id26_]) <= 139))))))){
__setPropDict[__id26_] = currentFrame;
__setProp___id26__Scene1_interface_130();
};
if ((((__setPropDict[__id22_] == undefined)) || (!((((int(__setPropDict[__id22_]) >= 130)) && ((int(__setPropDict[__id22_]) <= 139))))))){
__setPropDict[__id22_] = currentFrame;
__setProp___id22__Scene1_interface_130();
};
if ((((__setPropDict[points] == undefined)) || (!((((int(__setPropDict[points]) >= 130)) && ((int(__setPropDict[points]) <= 139))))))){
__setPropDict[points] = currentFrame;
__setProp_points_Scene1_interface_130();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((((int(__setPropDict[__id25_]) >= 130)) && ((int(__setPropDict[__id25_]) <= 139))))))){
__setPropDict[__id25_] = currentFrame;
__setProp___id25__Scene1_interface_130();
};
if ((((__setPropDict[__id27_] == undefined)) || (!((((int(__setPropDict[__id27_]) >= 130)) && ((int(__setPropDict[__id27_]) <= 139))))))){
__setPropDict[__id27_] = currentFrame;
__setProp___id27__Scene1_interface_130();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((((int(__setPropDict[__id24_]) >= 130)) && ((int(__setPropDict[__id24_]) <= 139))))))){
__setPropDict[__id24_] = currentFrame;
__setProp___id24__Scene1_interface_130();
};
if ((((__setPropDict[level_status] == undefined)) || (!((((int(__setPropDict[level_status]) >= 130)) && ((int(__setPropDict[level_status]) <= 139))))))){
__setPropDict[level_status] = currentFrame;
__setProp_level_status_Scene1_interface_130();
};
if ((((__setPropDict[shop_gold_text] == undefined)) || (!((((int(__setPropDict[shop_gold_text]) >= 130)) && ((int(__setPropDict[shop_gold_text]) <= 139))))))){
__setPropDict[shop_gold_text] = currentFrame;
__setProp_shop_gold_text_Scene1_interface_130();
};
}
}
}//package blastrpg_fla
Section 40
//menu_music_holder_336 (blastrpg_fla.menu_music_holder_336)
package blastrpg_fla {
import flash.display.*;
public dynamic class menu_music_holder_336 extends MovieClip {
public function menu_music_holder_336(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package blastrpg_fla
Section 41
//milestone_104 (blastrpg_fla.milestone_104)
package blastrpg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class milestone_104 extends MovieClip {
public var num:TextField;
}
}//package blastrpg_fla
Section 42
//miss_350 (blastrpg_fla.miss_350)
package blastrpg_fla {
import flash.display.*;
public dynamic class miss_350 extends MovieClip {
public function miss_350(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 43
//msg_holder_518 (blastrpg_fla.msg_holder_518)
package blastrpg_fla {
import flash.display.*;
public dynamic class msg_holder_518 extends MovieClip {
public var msg:BlastRPGBigFont;
public function msg_holder_518(){
__setProp_msg_msg_holder_Layer3_1();
}
function __setProp_msg_msg_holder_Layer3_1(){
try {
msg["componentInspectorSetting"] = true;
} catch(e:Error) {
};
msg.align = "center";
msg.align_vert = "center";
msg.color = 0xFFFFFF;
msg.line_spacing = 40;
msg.preview_text = "harro";
msg.tracking = -1;
try {
msg["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 44
//msg_thing_517 (blastrpg_fla.msg_thing_517)
package blastrpg_fla {
import flash.display.*;
public dynamic class msg_thing_517 extends MovieClip {
public var msg_holder:MovieClip;
public function msg_thing_517(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 45
//nitrome_intro_481 (blastrpg_fla.nitrome_intro_481)
package blastrpg_fla {
import flash.display.*;
public dynamic class nitrome_intro_481 extends MovieClip {
public function nitrome_intro_481(){
addFrameScript(179, frame180);
}
function frame180(){
NitromeGame.transition.doTween("pre_title_screen");
stop();
}
}
}//package blastrpg_fla
Section 46
//nuke_363 (blastrpg_fla.nuke_363)
package blastrpg_fla {
import flash.display.*;
public dynamic class nuke_363 extends MovieClip {
public function nuke_363(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 47
//petrify_364 (blastrpg_fla.petrify_364)
package blastrpg_fla {
import flash.display.*;
public dynamic class petrify_364 extends MovieClip {
public function petrify_364(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 48
//player_bar_510 (blastrpg_fla.player_bar_510)
package blastrpg_fla {
import flash.display.*;
public dynamic class player_bar_510 extends MovieClip {
public var power:MovieClip;
public var __id20_:BlastRPGFont;
public var health:MovieClip;
public var experience:MovieClip;
public var cannon_icon:MovieClip;
public var health_icon:MovieClip;
public function player_bar_510(){
__setProp___id20__player_bar_Layer6_1();
}
function __setProp___id20__player_bar_Layer6_1(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.align = "left";
__id20_.align_vert = "bottom";
__id20_.color = 0xFFFFFF;
__id20_.line_spacing = 22;
__id20_.preview_text = "exp";
__id20_.tracking = -2;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 49
//playerlanding_449 (blastrpg_fla.playerlanding_449)
package blastrpg_fla {
import flash.display.*;
public dynamic class playerlanding_449 extends MovieClip {
public function playerlanding_449(){
addFrameScript(110, frame111);
}
function frame111(){
stop();
}
}
}//package blastrpg_fla
Section 50
//popup_clip_309 (blastrpg_fla.popup_clip_309)
package blastrpg_fla {
import flash.display.*;
import flash.events.*;
import com.nitrome.engine.*;
import flash.geom.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
import flash.utils.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.filters.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class popup_clip_309 extends MovieClip {
public var abilities_button:AbilitiesButton2;
public var next_level_button:NextLevelButton;
public var __setPropDict:Dictionary;
public var level_select_button:QuitGameButton1;
public var pos:Array;
public var i:int;
public var shop_button:ShopButton2;
public var __id2_:BlastRPGBigFont;
public var ticker_title:BlastRPGFont;
public var thing:MovieClip;
public var try_again_button:TryAgainButton1;
public var ticker_score:ScoreTicker1;
public var view_ending_button:ContinueEndButton;
public var __id8_:BlastRPGFont;
public var msg:BlastRPGBigFont;
public var yes_button:YesButton;
public var buttons:Array;
public function popup_clip_309(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 1, frame2, 29, frame30, 44, frame45, 58, frame59, 59, frame60, 60, frame61, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 66, frame67, 67, frame68, 68, frame69, 69, frame70, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41, 41, frame42, 42, frame43, 43, frame44, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 45, frame46, 46, frame47, 47, frame48, 48, frame49, 49, frame50, 50, frame51, 51, frame52, 52, frame53, 53, frame54, 54, frame55, 55, frame56, 56, frame57, 57, frame58);
}
function frame10(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame14(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame16(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame15(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame12(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame17(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame2(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
if (Score.value){
msg.text = "well done!";
ticker_title.visible = true;
ticker_score.visible = true;
ticker_score.startCount(Score.value, (Score.value / 75));
} else {
msg.text = "mission failed";
ticker_title.visible = false;
ticker_score.visible = false;
};
abilities_button.visible = Boolean(PlayerStats.points.value);
view_ending_button.visible = NitromeGame.completed;
next_level_button.visible = (NitromeGame.last_level > NitromeGame.selected_level);
buttons = [try_again_button, level_select_button, shop_button, abilities_button, next_level_button, view_ending_button];
pos = [];
i = 0;
while (i < buttons.length) {
pos.push({x:buttons[i].x, y:buttons[i].y});
i++;
};
i = 0;
while (i < buttons.length) {
if (!buttons[i].visible){
buttons.splice(i, 1);
i--;
};
i++;
};
i = 0;
while (i < buttons.length) {
buttons[i].x = pos[i].x;
buttons[i].y = pos[i].y;
if ((((i == (buttons.length - 1))) && (((i & 1) == 0)))){
buttons[i].x = pos[(pos.length - 1)].x;
};
addChild(buttons[i]);
i++;
};
stop();
}
function frame3(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame4(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame5(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame7(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame1(){
stop();
}
function frame19(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame23(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame11(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame6(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame13(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame9(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame22(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame18(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame25(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame21(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame24(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame26(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame8(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame30(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
stop();
}
function frame31(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame32(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame33(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame35(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame36(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame37(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame34(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame29(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame20(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame38(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame27(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function __setProp___id8__popup_clip_tickers_59(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.align = "center";
__id8_.align_vert = "center";
__id8_.color = 0xFFFFFF;
__id8_.line_spacing = 22;
__id8_.preview_text = "this will destroy all|progress on this slot|are you sure?";
__id8_.tracking = -2;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame42(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame43(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame44(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame45(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
stop();
}
function frame40(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame41(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame39(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 30)) && ((int(__setPropDict[__id2_]) <= 44))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_30();
};
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 30)) && ((int(__setPropDict[ticker_title]) <= 44))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_30();
};
}
function frame47(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame48(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame28(){
if ((((__setPropDict[ticker_title] == undefined)) || (!((((int(__setPropDict[ticker_title]) >= 2)) && ((int(__setPropDict[ticker_title]) <= 29))))))){
__setPropDict[ticker_title] = currentFrame;
__setProp_ticker_title_popup_clip_tickers_2();
};
if ((((__setPropDict[msg] == undefined)) || (!((((int(__setPropDict[msg]) >= 2)) && ((int(__setPropDict[msg]) <= 29))))))){
__setPropDict[msg] = currentFrame;
__setProp_msg_popup_clip_Layer8_2();
};
}
function frame46(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame49(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame51(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame52(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame53(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame54(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame55(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame56(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame50(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame58(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame59(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame57(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 45)) && ((int(__setPropDict[__id2_]) <= 58))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_45();
};
}
function frame60(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame61(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame62(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame63(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame64(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame65(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame66(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame68(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame69(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame67(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function frame70(){
if ((((__setPropDict[__id2_] == undefined)) || (!((((int(__setPropDict[__id2_]) >= 59)) && ((int(__setPropDict[__id2_]) <= 70))))))){
__setPropDict[__id2_] = currentFrame;
__setProp___id2__popup_clip_buttons_59();
};
if ((((__setPropDict[__id8_] == undefined)) || (!((((int(__setPropDict[__id8_]) >= 59)) && ((int(__setPropDict[__id8_]) <= 70))))))){
__setPropDict[__id8_] = currentFrame;
__setProp___id8__popup_clip_tickers_59();
};
}
function __setProp_ticker_title_popup_clip_tickers_2(){
try {
ticker_title["componentInspectorSetting"] = true;
} catch(e:Error) {
};
ticker_title.align = "left";
ticker_title.align_vert = "center";
ticker_title.color = 0xFFFFFF;
ticker_title.line_spacing = 22;
ticker_title.preview_text = "distance";
ticker_title.tracking = -2;
try {
ticker_title["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id2__popup_clip_buttons_30(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.align = "center";
__id2_.align_vert = "center";
__id2_.color = 0xFFFFFF;
__id2_.line_spacing = 40;
__id2_.preview_text = "pause";
__id2_.tracking = -1;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id2__popup_clip_buttons_45(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.align = "center";
__id2_.align_vert = "center";
__id2_.color = 0xFFFFFF;
__id2_.line_spacing = 40;
__id2_.preview_text = "help";
__id2_.tracking = -1;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id2__popup_clip_buttons_59(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.align = "center";
__id2_.align_vert = "center";
__id2_.color = 0xFFFFFF;
__id2_.line_spacing = 40;
__id2_.preview_text = "erase save data";
__id2_.tracking = -1;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_ticker_title_popup_clip_tickers_30(){
try {
ticker_title["componentInspectorSetting"] = true;
} catch(e:Error) {
};
ticker_title.align = "center";
ticker_title.align_vert = "center";
ticker_title.color = 0xFFFFFF;
ticker_title.line_spacing = 22;
ticker_title.preview_text = "the game is|paused";
ticker_title.tracking = -2;
try {
ticker_title["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_msg_popup_clip_Layer8_2(){
try {
msg["componentInspectorSetting"] = true;
} catch(e:Error) {
};
msg.align = "center";
msg.align_vert = "center";
msg.color = 0xFFFFFF;
msg.line_spacing = 40;
msg.preview_text = "well done!";
msg.tracking = -1;
try {
msg["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 51
//red_flag_115 (blastrpg_fla.red_flag_115)
package blastrpg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class red_flag_115 extends MovieClip {
public var msg:TextField;
public var middle:MovieClip;
public var end:MovieClip;
}
}//package blastrpg_fla
Section 52
//shop_keeper_523 (blastrpg_fla.shop_keeper_523)
package blastrpg_fla {
import flash.display.*;
public dynamic class shop_keeper_523 extends MovieClip {
public function shop_keeper_523(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 53
//shop_music_holder_337 (blastrpg_fla.shop_music_holder_337)
package blastrpg_fla {
import flash.display.*;
public dynamic class shop_music_holder_337 extends MovieClip {
public function shop_music_holder_337(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package blastrpg_fla
Section 54
//shroom_bounce_351 (blastrpg_fla.shroom_bounce_351)
package blastrpg_fla {
import flash.display.*;
public dynamic class shroom_bounce_351 extends MovieClip {
public function shroom_bounce_351(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 55
//skid_365 (blastrpg_fla.skid_365)
package blastrpg_fla {
import flash.display.*;
public dynamic class skid_365 extends MovieClip {
public function skid_365(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 56
//slap_368 (blastrpg_fla.slap_368)
package blastrpg_fla {
import flash.display.*;
public dynamic class slap_368 extends MovieClip {
public function slap_368(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 57
//slot_data_26 (blastrpg_fla.slot_data_26)
package blastrpg_fla {
import flash.display.*;
public dynamic class slot_data_26 extends MovieClip {
public var level_text:BlastRPGFont;
public var distance_text:BlastRPGFont;
public var gold_text:BlastRPGFont;
public function slot_data_26(){
__setProp_distance_text_slot_data_Layer1_1();
__setProp_gold_text_slot_data_Layer1_1();
__setProp_level_text_slot_data_Layer1_1();
}
function __setProp_level_text_slot_data_Layer1_1(){
try {
level_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_text.align = "left";
level_text.align_vert = "center";
level_text.color = 0xFFFFFF;
level_text.line_spacing = 22;
level_text.preview_text = "lvl 1";
level_text.tracking = -2;
try {
level_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_distance_text_slot_data_Layer1_1(){
try {
distance_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
distance_text.align = "left";
distance_text.align_vert = "center";
distance_text.color = 0xFFFFFF;
distance_text.line_spacing = 22;
distance_text.preview_text = "1";
distance_text.tracking = -2;
try {
distance_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_gold_text_slot_data_Layer1_1(){
try {
gold_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
gold_text.align = "left";
gold_text.align_vert = "center";
gold_text.color = 0xFFFFFF;
gold_text.line_spacing = 22;
gold_text.preview_text = "300";
gold_text.tracking = -2;
try {
gold_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package blastrpg_fla
Section 58
//spell1_352 (blastrpg_fla.spell1_352)
package blastrpg_fla {
import flash.display.*;
public dynamic class spell1_352 extends MovieClip {
public function spell1_352(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 59
//spell2_353 (blastrpg_fla.spell2_353)
package blastrpg_fla {
import flash.display.*;
public dynamic class spell2_353 extends MovieClip {
public function spell2_353(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 60
//spell3_354 (blastrpg_fla.spell3_354)
package blastrpg_fla {
import flash.display.*;
public dynamic class spell3_354 extends MovieClip {
public function spell3_354(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 61
//spell4_355 (blastrpg_fla.spell4_355)
package blastrpg_fla {
import flash.display.*;
public dynamic class spell4_355 extends MovieClip {
public function spell4_355(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 62
//spell5_356 (blastrpg_fla.spell5_356)
package blastrpg_fla {
import flash.display.*;
public dynamic class spell5_356 extends MovieClip {
public function spell5_356(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 63
//sword_select_357 (blastrpg_fla.sword_select_357)
package blastrpg_fla {
import flash.display.*;
public dynamic class sword_select_357 extends MovieClip {
public function sword_select_357(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package blastrpg_fla
Section 64
//triangle_503 (blastrpg_fla.triangle_503)
package blastrpg_fla {
import flash.display.*;
public dynamic class triangle_503 extends MovieClip {
public var water:MovieClip;
public var fire:MovieClip;
public var plant:MovieClip;
}
}//package blastrpg_fla
Section 65
//yellow_flag_112 (blastrpg_fla.yellow_flag_112)
package blastrpg_fla {
import flash.display.*;
import flash.text.*;
public dynamic class yellow_flag_112 extends MovieClip {
public var msg:TextField;
public var middle:MovieClip;
public var end:MovieClip;
}
}//package blastrpg_fla
Section 66
//Background (com.nitrome.engine.Background)
package com.nitrome.engine {
import flash.display.*;
import flash.geom.*;
public class Background extends MovieClip {
public var virtual_canvas_x:Number;
public var virtual_canvas_y:Number;
public var sky:MovieClip;
public var random_clip_pool:Array;
public var random_layer_clips:Array;
private var i:int;
public var ground:MovieClip;
public var last_virtual_canvas_x:Number;
public var ground_half_width:Number;
public var last_virtual_canvas_y:Number;
public var _0:MovieClip;
public var _2:MovieClip;
public var _4:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
public var inv_ground_half_width:Number;
public var random_layer:MovieClip;
public var back:MovieClip;
public var parallax_layers:Array;
public static const WIDTH:Number = 550;
public static const HEIGHT:Number = 350;
public static const LAYER_NAMES:Array = ["_0", "_1", "_2", "_3", "_4"];
public static const SCALE:Number = 25;
public static const LAYER_SPEEDS:Array = [0.1, 0.2, 0.3, 0.5, 0.7, 0.9];
public static const INV_SCALE:Number = 0.04;
public static const CLIP_POOL_1:Array = [HutsMC1, HutsMC2, HutsMC3, HutsMC4, HutsMC5, HutsMC6];
public static const CLIP_POOL_2:Array = [NightHutsMC1, NightHutsMC2, NightHutsMC3, NightHutsMC4, NightHutsMC5, NightHutsMC6];
public function initRandomLayer():void{
var _local1:Sprite;
random_layer_clips = [];
while (random_layer.numChildren > 0) {
random_layer.removeChildAt(0);
};
random_layer.x = 0;
_local1 = new (random_clip_pool[((Math.random() * random_clip_pool.length) >> 0)]);
_local1.y = -(Game.GROUND_CLIP_HEIGHT);
random_layer.addChild(_local1);
random_layer_clips.push(_local1);
updateRandomLayer();
}
public function reset(){
var _local1:int;
back = this;
if (back.sky){
back.sky.y = HEIGHT;
};
if (back.ground){
back.ground.y = HEIGHT;
ground_half_width = (back.ground.width * 0.5);
inv_ground_half_width = (1 / ground_half_width);
};
parallax_layers = [];
_local1 = 0;
while (_local1 < LAYER_NAMES.length) {
if (back[LAYER_NAMES[_local1]]){
parallax_layers.push(back[LAYER_NAMES[_local1]]);
} else {
parallax_layers.push(null);
};
_local1++;
};
if ((((currentLabel == "level_1")) || ((currentLabel == "level_4")))){
random_layer = back._3;
};
random_clip_pool = ((currentLabel == "level_1")) ? CLIP_POOL_1 : CLIP_POOL_2;
_local1 = 0;
while (_local1 < parallax_layers.length) {
if (parallax_layers[_local1]){
parallax_layers[_local1].x = 0;
parallax_layers[_local1].y = HEIGHT;
};
_local1++;
};
virtual_canvas_x = 0;
last_virtual_canvas_x = 0;
if ((((currentLabel == "level_1")) || ((currentLabel == "level_4")))){
initRandomLayer();
};
}
public function updateRandomLayer():void{
var _local1:Rectangle;
var _local2:int;
var _local3:Sprite;
_local1 = random_layer.getBounds(random_layer.parent);
_local2 = 0;
while (_local1.right <= WIDTH) {
_local3 = new (random_clip_pool[((Math.random() * random_clip_pool.length) >> 0)]);
_local3.y = -(Game.GROUND_CLIP_HEIGHT);
_local3.x = (random_layer_clips[(random_layer_clips.length - 1)].x + random_layer_clips[(random_layer_clips.length - 1)].width);
random_layer.addChild(_local3);
random_layer_clips.push(_local3);
var _temp1 = _local2;
_local2 = (_local2 + 1);
if (_temp1 > 100){
break;
};
};
while (_local1.left >= 0) {
_local3 = new (random_clip_pool[((Math.random() * random_clip_pool.length) >> 0)]);
_local3.y = -(Game.GROUND_CLIP_HEIGHT);
_local3.x = (random_layer_clips[0].x - _local3.width);
random_layer.addChild(_local3);
random_layer_clips.unshift(_local3);
var _temp2 = _local2;
_local2 = (_local2 + 1);
if (_temp2 > 100){
break;
};
};
while ((((random_layer_clips.length > 2)) && (((random_layer_clips[(random_layer_clips.length - 2)].x + random_layer.x) > WIDTH)))) {
if (random_layer_clips[(random_layer_clips.length - 1)].parent){
random_layer_clips[(random_layer_clips.length - 1)].parent.removeChild(random_layer_clips[(random_layer_clips.length - 1)]);
};
random_layer_clips.pop();
};
while ((((random_layer_clips.length > 2)) && ((((random_layer_clips[1].x + random_layer_clips[1].width) + random_layer.x) < 0)))) {
if (random_layer_clips[0].parent){
random_layer_clips[0].parent.removeChild(random_layer_clips[0]);
};
random_layer_clips.shift();
};
}
public function move(_arg1:Number, _arg2:Game):void{
var _local3:int;
last_virtual_canvas_x = virtual_canvas_x;
virtual_canvas_x = (virtual_canvas_x + _arg1);
if (back.sky){
back.sky.y = (_arg2.canvas.y + HEIGHT);
};
_local3 = 0;
while (_local3 < parallax_layers.length) {
if (parallax_layers[_local3]){
parallax_layers[_local3].x = (parallax_layers[_local3].x + (_arg1 * LAYER_SPEEDS[_local3]));
if (currentLabel == "level_4"){
if (_local3 == 4){
parallax_layers[_local3].x = (parallax_layers[_local3].x - (0.5 * _arg2.time_step));
};
};
if (!(((((currentLabel == "level_1")) || ((currentLabel == "level_4")))) && ((parallax_layers[_local3] == random_layer)))){
if (parallax_layers[_local3].x > 0){
parallax_layers[_local3].x = (parallax_layers[_local3].x - (parallax_layers[_local3].width * 0.5));
};
if (parallax_layers[_local3].x < (-(parallax_layers[_local3].width) * 0.5)){
parallax_layers[_local3].x = (parallax_layers[_local3].x + (parallax_layers[_local3].width * 0.5));
};
};
parallax_layers[_local3].y = ((_arg2.shaker.y + _arg2.canvas.y) + HEIGHT);
};
_local3++;
};
back.ground.x = ((((-(_arg2.canvas.x) * inv_ground_half_width) >> 0) * ground_half_width) + _arg2.canvas.x);
back.ground.y = ((_arg2.shaker.y + _arg2.canvas.y) + HEIGHT);
if ((((currentLabel == "level_1")) || ((currentLabel == "level_4")))){
updateRandomLayer();
};
}
}
}//package com.nitrome.engine
Section 67
//BearTrap (com.nitrome.engine.BearTrap)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class BearTrap extends GameObject {
public function BearTrap(_arg1:DisplayObject, _arg2:Game){
super(_arg1, _arg2);
rect = new Rect((x - 34), (y - 6), 70, 19);
collision_type = RECT;
}
override public function trigger(_arg1:GameObject):void{
if ((mc as MovieClip).currentLabel == "idle"){
(mc as MovieClip).gotoAndPlay("closed");
g.player.tidyUp();
g.player.state = Player.LANDED;
g.landing_count = Game.DEAD_LANDING_DELAY;
g.player.mc.visible = false;
g.player.active = false;
NitromeGame.sound_manager.playSound("beartrap");
NitromeGame.sound_manager.stopMusicFadeOut();
g.player.vx = (g.player.vy = 0);
};
}
}
}//package com.nitrome.engine
Section 68
//Bouncer (com.nitrome.engine.Bouncer)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class Bouncer extends GameObject {
private var triggered:Boolean;// = false
public function Bouncer(_arg1:DisplayObject, _arg2:Game){
triggered = false;
super(_arg1, _arg2);
rect = new Rect((x - 75), (y - 50), 150, 50);
collision_type = RECT;
}
override public function trigger(_arg1:GameObject):void{
if (!triggered){
(mc as MovieClip).gotoAndStop("go");
if (g.player.vy > 0){
g.player.vy = 0;
};
g.player.boost();
g.starBurst(g.player.x, g.player.y, 0, -1);
NitromeGame.sound_manager.playSound("shroom_bounce");
triggered = true;
};
}
}
}//package com.nitrome.engine
Section 69
//Character (com.nitrome.engine.Character)
package com.nitrome.engine {
import flash.display.*;
import flash.geom.*;
import com.nitrome.util.*;
public class Character extends GameObject {
public var filters:Array;
public var invincible:Boolean;// = false
public var health_bar:MovieClip;
public var total_health:HiddenInt;
public var petrified:Boolean;// = false
public var matrix:Matrix;
public var attack:HiddenInt;
public var defence:HiddenInt;
public var current_health:HiddenInt;
public var hit_count:int;
public var damage:HiddenInt;
public var element:HiddenInt;
public function Character(_arg1:DisplayObject, _arg2:Game){
petrified = false;
invincible = false;
filters = [];
super(_arg1, _arg2);
}
public function death():void{
}
public function updateMC():void{
mc.x = (x >> 0);
mc.y = (y >> 0);
}
public function updateHealthBar():void{
health_bar.health.scaleX = ((current_health.value > 0)) ? ((1 / total_health.value) * current_health.value) : 0;
}
}
}//package com.nitrome.engine
Section 70
//Chest (com.nitrome.engine.Chest)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
import com.nitrome.ui.items.*;
import com.nitrome.util.*;
public class Chest extends GameObject {
public var content:EquipmentButton;
public var state:int;
public var gold:HiddenInt;
public static const OPEN:int = 1;
public static const CLOSED:int = 0;
public function Chest(_arg1:DisplayObject, _arg2:Game){
super(_arg1, _arg2);
rect = new Rect((x - 25), (y - 34), 59, 47);
collision_type = RECT;
gold = new HiddenInt((Math.random() * 10));
content = ShopStockBar.createContent();
state = CLOSED;
}
override public function trigger(_arg1:GameObject):void{
if ((((state == OPEN)) || (EquipmentBar.full()))){
return;
};
EquipmentBar.addItem(content);
g.level_gold.value = (g.level_gold.value + gold.value);
NitromeGame.sound_manager.playSound("buy_item");
g.coinBang(x, (y - 25), new Dot());
(mc as MovieClip).gotoAndStop("open");
state = OPEN;
g.slowTime();
}
override public function unpause():void{
(mc as MovieClip).gotoAndStop((mc as MovieClip).currentLabel);
}
}
}//package com.nitrome.engine
Section 71
//Coin (com.nitrome.engine.Coin)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.gfx.*;
import com.nitrome.util.*;
public class Coin extends GameObject {
public var chase_interpolation:Number;
public var reward:HiddenInt;
public var chase:Boolean;
public var fade:BitmapClip;
public static const INIT_CHASE_INTERPOLATION:Number = 0.04;
public static const CHASE_INTERPOLATION_STEP:Number = 0.04;
public function Coin(_arg1:DisplayObject, _arg2:int, _arg3:BitmapClip, _arg4:Game){
super(_arg1, _arg4);
this.reward = new HiddenInt(_arg2);
this.fade = _arg3;
radius = 12;
collision_type = CIRCLE;
call_main = true;
chase = false;
chase_interpolation = INIT_CHASE_INTERPOLATION;
}
override public function remove():void{
if (chase){
return;
};
super.remove();
}
override public function trigger(_arg1:GameObject):void{
active = false;
g.level_gold.value = (g.level_gold.value + reward.value);
g.addFX(x, y, fade, g.back_fx_image, g.back_fx_image_holder);
NitromeGame.sound_manager.playSound("coin");
}
public function main():void{
if (((((chase) && (g.player.active))) && (!((((((g.player.state == Player.LOADED)) || ((g.player.state == Player.LANDED)))) || ((g.player.state == Player.SLIDING))))))){
x = (x + ((g.player.x - x) * chase_interpolation));
y = (y + ((g.player.y - y) * chase_interpolation));
mc.x = (x >> 0);
mc.y = (y >> 0);
if (chase_interpolation < 1){
chase_interpolation = (chase_interpolation + CHASE_INTERPOLATION_STEP);
};
} else {
if ((((x - g.player.x) * (x - g.player.x)) + ((y - g.player.y) * (y - g.player.y))) <= (((radius + g.player.radius) + (PlayerStats.charisma.value * 2)) * ((radius + g.player.radius) + (PlayerStats.charisma.value * 2)))){
chase = true;
};
};
}
}
}//package com.nitrome.engine
Section 72
//Effect (com.nitrome.engine.Effect)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
import flash.geom.*;
import com.nitrome.gfx.*;
import flash.filters.*;
public class Effect {
public var active:Boolean;
public var strength:int;
public var type:int;
public var count:int;
public var target:Character;
public var boost_icon:Sprite;
public var mc:Sprite;
public var g:Game;
public var applied:Boolean;
public static const BOOST_ATTACK:int = 10;
public static const PETRIFY:int = 2;
public static const PLANT:int = 9;
public static const POISON:int = 3;
public static const DEATH:int = 1;
public static const BOOST_CHARISMA:int = 14;
public static const POISON_MATRIX:ColorMatrixFilter = new ColorMatrixFilter([0.5, 0, 0, 0, 0, 0, 0.5, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0]);
public static const BOUNCY:int = 5;
public static const INVINCIBLE:int = 4;
public static const NUKE:int = 6;
public static const BRICK_MATRIX:ColorMatrixFilter = new ColorMatrixFilter([0.5, 0.5, 0.5, 0, -250, 0.5, 0.5, 0.5, 0, -250, 0.5, 0.5, 0.5, 0, -250, 0, 0, 0, 1, 0]);
public static const BOOST_AGILITY:int = 13;
public static const PETRIFIED_MATRIX:ColorMatrixFilter = new ColorMatrixFilter([0.114, 0.299, 0.587, 0, 0, 0.114, 0.299, 0.587, 0, 0, 0.114, 0.299, 0.587, 0, 0, 0, 0, 0, 1, 0]);
public static const BRICK:int = 15;
public static const BOOST_DEFENCE:int = 11;
public static const FIRE:int = 7;
public static const WATER:int = 8;
public static const INVINCIBLE_MATRIX:ColorMatrixFilter = new ColorMatrixFilter([1, 0, 0, 0, 150, 0, 1, 0, 0, 150, 0, 0, 1, 0, 100, 0, 0, 0, 1, 0]);
public static const BOOST_STRENGTH:int = 12;
public function Effect(_arg1:int, _arg2:int, _arg3:Character, _arg4:Game, _arg5:int=0){
this.g = _arg4;
this.type = _arg1;
this.count = _arg2;
this.target = _arg3;
this.strength = _arg5;
active = true;
applied = false;
}
public function dismiss():void{
var _local1:int;
var _local2:GrabFade;
if (!active){
return;
};
if (type == PETRIFY){
target.petrified = false;
TickClip.unlock((target.mc as DisplayObjectContainer));
_local1 = target.filters.indexOf(PETRIFIED_MATRIX);
if (_local1 > -1){
target.filters.splice(_local1, 1);
};
target.mc.filters = target.filters;
} else {
if (type == POISON){
_local1 = target.filters.indexOf(POISON_MATRIX);
if (_local1 > -1){
target.filters.splice(_local1, 1);
};
target.mc.filters = target.filters;
} else {
if (type == INVINCIBLE){
target.invincible = false;
_local1 = target.filters.indexOf(INVINCIBLE_MATRIX);
if (_local1 > -1){
target.filters.splice(_local1, 1);
};
target.mc.filters = target.filters;
if (mc){
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
if (mc.parent){
mc.parent.removeChild(mc);
};
};
} else {
if (type == BOUNCY){
mc.parent.addChild(target.mc);
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
mc.parent.removeChild(mc);
} else {
if (type == BOOST_AGILITY){
PlayerStats.agility.value = (PlayerStats.agility.value - strength);
if (boost_icon){
removeStatBoostIcon();
};
if (((mc) && (mc.parent))){
mc.parent.removeChild(mc);
};
} else {
if (type == BOOST_ATTACK){
PlayerStats.attack.value = (PlayerStats.attack.value - strength);
if (boost_icon){
removeStatBoostIcon();
};
if (((mc) && (mc.parent))){
mc.parent.removeChild(mc);
};
} else {
if (type == BOOST_CHARISMA){
PlayerStats.charisma.value = (PlayerStats.charisma.value - strength);
if (boost_icon){
removeStatBoostIcon();
};
if (((mc) && (mc.parent))){
mc.parent.removeChild(mc);
};
} else {
if (type == BOOST_DEFENCE){
PlayerStats.defence.value = (PlayerStats.defence.value - strength);
if (boost_icon){
removeStatBoostIcon();
};
if (((mc) && (mc.parent))){
mc.parent.removeChild(mc);
};
} else {
if (type == BOOST_STRENGTH){
PlayerStats.strength.value = (PlayerStats.strength.value - strength);
if (boost_icon){
removeStatBoostIcon();
};
if (((mc) && (mc.parent))){
mc.parent.removeChild(mc);
};
} else {
if (type == BRICK){
_local1 = target.filters.indexOf(BRICK_MATRIX);
if (_local1 > -1){
target.filters.splice(_local1, 1);
};
target.mc.filters = target.filters;
g.player.bricked = false;
if (mc){
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
if (mc.parent){
mc.parent.removeChild(mc);
};
};
} else {
if (type == FIRE){
if (mc){
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
if (mc.parent){
mc.parent.removeChild(mc);
};
};
} else {
if (type == WATER){
if (mc){
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
if (mc.parent){
mc.parent.removeChild(mc);
};
};
} else {
if (type == PLANT){
if (mc){
_local2 = new GrabFade(mc, true);
_local2.x = target.x;
_local2.y = target.y;
g.player_holder.addChild(_local2);
if (mc.parent){
mc.parent.removeChild(mc);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
active = false;
}
public function updateMC():void{
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Rectangle;
var _local5:Number;
var _local6:int;
if (type == POISON){
if (target.filters.indexOf(POISON_MATRIX) > -1){
if ((target is Player)){
_local2 = (target as Player).vx;
_local3 = (target as Player).vy;
} else {
if ((target is Monster)){
_local2 = (target.x - (target as Monster).px);
_local3 = (target.y - (target as Monster).py);
};
};
_local4 = target.mc.getBounds(g.canvas);
g.addFX((_local4.x + (Math.random() * _local4.width)), (_local4.y + (Math.random() * _local4.height)), g.purple_bubble_bcs[((Math.random() * g.purple_bubble_bcs.length) >> 0)], g.front_fx_image, g.front_fx_image_holder, new Dot(_local2, _local3));
};
} else {
if (type == BOUNCY){
if ((target as Player).bounce){
(target as Player).vy = ((target as Player).vy * 2);
_local6 = (1 + (Math.random() * 3));
NitromeGame.sound_manager.playSound(("boing_bounce" + _local6));
};
if (!mc){
mc = new Sprite();
target.mc.parent.addChild(mc);
mc.addChild(target.mc);
mc.addChild(new BouncyAuraMC());
};
mc.x = target.mc.x;
mc.y = target.mc.y;
target.mc.x = 0;
target.mc.y = 0;
target.matrix = mc.transform.matrix;
_local5 = ((Math.PI / 10) * (g.tick_count % 10));
target.matrix.d = (0.75 + (Math.sin(_local5) * 0.5));
mc.transform.matrix = target.matrix;
} else {
if (type == FIRE){
if (!mc){
mc = new FireAuraMC();
mc.alpha = 0;
(target.mc as DisplayObjectContainer).addChild(mc);
};
if (Game.tick){
if (((mc) && (!((mc.alpha == 1))))){
mc.alpha = (mc.alpha + 0.1);
if (mc.alpha > 1){
mc.alpha = 1;
};
};
_local1 = 0;
while (_local1 < 3) {
_local5 = ((Math.PI / 20) * ((g.tick_count + _local1) % 20));
g.addFX((target.x - 40), target.y, g.fire_particle_bc, g.front_fx_image, g.front_fx_image_holder, new Dot(-1, ((-0.5 + Math.sin(_local5)) * 20)), true);
_local1++;
};
};
} else {
if (type == WATER){
if (!mc){
mc = new WaterAuraMC();
mc.alpha = 0;
(target.mc as DisplayObjectContainer).addChild(mc);
};
if (Game.tick){
if (((mc) && (!((mc.alpha == 1))))){
mc.alpha = (mc.alpha + 0.1);
if (mc.alpha > 1){
mc.alpha = 1;
};
};
_local1 = 0;
while (_local1 < 3) {
_local5 = ((Math.PI / 20) * ((g.tick_count + _local1) % 20));
g.addFX((target.x - 40), target.y, g.water_particle_bc, g.front_fx_image, g.front_fx_image_holder, new Dot(-1, ((-0.5 + Math.sin(_local5)) * 20)), true);
_local1++;
};
};
} else {
if (type == PLANT){
if (!mc){
mc = new PlantAuraMC();
mc.alpha = 0;
(target.mc as DisplayObjectContainer).addChild(mc);
};
if (Game.tick){
if (((mc) && (!((mc.alpha == 1))))){
mc.alpha = (mc.alpha + 0.1);
if (mc.alpha > 1){
mc.alpha = 1;
};
};
_local1 = 0;
while (_local1 < 3) {
_local5 = ((Math.PI / 20) * ((g.tick_count + _local1) % 20));
g.addFX((target.x - 40), target.y, g.plant_particle_bc, g.front_fx_image, g.front_fx_image_holder, new Dot(-1, ((-0.5 + Math.sin(_local5)) * 20)), true);
_local1++;
};
};
} else {
if (type == BOOST_AGILITY){
if (((!(mc)) && (!(applied)))){
mc = new StatBoostBubbleMC();
(target.mc as DisplayObjectContainer).addChild(mc);
PlayerStats.agility.value = (PlayerStats.agility.value + strength);
applied = true;
} else {
if (applied){
if (((mc) && (((mc as MovieClip).currentLabel == "done")))){
addStatBoostIcon(new AgilityBoostMC());
if (mc.parent){
mc.parent.removeChild(mc);
};
mc = null;
};
};
};
} else {
if (type == BOOST_ATTACK){
if (((!(mc)) && (!(applied)))){
mc = new StatBoostBubbleMC();
(target.mc as DisplayObjectContainer).addChild(mc);
PlayerStats.attack.value = (PlayerStats.attack.value + strength);
applied = true;
} else {
if (applied){
if (((mc) && (((mc as MovieClip).currentLabel == "done")))){
addStatBoostIcon(new AttackBoostMC());
if (mc.parent){
mc.parent.removeChild(mc);
};
mc = null;
};
};
};
} else {
if (type == BOOST_CHARISMA){
if (((!(mc)) && (!(applied)))){
mc = new StatBoostBubbleMC();
(target.mc as DisplayObjectContainer).addChild(mc);
PlayerStats.charisma.value = (PlayerStats.charisma.value + strength);
applied = true;
} else {
if (applied){
if (((mc) && (((mc as MovieClip).currentLabel == "done")))){
addStatBoostIcon(new CharismaBoostMC());
if (mc.parent){
mc.parent.removeChild(mc);
};
mc = null;
};
};
};
} else {
if (type == BOOST_DEFENCE){
if (((!(mc)) && (!(applied)))){
mc = new StatBoostBubbleMC();
(target.mc as DisplayObjectContainer).addChild(mc);
PlayerStats.defence.value = (PlayerStats.defence.value + strength);
applied = true;
} else {
if (applied){
if (((mc) && (((mc as MovieClip).currentLabel == "done")))){
addStatBoostIcon(new DefenceBoostMC());
if (mc.parent){
mc.parent.removeChild(mc);
};
mc = null;
};
};
};
} else {
if (type == BOOST_STRENGTH){
if (((!(mc)) && (!(applied)))){
mc = new StatBoostBubbleMC();
(target.mc as DisplayObjectContainer).addChild(mc);
PlayerStats.strength.value = (PlayerStats.strength.value + strength);
applied = true;
} else {
if (applied){
if (((mc) && (((mc as MovieClip).currentLabel == "done")))){
addStatBoostIcon(new StrengthBoostMC());
if (mc.parent){
mc.parent.removeChild(mc);
};
mc = null;
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function removeStatBoostIcon():void{
var _local1:Sprite;
var _local2:MovieClip;
var _local3:int;
_local1 = NitromeGame.timeline.boost_holder;
_local2 = new IconPopMC();
_local2.x = boost_icon.x;
_local2.y = boost_icon.y;
_local1.addChild(_local2);
if (boost_icon.parent){
boost_icon.parent.removeChild(boost_icon);
};
_local3 = 0;
while (_local3 < _local1.numChildren) {
if ((_local1.getChildAt(_local3) is FloatSprite)){
(_local1.getChildAt(_local3) as FloatSprite).target_y = ((_local1.getChildAt(_local3) as FloatSprite).target_y + boost_icon.height);
};
_local3++;
};
}
public function addStatBoostIcon(_arg1:Sprite):void{
var _local2:Sprite;
boost_icon = _arg1;
_local2 = NitromeGame.timeline.boost_holder;
_arg1.x = ((g.canvas.x + target.x) - (boost_icon.width * 0.5));
_arg1.y = (((g.canvas.y + target.y) - _local2.y) - (boost_icon.height * 0.5));
(_arg1 as FloatSprite).target_y = ((_local2.numChildren + 1) * -(_arg1.height));
(_arg1 as FloatSprite).target_x = 5;
_arg1.alpha = 0.6;
_local2.addChild(_arg1);
}
public function main():void{
if (((target) && (target.active))){
if (type == DEATH){
target.death();
} else {
if (type == PETRIFY){
if (target.invincible){
dismiss();
} else {
if (!target.petrified){
target.petrified = true;
TickClip.lock((target.mc as DisplayObjectContainer));
if (target.filters.indexOf(PETRIFIED_MATRIX) == -1){
target.filters.push(PETRIFIED_MATRIX);
target.mc.filters = target.filters;
};
(target.mc as DisplayObjectContainer).addChild(new PetrifyAuraMC());
};
};
} else {
if (type == POISON){
if (target.invincible){
dismiss();
} else {
target.current_health.value = (target.current_health.value - strength);
target.updateHealthBar();
g.hit_num_holder.addChild(new HitNumbers(strength, target.mc));
if (target.current_health.value <= 0){
target.death();
} else {
if (target.filters.indexOf(POISON_MATRIX) == -1){
target.filters.push(POISON_MATRIX);
target.mc.filters = target.filters;
};
};
};
} else {
if (type == INVINCIBLE){
target.invincible = true;
if (target.filters.indexOf(INVINCIBLE_MATRIX) == -1){
target.filters.push(INVINCIBLE_MATRIX);
target.mc.filters = target.filters;
};
if (!mc){
mc = new InvincibleAuraMC();
(target.mc as DisplayObjectContainer).addChild(mc);
};
} else {
if (type == NUKE){
g.melee_manager.damageQueue(1000, 0);
g.canvas.addChild(new NukeWhite(g));
} else {
if (type == FIRE){
g.melee_manager.damageQueue(strength, MeleeManager.FIRE);
} else {
if (type == WATER){
g.melee_manager.damageQueue(strength, MeleeManager.WATER);
} else {
if (type == PLANT){
g.melee_manager.damageQueue(strength, MeleeManager.PLANT);
} else {
if ((((type == BRICK)) && (!(applied)))){
if (target.filters.indexOf(BRICK_MATRIX) == -1){
target.filters.push(BRICK_MATRIX);
target.mc.filters = target.filters;
};
g.player.bricked = true;
applied = true;
if (!mc){
mc = new BrickAuraMC();
(target.mc as DisplayObjectContainer).addChild(mc);
};
};
};
};
};
};
};
};
};
};
} else {
count = 0;
};
if (count == 0){
dismiss();
};
if (count > 0){
count--;
};
}
}
}//package com.nitrome.engine
Section 73
//GameObject (com.nitrome.engine.GameObject)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class GameObject extends MapObject {
public var name:String;
public var active:Boolean;
public var radius:Number;
public var collision_type:int;
public var collision:Boolean;
public var rect:Rect;
public var line:Line;
public var call_main:Boolean;
public static const LINE:int = 3;
public static const CIRCLE:int = 2;
public static const RECT:int = 1;
public function GameObject(_arg1:DisplayObject, _arg2:Game){
super(_arg1, _arg2);
active = true;
collision = false;
call_main = false;
_arg2.game_objects.push(this);
}
override public function remove():void{
if (active){
active = false;
if (g.scroller.map_array_layers[layer][map_x]){
g.scroller.map_array_layers[layer][map_x].push(new MapData(tile_id, map_y));
} else {
g.scroller.map_array_layers[layer][map_x] = [new MapData(tile_id, map_y)];
};
};
}
public function intersects(_arg1:GameObject):Boolean{
if ((((collision_type == CIRCLE)) && ((_arg1.collision_type == CIRCLE)))){
return (((((x - _arg1.x) * (x - _arg1.x)) + ((y - _arg1.y) * (y - _arg1.y))) <= ((radius + _arg1.radius) * (radius + _arg1.radius))));
};
if ((((collision_type == CIRCLE)) && ((_arg1.collision_type == RECT)))){
return (_arg1.rect.intersectsCircle(x, y, radius));
};
if ((((collision_type == RECT)) && ((_arg1.collision_type == CIRCLE)))){
return (rect.intersectsCircle(_arg1.x, _arg1.y, _arg1.radius));
};
if ((((collision_type == RECT)) && ((_arg1.collision_type == RECT)))){
return (rect.intersects(_arg1.rect));
};
if ((((collision_type == CIRCLE)) && ((_arg1.collision_type == LINE)))){
return (lineProxy(x, y, radius, _arg1.line));
};
if ((((collision_type == LINE)) && ((_arg1.collision_type == CIRCLE)))){
return (lineProxy(_arg1.x, _arg1.y, _arg1.radius, line));
};
return (false);
}
public function trigger(_arg1:GameObject):void{
}
public function lineProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Line):Boolean{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_local13 = (_arg1 - _arg4.a.x);
_local14 = (_arg2 - _arg4.a.y);
_local15 = ((_arg4.vx * _arg4.vx) + (_arg4.vy * _arg4.vy));
_local16 = ((_local13 * _arg4.vx) + (_local14 * _arg4.vy));
if (_local16 < 0){
if (proxy(_arg4.a.x, _arg4.a.y, _arg1, _arg2, _arg3)){
return (true);
};
} else {
if (_local16 > _local15){
if (proxy(_arg4.b.x, _arg4.b.y, _arg1, _arg2, _arg3)){
return (true);
};
} else {
if ((((_local16 >= 0)) && ((_local16 <= _local15)))){
_local12 = ((_local13 * -(_arg4.lx)) + (_local14 * -(_arg4.ly)));
_local10 = (_local12 * _arg4.lx);
_local11 = (_local12 * _arg4.ly);
_local9 = ((_local10 * _local10) + (_local11 * _local11));
if (((_arg3 * _arg3) - _local9) >= 0){
return (true);
};
};
};
};
return (false);
}
public function proxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Boolean{
return (((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2))) <= (_arg5 * _arg5)));
}
public function unpause():void{
}
}
}//package com.nitrome.engine
Section 74
//HitNumbers (com.nitrome.engine.HitNumbers)
package com.nitrome.engine {
import flash.display.*;
import flash.events.*;
public class HitNumbers extends Sprite {
public var num:BlastRPGFont;
public var hit_target:DisplayObject;
public function HitNumbers(_arg1:int, _arg2:DisplayObject){
this.hit_target = _arg2;
x = _arg2.x;
y = (_arg2.y - 50);
num = new BlastRPGFont();
num.color = ((_arg1 > 0)) ? 16737894 : 0xFFFF00;
num.text = ("" + _arg1);
addChild(num);
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
public function onEnterFrame(_arg1:Event=null):void{
x = hit_target.x;
y = (hit_target.y - 50);
if (Game.tick){
num.y = (num.y - 4);
num.alpha = (num.alpha - 0.04);
if (num.alpha <= 0){
num.alpha = 0;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
if (parent){
parent.removeChild(this);
};
};
};
}
}
}//package com.nitrome.engine
Section 75
//InterfaceBackground (com.nitrome.engine.InterfaceBackground)
package com.nitrome.engine {
import flash.display.*;
import flash.events.*;
public class InterfaceBackground extends MovieClip {
public var _0:MovieClip;
public var _1:MovieClip;
private var parallax_layers:Array;
public static const LAYER_SPEEDS:Array = [0.1, 0.2];
public function InterfaceBackground(){
parallax_layers = [];
parallax_layers[0] = this["_0"];
parallax_layers[1] = this["_1"];
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
public function onEnterFrame(_arg1:Event=null):void{
var _local2:Number;
var _local3:int;
_local2 = -5;
_local3 = 0;
while (_local3 < parallax_layers.length) {
if (parallax_layers[_local3]){
parallax_layers[_local3].x = (parallax_layers[_local3].x + (_local2 * LAYER_SPEEDS[_local3]));
};
if (parallax_layers[_local3].x > 0){
parallax_layers[_local3].x = (parallax_layers[_local3].x - (parallax_layers[_local3].width * 0.5));
};
if (parallax_layers[_local3].x < (-(parallax_layers[_local3].width) * 0.5)){
parallax_layers[_local3].x = (parallax_layers[_local3].x + (parallax_layers[_local3].width * 0.5));
};
_local3++;
};
}
}
}//package com.nitrome.engine
Section 76
//LevelFragment (com.nitrome.engine.LevelFragment)
package com.nitrome.engine {
import flash.events.*;
import com.nitrome.util.*;
import flash.net.*;
import com.nitrome.util.misc.*;
public class LevelFragment {
public var map_layers:Array;
public var width:int;
public var id:String;
public var height:int;
public static const DECKS:Array = [[1, 2, 3, 4], [5, 6, 7, 8, 26, 28], [9, 10, 11, 12], [13, 14, 15, 20, 25, 27], [16, 17, 18, 22, 23, 24], [19, 21]];
public static var xmls:Array = [{width:40, height:40, values:":3,y6i5,,(y23i5,y36i5),,y29i5,,y19i5,y13i5,y7i5,(y25i1,y33i5),:2,y21i5,y29i5,,(y8i1,y16i1,y3i5),,y33i1,:3,y22i5,y15i5,(y28i1,y33i5),y7i5,,y13i5,y19i1,,y25i5,,y32i5,y6i5,y16i5,,y25i1,"}, {width:40, height:58, values:",y35i5,(y54i5,y34i5,y36i5),(y35i5,y6i5),(y7i5,y5i5),(y8i5,y4i5),(y9i5,y3i5,y57i3),(y45i5,y27i5,y4i5,y8i5),(y44i5,y46i5,y27i5,y26i5,y28i5,y5i5,y7i5),(y45i5,y27i5,y6i5),:3,y36i5,(y35i5,y37i5,y20i5),(y36i5,y20i5,y19i5,y21i5),y20i5,,y52i5,:2,y13i5,y42i5,(y43i5,y41i5,y28i5,y13i5),(y42i5,y27i5,y28i5,y29i5,y12i5,y14i5,y16i5,y10i5),(y28i5,y13i5),,y13i5,y3i5,(y4i5,y2i5),(y5i5,y1i5),(y49i5,y33i5,y6i5,y0i5),(y32i5,y33i5,y34i5,y1i5,y5i5,y57i4),(y33i5,y2i5,y4i5),(y21i5,y3i5),(y20i5,y21i5,y22i5),y21i5,y41i5,(y40i5,y42i5),y41i5"}, {width:80, height:20, values:":24,y12i1,:18,y18i1,:25,y5i1,:10"}, {width:80, height:20, values:":21,y19i10,:38,y19i11,:19"}, {width:80, height:80, values:":2,y78i15,:3,y75i5,(y75i5,y74i5,y76i5),y75i5,:6,y15i15,:4,y48i15,:3,(y69i15,y9i5),(y9i8,y8i5,y10i5),y9i5,:3,y42i5,(y42i8,y41i5,y43i5),(y42i5,y66i5),(y66i5,y65i5,y67i5),y66i5,:16,y25i15,:2,y59i15,:2,y20i5,(y20i8,y19i5,y21i5),y20i5,:2,y55i5,(y55i5,y54i5,y56i5),y55i5,:5,y74i15,:9"}, {width:80, height:40, values:":8,y38i5,(y37i5,y39i5),y38i5,:25,y39i16,:28,y38i5,(y37i5,y39i5),y38i5,:12"}, {width:80, height:40, values:":26,y39i8,,y39i10,,y39i8,,y39i6,,y39i11,,y39i6,,y39i7,,y39i12,,y39i7,:37"}, {width:120, height:40, values:":18,y39i3,:42,y39i3,:41,y39i3,:16"}, {width:120, height:40, values:":21,y39i17,,y38i5,(y38i9,y37i5,y39i5),y38i5,:38,y39i18,,y38i5,(y37i5,y38i6,y39i5),y38i5,:44,y39i19,,y38i5,(y37i5,y38i7,y39i5),y38i5,:2"}, {width:120, height:40, values:":56,y36i5,,(y36i5,y33i5),(y36i5,y33i5,y30i5,y27i5),(y39i4,y36i9,y33i7,y30i6,y27i5,y24i5,y21i5,y15i8),(y36i5,y33i5,y30i5,y27i5),(y36i5,y33i5),,y36i5,:55"}, {width:120, height:40, values:":18,y33i15,:17,y29i5,y33i1,,y32i5,y30i1,,y28i5,:4,y33i1,,(y31i5,y35i5),:2,(y33i5,y30i5),:11,y39i3,:12,y39i17,y39i9,,y39i19,y39i7,:2,y39i16,y39i8,:4,y39i18,y39i6,y39i19,y39i7,:26"}, {width:160, height:40, values:":19,y39i8,,y39i10,y39i8,,y39i10,,y39i10,:2,y39i8:2,:31,y39i6,,y39i11,:3,y39i6,:2,y39i6,,y39i11,,y39i6:2,,y39i11,,y39i6,:66,y39i7,,y39i12,,y39i7,,y39i12:2,,y39i7:2,:2"}, {width:100, height:40, values:":49,y39i13,,(y39i5,y38i5),(y37i5,y38i5,y39i5),(y39i5,y38i5),y39i5,:45"}, {width:120, height:40, values:":56,y36i5,,(y36i5,y33i5),(y36i5,y33i5,y30i5,y27i5),(y39i14,y36i9,y33i7,y30i6,y27i5,y24i5,y21i5,y15i8),(y36i5,y33i5,y30i5,y27i5),(y36i5,y33i5),,y36i5,:55"}, {width:120, height:40, values:":49,y39i5,(y39i8,y38i5),y39i5,:8,y39i2,:8,y39i5,(y39i8,y38i5),y39i5,:48"}, {width:80, height:40, values:":41,y39i20,,(y39i7,y38i7,y37i7),(y38i7,y39i7),y39i7,:34"}, {width:80, height:40, values:":41,y39i22,:2,(y37i6,y38i6,y39i6),(y39i6,y38i6),y39i6,:33"}, {width:80, height:40, values:":11,y5i21,y3i8,(y3i8,y4i8),:19,y13i21,y11i8,(y11i8,y12i8),:17,y23i21,y21i8,(y21i8,y22i8),:14,y33i21,y31i8,(y31i8,y32i8),:7"}, {width:80, height:40, values:":14,y6i23,y4i7,(y5i7,y6i7,y4i5),(y5i7,y6i5),y5i5,:10,y12i23,y10i7,(y11i7,y12i7,y10i5),(y11i7,y12i5),y11i5,:8,y20i23,y18i7,(y19i7,y20i7,y18i5),(y19i7,y20i5),y19i5,:5,y28i23,y26i7,(y27i7,y28i7,y26i5),(y27i7,y28i5),y27i5,y35i23,y33i7,(y34i7,y35i7,y33i5),(y34i7,y35i5),y34i5,:18"}, {width:80, height:40, values:":18,y39i5,(y39i5,y38i5),y39i5,,y39i5,y37i1,:3,y39i5,(y39i5,y38i5,y34i5),y39i5,,y39i16,,y37i1,,(y26i1,y31i5),(y39i16,y34i1),,y39i5,(y39i5,y38i5,y28i5,y23i5),(y39i5,y5i1),y31i5,(y39i13,y7i5,y17i5),y12i5,(y30i1,y24i5,y20i5,y9i5),y39i4,(y39i5,y17i5),(y39i5,y38i5,y19i5,y13i5),(y34i1,y39i5),(y18i1,y32i5),y39i16,:2,y39i5,,y35i5,y38i1,:3,y39i5,(y39i5,y38i5),y39i5,:17"}, {width:40, height:80, values:":7,y79i3,:6,y78i1,:3,(y69i1,y43i23),(y57i21,y23i23,y78i5),(y67i5,y19i5,y42i8),(y40i5,y23i5,y57i8),(y69i5,y55i5,y43i5,y67i8,y21i8),(y75i1,y24i5,y42i8),(y48i21,y55i8,y39i8),(y63i21,y36i23,y66i5,y53i5,y56i5,y19i5,y23i8),(y73i5,y25i5,y15i5,y53i8,y48i8,y18i8),(y40i5,y46i8,y20i8),(y77i5,y61i5,y63i5,y47i5,y44i5,y33i5,y38i8),(y52i5,y16i5,y22i5,y35i8,y25i8),(y74i5,y37i5,y33i5,y61i8),(y61i5,y34i5,y45i8),(y45i5,y32i8),(y59i5,y31i5,y21i8),(y19i23,y10i5),,(y18i5,y16i8),(y15i5,y17i8),(y20i5,y13i8),(y17i5,y16i8)"}, {width:80, height:20, values:":15,y19i5,:2,y19i5,y19i7,y19i5,,y19i12,:2,y19i7,,y19i19,,y19i7,,y19i12,,y19i19,y19i7,y19i19,,y19i12,,y19i20,,y19i4,y19i7:2,y19i19,,y19i12,,y19i12,,y19i19,y19i7,,y19i12,,y19i5,y19i7,:2,y19i5,:2,y19i5,:17"}, {width:80, height:20, values:":15,y19i5,,y19i9,y19i5,:3,y19i10,,y19i17,y19i9,:2,y19i9,,y19i10,,y19i17,y19i9,,y19i17,,y19i10,,(y18i21,y19i5),y19i5,y19i4,y19i10,,y19i9,,y19i17,y19i9,,y19i10,,y19i17,y19i9,y19i10,,y19i5,:2,y19i9,y19i5,:2,y19i5,:17"}, {width:80, height:20, values:":15,y19i5,,y19i5:2,,y19i11,:3,y19i6,,y19i18,y19i11,y19i6,,y19i5:2,y19i6,y19i18,y19i11,y19i18,y19i6,,y19i11,y19i22,y19i5,y19i4,y19i11,,y19i18,y19i6,,y19i5,,y19i11,,y19i6,y19i18,,y19i11,y19i5,y19i6,,y19i6,y19i5,y19i6,y19i5:2,,y19i5,:15"}, {width:80, height:20, values:":14,y19i3,:5,y19i4,:6,y19i3,:5,y19i2,:6,y19i3,:5,y19i4,:6,y19i3,:5,y19i2,:6,y19i3,:13"}, {width:80, height:40, values:":11,y39i3,:9,y39i3,:2,y33i15,:5,y39i3,:5,y32i15,:4,y26i15,:3,y33i15,:7,y26i15,:5,y21i15,y29i15,:8,y21i15,:5,y15i15,y26i15,:3"}, {width:80, height:40, values:":24,y39i5,:2,y39i5:2,,y39i5,y39i8,,y39i14,y39i8:2,y39i5,y39i8,y39i5,y39i8,,y39i4,y39i8,y39i5,y39i8,y39i5,y39i8,,y39i14,y39i8:2,y39i5:3,y39i8,,y39i5,,y39i5,:21"}, {width:40, height:80, values:":11,y1i15,,y24i1,:2,y67i1,y48i1,y27i15,(y11i1,y52i15),y77i1,y61i1,,y73i1,y70i15,,y54i1,,y38i1,y16i15,:2,y4i1,:7"}];
public static var loaded:Boolean = false;
public static var datas:Array = [];
public static var loading_queue:Array;
public static var queue:Array = [];
public function LevelFragment(_arg1:Array, _arg2:int, _arg3:int, _arg4:String):void{
this.map_layers = _arg1;
this.width = _arg2;
this.height = _arg3;
this.id = _arg4;
}
public function addToMap(_arg1:Scroller, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:MapData;
var _local7:Array;
var _local8:Array;
_local3 = 0;
while (_local3 < map_layers.length) {
_local4 = 0;
while (_local4 < width) {
if (map_layers[_local3][_local4]){
_local8 = [];
_local5 = 0;
while (_local5 < map_layers[_local3][_local4].length) {
_local6 = map_layers[_local3][_local4][_local5];
_local8.push(new MapData(_local6.i, -((height - _local6.y))));
_local5++;
};
_arg1.map_array_layers[_local3][(_local4 + _arg2)] = _local8;
} else {
_arg1.map_array_layers[_local3][(_local4 + _arg2)] = null;
};
_local4++;
};
_local3++;
};
_arg1.width = (_arg1.width + width);
}
private static function loadedXML(_arg1:Event):void{
var _local2:XML;
_local2 = new XML(_arg1.target.data);
datas.push(xmlToLevelFragment(_local2, ("" + formatNumber((datas.length + 1), 2))));
if (loading_queue.length){
loadLevel();
} else {
queue = datas.slice();
randomiseArray(queue);
loaded = true;
};
}
public static function xmlToLevelFragment(_arg1:Object, _arg2:String):LevelFragment{
var _local3:int;
var _local4:int;
var _local5:String;
var _local6:Array;
var _local7:int;
var _local8:int;
var _local9:MapData;
var _local10:Array;
var _local11:int;
_local3 = 0;
_local5 = "";
_local6 = [];
_local7 = parseInt(_arg1.width);
_local8 = parseInt(_arg1.height);
_local5 = _arg1.values;
_local10 = RLE.uncompress(_local5, ":", ",", /\([^\(\)]+\)/g, "%");
_local4 = 0;
while (_local4 < _local10.length) {
if (_local10[_local4] != null){
if (_local10[_local4].lastIndexOf("(") > -1){
while (_local10[_local4].lastIndexOf(")") == -1) {
_local5 = _local10[(_local4 + 1)];
_local10.splice((_local4 + 1), 1);
_local10[_local4] = (_local10[_local4] + ("," + _local5));
};
_local10[_local4] = _local10[_local4].replace(/[\(\)]+/g, "");
_local10[_local4] = _local10[_local4].split(",");
_local11 = 0;
while (_local11 < _local10[_local4].length) {
_local10[_local4][_local11] = MapData.stringToMapData(_local10[_local4][_local11]);
_local11++;
};
} else {
if (_local10[_local4] == ""){
_local10[_local4] = null;
} else {
_local10[_local4] = [MapData.stringToMapData(_local10[_local4])];
};
};
};
_local4++;
};
_local6.push(_local10);
return (new LevelFragment(_local6, _local7, _local8, _arg2));
}
public static function getQueueData():LevelFragment{
var _local1:LevelFragment;
_local1 = queue.pop();
if (queue.length == 0){
queue = datas.slice();
randomiseArray(queue);
};
return (_local1);
}
public static function init():void{
var _local1:int;
var _local2:int;
datas = [];
_local1 = NitromeGame.selected_level;
loading_queue = [];
while (_local1--) {
loading_queue = loading_queue.concat(DECKS[_local1]);
};
_local2 = 0;
while (_local2 < loading_queue.length) {
datas.push(xmlToLevelFragment(xmls[(loading_queue[_local2] - 1)], formatNumber(xmls[loading_queue[_local2]], 2)));
_local2++;
};
queue = datas.slice();
randomiseArray(queue);
loaded = true;
}
private static function loadLevel():void{
var _local1:String;
var _local2:URLLoader;
_local1 = (("level_editor/levels/level_" + formatNumber(loading_queue.pop(), 2)) + ".xml");
_local2 = new URLLoader();
_local2.addEventListener(Event.COMPLETE, loadedXML, false, 0, true);
_local2.load(new URLRequest(_local1));
}
}
}//package com.nitrome.engine
Section 77
//MapData (com.nitrome.engine.MapData)
package com.nitrome.engine {
public class MapData {
public var y:int;
public var i:int;
public function MapData(_arg1:int, _arg2:int){
this.i = _arg1;
this.y = _arg2;
}
public static function stringToMapData(_arg1:String):MapData{
var _local2:int;
var _local3:int;
if (_arg1 == ""){
return (null);
};
_local2 = parseInt(_arg1.match(/(?<=y)\d+/)[0]);
_local3 = parseInt(_arg1.match(/(?<=i)\d+/)[0]);
return (new MapData(_local3, _local2));
}
}
}//package com.nitrome.engine
Section 78
//MapObject (com.nitrome.engine.MapObject)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class MapObject extends Dot {
public var object_num:int;
public var tile_id:int;
public var layer:int;
public var mc:DisplayObject;
public var map_x:int;
public var map_y:int;
public var g:Game;
public var free:Boolean;// = false
public var id_tag:int;// = -1
public static var object_count:int = 0;
public function MapObject(_arg1:DisplayObject, _arg2:Game){
free = false;
id_tag = -1;
super(_arg1.x, _arg1.y);
this.mc = _arg1;
this.g = _arg2;
map_x = (x * Game.INV_SCALE);
map_y = (y * Game.INV_SCALE);
object_num = object_count++;
}
public function remove():void{
if (mc.parent != null){
mc.parent.removeChild(mc);
};
if (g.scroller.map_array_layers[layer][map_x]){
g.scroller.map_array_layers[layer][map_x].push(new MapData(tile_id, map_y));
} else {
g.scroller.map_array_layers[layer][map_x] = [new MapData(tile_id, map_y)];
};
}
}
}//package com.nitrome.engine
Section 79
//MeleeManager (com.nitrome.engine.MeleeManager)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
import flash.geom.*;
import com.nitrome.util.misc.*;
public class MeleeManager {
public var active:Boolean;
public var battle_queue:Array;
public var state:int;
public var count:int;
public var monster:Monster;
public var player:Player;
public var g:Game;
public var spell_queue:Array;
public static const ELEMENTAL_ATTACK = [[1, 1, 1, 1], [1, 1, 2, 0.5], [1, 0.5, 1, 2], [1, 2, 0.5, 1]];
public static const HIT_FRAME:int = 10;
public static const GORGON_PETRIFY_FREQUENCY:Number = 0.4;
public static const CHAIN_LENGTH:Number = 25;
public static const RESESS_DELAY:int = 20;
public static const PLANT:int = 3;
public static const MAX_QUEUE_LENGTH:int = 10;
public static const PLAYER_STRIKE:int = 1;
public static const HIT_DELAY:int = 4;
public static const CHAIN_STIFFNESS:Number = 0.6;
public static const ELEMENTAL_DEFENCE = [[1, 1, 1, 1], [1, 1, 0.5, 2], [1, 2, 1, 0.5], [1, 0.5, 2, 1]];
public static const BATTLE_DISTANCE:Number = 50;
public static const STRIKE_DELAY:int = 20;
public static const MONSTER_STRIKE:int = 2;
public static const RESESS:int = 3;
public static const HIT_COLOUR_TRANSFORM:ColorTransform = new ColorTransform(1, 1, 1, 1, 0xFF, 0xFF, 0xFF, 0);
public static const FIRE:int = 1;
public static const WATER:int = 2;
public static const NONE:int = 0;
public static const FAIRY_STRIKE:int = 4;
public static const DEFAULT_COLOUR_TRANSFORM:ColorTransform = new ColorTransform();
public function MeleeManager(_arg1:Game){
this.g = _arg1;
active = false;
player = _arg1.player;
battle_queue = [];
}
public function updateQueue():void{
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
_local6 = 0;
while (_local6 < battle_queue.length) {
_local1 = (battle_queue[_local6].b.x - battle_queue[_local6].a.x);
_local2 = (battle_queue[_local6].b.y - battle_queue[_local6].a.y);
_local3 = Math.sqrt(((_local1 * _local1) + (_local2 * _local2)));
_local4 = 0;
if (_local3 > 0){
if (_local6 == 0){
_local4 = ((_local3 - ((((battle_queue[_local6].a as Character).radius * 0.5) + ((battle_queue[_local6].b as Character).radius * 0.5)) + BATTLE_DISTANCE)) / _local3);
} else {
_local4 = ((_local3 - ((((battle_queue[_local6].a as Character).radius * 0.5) + ((battle_queue[_local6].b as Character).radius * 0.5)) + CHAIN_LENGTH)) / _local3);
};
};
_local5 = (_local4 * CHAIN_STIFFNESS);
battle_queue[_local6].a.x = (battle_queue[_local6].a.x + (_local5 * _local1));
battle_queue[_local6].a.x = Math.min(battle_queue[_local6].a.x, battle_queue[_local6].b.x);
battle_queue[_local6].a.y = (battle_queue[_local6].a.y + (_local5 * _local2));
if ((battle_queue[_local6].a.y + (battle_queue[_local6].a as Character).radius) > g.ground_y){
battle_queue[_local6].a.y = (g.ground_y - (battle_queue[_local6].a as Character).radius);
};
(battle_queue[_local6].a as Character).updateMC();
battle_queue[_local6].updateLine();
(battle_queue[_local6].a as Character).mc.rotation = (battle_queue[_local6].atan2() * Trig.DEGREES);
if (battle_queue[_local6].b == player){
player.mc.rotation = (battle_queue[_local6].theta * Trig.DEGREES);
};
if ((battle_queue[_local6].a as Character).hit_count){
(battle_queue[_local6].a as Character).hit_count--;
if ((battle_queue[_local6].a as Character).hit_count == 0){
(battle_queue[_local6].a as Character).mc.transform.colorTransform = DEFAULT_COLOUR_TRANSFORM;
};
};
_local6++;
};
}
public function monsterDeath():void{
g.slowTime();
battle_queue.shift();
player.boost();
monster.health_bar.visible = false;
if (battle_queue.length){
monster = (battle_queue[0].a as Monster);
battle_queue[0].b = player;
state = RESESS;
count = (RESESS_DELAY - 1);
} else {
active = false;
player.state = Player.FLYING;
};
}
public function setBattle(_arg1:Monster):void{
addToQueue(_arg1);
if (!active){
player.state = Player.COMBAT;
this.monster = _arg1;
state = RESESS;
count = (RESESS_DELAY - 1);
active = true;
};
}
public function attack(_arg1:Character, _arg2:Character):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local3 = (Math.random() * _arg1.attack.value);
_local4 = (Math.random() * _arg2.defence.value);
_local3 = (_local3 * ELEMENTAL_ATTACK[_arg2.element.value][_arg1.element.value]);
_local4 = (_local4 * ELEMENTAL_DEFENCE[_arg1.element.value][_arg2.element.value]);
if (_arg2.invincible){
_local3 = 0;
};
if (_local3 > _local4){
_local5 = _arg1.damage.value;
if ((_arg1 is Player)){
_local5 = (_local5 + (player.strength.value / 5));
};
_local5 = (_local5 * ELEMENTAL_ATTACK[_arg2.element.value][_arg1.element.value]);
g.shake(0, 5);
_arg2.current_health.value = (_arg2.current_health.value - _local5);
_arg2.updateHealthBar();
if ((_arg1 is Player)){
g.starBurst(_arg2.x, _arg2.y, -(battle_queue[0].dx), -(battle_queue[0].dy));
} else {
g.starBurst(_arg2.x, _arg2.y, battle_queue[0].dx, battle_queue[0].dy);
};
g.hit_num_holder.addChild(new HitNumbers(_local5, _arg2.mc));
return (true);
};
g.hit_num_holder.addChild(new HitNumbers(0, _arg2.mc));
return (false);
}
public function shuffleQueue():void{
var _local1:Character;
var _local2:int;
if (battle_queue.length < 2){
return;
};
(player.mc as MovieClip).gotoAndStop("melee_idle");
(monster.mc as MovieClip).gotoAndStop("melee_idle");
state = RESESS;
count = (RESESS_DELAY - 1);
_local1 = battle_queue[0].a;
while (battle_queue[0].a == _local1) {
randomiseArray(battle_queue);
};
battle_queue[0].b = player;
battle_queue[0].updateLine();
_local2 = 1;
while (_local2 < battle_queue.length) {
battle_queue[_local2].b = battle_queue[(_local2 - 1)].a;
battle_queue[_local2].updateLine();
_local2++;
};
monster = (battle_queue[0].a as Monster);
battle_queue[0].b = player;
}
public function initBattle():void{
if (monster.type == Monster.FAIRY){
state = FAIRY_STRIKE;
count = (STRIKE_DELAY - 1);
(monster.mc as MovieClip).gotoAndStop("melee_strike");
(player.mc as MovieClip).gotoAndStop("melee_idle");
} else {
state = PLAYER_STRIKE;
count = (STRIKE_DELAY - 1);
monster.health_bar.visible = true;
monster.health_bar.enemy_name.text = ((monster.overshoot_bonus.value) ? (("+" + monster.overshoot_bonus.value) + "|") : "" + Monster.NAMES[monster.type]);
monster.updateHealthBar();
if ((player.mc as MovieClip).currentLabel == "melee_strike"){
(player.mc as MovieClip).strike_anim.gotoAndPlay(1);
} else {
(player.mc as MovieClip).gotoAndStop("melee_strike");
};
(monster.mc as MovieClip).gotoAndStop("melee_idle");
};
}
public function damageQueue(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:Monster;
var _local5:Boolean;
var _local6:int;
_local3 = _arg1;
_local5 = false;
_local6 = 0;
while (_local6 < battle_queue.length) {
_local4 = (battle_queue[_local6].a as Monster);
if (_local4.type == Monster.FAIRY){
} else {
_local3 = (_local3 * ELEMENTAL_ATTACK[_local4.element.value][_arg2]);
if (_local3 > 0){
_local4.mc.transform.colorTransform = HIT_COLOUR_TRANSFORM;
_local4.hit_count = HIT_DELAY;
_local4.current_health.value = (_local4.current_health.value - _local3);
if (_local4.current_health.value <= 0){
_local4.death();
battle_queue.splice(_local6, 1);
_local6--;
_local5 = true;
};
};
};
_local6++;
};
if (_local5){
g.slowTime();
player.boost();
};
if (battle_queue.length){
_local6 = (battle_queue.length - 1);
while (_local6 > 0) {
battle_queue[_local6].b = battle_queue[(_local6 - 1)].a;
_local6--;
};
monster = (battle_queue[0].a as Monster);
battle_queue[0].b = player;
state = RESESS;
count = (RESESS_DELAY - 1);
} else {
active = false;
player.state = Player.FLYING;
if (player.hit_count > 0){
player.hit_count = 0;
player.mc.transform.colorTransform = DEFAULT_COLOUR_TRANSFORM;
};
};
}
public function quitBattle():void{
var _local1:int;
active = false;
_local1 = 0;
while (_local1 < battle_queue.length) {
(battle_queue[_local1].a as Monster).mc.transform.colorTransform = DEFAULT_COLOUR_TRANSFORM;
(battle_queue[_local1].a as Monster).drop();
_local1++;
};
battle_queue = [];
NitromeGame.timeline.enemy_bar.visible = false;
}
public function addToQueue(_arg1:Character):void{
g.battle_queue_holder.addChildAt(_arg1.mc, 0);
(_arg1.mc as MovieClip).gotoAndStop("melee_idle");
if (battle_queue.length == 0){
battle_queue.push(new Line(_arg1, player));
} else {
battle_queue.push(new Line(_arg1, battle_queue[(battle_queue.length - 1)].a));
};
}
public function main():void{
if (active){
if (player.hit_count){
player.hit_count--;
if (player.hit_count == 0){
player.mc.transform.colorTransform = DEFAULT_COLOUR_TRANSFORM;
};
};
updateQueue();
if (Game.tick){
if (!monster.active){
monsterDeath();
};
if (state == RESESS){
if (((Game.round) || ((count-- <= 0)))){
initBattle();
};
} else {
if (state == PLAYER_STRIKE){
if (count-- <= 0){
state = MONSTER_STRIKE;
count = (STRIKE_DELAY - 1);
(player.mc as MovieClip).gotoAndStop("melee_idle");
(monster.mc as MovieClip).gotoAndStop("melee_strike");
} else {
if (((!(player.petrified)) && ((count == HIT_FRAME)))){
if (attack(player, monster)){
monster.mc.transform.colorTransform = HIT_COLOUR_TRANSFORM;
monster.hit_count = HIT_DELAY;
NitromeGame.sound_manager.playSound("hit");
if (monster.current_health.value <= 0){
monster.death();
monsterDeath();
};
} else {
NitromeGame.sound_manager.playSound("miss");
};
};
};
} else {
if (state == MONSTER_STRIKE){
if (count-- <= 0){
state = PLAYER_STRIKE;
count = (STRIKE_DELAY - 1);
(monster.mc as MovieClip).gotoAndStop("melee_idle");
(player.mc as MovieClip).gotoAndStop("melee_strike");
} else {
if (((!(monster.petrified)) && ((count == HIT_FRAME)))){
if (attack(monster, player)){
player.mc.transform.colorTransform = HIT_COLOUR_TRANSFORM;
player.hit_count = HIT_DELAY;
NitromeGame.sound_manager.playSound("hit");
if (player.current_health.value <= 0){
player.death();
active = false;
} else {
if ((((monster.type == Monster.GORGON)) && ((Math.random() < GORGON_PETRIFY_FREQUENCY)))){
g.addEffect(Effect.PETRIFY, 2, player);
NitromeGame.sound_manager.playSound("petrify");
};
};
} else {
NitromeGame.sound_manager.playSound("miss");
};
};
};
} else {
if (state == FAIRY_STRIKE){
if (count-- == HIT_FRAME){
g.starBurst(player.x, player.y, battle_queue[0].dx, battle_queue[0].dy);
NitromeGame.sound_manager.playSound("slap");
monsterDeath();
};
};
};
};
};
};
};
}
}
}//package com.nitrome.engine
Section 80
//Monster (com.nitrome.engine.Monster)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
import com.nitrome.ui.items.*;
import com.nitrome.util.*;
public class Monster extends Character {
public var px:Number;
public var py:Number;
public var type:int;
public var air_friction:Number;// = 0.011
public var gravity:Number;// = 1
public var state:int;
public var experience_reward:HiddenInt;
public var overshoot_bonus:HiddenInt;
public var overshoot_bonus_mc:MovieClip;
public var vy:Number;
public var debris_list:Array;
public static const PLANT_SKELETON:int = 10;
public static const GORGON:int = 15;
public static const ATTACKS:Array = [undefined, 10, 13, 13, 13, 18, 15, 13, 13, 13, 13, 0, 25, 25, 25, 25];
public static const HEALTHS:Array = [undefined, 8, 10, 10, 10, 20, 30, 15, 15, 15, 15, 0, 45, 45, 45, 45];
public static const OGRE:int = 5;
public static const MIMIC:int = 6;
public static const DAMAGES:Array = [undefined, 2, 3, 3, 3, 7, 5, 4, 4, 4, 4, 0, 10, 10, 10, 10];
public static const WATER_SKELETON:int = 9;
public static const FISH:int = 14;
public static const ELEMENTS:Array = [undefined, 0, MeleeManager.FIRE, MeleeManager.WATER, MeleeManager.PLANT, 0, 0, 0, MeleeManager.FIRE, MeleeManager.WATER, MeleeManager.PLANT, 0, MeleeManager.PLANT, MeleeManager.FIRE, MeleeManager.WATER, 0];
public static const REWARDS:Array = [undefined, 2, 2, 2, 2, 15, 15, 6, 6, 6, 6, 0, 30, 30, 30, 40];
public static const FIRE_SLIME:int = 2;
public static const WATER_SLIME:int = 3;
public static const NAMES:Array = [undefined, "bat", "fire|slime", "water|slime", "plant|slime", "ogre", "mimic", "skeleton", "fire|skeleton", "water|skeleton", "plant|skeleton", "fairy", "treant", "ifrit", "kappa", "gorgon"];
public static const ENT:int = 12;
public static const NORMAL_SKELETON:int = 7;
public static const WAITING:int = 0;
public static const DROP:int = 2;
public static const DEFENCES:Array = [undefined, 8, 13, 13, 13, 18, 15, 13, 13, 13, 13, 0, 25, 25, 25, 25];
public static const PLANT_SLIME:int = 4;
public static const BAT:int = 1;
public static const FIRE_SKELETON:int = 8;
public static const FIRE_BALL:int = 13;
public static const BATTLE:int = 1;
public static const FAIRY:int = 11;
public function Monster(_arg1:DisplayObject, _arg2:int, _arg3:Game){
air_friction = 0.011;
gravity = 1;
super(_arg1, _arg3);
this.type = _arg2;
getCollisionByType();
getDebrisListByType();
overshoot_bonus = new HiddenInt();
if (((!((_arg2 == FAIRY))) && ((_arg3.player.x > _arg3.target_dist.value)))){
overshoot_bonus.value = ((_arg3.player.x - _arg3.target_dist.value) * Game.inv_overshoot_step);
if (overshoot_bonus.value){
overshoot_bonus_mc = new OvershootBonusMC();
overshoot_bonus_mc.bonus.text = ("+" + overshoot_bonus.value);
overshoot_bonus_mc.y = -40;
(_arg1 as DisplayObjectContainer).addChild(overshoot_bonus_mc);
};
};
current_health = new HiddenInt((HEALTHS[_arg2] + overshoot_bonus.value));
total_health = new HiddenInt((HEALTHS[_arg2] + overshoot_bonus.value));
attack = new HiddenInt((ATTACKS[_arg2] + overshoot_bonus.value));
defence = new HiddenInt((DEFENCES[_arg2] + overshoot_bonus.value));
damage = new HiddenInt((DAMAGES[_arg2] + overshoot_bonus.value));
experience_reward = new HiddenInt((REWARDS[_arg2] + overshoot_bonus.value));
this.element = new HiddenInt(ELEMENTS[_arg2]);
health_bar = NitromeGame.timeline.enemy_bar;
state = WAITING;
call_main = true;
}
override public function toString():String{
return ((("monster(" + object_num) + ")"));
}
override public function death():void{
var _local1:int;
super.death();
active = false;
if (type != MIMIC){
g.starBang(x, y, new Dot((x - px), (y - py)));
} else {
g.coinBang(x, y, new Dot((x - px), (y - py)));
g.level_gold.value = (g.level_gold.value + (Math.random() * 10));
EquipmentBar.addItem(ShopStockBar.createContent());
NitromeGame.sound_manager.playSound("buy_item");
};
NitromeGame.sound_manager.playSound("boom");
g.player.addExperience(experience_reward.value);
_local1 = 0;
while (_local1 < debris_list.length) {
g.addDebris(x, y, debris_list[_local1], (40 + (Math.random() * 20)), (-15 + (Math.random() * -10)));
_local1++;
};
}
override public function remove():void{
if (state == BATTLE){
return;
};
super.remove();
}
override public function trigger(_arg1:GameObject):void{
if ((((((_arg1 is Player)) && ((state == WAITING)))) && ((g.melee_manager.battle_queue.length < MeleeManager.MAX_QUEUE_LENGTH)))){
state = BATTLE;
g.melee_manager.setBattle(this);
};
}
public function main():void{
px = x;
py = y;
if (state == DROP){
if (y < (g.ground_y - 13)){
vy = (vy - ((air_friction * vy) * g.time_step));
vy = (vy + (gravity * g.time_step));
y = (y + vy);
} else {
y = (g.ground_y - 13);
};
};
updateMC();
if ((((((state == BATTLE)) && ((type == FAIRY)))) && (!(g.scroller.contains(x))))){
state = WAITING;
remove();
};
}
private function getDebrisListByType():void{
if (type == BAT){
debris_list = g.bat_debris_bss;
} else {
if (type == FIRE_SLIME){
debris_list = g.fire_slime_debris_bss;
} else {
if (type == WATER_SLIME){
debris_list = g.water_slime_debris_bss;
} else {
if (type == PLANT_SLIME){
debris_list = g.plant_slime_debris_bss;
} else {
if (type == OGRE){
debris_list = g.ogre_debris_bss;
} else {
if (type == MIMIC){
debris_list = g.mimic_debris_bss;
} else {
if (type == NORMAL_SKELETON){
debris_list = g.normal_skeleton_debris_bss;
} else {
if (type == FIRE_SKELETON){
debris_list = g.fire_skeleton_debris_bss;
} else {
if (type == WATER_SKELETON){
debris_list = g.water_skeleton_debris_bss;
} else {
if (type == PLANT_SKELETON){
debris_list = g.plant_skeleton_debris_bss;
} else {
if (type == FAIRY){
debris_list = [];
} else {
if (type == ENT){
debris_list = g.ent_debris_bss;
} else {
if (type == FIRE_BALL){
debris_list = g.fire_ball_debris_bss;
} else {
if (type == FISH){
debris_list = g.fish_debris_bss;
} else {
if (type == GORGON){
debris_list = g.gorgon_debris_bss;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
private function getCollisionByType():void{
if (type == BAT){
collision_type = CIRCLE;
radius = 25;
} else {
if ((((((type == FIRE_SLIME)) || ((type == WATER_SLIME)))) || ((type == PLANT_SLIME)))){
collision_type = RECT;
rect = new Rect((x - 32), (y - 40), 64, 53);
radius = 32;
} else {
if (type == OGRE){
collision_type = RECT;
rect = new Rect((x - 46), (y - 84), 92, 97);
radius = 46;
} else {
if (type == MIMIC){
collision_type = RECT;
rect = new Rect((x - 25), (y - 34), 59, 47);
radius = 29;
} else {
if ((((((((type == NORMAL_SKELETON)) || ((type == FIRE_SKELETON)))) || ((type == WATER_SKELETON)))) || ((type == PLANT_SKELETON)))){
collision_type = RECT;
rect = new Rect((x - 28), (y - 83), 55, 96);
radius = 27;
} else {
if (type == FAIRY){
collision_type = CIRCLE;
radius = 30;
} else {
if (type == ENT){
collision_type = RECT;
rect = new Rect((x - 29), (y - 121), 59, 132);
radius = 30;
} else {
if (type == FIRE_BALL){
collision_type = CIRCLE;
radius = 25;
} else {
if (type == FISH){
collision_type = RECT;
rect = new Rect((x - 24), (y - 53), 59, 66);
radius = 30;
} else {
if (type == GORGON){
collision_type = CIRCLE;
radius = 25;
};
};
};
};
};
};
};
};
};
};
}
public function drop():void{
state = DROP;
(mc as MovieClip).gotoAndStop("idle");
mc.rotation = 0;
vy = 0;
}
override public function unpause():void{
(mc as MovieClip).gotoAndStop((mc as MovieClip).currentLabel);
}
}
}//package com.nitrome.engine
Section 81
//Player (com.nitrome.engine.Player)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
import com.nitrome.ui.items.*;
import com.nitrome.util.*;
import com.nitrome.util.lerp.*;
public class Player extends Character {
public var slide_count:int;
public var cannon_mc:MovieClip;
public var sample_length:Number;
public var strength:HiddenInt;
public var cannon_power:Number;
public var agility:HiddenInt;
public var air_friction:Number;// = 0.011
public var gravity:Number;// = 1
public var sample_line:Line;
public var experience:HiddenInt;
private var i:int;
public var boost_strength:Number;
public var bounce:Boolean;
public var state:int;
public var charisma:HiddenInt;
public var gold:HiddenInt;
public var bounce_count:int;
public var bricked:Boolean;
public var cannon_power_theta:Number;
public var movement_line:Line;
public var ground_friction:Number;// = 0.1
public var cannon_back_mc:MovieClip;
public var level:HiddenInt;
public var vx:Number;
public var vy:Number;
public var target_line:Line;
public static const STRENGTH_TO_BOOST_MULTIPLIER:Number = 2;
public static const LOADED:int = 0;
public static const CANNON_POWER_THETA_STEP:Number = 0.10471975511966;
public static const LANDED:int = 4;
public static const SLIDING:int = 3;
public static const FLYING:int = 1;
public static const STRENGTH_TO_CANNON_LAUNCH_MULTIPLIER:Number = 3;
public static const SLIDING_COUNT_TRIGGER:int = 3;
public static const MINIMUM_CANNON_POWER:Number = 20;
public static const AGILITY_TO_STEERING_MULTIPLIER:Number = 0.02;
public static const MAX_EXPERIENCE_LEVEL = 20;
public static const EXPERIENCE_LEVELS = [0, 10, 40, 80, 160, 320, 640, 0x0500, 0x0A00, 0x1400, 0x2800, 0x5000, 0xA000, 81920, 163840, 327680, 655360, 0x140000, 0x280000, 0x500000];
public static const BOUNCE_DELAY:int = 15;
public static const SLIDING_DELAY:int = 68;
public static const COMBAT:int = 2;
public function Player(_arg1:DisplayObject, _arg2:MovieClip, _arg3:MovieClip, _arg4:Number, _arg5:Game){
air_friction = 0.011;
gravity = 1;
ground_friction = 0.1;
super(_arg1, _arg5);
this.radius = _arg4;
this.cannon_mc = _arg2;
this.cannon_back_mc = _arg3;
vx = (vy = 0);
call_main = false;
bounce = false;
bounce_count = 0;
sample_line = new Line(this, new Dot());
movement_line = new Line(this, new Dot(x, y));
collision_type = CIRCLE;
sample_length = (_arg4 - 1);
boost_strength = 20;
target_line = new Line(this, new Dot());
state = LOADED;
PlayerStats.bindPlayer(this);
EquipmentButton.player = this;
current_health = new HiddenInt(total_health.value);
element = new HiddenInt();
if (EquipmentBar.selected_weapon){
element.value = (EquipmentBar.selected_weapon.type % 4);
damage.value = EquipmentBar.selected_weapon.damage.value;
};
_arg5.setTriangleGuideElement(element.value);
cannon_power = 0;
cannon_power_theta = 0;
health_bar = NitromeGame.timeline.player_bar;
updateHealthBar();
updateExperienceBar();
state = LOADED;
slide_count = 0;
bricked = false;
_arg5.game_objects.splice(_arg5.game_objects.indexOf(this));
_arg2.cannon.smoke.gotoAndStop(1);
}
public function updateExperienceBar():void{
NitromeGame.timeline.level_text.text = ("lvl " + level.value);
health_bar.experience.scaleX = ((experience.value - EXPERIENCE_LEVELS[(level.value - 1)]) * (1 / (EXPERIENCE_LEVELS[level.value] - EXPERIENCE_LEVELS[(level.value - 1)])));
if (level.value == MAX_EXPERIENCE_LEVEL){
health_bar.experience.scaleX = 1;
};
}
public function tidyUp():void{
g.dismissAllEffects();
g.melee_manager.quitBattle();
mc.transform.colorTransform = MeleeManager.DEFAULT_COLOUR_TRANSFORM;
}
public function checkCollision():void{
var _local1:int;
_local1 = 0;
while (_local1 < g.game_objects.length) {
if (((((!((g.game_objects[_local1] == this))) && (g.game_objects[_local1].active))) && (intersects(g.game_objects[_local1])))){
g.game_objects[_local1].trigger(this);
};
_local1++;
};
}
override public function updateMC():void{
var _local1:int;
var _local2:MovieClip;
super.updateMC();
if (state == FLYING){
mc.visible = true;
mc.rotation = degreeLerp(mc.rotation, ((movement_line.atan2() + Math.PI) * Trig.DEGREES), 0.5);
if (active){
if (bounce_count){
mc.rotation = 0;
if ((mc as MovieClip).currentLabel != "bounce"){
(mc as MovieClip).gotoAndStop("bounce");
};
} else {
if ((mc as MovieClip).currentLabel != "flying"){
(mc as MovieClip).gotoAndStop("flying");
};
};
} else {
mc.rotation = 0;
if (bounce){
if ((mc as MovieClip).currentLabel != "dead_bounce"){
NitromeGame.sound_manager.stopMusicFadeOut();
if (g.level_gold.value){
_local1 = 1;
while (_local1 < Math.min((1 + (g.level_gold.value / 10)), 50)) {
g.addDebris((x + (Math.random() * radius)), (y + (Math.random() * radius)), g.coin_debris_bc, ((5 + vx) * (Math.random() * 3)), (vy - (Math.random() * 20)), true, 1, true);
_local1++;
};
g.level_gold.value = 0;
};
_local2 = new DebrisPositionsMC();
_local1 = 1;
while (_local1 < 10) {
g.addDebris((x + _local2[("_" + _local1)].x), (y + _local2[("_" + _local1)].y), g.player_debris_bss[(_local1 - 1)], ((5 + vx) * (Math.random() * 3)), (vy - (Math.random() * 20)), true, ((_local1 > 1)) ? 1 : 0.2, true);
_local1++;
};
NitromeGame.sound_manager.playSound("crash");
(mc as MovieClip).gotoAndStop("dead_bounce");
};
};
};
} else {
if (state == LOADED){
mc.rotation = (cannon_mc.cannon.rotation = (cannon_back_mc.rotation = (target_line.atan2() * Trig.DEGREES)));
mc.visible = false;
health_bar.power.scaleX = cannon_power;
health_bar.power.visible = true;
health_bar.cannon_icon.visible = true;
health_bar.health.visible = false;
health_bar.health_icon.visible = false;
} else {
if (state == COMBAT){
} else {
if ((((state == SLIDING)) || ((state == LANDED)))){
mc.rotation = 0;
};
};
};
};
}
public function updateAnimState():void{
}
override public function toString():String{
return ("player");
}
override public function death():void{
active = false;
tidyUp();
state = FLYING;
}
public function moveVector():void{
var _local1:int;
var _local2:int;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
vx = (vx - ((air_friction * vx) * g.time_step));
vy = (vy - ((air_friction * vy) * g.time_step));
vy = (vy + (gravity * g.time_step));
_local3 = (vx * g.time_step);
_local4 = (vy * g.time_step);
bounce = false;
sample_line.b.x = (x + _local3);
sample_line.b.y = (y + _local4);
sample_line.updateLine();
if (sample_line.length == 0){
return;
};
_local6 = Math.min(sample_length, sample_line.length);
_local5 = _local6;
while (_local5 < (sample_line.length + sample_length)) {
if ((((_local5 > sample_line.length)) && ((_local6 == sample_length)))){
_local5 = sample_line.length;
_local6 = (sample_line.length % sample_length);
};
x = (x + (_local6 * sample_line.dx));
y = (y + (_local6 * sample_line.dy));
if ((y + radius) > g.ground_y){
y = (g.ground_y - radius);
bounce = true;
bounce_count = BOUNCE_DELAY;
};
if ((x - radius) < 0){
x = radius;
};
if (active){
checkCollision();
};
_local5 = (_local5 + sample_length);
};
if (((bounce) && ((vy > 0)))){
vy = (-(vy) * (active) ? 1 : 0.7);
if (bricked){
vy = (vy * 0.5);
};
vx = (vx - (ground_friction * vx));
};
}
public function loadCannon():void{
state = LOADED;
x = (mc.x = cannon_mc.x);
y = (mc.y = cannon_mc.y);
cannon_power = 0;
cannon_power_theta = 0;
vx = (vy = 0);
g.scroll_manager.reset();
}
public function boost():void{
var _local1:Number;
_local1 = 10;
vx = (vx + (_local1 * STRENGTH_TO_BOOST_MULTIPLIER));
if (vy > 0){
vy = 0;
};
vy = (vy - (_local1 * STRENGTH_TO_BOOST_MULTIPLIER));
}
public function main():void{
var _local1:Dot;
var _local2:int;
if (state == LOADED){
target_line.b.x = Math.max(g.canvas.mouseX, (mc.x + 60));
target_line.b.y = Math.min(g.canvas.mouseY, mc.y);
target_line.updateLine();
cannon_power_theta = (cannon_power_theta + CANNON_POWER_THETA_STEP);
cannon_power = (1 - Math.abs(Math.sin(cannon_power_theta)));
if (g.mouse_count == g.frame_count){
cannon_mc.cannon.smoke.gotoAndPlay("fire");
launch((MINIMUM_CANNON_POWER + ((cannon_power * strength.value) * STRENGTH_TO_CANNON_LAUNCH_MULTIPLIER)));
NitromeGame.sound_manager.playSound("cannon");
};
} else {
if ((((state == FLYING)) || ((state == COMBAT)))){
if (bounce_count){
bounce_count--;
};
target_line.b.x = g.canvas.mouseX;
target_line.b.y = g.canvas.mouseY;
target_line.updateLine();
movement_line.b.x = x;
movement_line.b.y = y;
moveVector();
movement_line.updateLine();
if (((((active) && (g.mouse_pressed))) && (!(bounce)))){
if (movement_line.vx < 0.05){
vx = (vx + (((target_line.dx * AGILITY_TO_STEERING_MULTIPLIER) * agility.value) * g.time_step));
};
vy = (vy + (((target_line.dy * AGILITY_TO_STEERING_MULTIPLIER) * Math.min(agility.value, 20)) * g.time_step));
};
if (((((active) && (Game.tick))) && ((Math.abs(vx) > 5)))){
g.addFX(x, y, g.trail_bcs[((Math.random() * g.trail_bcs.length) >> 0)], g.back_fx_image, g.back_fx_image_holder);
_local1 = movement_line.lerp(0.5);
g.addFX(_local1.x, _local1.y, g.trail_bcs[((Math.random() * g.trail_bcs.length) >> 0)], g.back_fx_image, g.back_fx_image_holder);
};
if (bounce){
if (Math.abs(vy) > 1){
i = 0;
while (i < 15) {
g.addDebris((x + (-20 + (Math.random() * 30))), (g.ground_y - (Math.random() * 10)), g.dirt_debris_bss[((Math.random() * g.dirt_debris_bss.length) >> 0)], (vx - (Math.random() * 20)), (-5 - (Math.random() * 10)));
i++;
};
slide_count = 0;
_local2 = (1 + (Math.random() * 3));
NitromeGame.sound_manager.playSound(("knight_bounce" + _local2));
} else {
slide_count++;
if (slide_count >= SLIDING_COUNT_TRIGGER){
NitromeGame.sound_manager.stopMusicFadeOut();
if (active){
tidyUp();
(mc as MovieClip).gotoAndStop("landed");
state = SLIDING;
g.landing_count = Game.LANDING_DELAY;
slide_count = 0;
NitromeGame.sound_manager.playSound("skid");
NitromeGame.sound_manager.playSound("fanfare");
if (!g.target_dist_passed){
if (x >= g.target_dist.value){
if (NitromeGame.selected_level < NitromeGame.total_levels){
NitromeGame.timeline.msg.msg_holder.msg.text = "new area unlocked!";
NitromeGame.timeline.msg.gotoAndPlay("show");
NitromeGame.setLevelUnlocked((NitromeGame.selected_level + 1), NitromeGame.save_slot);
} else {
NitromeGame.timeline.msg.msg_holder.msg.text = "ending unlocked!";
NitromeGame.timeline.msg.gotoAndPlay("show");
NitromeGame.setGameComplete(NitromeGame.save_slot);
NitromeGame.completed = true;
};
g.target_dist_passed = true;
};
};
} else {
state = LANDED;
g.landing_count = Game.DEAD_LANDING_DELAY;
(mc as MovieClip).gotoAndStop("dead_landed");
};
};
};
};
} else {
if (state == SLIDING){
x = (x + 2);
if (slide_count++ >= SLIDING_DELAY){
state = LANDED;
};
if (!g.target_dist_passed){
if (x >= g.target_dist.value){
if (NitromeGame.selected_level < NitromeGame.total_levels){
NitromeGame.timeline.msg.msg_holder.msg.text = "new area unlocked!";
NitromeGame.timeline.msg.gotoAndPlay("show");
NitromeGame.setLevelUnlocked((NitromeGame.selected_level + 1), NitromeGame.save_slot);
} else {
NitromeGame.timeline.msg.msg_holder.msg.text = "ending unlocked!";
NitromeGame.timeline.msg.gotoAndPlay("show");
NitromeGame.setGameComplete(NitromeGame.save_slot);
NitromeGame.completed = true;
};
g.target_dist_passed = true;
};
};
};
};
};
updateMC();
}
public function launch(_arg1:Number):void{
vx = (vx + (target_line.dx * _arg1));
vy = (vy + (target_line.dy * _arg1));
active = true;
state = FLYING;
health_bar.power.visible = false;
health_bar.cannon_icon.visible = false;
health_bar.health.visible = true;
health_bar.health_icon.visible = true;
g.shake(0, 10);
}
public function addExperience(_arg1:int):void{
experience.value = (experience.value + _arg1);
if (level.value < MAX_EXPERIENCE_LEVEL){
while (experience.value > EXPERIENCE_LEVELS[level.value]) {
if (level.value < MAX_EXPERIENCE_LEVEL){
level.value++;
total_health.value = (total_health.value + PlayerStats.HEALTH_PER_LEVEL);
};
NitromeGame.timeline.msg.msg_holder.msg.text = "level up!";
NitromeGame.timeline.msg.gotoAndPlay("show");
current_health.value = total_health.value;
PlayerStats.points.value = (PlayerStats.points.value + PlayerStats.POINTS_PER_LEVEL);
updateHealthBar();
if (level.value == MAX_EXPERIENCE_LEVEL){
break;
};
};
};
updateExperienceBar();
}
}
}//package com.nitrome.engine
Section 82
//PlayerStats (com.nitrome.engine.PlayerStats)
package com.nitrome.engine {
import flash.events.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
public class PlayerStats {
public static const POINTS_PER_LEVEL:int = 5;
public static const STAT_MAX:int = 50;
public static const DEFAULT_DAMAGE:int = 3;
public static const LEVEL_CAP:int = 20;
public static const HEALTH_PER_LEVEL:int = 5;
public static var strength:HiddenInt;
public static var level:HiddenInt;
public static var agility:HiddenInt;
public static var attack:HiddenInt;
public static var initialised:Boolean = false;
public static var stepper_list:Array;
public static var defence:HiddenInt;
public static var charisma:HiddenInt;
public static var gold:HiddenInt;
public static var points:HiddenInt;
public static var points_display;
public static var experience:HiddenInt;
public static var damage:HiddenInt;
public static var total_health:HiddenInt;
public static var stat_reference:Object;
public static function bindPlayer(_arg1:Player):void{
_arg1.damage = damage;
_arg1.experience = experience;
_arg1.level = level;
_arg1.gold = gold;
_arg1.attack = attack;
_arg1.defence = defence;
_arg1.strength = strength;
_arg1.agility = agility;
_arg1.charisma = charisma;
_arg1.total_health = total_health;
}
public static function init():void{
initialised = true;
damage = new HiddenInt(DEFAULT_DAMAGE);
experience = new HiddenInt();
level = new HiddenInt(1);
gold = new HiddenInt(300);
attack = new HiddenInt(10);
defence = new HiddenInt(10);
strength = new HiddenInt(10);
agility = new HiddenInt(10);
charisma = new HiddenInt(10);
total_health = new HiddenInt(20);
points = new HiddenInt();
stat_reference = {attack:attack, defence:defence, strength:strength, agility:agility, charisma:charisma, total_health:total_health};
getSharedObject();
setSharedObject();
}
public static function bindSteppers(_arg1, ... _args):void{
var _local3:IntStepper;
var _local4:int;
stepper_list = _args;
points_display = _arg1;
_local4 = 0;
while (_local4 < _args.length) {
_local3 = _args[_local4];
_local3.value = stat_reference[_local3.name].value;
_local3.min = _local3.value;
_local3.max = Math.min((_local3.value + points.value), STAT_MAX);
_local3.value = _local3.value;
_local3.addEventListener(Event.CHANGE, stepperChange, false, 0, true);
_local4++;
};
points_display.text = points.value.toString();
}
public static function stepperChange(_arg1:Event):void{
var _local2:String;
var _local3:int;
_local2 = _arg1.target.name;
if (_arg1.target.value > stat_reference[_local2].value){
points.value--;
} else {
if (_arg1.target.value < stat_reference[_local2].value){
points.value++;
};
};
_local3 = 0;
while (_local3 < stepper_list.length) {
stepper_list[_local3].max = (stepper_list[_local3].value + points.value);
_local3++;
};
points_display.text = points.value.toString();
stat_reference[_local2].value = _arg1.target.value;
}
public static function setSharedObject():void{
var _local1:Object;
_local1 = {experience:experience, level:level, gold:gold, attack:attack, defence:defence, strength:strength, agility:agility, charisma:charisma, total_health:total_health, points:points};
NitromeGame.setValue("player_stats", _local1, NitromeGame.save_slot);
}
public static function getSharedObject():void{
var _local1:Object;
_local1 = NitromeGame.getValue("player_stats", NitromeGame.save_slot);
if (_local1){
experience.value = _local1.experience.value;
level.value = _local1.level.value;
gold.value = _local1.gold.value;
attack.value = _local1.attack.value;
defence.value = _local1.defence.value;
strength.value = _local1.strength.value;
agility.value = _local1.agility.value;
charisma.value = _local1.charisma.value;
total_health.value = _local1.total_health.value;
points.value = _local1.points.value;
};
}
}
}//package com.nitrome.engine
Section 83
//Scroller (com.nitrome.engine.Scroller)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class Scroller {
public var tiles:Sprite;
public var tile_layers_behind:Array;
public var stage_height:int;
public var current_layer:int;
public var scroll_bottomright_y:int;
public var tiles_width:int;
public var scroll_topleft_y:int;
public var scroll_bottomright_x:int;
public var tiles_height:int;
public var border_x:Array;
public var height:int;
public var SCALE:Number;
public var map_cols_layers:Array;
public var master_layer:int;
public var map_array:Array;
public var layers:int;
public var stage_width:int;
public var width:int;
public var gfx_layers:Array;
public var map_cols_index:Array;
public var scale:Number;
public var last_stage_x:int;
public var update_layer:Array;
public var scroll_topleft_x:int;
public var tile_holder:Sprite;
public var map_rect:Rect;
public var map_array_layers:Array;
public var tile_maker:TileMaker;
public var map_cols:Array;
public var map_cols_index_layers:Array;
public var gfx:Boolean;
public var tile_layers:Array;
public var stage:Sprite;
public static const VERT:int = 2;
public static const HORIZ:int = 1;
public static const BLOCK_LAYER:int = 0;
public static const GAME_OBJECT_LAYER:int = 0;
public static const TEXT_LAYER:int = 0;
public function Scroller(_arg1:Game, _arg2:Sprite, _arg3:Sprite, _arg4:Number, _arg5:int, _arg6:int, _arg7:int, _arg8:int){
this.stage = _arg2;
this.tile_holder = _arg3;
this.scale = _arg4;
SCALE = (1 / _arg4);
this.width = _arg5;
this.height = _arg6;
this.stage_width = _arg7;
this.stage_height = _arg8;
tile_maker = new TileMaker(_arg1, this);
gfx_layers = [];
gfx = false;
border_x = [5];
tiles_width = Math.ceil((_arg7 / _arg4));
tiles_height = Math.ceil((_arg8 / _arg4));
tile_layers = [];
tile_layers_behind = [];
map_array_layers = [];
map_cols_layers = [];
map_cols_index_layers = [];
update_layer = [];
current_layer = 0;
layers = 0;
master_layer = BLOCK_LAYER;
scroll_topleft_x = 0;
scroll_topleft_y = 0;
scroll_bottomright_x = 0;
scroll_bottomright_y = 0;
map_rect = new Rect(0, 0, (_arg5 * _arg4), (_arg6 * _arg4));
}
protected function pushCol(_arg1:int):void{
map_cols_index.push(_arg1);
map_cols.push(tile_maker.createTile(_arg1));
}
public function renderForced():void{
}
public function changeLayer(_arg1:int):void{
tiles = tile_layers[_arg1];
map_array = map_array_layers[_arg1];
map_cols = map_cols_layers[_arg1];
map_cols_index = map_cols_index_layers[_arg1];
gfx = gfx_layers[_arg1];
current_layer = _arg1;
}
public function contains(_arg1:Number):Boolean{
return ((((_arg1 < (scroll_bottomright_x - 1))) && ((_arg1 >= scroll_topleft_x))));
}
public function addTileLayer(_arg1:Sprite):void{
tile_layers.push(_arg1);
}
protected function shiftCol():void{
var _local1:int;
if (map_cols[0]){
if (!gfx){
_local1 = 0;
while (_local1 < map_cols[0].length) {
map_cols[0][_local1].remove();
_local1++;
};
} else {
_local1 = 0;
while (_local1 < map_cols[0].length) {
map_cols[0][_local1].parent.removeChild(map_cols[0][_local1]);
_local1++;
};
};
};
map_cols.shift();
map_cols_index.shift();
}
public function addLayer(_arg1:Array, _arg2:Boolean=false):void{
var _local3:Sprite;
if (tile_layers.length == layers){
_local3 = new Sprite();
tile_holder.addChild(_local3);
tile_layers.push(_local3);
};
gfx_layers.push(_arg2);
map_array_layers.push(_arg1);
map_cols_layers.push([]);
map_cols_index_layers.push([]);
update_layer.push(true);
layers++;
}
public function setLayerUpdate(_arg1:int, _arg2:Boolean):void{
update_layer[_arg1] = _arg2;
}
public function intersects(_arg1:Rect):Boolean{
return (!((((((((scroll_topleft_x > (_arg1.x + (_arg1.width - 1)))) || (((scroll_bottomright_x - 1) < _arg1.x)))) || ((scroll_topleft_y > (_arg1.y + (_arg1.height - 1)))))) || (((scroll_bottomright_y - 1) < _arg1.y)))));
}
protected function unshiftCol(_arg1:int):void{
map_cols_index.unshift(_arg1);
map_cols.unshift(tile_maker.createTile(_arg1));
}
public function renderAll():void{
}
public function draw(_arg1:Graphics):void{
_arg1.moveTo(scroll_topleft_x, scroll_topleft_y);
_arg1.lineTo(scroll_bottomright_x, scroll_topleft_y);
_arg1.lineTo(scroll_bottomright_x, scroll_bottomright_y);
_arg1.lineTo(scroll_topleft_x, scroll_bottomright_y);
_arg1.lineTo(scroll_topleft_x, scroll_topleft_y);
_arg1.moveTo(-(stage.x), -(stage.y));
_arg1.lineTo((-(stage.x) + stage_width), -(stage.y));
_arg1.lineTo((-(stage.x) + stage_width), (-(stage.y) + stage_height));
_arg1.lineTo(-(stage.x), (-(stage.y) + stage_height));
_arg1.lineTo(-(stage.x), -(stage.y));
}
public function clipManager():int{
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
_local1 = (stage.x * SCALE);
_local3 = 0;
_local4 = 0;
while (_local4 < layers) {
changeLayer(_local4);
if (update_layer[_local4]){
if (_local1 > last_stage_x){
if ((((map_cols_index[0] > 0)) && ((map_cols_index[0] > (-(_local1) - border_x[_local4]))))){
_local2 = (map_cols_index[0] - (-(_local1) - border_x[_local4]));
while (_local2 > 0) {
unshiftCol((map_cols_index[0] - 1));
if (_local4 == master_layer){
scroll_topleft_x = (scroll_topleft_x - scale);
};
_local2--;
if (map_cols_index[0] == 0){
break;
};
};
};
if (map_cols_index[(map_cols_index.length - 1)] > ((-(_local1) + tiles_width) + border_x[_local4])){
_local2 = (map_cols_index[(map_cols_index.length - 1)] - ((-(_local1) + tiles_width) + border_x[_local4]));
while (_local2 > 0) {
popCol();
if (_local4 == master_layer){
scroll_bottomright_x = (scroll_bottomright_x - scale);
};
_local2--;
};
};
};
if (_local1 < last_stage_x){
if ((((map_cols_index[(map_cols_index.length - 1)] < (width - 1))) && ((map_cols_index[(map_cols_index.length - 1)] < ((-(_local1) + tiles_width) + border_x[_local4]))))){
_local2 = (((-(_local1) + tiles_width) + border_x[_local4]) - map_cols_index[(map_cols_index.length - 1)]);
_local3 = _local2;
while (_local2 > 0) {
pushCol((map_cols_index[(map_cols_index.length - 1)] + 1));
if (_local4 == master_layer){
scroll_bottomright_x = (scroll_bottomright_x + scale);
};
_local2--;
if (map_cols_index[(map_cols_index.length - 1)] == (width - 1)){
break;
};
};
};
if (map_cols_index[0] < (-(_local1) - border_x[_local4])){
_local2 = ((-(_local1) - border_x[_local4]) - map_cols_index[0]);
while (_local2 > 0) {
shiftCol();
if (_local4 == master_layer){
scroll_topleft_x = (scroll_topleft_x + scale);
};
_local2--;
};
};
};
};
_local4++;
};
last_stage_x = _local1;
return (_local3);
}
public function reset():void{
last_stage_x = ((stage.x * SCALE) >> 0);
}
public function renderBeginning(_arg1:int, _arg2:int):void{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
map_cols_index = [];
map_cols = [];
_local3 = Math.round((tiles_width * 0.5));
_local4 = Math.round((tiles_height * 0.5));
stage.x = -(((_arg1 - _local3) * scale));
stage.y = -(((_arg2 - _local4) * scale));
last_stage_x = ((stage.x / scale) >> 0);
_local5 = ((_arg1 - _local3) - (border_x[master_layer] * 2));
_local6 = ((_local5 + tiles_width) + (border_x[master_layer] * 4));
if (_local5 < 0){
_local5 = 0;
};
if (_local6 > width){
_local6 = width;
};
scroll_topleft_x = (_local5 * scale);
scroll_bottomright_x = (_local6 * scale);
_local9 = 0;
while (_local9 < layers) {
changeLayer(_local9);
if (update_layer[_local9]){
_local7 = _local5;
while (_local7 < _local6) {
pushCol(_local7);
_local7++;
};
};
_local9++;
};
}
protected function popCol():void{
var _local1:int;
if (map_cols[(map_cols_index.length - 1)]){
if (!gfx){
_local1 = 0;
while (_local1 < map_cols[(map_cols_index.length - 1)].length) {
map_cols[(map_cols_index.length - 1)][_local1].remove();
_local1++;
};
} else {
_local1 = 0;
while (_local1 < map_cols[(map_cols_index.length - 1)].length) {
map_cols[(map_cols_index.length - 1)][_local1].parent.removeChild(map_cols[(map_cols_index.length - 1)][_local1]);
_local1++;
};
};
};
map_cols.pop();
map_cols_index.pop();
}
}
}//package com.nitrome.engine
Section 84
//ScrollManager (com.nitrome.engine.ScrollManager)
package com.nitrome.engine {
import flash.display.*;
import com.nitrome.geom.*;
public class ScrollManager {
public var tracked_object:Dot;
public var mouse_hidden:Boolean;
public var lock_out:Boolean;
public var delay_target:Dot;
public var canvas_x:int;
public var count:int;
public var canvas:Sprite;
public var last_canvas_x:Number;
public var last_canvas_y:Number;
public var interpolation:Number;// = 0.5
public var scroll_focus:Dot;
public var back:Background;
public var reclaim_x:int;
public var g:Game;
public var scrolling:Boolean;
public var scroll_target_x:Number;
public var scroll_target_y:Number;
public static const HEIGHT:Number = Game.HEIGHT;
public static const DOWN:int = 4;
public static const INV_SCALE:Number = Game.INV_SCALE;
public static const WIDTH:Number = Game.WIDTH;
public static const LEFT:int = 8;
public static const PLAYER_X_POS_BATTLE:Number = (-50 + (Game.WIDTH * 0.5));
public static const SCALE:Number = Game.SCALE;
public static const PLAYER_X_POS_DEFAULT:Number = 100;
public static const UP:int = 1;
public static const RIGHT:int = 2;
public function ScrollManager(_arg1:Game, _arg2:Dot){
var _local3:int;
interpolation = 0.5;
super();
this.g = _arg1;
this.tracked_object = _arg2;
this.canvas = _arg1.canvas;
back = NitromeGame.timeline.back;
scroll_target_x = (-(_arg2.x) + PLAYER_X_POS_DEFAULT);
scroll_target_y = (-(_arg2.y) + (Game.HEIGHT * 0.5));
scroll_target_x = Math.min(0, scroll_target_x);
scroll_target_y = Math.min(0, scroll_target_y);
canvas.x = (scroll_target_x >> 0);
canvas.y = (scroll_target_y >> 0);
lock_out = false;
reset();
}
public function setScrollTarget(_arg1:Number, _arg2:Number):void{
scroll_target_x = ((-(_arg1) + (WIDTH * 0.5)) >> 0);
scroll_target_y = ((-(_arg2) + (HEIGHT * 0.5)) >> 0);
scroll_target_x = Math.min(0, scroll_target_x);
scroll_target_y = Math.min(0, scroll_target_y);
}
public function reclaimMemory():void{
var _local1:int;
while (canvas_x > (reclaim_x + 22)) {
_local1 = 0;
while (_local1 < g.scroller.layers) {
delete g.scroller.map_array_layers[_local1][reclaim_x];
_local1++;
};
reclaim_x++;
};
}
public function scroll():void{
if (count > 0){
count--;
if (count <= 0){
setScrollTarget(delay_target.x, delay_target.y);
};
};
if (g.melee_manager.active){
scroll_target_x = (-(tracked_object.x) + PLAYER_X_POS_BATTLE);
} else {
scroll_target_x = (-(tracked_object.x) + PLAYER_X_POS_DEFAULT);
};
scroll_target_y = (-(tracked_object.y) + (Game.HEIGHT * 0.5));
scroll_target_x = Math.min(0, scroll_target_x);
scroll_target_y = Math.max(0, scroll_target_y);
last_canvas_x = g.canvas.x;
last_canvas_y = g.canvas.y;
g.canvas.x = (g.canvas.x + ((scroll_target_x - g.canvas.x) * interpolation));
g.canvas.y = (g.canvas.y + ((scroll_target_y - g.canvas.y) * interpolation));
back.move((g.canvas.x - last_canvas_x), g);
updateMilestones();
canvas_x = (canvas.x * INV_SCALE);
g.scroller.clipManager();
while ((-(canvas_x) + 44) > g.scroller.width) {
LevelFragment.getQueueData().addToMap(g.scroller, g.scroller.width);
};
reclaimMemory();
}
public function skipScroll():void{
canvas.x = (scroll_target_x >> 0);
canvas.y = (scroll_target_y >> 0);
}
public function updateMilestones():void{
var _local1:int;
if ((g.canvas.x + g.milestones_mc.x) < -500){
g.milestones_mc.x = (g.milestones_mc.x + 500);
};
_local1 = 0;
while (_local1 < 4) {
g.milestones_mc[("_" + _local1)].num.text = ((0.1 * ((g.milestones_mc.x + g.milestones_mc[("_" + _local1)].x) - Game.CANNON_X_OFFSET)) >> 0);
_local1++;
};
}
public function getScrollTarget():Dot{
return (new Dot((-(scroll_target_x) + (WIDTH * 0.5)), (-(scroll_target_y) + (HEIGHT * 0.5))));
}
public function reset():void{
canvas.x = 0;
canvas.y = 0;
last_canvas_x = 0;
last_canvas_y = 0;
reclaim_x = 0;
g.milestones_mc.x = (500 + Game.CANNON_X_OFFSET);
updateMilestones();
back.gotoAndStop(("level_" + NitromeGame.selected_level));
}
public function setDelayedScrollTarget(_arg1:Number, _arg2:Number, _arg3:int):void{
delay_target = new Dot(_arg1, _arg2);
count = _arg3;
}
public function setScrollInit(_arg1:Number, _arg2:Number):void{
setScrollTarget(_arg1, _arg2);
skipScroll();
}
}
}//package com.nitrome.engine
Section 85
//TileMaker (com.nitrome.engine.TileMaker)
package com.nitrome.engine {
import flash.display.*;
public class TileMaker {
private var dir:int;
private var index:int;
private var item;
private var mc:DisplayObject;
private var shape:Shape;
public var g:Game;
private var i:int;
private var data:MapData;
private var n:int;
public var s:Scroller;
public var id_tag:int;
private var y:int;
public static const class_names:Array = ["", BatMC, BearTrapMC, BouncerMC, ChestMC, CoinMC, GemMC1, GemMC2, GemMC3, GemMC4, FireSlimeMC, WaterSlimeMC, PlantSlimeMC, OgreMC, MimicMC, FairyMC, NormalSkeletonMC, FireSkeletonMC, WaterSkeletonMC, PlantSkeletonMC, EntMC, FireBallMC, FishMC, GorgonMC];
private static const DOWN:int = 4;
public static const INV_SCALE:Number = Game.INV_SCALE;
private static const LEFT:int = 8;
public static const SCALE:Number = Game.SCALE;
public static const EMPTY:int = 0;
private static const UP:int = 1;
private static const RIGHT:int = 2;
public function TileMaker(_arg1:Game, _arg2:Scroller){
this.g = _arg1;
this.s = _arg2;
}
public function createTile(_arg1:int):Array{
var _local2:Array;
var _local3:Array;
if (!s.map_array[_arg1]){
return (null);
};
_local2 = null;
_local3 = s.map_array[_arg1];
i = 0;
while (i < _local3.length) {
if (!_local3[i]){
} else {
data = _local3[i];
index = data.i;
y = data.y;
if (index > 0){
mc = new (class_names[index]);
};
if (mc != null){
mc.x = (((_arg1 + 0.5) * SCALE) >> 0);
mc.y = ((g.ground_y + ((y + 0.5) * SCALE)) >> 0);
if (mc.parent == null){
s.tiles.addChild(mc);
};
};
if (s.gfx){
if (_local2){
_local2.push(mc);
} else {
_local2 = [mc];
};
} else {
if (index == 1){
item = new Monster(mc, Monster.BAT, g);
} else {
if (index == 2){
item = new BearTrap(mc, g);
} else {
if (index == 3){
mc.y = (mc.y + (SCALE - 12));
item = new Bouncer(mc, g);
} else {
if (index == 4){
item = new Chest(mc, g);
} else {
if (index == 5){
item = new Coin(mc, 5, g.coin_fade_bc, g);
} else {
if (index == 6){
item = new Coin(mc, 10, g.gem_fade_bcs[0], g);
} else {
if (index == 7){
item = new Coin(mc, 10, g.gem_fade_bcs[1], g);
} else {
if (index == 8){
item = new Coin(mc, 10, g.gem_fade_bcs[2], g);
} else {
if (index == 9){
item = new Coin(mc, 10, g.gem_fade_bcs[3], g);
} else {
if (index == 10){
item = new Monster(mc, Monster.FIRE_SLIME, g);
} else {
if (index == 11){
item = new Monster(mc, Monster.WATER_SLIME, g);
} else {
if (index == 12){
item = new Monster(mc, Monster.PLANT_SLIME, g);
} else {
if (index == 13){
item = new Monster(mc, Monster.OGRE, g);
} else {
if (index == 14){
item = new Monster(mc, Monster.MIMIC, g);
} else {
if (index == 15){
item = new Monster(mc, Monster.FAIRY, g);
} else {
if (index == 16){
item = new Monster(mc, Monster.NORMAL_SKELETON, g);
} else {
if (index == 17){
item = new Monster(mc, Monster.FIRE_SKELETON, g);
} else {
if (index == 18){
item = new Monster(mc, Monster.WATER_SKELETON, g);
} else {
if (index == 19){
item = new Monster(mc, Monster.PLANT_SKELETON, g);
} else {
if (index == 20){
item = new Monster(mc, Monster.ENT, g);
} else {
if (index == 21){
item = new Monster(mc, Monster.FIRE_BALL, g);
} else {
if (index == 22){
item = new Monster(mc, Monster.FISH, g);
} else {
if (index == 23){
item = new Monster(mc, Monster.GORGON, g);
} else {
item = new MapObject(mc, g);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
if (item != null){
item.map_x = _arg1;
item.map_y = y;
item.tile_id = index;
item.layer = s.current_layer;
if (!item.free){
if (_local2){
_local2.push(item);
} else {
_local2 = [item];
};
};
};
};
};
i++;
};
if (!s.gfx){
s.map_array[_arg1] = null;
};
return (_local2);
}
public function synchro(_arg1:MovieClip):void{
_arg1.gotoAndPlay(((g.frame_count % _arg1.totalFrames) + 1));
}
}
}//package com.nitrome.engine
Section 86
//ArmorButton (com.nitrome.game.ArmorButton)
package com.nitrome.game {
import flash.events.*;
import flash.net.*;
public class ArmorButton extends SimpleButton {
public function ArmorButton(){
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
override public function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.armorgames.com/"), "_blank");
}
}
}//package com.nitrome.game
Section 87
//SimpleButton (com.nitrome.game.SimpleButton)
package com.nitrome.game {
import flash.display.*;
import flash.events.*;
public class SimpleButton extends MovieClip {
public var i:int;
protected var over:Boolean;// = false
public function SimpleButton(){
over = false;
super();
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
protected function onMouseOver(_arg1:MouseEvent):void{
over = true;
updateGraphic();
}
protected function onMouseOut(_arg1:MouseEvent):void{
over = false;
updateGraphic();
}
protected function updateGraphic():void{
if (over){
gotoAndStop("over");
} else {
gotoAndStop("up");
};
}
public function onClick(_arg1:MouseEvent):void{
}
}
}//package com.nitrome.game
Section 88
//Dot (com.nitrome.geom.Dot)
package com.nitrome.geom {
public class Dot {
public var x:Number;
public var y:Number;
public function Dot(_arg1:Number=0, _arg2:Number=0){
this.x = _arg1;
this.y = _arg2;
}
public function mul(_arg1:Number):void{
x = (x * _arg1);
y = (y * _arg1);
}
public function dist(_arg1:Dot):Number{
return (Math.sqrt((((_arg1.x - x) * (_arg1.x - x)) + ((_arg1.y - y) * (_arg1.y - y)))));
}
public function sqDist(_arg1:Dot):Number{
return ((((_arg1.x - x) * (_arg1.x - x)) + ((_arg1.y - y) * (_arg1.y - y))));
}
public function toString():String{
return ((((("(" + x) + ",") + y) + ")"));
}
public function lerp(_arg1:Dot, _arg2:Number):Dot{
return (new Dot((x + ((_arg1.x - x) * _arg2)), (y + ((_arg1.y - y) * _arg2))));
}
}
}//package com.nitrome.geom
Section 89
//Line (com.nitrome.geom.Line)
package com.nitrome.geom {
import flash.display.*;
public class Line {
public var vy:Number;
public var vx:Number;
public var rx:Number;
public var dx:Number;
public var dy:Number;
public var ry:Number;
public var lx:Number;
public var ly:Number;
public var theta:Number;
public var a:Dot;
public var b:Dot;
public var length:Number;
public var sq_length:Number;
public function Line(_arg1:Dot, _arg2:Dot){
this.a = _arg1;
this.b = _arg2;
updateLine();
}
public function atan2():Number{
theta = Math.atan2(vy, vx);
return (theta);
}
public function rotateB(_arg1:Number):void{
_arg1 = (_arg1 + atan2());
theta = _arg1;
a.x = (b.x + (Math.cos(_arg1) * length));
a.y = (b.y + (Math.sin(_arg1) * length));
updateLine();
}
public function updateLine():void{
vx = (b.x - a.x);
vy = (b.y - a.y);
sq_length = ((vx * vx) + (vy * vy));
length = Math.sqrt(sq_length);
if (length > 0){
dx = (vx / length);
dy = (vy / length);
} else {
dx = (dy = 0);
};
rx = -(dy);
ry = dx;
lx = dy;
ly = -(dx);
}
public function toString():String{
return ((((((((("a:(" + a.x) + ",") + a.y) + ") b:(") + b.x) + ",") + b.y) + ")"));
}
public function drawDashed(_arg1:Graphics, _arg2:Number, _arg3:Number=0):void{
var _local4:Number;
if (_arg3 > (_arg2 * 2)){
_arg3 = (_arg3 % (_arg2 * 2));
};
if (_arg3 > _arg2){
_arg1.moveTo(a.x, a.y);
_arg1.lineTo((a.x + ((_arg3 - _arg2) * dx)), (a.y + ((_arg3 - _arg2) * dy)));
};
_local4 = _arg3;
while (_local4 < (length - _arg2)) {
_arg1.moveTo((a.x + (_local4 * dx)), (a.y + (_local4 * dy)));
_arg1.lineTo((a.x + ((_local4 + _arg2) * dx)), (a.y + ((_local4 + _arg2) * dy)));
_local4 = (_local4 + (_arg2 * 2));
};
if ((((_local4 > (length - _arg2))) && ((_local4 < length)))){
_arg1.moveTo((a.x + (_local4 * dx)), (a.y + (_local4 * dy)));
_arg1.lineTo(b.x, b.y);
};
}
public function draw(_arg1:Graphics):void{
_arg1.moveTo(a.x, a.y);
_arg1.lineTo(b.x, b.y);
}
public function copy():Line{
return (new Line(new Dot(a.x, a.y), new Dot(b.x, b.y)));
}
public function lerp(_arg1:Number):Dot{
return (new Dot((a.x + ((b.x - a.x) * _arg1)), (a.y + ((b.y - a.y) * _arg1))));
}
public function mul(_arg1:Number):void{
a.mul(_arg1);
b.mul(_arg1);
updateLine();
}
public function rotateA(_arg1:Number):void{
_arg1 = (_arg1 + atan2());
theta = _arg1;
b.x = (a.x + (Math.cos(_arg1) * length));
b.y = (a.y + (Math.sin(_arg1) * length));
updateLine();
}
public static function dot(_arg1:Object, _arg2:Object):Number{
return (((_arg1.vx * _arg2.vx) + (_arg1.vy * _arg2.vy)));
}
}
}//package com.nitrome.geom
Section 90
//Rect (com.nitrome.geom.Rect)
package com.nitrome.geom {
import flash.display.*;
public class Rect {
public var width:Number;
public var height:Number;
public var cx:Number;
public var cy:Number;
public var x:Number;
public var y:Number;
public static const DOWN:int = 4;
public static const LEFT:int = 8;
public static const UP:int = 1;
public static const RIGHT:int = 2;
public function Rect(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.x = _arg1;
this.y = _arg2;
this.width = _arg3;
this.height = _arg4;
}
public function toString():String{
return ((((((((("(x:" + x) + " y:") + y) + " width:") + width) + " height:") + height) + ")"));
}
public function getCorners(_arg1:Array):Array{
_arg1[0].x = x;
_arg1[0].y = y;
_arg1[1].x = ((x + width) - 1);
_arg1[1].y = y;
_arg1[2].x = ((x + width) - 1);
_arg1[2].y = ((y + height) - 1);
_arg1[3].x = x;
_arg1[3].y = ((y + height) - 1);
return (_arg1);
}
public function intersection(_arg1:Rect):Rect{
return (new Rect(Math.max(x, _arg1.x), Math.max(y, _arg1.y), Math.abs((Math.max(x, _arg1.x) - Math.min((x + width), (_arg1.x + _arg1.width)))), Math.abs((Math.max(y, _arg1.y) - Math.min((y + height), (_arg1.y + _arg1.height))))));
}
public function draw(_arg1:Graphics):void{
_arg1.drawRect(x, y, width, height);
}
public function sideOf(_arg1:Number, _arg2:Number):int{
var _local3:Number;
var _local4:Number;
cx = (this.x + (width * 0.5));
cy = (this.y + (height * 0.5));
if ((((_arg1 == cx)) && ((_arg2 == cy)))){
return (2);
};
_local3 = (_arg1 - cx);
_local4 = (_arg2 - cy);
if ((((((_arg1 > cx)) && ((_arg2 > cy)))) && ((Math.abs(_local4) < Math.abs(_local3))))){
return (2);
};
if ((((((_arg1 > cx)) && ((_arg2 > cy)))) && ((Math.abs(_local4) > Math.abs(_local3))))){
return (4);
};
if ((((((_arg1 < cx)) && ((_arg2 > cy)))) && ((Math.abs(_local4) > Math.abs(_local3))))){
return (4);
};
if ((((((_arg1 < cx)) && ((_arg2 > cy)))) && ((Math.abs(_local4) < Math.abs(_local3))))){
return (8);
};
if ((((((_arg1 < cx)) && ((_arg2 < cy)))) && ((Math.abs(_local4) < Math.abs(_local3))))){
return (8);
};
if ((((((_arg1 < cx)) && ((_arg2 < cy)))) && ((Math.abs(_local4) > Math.abs(_local3))))){
return (1);
};
if ((((((_arg1 > cx)) && ((_arg2 < cy)))) && ((Math.abs(_local4) > Math.abs(_local3))))){
return (1);
};
if ((((((_arg1 > cx)) && ((_arg2 < cy)))) && ((Math.abs(_local4) < Math.abs(_local3))))){
return (2);
};
if ((((_arg2 == cy)) && ((_arg1 > cx)))){
return (2);
};
if ((((_arg1 == cx)) && ((_arg2 > cy)))){
return (4);
};
if ((((_arg2 == cy)) && ((_arg1 < cx)))){
return (8);
};
if ((((_arg1 == cx)) && ((_arg2 < cy)))){
return (1);
};
if ((((_local3 == Math.abs(_local3))) && ((_local4 == -(Math.abs(_local4)))))){
return (2);
};
if ((((_local4 == Math.abs(_local4))) && ((_local3 == Math.abs(_local3))))){
return (4);
};
if ((((_local4 == Math.abs(_local4))) && ((_local3 == -(Math.abs(_local3)))))){
return (8);
};
if ((((_local4 == -(Math.abs(_local4)))) && ((_local3 == -(Math.abs(_local3)))))){
return (1);
};
return (0);
}
public function center():Dot{
return (new Dot((x + (width * 0.5)), (y + (height * 0.5))));
}
public function contains(_arg1:Number, _arg2:Number):Boolean{
return ((((((((_arg1 >= this.x)) && ((_arg2 >= this.y)))) && ((_arg1 < (this.x + width))))) && ((_arg2 < (this.y + height)))));
}
public function intersectsCircle(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{
var _local4:Number;
var _local5:Number;
_local4 = _arg1;
_local5 = _arg2;
if (_local4 < x){
_local4 = x;
};
if (_local4 > ((x + width) - 1)){
_local4 = ((x + width) - 1);
};
if (_local5 < y){
_local5 = y;
};
if (_local5 > ((y + height) - 1)){
_local5 = ((y + height) - 1);
};
return (((((_arg1 - _local4) * (_arg1 - _local4)) + ((_arg2 - _local5) * (_arg2 - _local5))) < (_arg3 * _arg3)));
}
public function resize(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
this.x = _arg1;
this.y = _arg2;
this.width = _arg3;
this.height = _arg4;
}
public function intersects(_arg1:Rect):Boolean{
return (!((((((((this.x > (_arg1.x + (_arg1.width - 1)))) || (((this.x + (this.width - 1)) < _arg1.x)))) || ((this.y > (_arg1.y + (_arg1.height - 1)))))) || (((this.y + (this.height - 1)) < _arg1.y)))));
}
public function inside(_arg1:Rect):Boolean{
return (((((((((x + (width - 1)) < (_arg1.x + _arg1.width))) && (((y + (height - 1)) < (_arg1.y + _arg1.height))))) && ((x >= _arg1.x)))) && ((y >= _arg1.y))));
}
public static function oppositeSide(_arg1:int):int{
if (_arg1 == UP){
return (DOWN);
};
if (_arg1 == RIGHT){
return (LEFT);
};
if (_arg1 == DOWN){
return (UP);
};
if (_arg1 == LEFT){
return (RIGHT);
};
return (0);
}
public static function boundingBox(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Rect{
return (new Rect(Math.min(_arg1, _arg3), Math.min(_arg2, _arg4), Math.abs((_arg1 - _arg3)), Math.abs((_arg2 - _arg4))));
}
}
}//package com.nitrome.geom
Section 91
//Trig (com.nitrome.geom.Trig)
package com.nitrome.geom {
public class Trig {
public static const DEGREES:Number = 57.2957795130823;
public static const cos:Array = [1, 0.999847695156391, 0.999390827019096, 0.998629534754574, 0.997564050259824, 0.996194698091746, 0.994521895368273, 0.992546151641322, 0.99026806874157, 0.987688340595138, 0.984807753012208, 0.981627183447664, 0.978147600733806, 0.974370064785235, 0.970295726275996, 0.965925826289068, 0.961261695938319, 0.956304755963035, 0.951056516295154, 0.945518575599317, 0.939692620785908, 0.933580426497202, 0.927183854566787, 0.92050485345244, 0.913545457642601, 0.90630778703665, 0.898794046299167, 0.891006524188368, 0.882947592858927, 0.874619707139396, 0.866025403784438, 0.857167300702112, 0.848048096156426, 0.838670567945424, 0.829037572555042, 0.819152044288992, 0.809016994374947, 0.798635510047293, 0.788010753606722, 0.777145961456971, 0.766044443118978, 0.754709580222772, 0.743144825477394, 0.73135370161917, 0.719339800338651, 0.707106781186547, 0.694658370458997, 0.681998360062498, 0.669130606358858, 0.656059028990507, 0.642787609686539, 0.629320391049837, 0.615661475325658, 0.601815023152048, 0.587785252292472, 0.573576436351045, 0.559192903470746, 0.544639035015026, 0.529919264233204, 0.515038074910053, 0.499999999999999, 0.484809620246336, 0.46947156278589, 0.453990499739546, 0.438371146789076, 0.422618261740698, 0.406736643075799, 0.390731128489273, 0.374606593415911, 0.358367949545299, 0.342020143325668, 0.325568154457155, 0.309016994374946, 0.292371704722735, 0.275637355816998, 0.258819045102519, 0.241921895599666, 0.224951054343864, 0.207911690817758, 0.190808995376543, 0.173648177666929, 0.156434465040229, 0.139173100960064, 0.121869343405146, 0.104528463267652, 0.0871557427476566, 0.0697564737441237, 0.0523359562429422, 0.0348994967024993, 0.0174524064372818, -1.71512449944288E-15, -0.0174524064372853, -0.0348994967025027, -0.0523359562429456, -0.0697564737441271, -0.08715574274766, -0.104528463267655, -0.121869343405149, -0.139173100960067, -0.156434465040233, -0.173648177666932, -0.190808995376547, -0.207911690817761, -0.224951054343867, -0.24192189559967, -0.258819045102523, -0.275637355817001, -0.292371704722739, -0.309016994374949, -0.325568154457159, -0.342020143325671, -0.358367949545302, -0.374606593415914, -0.390731128489276, -0.406736643075802, -0.422618261740701, -0.438371146789079, -0.453990499739548, -0.469471562785892, -0.484809620246338, -0.500000000000001, -0.515038074910055, -0.529919264233206, -0.544639035015028, -0.559192903470747, -0.573576436351046, -0.587785252292473, -0.601815023152048, -0.615661475325658, -0.629320391049837, -0.642787609686539, -0.656059028990506, -0.669130606358857, -0.681998360062497, -0.694658370458996, -0.707106781186546, -0.71933980033865, -0.731353701619169, -0.743144825477393, -0.75470958022277, -0.766044443118976, -0.777145961456969, -0.78801075360672, -0.798635510047291, -0.809016994374945, -0.81915204428899, -0.829037572555039, -0.838670567945422, -0.848048096156424, -0.85716730070211, -0.866025403784436, -0.874619707139393, -0.882947592858924, -0.891006524188365, -0.898794046299164, -0.906307787036647, -0.913545457642598, -0.920504853452438, -0.927183854566785, -0.933580426497199, -0.939692620785906, -0.945518575599315, -0.951056516295151, -0.956304755963033, -0.961261695938317, -0.965925826289066, -0.970295726275995, -0.974370064785233, -0.978147600733804, -0.981627183447662, -0.984807753012207, -0.987688340595136, -0.990268068741569, -0.992546151641321, -0.994521895368272, -0.996194698091745, -0.997564050259824, -0.998629534754573, -0.999390827019095, -0.999847695156391, -1, -0.999847695156391, -0.999390827019096, -0.998629534754574, -0.997564050259825, -0.996194698091747, -0.994521895368275, -0.992546151641324, -0.990268068741572, -0.98768834059514, -0.98480775301221, -0.981627183447666, -0.978147600733808, -0.974370064785238, -0.970295726276, -0.965925826289072, -0.961261695938323, -0.95630475596304, -0.951056516295158, -0.945518575599322, -0.939692620785913, -0.933580426497207, -0.927183854566793, -0.920504853452446, -0.913545457642607, -0.906307787036657, -0.898794046299174, -0.891006524188375, -0.882947592858935, -0.874619707139404, -0.866025403784447, -0.857167300702121, -0.848048096156435, -0.838670567945433, -0.829037572555052, -0.819152044289002, -0.809016994374958, -0.798635510047304, -0.788010753606733, -0.777145961456983, -0.76604444311899, -0.754709580222784, -0.743144825477407, -0.731353701619184, -0.719339800338665, -0.707106781186561, -0.694658370459012, -0.681998360062513, -0.669130606358873, -0.656059028990523, -0.642787609686555, -0.629320391049854, -0.615661475325675, -0.601815023152065, -0.58778525229249, -0.573576436351064, -0.559192903470765, -0.544639035015046, -0.529919264233224, -0.515038074910073, -0.50000000000002, -0.484809620246357, -0.469471562785911, -0.453990499739568, -0.438371146789098, -0.422618261740721, -0.406736643075822, -0.390731128489296, -0.374606593415934, -0.358367949545323, -0.342020143325692, -0.32556815445718, -0.309016994374971, -0.292371704722761, -0.275637355817024, -0.258819045102545, -0.241921895599693, -0.22495105434389, -0.207911690817785, -0.190808995376571, -0.173648177666957, -0.156434465040257, -0.139173100960092, -0.121869343405174, -0.104528463267681, -0.0871557427476857, -0.069756473744153, -0.0523359562429718, -0.0348994967025292, -0.0174524064373119, -2.86054064502761E-14, 0.0174524064372547, 0.034899496702472, 0.0523359562429147, 0.069756473744096, 0.0871557427476287, 0.104528463267624, 0.121869343405118, 0.139173100960036, 0.156434465040201, 0.1736481776669, 0.190808995376515, 0.207911690817729, 0.224951054343835, 0.241921895599637, 0.25881904510249, 0.275637355816969, 0.292371704722706, 0.309016994374917, 0.325568154457126, 0.342020143325638, 0.35836794954527, 0.374606593415881, 0.390731128489243, 0.40673664307577, 0.422618261740669, 0.438371146789047, 0.453990499739517, 0.469471562785861, 0.484809620246307, 0.49999999999997, 0.515038074910024, 0.529919264233175, 0.544639035014998, 0.559192903470717, 0.573576436351017, 0.587785252292444, 0.60181502315202, 0.61566147532563, 0.629320391049809, 0.642787609686511, 0.65605902899048, 0.669130606358831, 0.681998360062471, 0.69465837045897, 0.707106781186521, 0.719339800338625, 0.731353701619145, 0.743144825477369, 0.754709580222747, 0.766044443118953, 0.777145961456946, 0.788010753606698, 0.798635510047269, 0.809016994374924, 0.819152044288969, 0.82903757255502, 0.838670567945402, 0.848048096156405, 0.857167300702092, 0.866025403784418, 0.874619707139376, 0.882947592858908, 0.891006524188349, 0.898794046299149, 0.906307787036632, 0.913545457642584, 0.920504853452424, 0.927183854566772, 0.933580426497187, 0.939692620785894, 0.945518575599303, 0.95105651629514, 0.956304755963023, 0.961261695938307, 0.965925826289057, 0.970295726275986, 0.974370064785225, 0.978147600733796, 0.981627183447656, 0.9848077530122, 0.987688340595131, 0.990268068741564, 0.992546151641317, 0.994521895368269, 0.996194698091742, 0.997564050259821, 0.998629534754572, 0.999390827019094, 0.99984769515639];
public static const sin:Array = [0, 0.0174524064372835, 0.034899496702501, 0.0523359562429438, 0.0697564737441253, 0.0871557427476582, 0.104528463267653, 0.121869343405147, 0.139173100960065, 0.156434465040231, 0.17364817766693, 0.190808995376545, 0.207911690817759, 0.224951054343865, 0.241921895599668, 0.258819045102521, 0.275637355816999, 0.292371704722737, 0.309016994374947, 0.325568154457157, 0.342020143325669, 0.3583679495453, 0.374606593415912, 0.390731128489274, 0.4067366430758, 0.4226182617407, 0.438371146789078, 0.453990499739547, 0.469471562785891, 0.484809620246337, 0.5, 0.515038074910054, 0.529919264233205, 0.544639035015027, 0.559192903470747, 0.573576436351046, 0.587785252292473, 0.601815023152049, 0.615661475325659, 0.629320391049838, 0.64278760968654, 0.656059028990508, 0.669130606358859, 0.681998360062499, 0.694658370458998, 0.707106781186548, 0.719339800338652, 0.731353701619171, 0.743144825477395, 0.754709580222772, 0.766044443118979, 0.777145961456971, 0.788010753606722, 0.798635510047293, 0.809016994374948, 0.819152044288992, 0.829037572555042, 0.838670567945424, 0.848048096156427, 0.857167300702113, 0.866025403784439, 0.874619707139396, 0.882947592858927, 0.891006524188368, 0.898794046299167, 0.90630778703665, 0.913545457642601, 0.920504853452441, 0.927183854566788, 0.933580426497202, 0.939692620785909, 0.945518575599317, 0.951056516295154, 0.956304755963036, 0.961261695938319, 0.965925826289069, 0.970295726275997, 0.974370064785236, 0.978147600733806, 0.981627183447664, 0.984807753012208, 0.987688340595138, 0.99026806874157, 0.992546151641322, 0.994521895368274, 0.996194698091746, 0.997564050259824, 0.998629534754574, 0.999390827019096, 0.999847695156391, 1, 0.999847695156391, 0.999390827019096, 0.998629534754574, 0.997564050259824, 0.996194698091745, 0.994521895368273, 0.992546151641322, 0.99026806874157, 0.987688340595137, 0.984807753012208, 0.981627183447664, 0.978147600733805, 0.974370064785235, 0.970295726275996, 0.965925826289068, 0.961261695938318, 0.956304755963035, 0.951056516295153, 0.945518575599316, 0.939692620785908, 0.933580426497201, 0.927183854566787, 0.920504853452439, 0.9135454576426, 0.906307787036649, 0.898794046299166, 0.891006524188367, 0.882947592858926, 0.874619707139395, 0.866025403784438, 0.857167300702112, 0.848048096156426, 0.838670567945424, 0.829037572555042, 0.819152044288992, 0.809016994374947, 0.798635510047293, 0.788010753606722, 0.777145961456971, 0.766044443118979, 0.754709580222773, 0.743144825477395, 0.731353701619171, 0.719339800338652, 0.707106781186549, 0.694658370458999, 0.6819983600625, 0.66913060635886, 0.656059028990509, 0.642787609686541, 0.62932039104984, 0.615661475325661, 0.601815023152051, 0.587785252292476, 0.573576436351049, 0.55919290347075, 0.544639035015031, 0.529919264233209, 0.515038074910058, 0.500000000000004, 0.484809620246341, 0.469471562785895, 0.453990499739552, 0.438371146789082, 0.422618261740705, 0.406736643075806, 0.390731128489279, 0.374606593415918, 0.358367949545306, 0.342020143325675, 0.325568154457163, 0.309016994374954, 0.292371704722744, 0.275637355817006, 0.258819045102528, 0.241921895599676, 0.224951054343873, 0.207911690817768, 0.190808995376553, 0.173648177666939, 0.15643446504024, 0.139173100960075, 0.121869343405157, 0.104528463267663, 0.0871557427476679, 0.0697564737441353, 0.052335956242954, 0.0348994967025113, 0.0174524064372941, 1.07806057163162E-14, -0.0174524064372725, -0.0348994967024898, -0.0523359562429325, -0.0697564737441138, -0.0871557427476465, -0.104528463267642, -0.121869343405135, -0.139173100960053, -0.156434465040218, -0.173648177666918, -0.190808995376532, -0.207911690817746, -0.224951054343852, -0.241921895599655, -0.258819045102507, -0.275637355816986, -0.292371704722723, -0.309016994374934, -0.325568154457143, -0.342020143325655, -0.358367949545286, -0.374606593415898, -0.39073112848926, -0.406736643075786, -0.422618261740685, -0.438371146789063, -0.453990499739532, -0.469471562785876, -0.484809620246323, -0.499999999999986, -0.51503807491004, -0.52991926423319, -0.544639035015013, -0.559192903470732, -0.573576436351032, -0.587785252292459, -0.601815023152034, -0.615661475325644, -0.629320391049823, -0.642787609686525, -0.656059028990493, -0.669130606358844, -0.681998360062484, -0.694658370458983, -0.707106781186534, -0.719339800338637, -0.731353701619157, -0.743144825477381, -0.754709580222759, -0.766044443118965, -0.777145961456958, -0.788010753606709, -0.79863551004728, -0.809016994374935, -0.819152044288979, -0.829037572555029, -0.838670567945412, -0.848048096156414, -0.857167300702101, -0.866025403784427, -0.874619707139385, -0.882947592858916, -0.891006524188357, -0.898794046299157, -0.90630778703664, -0.913545457642591, -0.920504853452431, -0.927183854566778, -0.933580426497193, -0.9396926207859, -0.945518575599309, -0.951056516295146, -0.956304755963028, -0.961261695938312, -0.965925826289062, -0.97029572627599, -0.974370064785229, -0.9781476007338, -0.981627183447659, -0.984807753012203, -0.987688340595134, -0.990268068741567, -0.992546151641319, -0.994521895368271, -0.996194698091743, -0.997564050259822, -0.998629534754572, -0.999390827019095, -0.999847695156391, -1, -0.999847695156392, -0.999390827019097, -0.998629534754575, -0.997564050259826, -0.996194698091748, -0.994521895368276, -0.992546151641326, -0.990268068741574, -0.987688340595142, -0.984807753012213, -0.98162718344767, -0.978147600733812, -0.974370064785242, -0.970295726276004, -0.965925826289076, -0.961261695938328, -0.956304755963045, -0.951056516295164, -0.945518575599327, -0.93969262078592, -0.933580426497214, -0.9271838545668, -0.920504853452453, -0.913545457642615, -0.906307787036664, -0.898794046299182, -0.891006524188383, -0.882947592858943, -0.874619707139413, -0.866025403784456, -0.85716730070213, -0.848048096156444, -0.838670567945443, -0.829037572555061, -0.819152044289012, -0.809016994374968, -0.798635510047314, -0.788010753606744, -0.777145961456994, -0.766044443119002, -0.754709580222796, -0.743144825477419, -0.731353701619196, -0.719339800338677, -0.707106781186574, -0.694658370459024, -0.681998360062526, -0.669130606358887, -0.656059028990536, -0.642787609686569, -0.629320391049868, -0.615661475325689, -0.601815023152079, -0.587785252292505, -0.573576436351078, -0.55919290347078, -0.544639035015061, -0.529919264233239, -0.515038074910089, -0.500000000000035, -0.484809620246373, -0.469471562785927, -0.453990499739583, -0.438371146789115, -0.422618261740737, -0.406736643075838, -0.390731128489312, -0.374606593415951, -0.35836794954534, -0.342020143325709, -0.325568154457197, -0.309016994374988, -0.292371704722778, -0.275637355817041, -0.258819045102563, -0.24192189559971, -0.224951054343908, -0.207911690817802, -0.190808995376588, -0.173648177666974, -0.156434465040275, -0.13917310096011, -0.121869343405192, -0.104528463267698, -0.0871557427477034, -0.0697564737441708, -0.0523359562429896, -0.034899496702547, -0.0174524064373297];
}
}//package com.nitrome.geom
Section 92
//BitmapClip (com.nitrome.gfx.BitmapClip)
package com.nitrome.gfx {
import flash.display.*;
import flash.geom.*;
public class BitmapClip extends BitmapSprite {
public var total_frames:int;
public var frames:Array;
public function BitmapClip(_arg1:MovieClip=null, _arg2:ColorTransform=null){
var _local3:int;
super(_arg1, _arg2);
if (_arg1 != null){
frames = [data];
_local3 = 2;
while (_local3 < (_arg1.totalFrames + 1)) {
_arg1.gotoAndStop(_local3);
frames[(_local3 - 1)] = new BitmapData(Math.ceil(bounds.width), Math.ceil(bounds.height), true, 0);
frames[(_local3 - 1)].draw(_arg1, new Matrix(1, 0, 0, 1, -(bounds.left), -(bounds.top)), _arg2);
_local3++;
};
total_frames = _arg1.totalFrames;
};
}
override public function render(_arg1:BitmapData, _arg2:int=0):void{
p.x = (x + dx);
p.y = (y + dy);
_arg1.copyPixels(frames[_arg2], rect, p, null, null, true);
}
public function compress():void{
var _local1:int;
var _local2:int;
_local1 = 0;
while (_local1 < frames.length) {
_local2 = (_local1 + 1);
while (_local2 < frames.length) {
if (frames[_local1].compare(frames[_local2]) == 0){
frames[_local1] = frames[_local2];
};
_local2++;
};
_local1++;
};
}
}
}//package com.nitrome.gfx
Section 93
//BitmapSprite (com.nitrome.gfx.BitmapSprite)
package com.nitrome.gfx {
import flash.display.*;
import flash.geom.*;
public class BitmapSprite {
public var rect:Rectangle;
public var width:int;
public var data:BitmapData;
public var dx:int;
public var dy:int;
public var height:int;
public var x:int;
public var y:int;
public static var p:Point = new Point();
public static var bounds:Rectangle;
public function BitmapSprite(_arg1:DisplayObject=null, _arg2:ColorTransform=null){
x = (y = 0);
if (_arg1 != null){
bounds = _arg1.getBounds(_arg1);
data = new BitmapData(Math.ceil(bounds.width), Math.ceil(bounds.height), true, 0);
data.draw(_arg1, new Matrix(1, 0, 0, 1, -(bounds.left), -(bounds.top)), null);
width = bounds.width;
height = bounds.height;
dx = bounds.left;
dy = bounds.top;
rect = new Rectangle(0, 0, Math.ceil(bounds.width), Math.ceil(bounds.height));
};
}
public function render(_arg1:BitmapData, _arg2:int=0):void{
p.x = (x + dx);
p.y = (y + dy);
_arg1.copyPixels(data, rect, p, null, null, true);
}
}
}//package com.nitrome.gfx
Section 94
//DebrisFX (com.nitrome.gfx.DebrisFX)
package com.nitrome.gfx {
import flash.display.*;
public class DebrisFX extends FX {
public var vx:Number;
public var bounce:Boolean;
public var vy:Number;
public var gravity:Number;
public static const GROUND_FRICTION:Number = 0.1;
public function DebrisFX(_arg1:Number, _arg2:Number, _arg3:BitmapSprite, _arg4:BitmapData, _arg5:Bitmap, _arg6:Game, _arg7:Boolean=false, _arg8:Number=1){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, null, 0, true);
vx = (vy = 0);
this.bounce = _arg7;
this.gravity = _arg8;
}
public function addVelocity(_arg1:Number, _arg2:Number):void{
vx = (vx + _arg1);
vy = (vy + _arg2);
}
override public function main():void{
vx = (vx - ((0.005 * vx) * g.time_step));
vy = (vy - ((0.005 * vy) * g.time_step));
vy = (vy + (gravity * g.time_step));
x = (x + (vx * g.time_step));
y = (y + (vy * g.time_step));
if (((bounce) && ((y > g.ground_y)))){
y = g.ground_y;
vy = -(vy);
vx = (vx - (GROUND_FRICTION * vx));
};
super.main();
}
}
}//package com.nitrome.gfx
Section 95
//Flag (com.nitrome.gfx.Flag)
package com.nitrome.gfx {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class Flag extends MovieClip {
public var green:MovieClip;
private var _text:String;
public var blue:MovieClip;
public var yellow:MovieClip;
private var flag:MovieClip;
public var red:MovieClip;
private var showing:Boolean;// = false
private var show_step:Number;
public static const SHOW_DELAY:int = 30;
public static const colours:Array = ["red", "yellow", "green", "blue"];
public function Flag(_arg1:String, _arg2:String=""){
var _local3:int;
showing = false;
super();
_local3 = 0;
while (_local3 < colours.length) {
if (_arg1 != colours[_local3]){
this[colours[_local3]].visible = false;
} else {
flag = this[_arg1];
};
_local3++;
};
text = _arg2;
}
public function get text():String{
return (_text);
}
public function set text(_arg1:String):void{
_text = _arg1.toUpperCase();
(flag.msg as TextField).autoSize = TextFieldAutoSize.LEFT;
flag.msg.text = _text;
flag.middle.width = flag.msg.width;
flag.end.x = (flag.middle.x + flag.middle.width);
show_step = (flag.width / SHOW_DELAY);
}
public function hide():void{
flag.x = -(flag.width);
}
public function onEnterFrame(_arg1:Event=null):void{
if (flag.x < 0){
flag.x = (flag.x + show_step);
} else {
flag.x = 0;
showing = false;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
}
public function show():void{
if (!showing){
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
showing = true;
};
}
}
}//package com.nitrome.gfx
Section 96
//FloatSprite (com.nitrome.gfx.FloatSprite)
package com.nitrome.gfx {
import flash.display.*;
import flash.events.*;
public class FloatSprite extends Sprite {
public var interpolation:Number;// = 0.2
private var _target_x:int;
private var _target_y:int;
public var tracking:Boolean;// = false
public static const TOLERANCE:Number = 1;
public function FloatSprite(){
tracking = false;
interpolation = 0.2;
super();
}
public function get target_x():Number{
return (_target_x);
}
public function get target_y():Number{
return (_target_y);
}
public function set target_y(_arg1:Number):void{
_target_y = _arg1;
if (!tracking){
tracking = true;
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
};
}
public function set target_x(_arg1:Number):void{
_target_x = _arg1;
if (!tracking){
tracking = true;
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
};
}
public function onEnterFrame(_arg1:Event=null):void{
if (((!((x == _target_x))) && (!((y == _target_y))))){
x = (x + ((_target_x - x) * interpolation));
y = (y + ((_target_y - y) * interpolation));
if (Math.abs((_target_x - x)) < TOLERANCE){
x = _target_x;
};
if (Math.abs((_target_y - y)) < TOLERANCE){
y = _target_y;
};
} else {
tracking = false;
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
}
}
}//package com.nitrome.gfx
Section 97
//FX (com.nitrome.gfx.FX)
package com.nitrome.gfx {
import flash.display.*;
import com.nitrome.geom.*;
public class FX extends Dot {
public var looped:Boolean;
public var active:Boolean;
public var dir:Dot;
public var image_holder:Bitmap;
public var image:BitmapData;
public var g:Game;
public var frame:Number;
public var bitmap:BitmapSprite;
public function FX(_arg1:Number, _arg2:Number, _arg3:BitmapSprite, _arg4:BitmapData, _arg5:Bitmap, _arg6:Game, _arg7:Dot=null, _arg8:int=0, _arg9:Boolean=false){
super(_arg1, _arg2);
this.bitmap = _arg3;
this.image = _arg4;
this.image_holder = _arg5;
this.g = _arg6;
this.dir = _arg7;
this.looped = _arg9;
frame = (0 - _arg8);
active = true;
}
public function main():void{
if (frame > -1){
bitmap.x = (-(image_holder.x) + x);
bitmap.y = (-(image_holder.y) + y);
if ((((((((((bitmap.x + bitmap.dx) + bitmap.width) >= 0)) && ((((bitmap.y + bitmap.dy) + bitmap.height) >= 0)))) && (((bitmap.x + bitmap.dx) <= image_holder.width)))) && (((bitmap.y + bitmap.dy) <= image_holder.height)))){
bitmap.render(image, (frame >> 0));
frame = (frame + g.time_step);
} else {
frame = (frame + g.time_step);
};
if ((((bitmap is BitmapClip)) && ((frame >= (bitmap as BitmapClip).total_frames)))){
if (!looped){
active = false;
} else {
frame = 0;
};
};
} else {
frame = (frame + g.time_step);
};
if (dir){
x = (x + (dir.x * g.time_step));
y = (y + (dir.y * g.time_step));
};
}
}
}//package com.nitrome.gfx
Section 98
//GrabFade (com.nitrome.gfx.GrabFade)
package com.nitrome.gfx {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class GrabFade extends Sprite {
private var ticker:Boolean;
private var bitmap:Bitmap;
public static const STEP:Number = 0.05;
public function GrabFade(_arg1:DisplayObject, _arg2:Boolean=false){
var _local3:Rectangle;
var _local4:BitmapData;
super();
this.ticker = _arg2;
_local3 = _arg1.getBounds(_arg1);
_local4 = new BitmapData(Math.ceil(_local3.width), Math.ceil(_local3.height), true, 0);
_local4.draw(_arg1, new Matrix(1, 0, 0, 1, -(_local3.left), -(_local3.top)));
bitmap = new Bitmap(_local4);
addChild(bitmap);
bitmap.x = _local3.left;
bitmap.y = _local3.top;
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
public function onEnterFrame(_arg1:Event=null):void{
if (((((Game.tick) && (ticker))) || (!(ticker)))){
bitmap.alpha = (bitmap.alpha - STEP);
if (bitmap.alpha <= 0){
if (parent){
parent.removeChild(this);
};
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
};
};
}
}
}//package com.nitrome.gfx
Section 99
//NukeWhite (com.nitrome.gfx.NukeWhite)
package com.nitrome.gfx {
import flash.display.*;
import flash.events.*;
public class NukeWhite extends Sprite {
public var g:Game;
public static const SHAKE_STRENGTH:Number = 30;
public function NukeWhite(_arg1:Game){
this.g = _arg1;
_arg1.shake(0, 30);
graphics.beginFill(0xFFFFFF);
graphics.drawRect(0, -(SHAKE_STRENGTH), Game.WIDTH, (Game.HEIGHT + (SHAKE_STRENGTH * 2)));
graphics.endFill();
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
}
public function onEnterFrame(_arg1:Event=null):void{
x = -(g.canvas.x);
y = -(g.canvas.y);
if (Game.tick){
alpha = (alpha - 0.04);
if (alpha <= 0){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
if (parent){
parent.removeChild(this);
};
};
};
}
}
}//package com.nitrome.gfx
Section 100
//TickClip (com.nitrome.gfx.TickClip)
package com.nitrome.gfx {
import flash.display.*;
import flash.events.*;
public class TickClip extends MovieClip {
public var locked:Boolean;
public var playing:Boolean;
public var strike_anim:PlayerStrikeAnimHolder;
public static var next_frame:int;
public function TickClip(){
super.stop();
playing = true;
locked = false;
addEventListener(Event.ENTER_FRAME, update, false, 0, true);
}
override public function stop():void{
if (locked){
return;
};
if (playing){
removeEventListener(Event.ENTER_FRAME, update);
};
playing = false;
}
override public function play():void{
if (locked){
return;
};
if (!playing){
addEventListener(Event.ENTER_FRAME, update, false, 0, true);
};
playing = true;
}
override public function gotoAndStop(_arg1:Object, _arg2:String=null):void{
if (locked){
return;
};
if (playing){
removeEventListener(Event.ENTER_FRAME, update);
};
playing = false;
super.gotoAndStop(_arg1, _arg2);
}
override public function gotoAndPlay(_arg1:Object, _arg2:String=null):void{
if (locked){
return;
};
if (!playing){
addEventListener(Event.ENTER_FRAME, update, false, 0, true);
};
playing = true;
super.gotoAndStop(_arg1, _arg2);
}
public function update(_arg1:Event=null):void{
if (((((!(locked)) && (playing))) && (Game.tick))){
next_frame = (currentFrame + 1);
if (next_frame > totalFrames){
next_frame = 1;
};
super.gotoAndStop(next_frame);
};
}
public static function lock(_arg1:DisplayObjectContainer=null):void{
var _local2:int;
if ((_arg1 is TickClip)){
(_arg1 as TickClip).locked = true;
};
_local2 = 0;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is DisplayObjectContainer)){
lock((_arg1.getChildAt(_local2) as DisplayObjectContainer));
};
_local2++;
};
}
public static function unlock(_arg1:DisplayObjectContainer=null):void{
var _local2:int;
if ((_arg1 is TickClip)){
(_arg1 as TickClip).locked = false;
};
_local2 = 0;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is DisplayObjectContainer)){
unlock((_arg1.getChildAt(_local2) as DisplayObjectContainer));
};
_local2++;
};
}
}
}//package com.nitrome.gfx
Section 101
//ArrowButton (com.nitrome.highscore.ArrowButton)
package com.nitrome.highscore {
import flash.events.*;
import com.nitrome.ui.*;
public class ArrowButton extends SimpleButton {
var high_score_board:HighScoreBoard;
public function ArrowButton(){
high_score_board = (parent as HighScoreBoard);
visible = false;
}
public function hide():void{
visible = false;
}
override public function onClick(_arg1:MouseEvent):void{
if (name == "prev_arrow"){
high_score_board.shiftScoresPrev();
} else {
if (name == "next_arrow"){
high_score_board.shiftScoresNext();
};
};
}
public function show():void{
visible = true;
}
}
}//package com.nitrome.highscore
Section 102
//ClearButton (com.nitrome.highscore.ClearButton)
package com.nitrome.highscore {
import flash.events.*;
import com.nitrome.ui.*;
public class ClearButton extends SimpleButton {
private var score_submit_panel:ScoreSubmitPanel;
public function ClearButton(){
score_submit_panel = (parent as ScoreSubmitPanel);
}
override public function onClick(_arg1:MouseEvent):void{
score_submit_panel.clearName();
}
}
}//package com.nitrome.highscore
Section 103
//HighScoreBoard (com.nitrome.highscore.HighScoreBoard)
package com.nitrome.highscore {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class HighScoreBoard extends MovieClip {
private const MAX_RANK:int = 100;
public const MAX_DIGITS:int = 8;
public const NUM_LINES:int = 10;
private var scores_loader:URLLoader;
public var score_line_4:ScoreLine;
public var score_line_5:ScoreLine;
public var next:NextLevel;
public var score_line_3:ScoreLine;
public var score_line_8:ScoreLine;
public var score_line_1:ScoreLine;
private var loaded:Boolean;
public var prev:PrevLevel;
private var _zero_fill:Boolean;// = false
private var score_lines:Array;
public var score_line_2:ScoreLine;
public var loading_text:BlastRPGBigFont;
public var level_num:BlastRPGFont;
private var scores_request:URLRequest;
public var score_line_9:ScoreLine;
private var scores_vars:URLVariables;
public var score_line_10:ScoreLine;
private var saved_min_rank:int;
public var next_arrow:NextArrow;
public var score_line_7:ScoreLine;
public var prev_arrow:PrevArrow;
public var score_line_6:ScoreLine;
public function HighScoreBoard(){
var _local1:int;
_zero_fill = false;
super();
score_lines = new Array(NUM_LINES);
if (NitromeGame.isAtURL(NitromeGame.NITROME_URL)){
_local1 = 0;
while (_local1 < score_lines.length) {
score_lines[_local1] = (getChildByName(("score_line_" + (_local1 + 1))) as HighScoreLine);
_local1++;
};
loaded = false;
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
addEventListener(Event.ENTER_FRAME, loadText, false, 0, true);
} else {
gotoAndStop("hide");
};
}
private function init(_arg1:Event):void{
loadHighScores(1);
_arg1.target.removeEventListener(Event.ADDED_TO_STAGE, init);
}
private function retrieveSuccessful(_arg1:Event):void{
var _local2:String;
_local2 = _arg1.target.data.result;
trace((("Scores retrieved: (" + _local2) + ")"));
displayHighScores(_local2);
if (saved_min_rank == 1){
NitromeGame.high_score_buffer[(NitromeGame.selected_level - 1)] = _local2;
};
loaded = true;
}
public function shiftScoresPrev():void{
var _local1:int;
_local1 = (saved_min_rank - 10);
if (_local1 < 1){
_local1 = 1;
};
loadHighScores(_local1);
}
public function loadHighScores(_arg1:int):void{
level_num.text = ("level " + NitromeGame.selected_level);
saved_min_rank = _arg1;
scores_loader = new URLLoader();
scores_vars = new URLVariables();
scores_request = new URLRequest(NitromeGame.RETRIEVE_URL);
scores_request.method = URLRequestMethod.POST;
scores_request.data = scores_vars;
scores_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
scores_loader.addEventListener(Event.COMPLETE, retrieveSuccessful);
scores_loader.addEventListener(IOErrorEvent.IO_ERROR, retrieveFailed);
scores_vars.min_rank = String(_arg1);
scores_vars.game_name = (NitromeGame.game_id + NitromeGame.selected_level);
scores_vars.time_based = (NitromeGame.time_based) ? "1" : "0";
scores_loader.load(scores_request);
}
public function set zero_fill(_arg1:Boolean):void{
_zero_fill = _arg1;
}
private function retrieveFailed(_arg1:IOErrorEvent):void{
trace(("Retrieve scores failed: " + _arg1.text));
}
private function loadText(_arg1:Event):void{
if (((loaded) && ((loading_text.alpha > 0)))){
loading_text.alpha = (loading_text.alpha - 0.1);
} else {
if (((loaded) && ((loading_text.alpha <= 0)))){
_arg1.target.removeEventListener(Event.ENTER_FRAME, loadText);
};
};
}
public function get zero_fill():Boolean{
return (_zero_fill);
}
public function displayHighScoresMTV(_arg1:Array):void{
var _local2:int;
var _local3:String;
var _local4:String;
if (_arg1.length > 0){
_local2 = 0;
while (_local2 <= 9) {
_local3 = String(_arg1[_local2].user_name);
_local4 = String(_arg1[_local2].score);
if ((((_local3 == "")) || ((_local3 == null)))){
score_lines[_local2].hide();
next_arrow.hide();
} else {
score_lines[_local2].displayData((saved_min_rank + _local2), _local3, _local4);
};
_local2++;
};
} else {
trace("no leaderboard data");
};
}
public function displayHighScores(_arg1:String):void{
var _local2:int;
var _local3:Object;
if (_arg1 != "0"){
_local2 = 0;
while (_local2 < score_lines.length) {
_local3 = NitromeGame.getHighScoreLine(_arg1, (_local2 + 1));
if (_local3 == null){
score_lines[_local2].hide();
} else {
score_lines[_local2].displayData((saved_min_rank + _local2), _local3.username, _local3.score);
};
_local2++;
};
if (NitromeGame.displayNextButton(_arg1)){
next_arrow.show();
} else {
next_arrow.hide();
};
if (NitromeGame.displayPreviousButton(_arg1)){
prev_arrow.show();
} else {
prev_arrow.hide();
};
};
}
public function shiftScoresNext():void{
var _local1:int;
_local1 = (saved_min_rank + 10);
loadHighScores(_local1);
}
}
}//package com.nitrome.highscore
Section 104
//HighScoreLine (com.nitrome.highscore.HighScoreLine)
package com.nitrome.highscore {
import flash.display.*;
import flash.events.*;
public class HighScoreLine extends Sprite {
private const FADE_SPEED:Number = 0.3;
private var fade_delay:int;
public var rank_text:BlastRPGFont;
public var name_text:BlastRPGFont;
private var hidden:Boolean;
private var fade_count:int;
public var score_text:BlastRPGFont;
private var high_score_board:HighScoreBoard;
public function HighScoreLine(){
visible = false;
hidden = false;
high_score_board = (parent as HighScoreBoard);
}
public function hide():void{
trace((name + " hide"));
visible = false;
hidden = true;
}
private function performFade(_arg1:Event):void{
if (fade_count >= fade_delay){
alpha = (alpha + FADE_SPEED);
if (alpha >= 1){
_arg1.target.removeEventListener(Event.ENTER_FRAME, performFade);
};
};
fade_count++;
}
public function displayData(_arg1:int, _arg2:String, _arg3:String):void{
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
trace((name + " displayData:"));
rank_text.text = String((_arg1 + "."));
name_text.text = _arg2.toUpperCase();
trace(((((_arg1 + ",") + _arg2) + ",") + _arg3));
if (high_score_board.zero_fill){
_local4 = high_score_board.MAX_DIGITS;
_local5 = _arg3.length;
_local6 = (_local4 - _local5);
_local7 = 1;
while (_local7 <= _local6) {
_arg3 = ("0" + _arg3);
_local7++;
};
score_text.text = _arg3;
} else {
score_text.text = _arg3;
};
score_text.text = formatText(parseInt(_arg3));
alpha = 0;
visible = true;
fade_delay = (((_arg1 - 1) % high_score_board.NUM_LINES) * int((1 / FADE_SPEED)));
fade_count = 0;
addEventListener(Event.ENTER_FRAME, performFade);
}
public function formatText(_arg1:int):String{
var _local2:String;
var _local3:int;
_local2 = ("" + (0.1 * _arg1));
_local3 = _local2.indexOf(".");
if (_local3 == -1){
_local2 = (_local2 + ".0");
} else {
_local2 = _local2.substr(0, (_local3 + 2));
};
return (("" + _local2));
}
}
}//package com.nitrome.highscore
Section 105
//LetterButton (com.nitrome.highscore.LetterButton)
package com.nitrome.highscore {
import flash.events.*;
import com.nitrome.ui.*;
public class LetterButton extends SimpleButton {
public var letter:BlastRPGFont;
private var letter_text:String;
private var score_submit_panel:ScoreSubmitPanel;
public static const up_col:int = 4539459;
public static const over_col:int = 0xC74E00;
public function LetterButton(){
score_submit_panel = (parent as ScoreSubmitPanel);
letter_text = name;
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(_arg1:Event):void{
letter.text = letter_text.toUpperCase();
_arg1.target.removeEventListener(Event.ADDED_TO_STAGE, init);
}
override protected function updateGraphic():void{
if (over){
};
}
override public function onClick(_arg1:MouseEvent):void{
score_submit_panel.addLetter(letter_text);
}
}
}//package com.nitrome.highscore
Section 106
//LevelArrowButton (com.nitrome.highscore.LevelArrowButton)
package com.nitrome.highscore {
import flash.events.*;
import com.nitrome.ui.*;
public class LevelArrowButton extends SimpleButton {
var high_score_board:HighScoreBoard;
public function LevelArrowButton(){
high_score_board = (parent as HighScoreBoard);
if (name == "prev"){
if (NitromeGame.selected_level == 1){
visible = false;
};
} else {
if (name == "next"){
if (NitromeGame.selected_level == NitromeGame.total_levels){
visible = false;
};
};
};
}
override public function onClick(_arg1:MouseEvent):void{
if (name == "prev"){
NitromeGame.selected_level--;
if (NitromeGame.selected_level == 1){
visible = false;
};
high_score_board.next.visible = true;
high_score_board.loadHighScores(1);
} else {
if (name == "next"){
NitromeGame.selected_level++;
if (NitromeGame.selected_level == NitromeGame.total_levels){
visible = false;
};
high_score_board.prev.visible = true;
high_score_board.loadHighScores(1);
};
};
}
}
}//package com.nitrome.highscore
Section 107
//ScoreSubmitPanel (com.nitrome.highscore.ScoreSubmitPanel)
package com.nitrome.highscore {
import flash.display.*;
import flash.events.*;
import com.nitrome.util.*;
import flash.net.*;
import flash.ui.*;
public class ScoreSubmitPanel extends MovieClip {
private const MAX_LENGTH:Number = 10;
private var submit_loader:URLLoader;
public var C:LetterButton;
public var D:LetterButton;
public var E:LetterButton;
public var F:LetterButton;
public var H:LetterButton;
public var I:LetterButton;
public var J:LetterButton;
public var L:LetterButton;
public var P:LetterButton;
public var K:LetterButton;
public var W:LetterButton;
public var X:LetterButton;
public var R:LetterButton;
public var T:LetterButton;
public var U:LetterButton;
public var V:LetterButton;
public var G:LetterButton;
public var Y:LetterButton;
public var name_text:BlastRPGFont;
public var S:LetterButton;
public var level_num:BlastRPGFont;
public var N:LetterButton;
public var O:LetterButton;
public var Z:LetterButton;
public var A:LetterButton;
public var B:LetterButton;
public var Q:LetterButton;
public var M:LetterButton;
public var score_text:BlastRPGFont;
private var hack_timer:int;
private var loading_clip:MovieClip;
private var submitted:Boolean;
public var submit_button:SubmitButton;
public var loading_black:MovieClip;
public var clear_button:ClearButton;
private var submit_request:URLRequest;
private var submit_vars:URLVariables;
public function ScoreSubmitPanel(){
if (NitromeGame.isAtURL(NitromeGame.NITROME_URL)){
submitted = false;
addEventListener(Event.ADDED_TO_STAGE, init);
hack_timer = 30;
} else {
gotoAndStop("hide");
};
}
public function addLetter(_arg1:String):void{
var _local2:String;
var _local3:String;
_local2 = name_text.text;
if (_local2.length < MAX_LENGTH){
_arg1 = _arg1.toUpperCase();
_local3 = (_local2 + _arg1);
name_text.text = _local3;
submit_button.enable();
};
}
private function submitFailed(_arg1:IOErrorEvent):void{
trace(("Submit score failed: " + _arg1.text));
trace();
loading_black.gotoAndPlay(2);
}
public function clearName():void{
submit_button.disable();
name_text.text = "";
}
private function keyPressed(_arg1:KeyboardEvent):void{
var _local2:int;
_local2 = _arg1.charCode;
if ((((((_local2 >= 65)) && ((_local2 <= 90)))) || ((((_local2 >= 97)) && ((_local2 <= 122)))))){
addLetter(String.fromCharCode(_local2));
};
if ((((_arg1.keyCode == Keyboard.BACKSPACE)) || ((_arg1.keyCode == Keyboard.DELETE)))){
clearName();
};
}
private function submitSuccessful(_arg1:Event):void{
trace("Score submitted");
loading_black.gotoAndPlay(2);
}
private function init(_arg1:Event):void{
addEventListener(Event.ENTER_FRAME, textHack, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
level_num.text = ("level " + NitromeGame.selected_level);
_arg1.target.removeEventListener(Event.ADDED_TO_STAGE, init);
}
public function submitScore():void{
var _local1:String;
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
_local1 = name_text.text.toUpperCase();
if (_local1 != ""){
submit_loader = new URLLoader();
submit_vars = new URLVariables();
submit_request = new URLRequest(NitromeGame.SUBMIT_URL);
submit_request.method = URLRequestMethod.POST;
submit_request.data = submit_vars;
submit_loader.addEventListener(Event.COMPLETE, submitSuccessful);
submit_loader.addEventListener(IOErrorEvent.IO_ERROR, submitFailed);
submit_vars.data_string = NitromeGame.getScoreData(Score.value, _local1, (NitromeGame.game_id + NitromeGame.selected_level));
submit_vars.time_based = "0";
submit_request.data = submit_vars;
submit_loader.load(submit_request);
} else {
loading_black.gotoAndPlay(2);
};
}
public function formatText(_arg1:int):String{
var _local2:String;
var _local3:int;
_local2 = ("" + (0.1 * _arg1));
_local3 = _local2.indexOf(".");
if (_local3 == -1){
_local2 = (_local2 + ".0");
} else {
_local2 = _local2.substr(0, (_local3 + 2));
};
return (("" + _local2));
}
private function textHack(_arg1:Event):void{
if (((!(score_text)) || ((hack_timer-- <= 0)))){
removeEventListener(Event.ENTER_FRAME, textHack);
} else {
score_text.text = ("your score is " + formatText(Score.value));
};
}
}
}//package com.nitrome.highscore
Section 108
//SubmitButton (com.nitrome.highscore.SubmitButton)
package com.nitrome.highscore {
import flash.events.*;
import com.nitrome.ui.*;
public class SubmitButton extends SimpleButton {
private var pressed:Boolean;// = false
private var disabled:Boolean;// = true
private var score_submit_panel:ScoreSubmitPanel;
public function SubmitButton(){
pressed = false;
disabled = true;
super();
gotoAndStop("_up");
score_submit_panel = (parent as ScoreSubmitPanel);
}
public function enable():void{
disabled = false;
useHandCursor = true;
buttonMode = true;
updateGraphic();
}
override protected function updateGraphic():void{
if (((!(over)) || (disabled))){
gotoAndStop("_up");
} else {
gotoAndStop("_over");
};
}
public function disable():void{
disabled = true;
useHandCursor = false;
buttonMode = false;
updateGraphic();
}
override public function onClick(_arg1:MouseEvent):void{
if (disabled){
gotoAndStop("_up");
} else {
if (!pressed){
score_submit_panel.submitScore();
pressed = true;
};
};
}
}
}//package com.nitrome.highscore
Section 109
//SoundManager (com.nitrome.sound.SoundManager)
package com.nitrome.sound {
import flash.display.*;
import flash.media.*;
public class SoundManager extends SoundManagerSuper {
protected const MENU_VOLUME:Number = 1;
protected const GAME_VOLUME:Number = 1;
protected const SHOP_VOLUME:Number = 1;
public var bionic:MovieClip;
public var spell1:MovieClip;
public var spell2:MovieClip;
public var spell3:MovieClip;
public var spell4:MovieClip;
public var spell5:MovieClip;
public var time_stop:int;
public var slap:MovieClip;
public var death:MovieClip;
public var coin:MovieClip;
public var boing_bounce2:MovieClip;
public var boing_bounce3:MovieClip;
public var petrify:MovieClip;
public var boing_bounce1:MovieClip;
public var knight_bounce1:MovieClip;
public var knight_bounce3:MovieClip;
public var cannon:MovieClip;
public var shroom_bounce:MovieClip;
public var beartrap:MovieClip;
public var knight_bounce2:MovieClip;
public var miss:MovieClip;
public var boom:MovieClip;
public var buy_item:MovieClip;
public var nuke:MovieClip;
public var skid:MovieClip;
public var sword_select:MovieClip;
public var crash:MovieClip;
public var boost:MovieClip;
public var chicken:MovieClip;
public var fanfare:MovieClip;
public var hit:MovieClip;
public var crying:MovieClip;
public var bowang:MovieClip;
public static const GAME:int = 1;
public static const SHOP:int = 2;
public static const MENU:int = 0;
public function SoundManager(){
NitromeGame.sound_manager = this;
music_loops.push(new MenuMusic());
music_loops.push(new GameMusic());
music_loops.push(new ShopMusic());
music_transforms.push(new SoundTransform(MENU_VOLUME, 0));
music_transforms.push(new SoundTransform(GAME_VOLUME, 0));
music_transforms.push(new SoundTransform(SHOP_VOLUME, 0));
music_channels.push(new SoundChannel());
music_channels.push(new SoundChannel());
music_channels.push(new SoundChannel());
music_volumes.push(MENU_VOLUME);
music_volumes.push(GAME_VOLUME);
music_volumes.push(SHOP_VOLUME);
music_fade_direction.push(0);
music_fade_direction.push(0);
music_fade_direction.push(0);
music_type = uint.MAX_VALUE;
}
}
}//package com.nitrome.sound
Section 110
//SoundManagerSuper (com.nitrome.sound.SoundManagerSuper)
package com.nitrome.sound {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class SoundManagerSuper extends MovieClip {
protected const CROSS_FADE_SPEED:Number = 0.1;
protected const LOOP_FADE_SPEED:Number = 0.2;
public var sound_channels:Array;
protected var sound_clips:Array;
public var music_type:int;
protected var _music:Boolean;// = true
public var sound_loops:Array;
protected var sound_loop_fade_direction;
protected var sound_volumes:Array;
protected var music_volumes:Array;
public var disabled:Boolean;
public var fading_sound:Boolean;// = false
public var fading_music:Boolean;// = false
protected var fade_from:int;
protected var music_channels:Array;
private var _time:int;
public var music_loops:Array;
public var sound_transforms:Array;
public var sound_loop_playing:Array;
protected var _sfx:Boolean;// = true
protected var music_fade_direction:Array;
protected var music_transforms:Array;
public var stop_time:int;
public static const NO_MUSIC:int = -1;
public function SoundManagerSuper(){
var _local1:int;
var _local2:MovieClip;
sound_clips = [];
sound_loops = [];
sound_loop_playing = [];
sound_channels = [];
sound_transforms = [];
sound_volumes = [];
sound_loop_fade_direction = [];
music_loops = [];
music_channels = [];
music_transforms = [];
music_volumes = [];
music_fade_direction = [];
_music = true;
_sfx = true;
fading_music = false;
fading_sound = false;
super();
_music = NitromeGame.music;
_sfx = NitromeGame.sfx;
_time = 0;
_local1 = 0;
while (_local1 < numChildren) {
_local2 = (getChildAt(_local1) as MovieClip);
if (_local2 != null){
sound_clips[_local2.name] = _local2;
};
_local1++;
};
}
public function playMusicFadeIn(_arg1:int, _arg2:int=0):void{
var _local3:int;
if (disabled){
return;
};
if (((!(_music)) || ((music_type == _arg1)))){
music_type = _arg1;
return;
};
if (music_fade_direction[_arg1] == 0){
music_transforms[_arg1].volume = 0;
if (_arg2 >= music_loops[_arg1].length){
_arg2 = 0;
};
music_channels[_arg1] = music_loops[_arg1].play(_arg2, ((_arg2 == 0)) ? int.MAX_VALUE : 1, music_transforms[_arg1]);
time = _arg2;
if (_arg2 != 0){
music_channels[_arg1].addEventListener(Event.SOUND_COMPLETE, loopHack, false, 0, true);
};
};
_local3 = 0;
while (_local3 < music_fade_direction.length) {
if (_local3 != _arg1){
music_fade_direction[_local3] = -1;
};
_local3++;
};
music_fade_direction[_arg1] = 1;
if (!fading_music){
fading_music = true;
addEventListener(Event.ENTER_FRAME, fadeMusic);
};
music_type = _arg1;
}
public function turnOffSfx():void{
NitromeGame.sfx = (_sfx = false);
stopLoops();
}
public function startLoops():void{
var _local1:int;
if (disabled){
return;
};
_local1 = 0;
while (_local1 < sound_loops.length) {
if (((!((sound_loops[_local1] == null))) && (sound_loop_playing[_local1]))){
sound_channels[_local1] = sound_loops[_local1].play(0, int.MAX_VALUE, sound_transforms[_local1]);
};
_local1++;
};
}
public function playLoop(_arg1:uint):void{
if (disabled){
return;
};
if (_sfx){
if (((!((sound_loops[_arg1] == null))) && (!(sound_loop_playing[_arg1])))){
sound_transforms[_arg1].volume = sound_volumes[_arg1];
sound_channels[_arg1] = sound_loops[_arg1].play(0, int.MAX_VALUE, sound_transforms[_arg1]);
sound_loop_playing[_arg1] = true;
};
};
}
public function get music():Boolean{
return (_music);
}
private function fadeMusic(_arg1:Event):void{
var _local2:Boolean;
var _local3:int;
_local2 = true;
_local3 = 0;
while (_local3 < music_loops.length) {
if (music_fade_direction[_local3] != 0){
_local2 = false;
if (music_fade_direction[_local3] > 0){
if (music_transforms[_local3].volume < music_volumes[_local3]){
music_transforms[_local3].volume = (music_transforms[_local3].volume + CROSS_FADE_SPEED);
music_channels[_local3].soundTransform = music_transforms[_local3];
} else {
if (music_transforms[_local3].volume >= music_volumes[_local3]){
music_transforms[_local3].volume = music_volumes[_local3];
music_channels[_local3].soundTransform = music_transforms[_local3];
music_fade_direction[_local3] = 0;
};
};
} else {
if (music_fade_direction[_local3] < 0){
if (music_transforms[_local3].volume > 0){
music_transforms[_local3].volume = (music_transforms[_local3].volume - CROSS_FADE_SPEED);
music_channels[_local3].soundTransform = music_transforms[_local3];
} else {
if (music_transforms[_local3].volume <= 0){
music_transforms[_local3].volume = 0;
music_channels[_local3].soundTransform = music_transforms[_local3];
music_fade_direction[_local3] = 0;
music_channels[_local3].stop();
};
};
};
};
};
_local3++;
};
if (_local2){
_arg1.target.removeEventListener(Event.ENTER_FRAME, fadeMusic);
fading_music = false;
};
}
public function set sfx(_arg1:Boolean):void{
_sfx = _arg1;
}
public function crossFade(_arg1:int, _arg2:int=0):void{
playMusicFadeIn(_arg1, _arg2);
}
public function toggleMusic():void{
if (_music){
turnOffMusic();
} else {
turnOnMusic();
};
}
public function playSound(_arg1:String):void{
if (_sfx){
if (sound_clips[_arg1] != null){
sound_clips[_arg1].gotoAndPlay(2);
};
};
}
public function stopMusic():void{
var _local1:uint;
if (disabled){
return;
};
_local1 = 0;
while (_local1 < music_channels.length) {
if (music_channels[_local1] != null){
music_channels[_local1].stop();
};
_local1++;
};
stop_time = time;
}
public function turnOnMusic():void{
NitromeGame.music = (_music = true);
if (music_type != NO_MUSIC){
playMusic(music_type, true);
};
}
private function fadeSound(_arg1:Event):void{
var _local2:Boolean;
var _local3:int;
_local2 = true;
_local3 = 0;
while (_local3 < sound_loops.length) {
if (sound_loop_fade_direction[_local3] != 0){
_local2 = false;
if (sound_loop_fade_direction[_local3] > 0){
if (sound_transforms[_local3].volume < sound_volumes[_local3]){
sound_transforms[_local3].volume = (sound_transforms[_local3].volume + LOOP_FADE_SPEED);
sound_channels[_local3].soundTransform = sound_transforms[_local3];
} else {
if (sound_transforms[_local3].volume >= sound_volumes[_local3]){
sound_transforms[_local3].volume = sound_volumes[_local3];
sound_channels[_local3].soundTransform = sound_transforms[_local3];
sound_loop_fade_direction[_local3] = 0;
};
};
} else {
if (sound_loop_fade_direction[_local3] < 0){
if (sound_transforms[_local3].volume > 0){
sound_transforms[_local3].volume = (sound_transforms[_local3].volume - LOOP_FADE_SPEED);
sound_channels[_local3].soundTransform = sound_transforms[_local3];
} else {
if (sound_transforms[_local3].volume <= 0){
sound_loop_fade_direction[_local3] = 0;
sound_channels[_local3].stop();
sound_loop_playing[_local3] = false;
};
};
};
};
};
_local3++;
};
if (_local2){
_arg1.target.removeEventListener(Event.ENTER_FRAME, fadeSound);
fading_sound = false;
};
}
public function stopLoops():void{
var _local1:int;
if (disabled){
return;
};
_local1 = 0;
while (_local1 < sound_loops.length) {
if (sound_loops[_local1] != null){
sound_channels[_local1].stop();
};
_local1++;
};
}
public function stopMusicFadeOut():void{
if (disabled){
return;
};
if (!_music){
return;
};
if (music_type == NO_MUSIC){
return;
};
music_fade_direction[music_type] = -1;
if (!fading_music){
fading_music = true;
addEventListener(Event.ENTER_FRAME, fadeMusic);
};
stop_time = time;
music_type = NO_MUSIC;
}
public function set music(_arg1:Boolean):void{
_music = _arg1;
}
public function playMusic(_arg1:uint, _arg2:Boolean=false, _arg3:int=0):void{
var _local4:uint;
if (disabled){
return;
};
if (((_arg2) && ((music_type == NO_MUSIC)))){
return;
};
if (((!((music_type == _arg1))) || (_arg2))){
if (_music){
_local4 = 0;
while (_local4 < music_loops.length) {
if (_local4 == _arg1){
} else {
if (music_channels[_local4] != null){
music_channels[_local4].stop();
};
};
_local4++;
};
music_transforms[_arg1].volume = music_volumes[_arg1];
if (_arg3 >= music_loops[_arg1].length){
_arg3 = (_arg3 % music_loops[_arg1].length);
};
music_channels[_arg1] = music_loops[_arg1].play(_arg3, ((_arg3 == 0)) ? int.MAX_VALUE : 1, music_transforms[_arg1]);
time = _arg3;
if (_arg3 != 0){
music_channels[_arg1].addEventListener(Event.SOUND_COMPLETE, loopHack, false, 0, true);
};
};
music_type = _arg1;
};
}
public function killLoops():void{
var _local1:int;
if (disabled){
return;
};
_local1 = 0;
while (_local1 < sound_loops.length) {
stopLoop(_local1);
_local1++;
};
}
public function toggleSfx():void{
if (_sfx){
turnOffSfx();
} else {
turnOnSfx();
};
}
public function set time(_arg1:int):void{
_time = (getTimer() - _arg1);
}
public function get sfx():Boolean{
return (_sfx);
}
public function turnOnSfx():void{
NitromeGame.sfx = (_sfx = true);
startLoops();
}
public function stopLoopFadeOut(_arg1:int):void{
if (disabled){
return;
};
if (((((!(_sfx)) || (!(sound_loop_playing[_arg1])))) || ((sound_loop_fade_direction[_arg1] == -1)))){
return;
};
sound_loop_fade_direction[_arg1] = -1;
if (!fading_sound){
addEventListener(Event.ENTER_FRAME, fadeSound);
fading_sound = true;
};
}
public function turnOffMusic():void{
var _local1:uint;
_local1 = 0;
while (_local1 < music_channels.length) {
if (music_channels[_local1] != null){
music_channels[_local1].stop();
};
_local1++;
};
NitromeGame.music = (_music = false);
}
public function stopLoop(_arg1:uint):void{
if (disabled){
return;
};
if (sound_loops[_arg1] != null){
sound_channels[_arg1].stop();
sound_loop_playing[_arg1] = false;
};
}
public function playLoopFadeIn(_arg1:int):void{
if (disabled){
return;
};
if ((((sound_loop_fade_direction[_arg1] == 1)) || (!(_sfx)))){
return;
};
if (!sound_loop_playing[_arg1]){
sound_transforms[_arg1].volume = 0;
sound_loop_playing[_arg1] = true;
sound_channels[_arg1] = sound_loops[_arg1].play(0, int.MAX_VALUE, sound_transforms[_arg1]);
};
sound_loop_fade_direction[_arg1] = 1;
if (!fading_sound){
addEventListener(Event.ENTER_FRAME, fadeSound);
fading_sound = true;
};
}
public function get time():int{
return (((getTimer() - _time) % music_loops[music_type].length));
}
private function loopHack(_arg1:Event):void{
_arg1.target.removeEventListener(Event.SOUND_COMPLETE, loopHack);
if (music){
music_channels[music_type] = music_loops[music_type].play(0, int.MAX_VALUE, music_transforms[music_type]);
time = 0;
};
}
}
}//package com.nitrome.sound
Section 111
//EquipmentBar (com.nitrome.ui.items.EquipmentBar)
package com.nitrome.ui.items {
import flash.display.*;
public class EquipmentBar extends Sprite {
public var button_holder:Sprite;
public var button_mount:MovieClip;
public var selection_holder:Sprite;
public static var selected_weapon:WeaponButton;
public static var selection_box:Sprite;
public static var current_instance:EquipmentBar;
public static var list:Array = [];
public function EquipmentBar(){
selection_holder = new Sprite();
button_holder = new Sprite();
button_holder.x = button_mount.x;
button_holder.y = button_mount.y;
addChild(button_holder);
addChild(selection_holder);
}
public function setCurrentInstance():void{
var _local1:int;
current_instance = this;
if (NitromeGame.timeline.currentLabel == "play_game"){
if (!selection_box){
selection_box = new SelectionBoxMC();
};
selection_box.mouseEnabled = false;
if (((selected_weapon) && ((list.indexOf(selected_weapon) > -1)))){
selected_weapon.addChild(selection_box);
selection_box.visible = true;
} else {
selection_box.visible = false;
};
} else {
if (selection_box){
selection_box.visible = false;
};
};
_local1 = 0;
while (_local1 < list.length) {
if (list[_local1]){
button_holder.addChild(list[_local1]);
list[_local1].x = (_local1 * list[_local1].width);
list[_local1].y = 0;
};
_local1++;
};
}
public static function setSharedObject():void{
var _local1:String;
var _local2:int;
_local1 = "";
_local2 = 0;
while (_local2 < list.length) {
if (list[_local2]){
_local1 = (_local1 + (((list[_local2] is SpellButton)) ? ("s:" + list[_local2].type) : ((("w:" + list[_local2].type) + ":") + (list[_local2] as WeaponButton).damage.value) + ","));
};
_local2++;
};
NitromeGame.setValue("equipment", _local1, NitromeGame.save_slot);
}
public static function addItemAt(_arg1:EquipmentButton, _arg2:int):void{
var _local3:EquipmentButton;
if (list[_arg2]){
_local3 = list[_arg2];
};
_arg1.x = (_arg2 * _arg1.width);
_arg1.y = 0;
list[_arg2] = _arg1;
_arg1.location = EquipmentButton.EQUIPMENT;
current_instance.button_holder.addChild(_arg1);
if (_local3){
_arg2 = 0;
while (list[_arg2]) {
_arg2++;
};
_local3.x = (_arg2 * _local3.width);
_local3.y = 0;
list[_arg2] = _local3;
};
}
public static function full():Boolean{
var _local1:int;
_local1 = 0;
while (_local1 < list.length) {
if (!list[_local1]){
return (false);
};
_local1++;
};
return (true);
}
public static function addItem(_arg1:EquipmentButton):void{
var _local2:int;
_local2 = 0;
while (_local2 < list.length) {
if (!list[_local2]){
_arg1.x = (_local2 * _arg1.width);
_arg1.y = 0;
list[_local2] = _arg1;
_arg1.location = EquipmentButton.EQUIPMENT;
current_instance.button_holder.addChild(_arg1);
break;
};
_local2++;
};
}
public static function removeItem(_arg1:EquipmentButton):void{
list[list.indexOf(_arg1)] = null;
_arg1.parent.removeChild(_arg1);
}
public static function getSharedObject():void{
var _local1:String;
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:Array;
_local1 = NitromeGame.getValue("equipment", NitromeGame.save_slot);
list = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined];
selected_weapon = null;
if (_local1){
_local2 = 0;
_local3 = _local1.split(",");
_local4 = 0;
while (_local4 < _local3.length) {
if (_local3[_local4]){
_local5 = _local3[_local4].split(":");
if (_local5[0] == "s"){
list[_local2] = new SpellButton(parseInt(_local5[1]));
} else {
list[_local2] = new WeaponButton(parseInt(_local5[2]), parseInt(_local5[1]));
};
_local2++;
};
_local4++;
};
};
}
}
}//package com.nitrome.ui.items
Section 112
//EquipmentBar1 (com.nitrome.ui.items.EquipmentBar1)
package com.nitrome.ui.items {
public dynamic class EquipmentBar1 extends EquipmentBar {
}
}//package com.nitrome.ui.items
Section 113
//EquipmentBar2 (com.nitrome.ui.items.EquipmentBar2)
package com.nitrome.ui.items {
public dynamic class EquipmentBar2 extends EquipmentBar {
}
}//package com.nitrome.ui.items
Section 114
//EquipmentButton (com.nitrome.ui.items.EquipmentButton)
package com.nitrome.ui.items {
import flash.display.*;
import com.nitrome.geom.*;
import flash.events.*;
import com.nitrome.engine.*;
import flash.geom.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
public class EquipmentButton extends SimpleButton {
public var source:int;
public var price:HiddenInt;
public var type:int;
public var location:int;
public var carried:Boolean;
public static const OVER_COLOUR_TRANSFORM:ColorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50);
public static const CARRIED:int = 2;
public static const EQUIPMENT:int = 0;
public static const SHOP:int = 1;
public static const DEFAULT_COLOUR_TRANSFORM:ColorTransform = new ColorTransform();
public static var player:Player;
public function EquipmentButton(_arg1:int=0){
this.type = _arg1;
carried = false;
if (_arg1){
(this as MovieClip).icon.gotoAndStop(_arg1);
};
price = new HiddenInt();
addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown, false, 0, true);
}
public function activate():void{
}
public function getPurchasePrice():int{
var _local1:int;
_local1 = price.value;
_local1 = (_local1 * (1 - (PlayerStats.charisma.value * 0.004)));
return (_local1);
}
public function dropPosition(_arg1:int):int{
var _local2:int;
var _local3:Dot;
var _local4:Number;
var _local5:Number;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
_local3 = new Dot(NitromeGame.timeline.mouseX, NitromeGame.timeline.mouseY);
_local4 = 50;
_local5 = 50;
if (_arg1 == SHOP){
_local3.x = (_local3.x - NitromeGame.timeline.shop_stock_bar.x);
_local3.y = (_local3.y - NitromeGame.timeline.shop_stock_bar.y);
_local6 = 5;
_local7 = 4;
} else {
if (_arg1 == EQUIPMENT){
_local3.x = (_local3.x - (NitromeGame.timeline.shop_equipment_bar.x + NitromeGame.timeline.shop_equipment_bar.button_mount.x));
_local3.y = (_local3.y - (NitromeGame.timeline.shop_equipment_bar.y + NitromeGame.timeline.shop_equipment_bar.button_mount.y));
_local6 = 10;
_local7 = 1;
};
};
if ((((((((_local3.x >= 0)) && ((_local3.y >= 0)))) && ((_local3.x < (_local6 * _local4))))) && ((_local3.y < (_local7 * _local5))))){
_local8 = (_local3.x / _local4);
_local9 = (_local3.y / _local5);
return ((_local8 + (_local9 * _local6)));
};
if (_local3.x < 0){
return ((int((_local3.y / _local5)) * _local6));
};
if (_local3.y < 0){
return (int((_local3.x / _local4)));
};
if (_local3.x >= (_local6 * _local4)){
return (((_local6 - 1) + (int((_local3.y / _local5)) * _local6)));
};
if (_local3.y >= (_local7 * _local5)){
return ((int((_local3.x / _local4)) + ((_local6 - 1) * _local6)));
};
return (0);
}
public function carry(_arg1:Event):void{
x = (NitromeGame.timeline.mouseX - (width * 0.5));
y = (NitromeGame.timeline.mouseY - (height * 0.5));
}
public function getInfoText():String{
return ("");
}
public function getSalePrice():int{
var _local1:int;
_local1 = price.value;
_local1 = (_local1 * (0.5 + (PlayerStats.charisma.value * 0.004)));
return (_local1);
}
public function onMouseDown(_arg1:MouseEvent):void{
if (NitromeGame.timeline.currentLabel == "play_game"){
activate();
} else {
if (NitromeGame.timeline.currentLabel == "shop"){
move();
};
};
}
public function move():void{
if (location == CARRIED){
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, carry);
if (source == EQUIPMENT){
if (hitTestObject(NitromeGame.timeline.shop_stock_bar)){
if ((this is WeaponButton)){
(this as WeaponButton).deactivate();
};
PlayerStats.gold.value = (PlayerStats.gold.value + getSalePrice());
NitromeGame.timeline.shop_gold_text.text = ("" + PlayerStats.gold.value);
NitromeGame.timeline.shop_stock_bar.addItem(this);
NitromeGame.sound_manager.playSound("buy_item");
NitromeGame.timeline.shop_keeper.gotoAndPlay("happy");
} else {
EquipmentBar.addItemAt(this, dropPosition(EQUIPMENT));
};
} else {
if (source == SHOP){
if (hitTestObject(NitromeGame.timeline.shop_equipment_bar)){
PlayerStats.gold.value = (PlayerStats.gold.value - getPurchasePrice());
NitromeGame.timeline.shop_gold_text.text = ("" + PlayerStats.gold.value);
EquipmentBar.addItemAt(this, dropPosition(EQUIPMENT));
NitromeGame.sound_manager.playSound("buy_item");
NitromeGame.timeline.shop_keeper.gotoAndPlay("happy");
} else {
NitromeGame.timeline.shop_stock_bar.addItem(this);
};
};
};
} else {
if (location == EQUIPMENT){
EquipmentBar.removeItem(this);
} else {
if (location == SHOP){
if (((!(EquipmentBar.full())) && ((PlayerStats.gold.value >= getPurchasePrice())))){
NitromeGame.timeline.shop_stock_bar.removeItem(this);
} else {
return;
};
};
};
NitromeGame.timeline.draggable_item_holder.addChild(this);
addEventListener(Event.ENTER_FRAME, carry, false, 0, true);
x = (NitromeGame.timeline.mouseX - (width * 0.5));
y = (NitromeGame.timeline.mouseY - (height * 0.5));
source = location;
location = CARRIED;
};
}
override protected function updateGraphic():void{
if (over){
transform.colorTransform = OVER_COLOUR_TRANSFORM;
} else {
transform.colorTransform = DEFAULT_COLOUR_TRANSFORM;
};
}
}
}//package com.nitrome.ui.items
Section 115
//InfoBox (com.nitrome.ui.items.InfoBox)
package com.nitrome.ui.items {
import flash.display.*;
import flash.events.*;
import com.nitrome.engine.*;
import flash.geom.*;
public class InfoBox extends MovieClip {
public var bottom:MovieClip;
public var top:MovieClip;
public var target:EquipmentButton;
public var info:BlastRPGFont;
public var bounds:Rectangle;
public var back:MovieClip;
public static const SCREEN_WIDTH:int = 550;
public static const SCREEN_HEIGHT:int = 400;
public static const STAT_STEPPER_TEXT:Array = ["increases chance|of hitting|monsters in|combat", "decreases chance|of being hit|in combat", "increases power|of cannon and|damage in combat", "increases ability|to steer in|the air", "increases range|of money|magnetism and|lowers shop|prices"];
public static const STAT_STEPPER_NAMES:Array = ["attack", "defence", "strength", "agility", "charisma"];
public function InfoBox(){
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
__setProp_info_InfoBox_Layer1_1();
}
function __setProp_info_InfoBox_Layer1_1(){
try {
info["componentInspectorSetting"] = true;
} catch(e:Error) {
};
info.align = "left";
info.align_vert = "top";
info.color = 0xFFFFFF;
info.line_spacing = 22;
info.preview_text = "info";
info.tracking = -2;
try {
info["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function onEnterFrame(_arg1:Event=null):void{
var _local2:int;
visible = false;
info.color = 0xFFFFFF;
if ((((NitromeGame.timeline.currentLabel == "shop")) || ((NitromeGame.timeline.currentLabel == "play_game")))){
if (((((((((EquipmentBar.current_instance) && ((NitromeGame.timeline.mouseX >= EquipmentBar.current_instance.x)))) && ((NitromeGame.timeline.mouseY >= EquipmentBar.current_instance.y)))) && ((NitromeGame.timeline.mouseX < (EquipmentBar.current_instance.x + EquipmentBar.current_instance.width))))) && ((NitromeGame.timeline.mouseY < (EquipmentBar.current_instance.y + EquipmentBar.current_instance.height))))){
_local2 = 0;
while (_local2 < EquipmentBar.list.length) {
if (((((EquipmentBar.list[_local2]) && (EquipmentBar.list[_local2].over))) && (!((EquipmentBar.list[_local2].location == EquipmentButton.CARRIED))))){
target = EquipmentBar.list[_local2];
visible = true;
info.text = target.getInfoText();
break;
};
_local2++;
};
};
if (((((!(visible)) && ((NitromeGame.timeline.currentLabel == "shop")))) && (NitromeGame.timeline.shop_stock_bar))){
if ((((((((NitromeGame.timeline.mouseX >= NitromeGame.timeline.shop_stock_bar.x)) && ((NitromeGame.timeline.mouseY >= NitromeGame.timeline.shop_stock_bar.y)))) && ((NitromeGame.timeline.mouseX < (NitromeGame.timeline.shop_stock_bar.x + NitromeGame.timeline.shop_stock_bar.width))))) && ((NitromeGame.timeline.mouseY < (NitromeGame.timeline.shop_stock_bar.y + NitromeGame.timeline.shop_stock_bar.height))))){
_local2 = 0;
while (_local2 < ShopStockBar.list.length) {
if (((((ShopStockBar.list[_local2]) && (ShopStockBar.list[_local2].over))) && (!((ShopStockBar.list[_local2].location == EquipmentButton.CARRIED))))){
target = ShopStockBar.list[_local2];
visible = true;
info.text = target.getInfoText();
if (target.getPurchasePrice() > PlayerStats.gold.value){
info.color = 16737894;
};
break;
};
_local2++;
};
};
};
} else {
if (NitromeGame.timeline.currentLabel == "abilities"){
_local2 = 0;
while (_local2 < STAT_STEPPER_NAMES.length) {
if (((((((((NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]]) && ((NitromeGame.timeline.mouseX >= NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].x)))) && ((NitromeGame.timeline.mouseY >= NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].y)))) && ((NitromeGame.timeline.mouseX < (NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].x + NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].width))))) && ((NitromeGame.timeline.mouseY < (NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].y + NitromeGame.timeline[STAT_STEPPER_NAMES[_local2]].height))))){
visible = true;
info.text = STAT_STEPPER_TEXT[_local2];
break;
};
_local2++;
};
};
};
if (visible){
x = NitromeGame.timeline.mouseX;
y = (NitromeGame.timeline.mouseY - 20);
bottom.y = -(bottom.height);
top.y = (back.y = (info.y = -((bottom.height + info.height))));
info.y = (info.y + 3);
back.height = info.height;
bounds = getBounds(NitromeGame.timeline);
if ((bounds.right - 1) > Game.WIDTH){
x = (Game.WIDTH - (bounds.right - x));
};
if (bounds.y < 0){
y = ((NitromeGame.timeline.mouseY + bounds.height) + 20);
};
};
}
}
}//package com.nitrome.ui.items
Section 116
//ShopStockBar (com.nitrome.ui.items.ShopStockBar)
package com.nitrome.ui.items {
import flash.display.*;
public class ShopStockBar extends Sprite {
public var button_holder:Sprite;
public var _0:MovieClip;
public var _2:MovieClip;
public var _4:MovieClip;
public var _6:MovieClip;
public var _8:MovieClip;
public var _9:MovieClip;
public var _3:MovieClip;
public var _5:MovieClip;
public var _10:MovieClip;
public var _13:MovieClip;
public var _14:MovieClip;
public var _15:MovieClip;
public var _17:MovieClip;
public var _7:MovieClip;
public var _1:MovieClip;
public var _18:MovieClip;
public var _11:MovieClip;
public var _12:MovieClip;
public var _16:MovieClip;
public var _19:MovieClip;
public static const SHOP_SPELL_INVENTORY = [[SpellButton.BOOST, SpellButton.FLEE, SpellButton.SHUFFLE], [SpellButton.HEAL, SpellButton.DEATH], [SpellButton.POISON, SpellButton.PETRIFY], [SpellButton.BOOST_AGILITY, SpellButton.BOOST_ATTACK, SpellButton.BOOST_CHARISMA, SpellButton.BOOST_DEFENCE, SpellButton.BOOST_STRENGTH], [SpellButton.FIRE, SpellButton.WATER, SpellButton.PLANT, SpellButton.INVINCIBLE], [SpellButton.BOUNCY, SpellButton.BRICK, SpellButton.NUKE]];
public static var refresh:Boolean = false;
public static var list:Array;
public function ShopStockBar(){
var _local1:int;
var _local2:EquipmentButton;
super();
button_holder = new Sprite();
addChild(button_holder);
if (((!(list)) || (refresh))){
list = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined];
_local1 = 0;
while (_local1 < (3 * NitromeGame.last_level)) {
addItem(createContent());
_local1++;
};
} else {
_local1 = 0;
while (_local1 < list.length) {
if (list[_local1]){
list[_local1].x = this[("_" + _local1)].x;
list[_local1].y = this[("_" + _local1)].y;
button_holder.addChild(list[_local1]);
};
_local1++;
};
};
refresh = false;
}
public function addItem(_arg1:EquipmentButton):void{
var _local2:int;
_local2 = 0;
while (_local2 < list.length) {
if (!list[_local2]){
_arg1.x = this[("_" + _local2)].x;
_arg1.y = this[("_" + _local2)].y;
list[_local2] = _arg1;
_arg1.location = EquipmentButton.SHOP;
button_holder.addChild(_arg1);
return;
};
_local2++;
};
}
public function clear():void{
var _local1:int;
_local1 = 0;
while (_local1 < list.length) {
if (list[_local1].parent){
list[_local1].parent.removeChild(list[_local1]);
};
_local1++;
};
list = [undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined];
}
public function addItemAt(_arg1:EquipmentButton, _arg2:int):void{
if (list[_arg2]){
_arg2 = 0;
while (list[_arg2]) {
_arg2++;
};
};
if (list[_arg2]){
return;
};
_arg1.x = this[("_" + _arg2)].x;
_arg1.y = this[("_" + _arg2)].y;
list[_arg2] = _arg1;
_arg1.location = EquipmentButton.SHOP;
button_holder.addChild(_arg1);
}
public function removeItem(_arg1:EquipmentButton):void{
list[list.indexOf(_arg1)] = null;
_arg1.parent.removeChild(_arg1);
}
public static function createContent(_arg1:Boolean=false):EquipmentButton{
var _local2:EquipmentButton;
var _local3:int;
var _local4:Array;
var _local5:int;
_local5 = (_arg1) ? NitromeGame.selected_level : NitromeGame.last_level;
if (Math.random() > 0.3){
_local4 = [];
_local3 = _local5;
while (--_local3 > -1) {
_local4 = _local4.concat(SHOP_SPELL_INVENTORY[_local3]);
};
_local2 = new SpellButton(_local4[((Math.random() * _local4.length) >> 0)]);
} else {
if (_local5 == 1){
_local3 = WeaponButton.BASIC;
} else {
if (_local5 == 2){
_local3 = (1 + (Math.random() * 2));
} else {
_local3 = (1 + (Math.random() * 4));
};
};
_local2 = new WeaponButton((4 + ((Math.random() * _local5) * 2)), _local3);
};
return (_local2);
}
}
}//package com.nitrome.ui.items
Section 117
//SpellButton (com.nitrome.ui.items.SpellButton)
package com.nitrome.ui.items {
import flash.display.*;
import com.nitrome.geom.*;
import com.nitrome.engine.*;
public class SpellButton extends EquipmentButton {
public var icon:MovieClip;
public static const BOOST:int = 4;
public static const BOOST_ATTACK:int = 14;
public static const POISON:int = 7;
public static const PETRIFY:int = 6;
public static const NAMES:Array = [undefined, "Heal", "Shuffle Monsters", "Flee Battle", "Boost", "Death", "Petrify", "Poison", "Invincible", "Bouncy", "Nuke", "Fire Spell", "Water Spell", "Plant Spell", "raise Attack", "raise Defence", "raise Strength", "raise Agility", "raise Charisma", "Heavy"];
public static const PLANT:int = 13;
public static const DEATH:int = 5;
public static const DETAIL:Array = [undefined, "restores health", "changes order of|monsters", "gets rid of all|monsters", "launches you|higher", "kills the first|monster", "freezes the first|monster", "poisons the first|monster", "protects against|all attacks", "makes you bounce|higher", "kills all monsters", "blasts fire at|all monsters", "blasts water at|all monsters", "blasts plants at|all monsters", "boosts attack|ability", "boosts defence|ability", "boosts strength|ability", "boosts Agility|ability", "Boosts Charisma|ability", "makes you land"];
public static const SHUFFLE:int = 2;
public static const BOUNCY:int = 9;
public static const PRICES:Array = [undefined, 100, 50, 100, 100, 200, 100, 100, 200, 300, 400, 200, 200, 200, 200, 200, 200, 200, 200, 400];
public static const INVINCIBLE:int = 8;
public static const NUKE:int = 10;
public static const BOOST_CHARISMA:int = 18;
public static const FLEE:int = 3;
public static const HEAL:int = 1;
public static const BOOST_AGILITY:int = 17;
public static const BRICK:int = 19;
public static const BOOST_DEFENCE:int = 15;
public static const FIRE:int = 11;
public static const WATER:int = 12;
public static const BOOST_STRENGTH:int = 16;
public static var g:Game;
public function SpellButton(_arg1:int=0){
super(_arg1);
price.value = PRICES[_arg1];
}
override public function getInfoText():String{
var _local1:String;
var _local2:int;
_local1 = "";
_local1 = (_local1 + NAMES[type]);
if (NitromeGame.timeline.currentLabel == "shop"){
_local1 = (_local1 + (("\n\n" + DETAIL[type]) + "\n"));
_local2 = ((location == EQUIPMENT)) ? getSalePrice() : getPurchasePrice();
_local1 = (_local1 + ((("\n" + ((location == EQUIPMENT)) ? "sell: " : "buy: ") + _local2) + " gold"));
};
return (_local1);
}
override public function activate():void{
var _local1:int;
if (((((((((!(player.active)) || (player.petrified))) || ((player.state == Player.LOADED)))) || ((player.state == Player.LANDED)))) || ((player.state == Player.SLIDING)))){
return;
};
g = Game.g;
if (type == HEAL){
if (player.current_health.value == player.total_health.value){
return;
};
player.current_health.value = player.total_health.value;
NitromeGame.sound_manager.playSound("spell2");
player.updateHealthBar();
(player.mc as DisplayObjectContainer).addChild(new HealthAuraMC());
} else {
if (type == SHUFFLE){
if (g.melee_manager.battle_queue.length < 2){
return;
};
g.melee_manager.shuffleQueue();
NitromeGame.sound_manager.playSound("spell3");
(player.mc as DisplayObjectContainer).addChild(new ShuffleAuraMC());
} else {
if (type == FLEE){
if (!g.melee_manager.active){
return;
};
g.melee_manager.quitBattle();
player.state = Player.FLYING;
NitromeGame.sound_manager.playSound("chicken");
(player.mc as DisplayObjectContainer).addChild(new FleeAuraMC());
} else {
if (type == BOOST){
if (player.vy > 0){
player.vy = 0;
};
g.slowTime();
player.boost();
g.starBang(player.x, player.y, new Dot());
NitromeGame.sound_manager.playSound("boost");
(player.mc as DisplayObjectContainer).addChild(new BoostAuraMC());
} else {
if (type == DEATH){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.DEATH, 0, g.melee_manager.monster);
NitromeGame.sound_manager.playSound("death");
(player.mc as DisplayObjectContainer).addChild(new DeathAuraMC());
} else {
if (type == PETRIFY){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.PETRIFY, 6, g.melee_manager.monster);
NitromeGame.sound_manager.playSound("petrify");
} else {
if (type == POISON){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.POISON, 3, g.melee_manager.monster, 3);
NitromeGame.sound_manager.playSound("spell5");
} else {
if (type == INVINCIBLE){
if (!g.melee_manager.active){
return;
};
g.addEffect(Effect.INVINCIBLE, 10, player);
NitromeGame.sound_manager.playSound("spell4");
} else {
if (type == BOUNCY){
g.addEffect(Effect.BOUNCY, 8, player);
NitromeGame.sound_manager.playSound("bowang");
} else {
if (type == NUKE){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.NUKE, 0, player);
NitromeGame.sound_manager.playSound("nuke");
} else {
if (type == FIRE){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.FIRE, 6, player, 3);
NitromeGame.sound_manager.playSound("spell1");
} else {
if (type == WATER){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.WATER, 6, player, 3);
NitromeGame.sound_manager.playSound("spell1");
} else {
if (type == PLANT){
if (!g.melee_manager.active){
return;
};
if (g.melee_manager.monster.type == Monster.FAIRY){
return;
};
g.addEffect(Effect.PLANT, 6, player, 3);
NitromeGame.sound_manager.playSound("spell1");
} else {
if (type == BOOST_AGILITY){
g.addEffect(Effect.BOOST_AGILITY, 16, player, 20);
NitromeGame.sound_manager.playSound("bionic");
} else {
if (type == BOOST_ATTACK){
g.addEffect(Effect.BOOST_ATTACK, 16, player, 20);
NitromeGame.sound_manager.playSound("bionic");
} else {
if (type == BOOST_CHARISMA){
g.addEffect(Effect.BOOST_CHARISMA, 16, player, 20);
NitromeGame.sound_manager.playSound("bionic");
} else {
if (type == BOOST_DEFENCE){
g.addEffect(Effect.BOOST_DEFENCE, 16, player, 20);
NitromeGame.sound_manager.playSound("bionic");
} else {
if (type == BOOST_STRENGTH){
g.addEffect(Effect.BOOST_STRENGTH, 16, player, 20);
NitromeGame.sound_manager.playSound("bionic");
} else {
if (type == BRICK){
g.addEffect(Effect.BRICK, 20, player);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
EquipmentBar.removeItem(this);
}
}
}//package com.nitrome.ui.items
Section 118
//WeaponButton (com.nitrome.ui.items.WeaponButton)
package com.nitrome.ui.items {
import flash.display.*;
import com.nitrome.engine.*;
import com.nitrome.util.*;
public class WeaponButton extends EquipmentButton {
public var damage:HiddenInt;
public var icon:MovieClip;
public static const NAMES:Array = [undefined, "Fire Weapon", "Water Weapon", "Plant Weapon", "Basic Weapon"];
public static const PLANT:int = 3;
public static const BASIC:int = 4;
public static const DETAIL:Array = [undefined, "weapons increase|combat damage", "weapons increase|combat damage", "weapons increase|combat damage", "weapons increase|combat damage"];
public static const FIRE:int = 1;
public static const WATER:int = 2;
public function WeaponButton(_arg1:int, _arg2:int=0){
this.damage = new HiddenInt(_arg1);
super(_arg2);
price.value = ((this.damage.value * 100) + (((_arg2 % 4) > 0)) ? 100 : 0);
}
override public function getInfoText():String{
var _local1:String;
var _local2:int;
_local1 = "";
_local1 = (_local1 + NAMES[type]);
_local1 = (_local1 + (("\n" + damage.value) + " damage"));
if (NitromeGame.timeline.currentLabel == "shop"){
_local1 = (_local1 + (("\n\n" + DETAIL[type]) + "\n"));
_local2 = ((location == EQUIPMENT)) ? getSalePrice() : getPurchasePrice();
_local1 = (_local1 + ((("\n" + ((location == EQUIPMENT)) ? "sell: " : "buy: ") + _local2) + " gold"));
};
return (_local1);
}
public function deactivate():void{
PlayerStats.damage.value = PlayerStats.DEFAULT_DAMAGE;
if (player){
player.element.value = 0;
};
}
override public function activate():void{
if (((EquipmentBar.selected_weapon) && ((EquipmentBar.selected_weapon == this)))){
EquipmentBar.selection_box.visible = false;
player.damage.value = PlayerStats.DEFAULT_DAMAGE;
EquipmentBar.selected_weapon = null;
player.element.value = 0;
Game.g.setTriangleGuideElement(player.element.value);
} else {
if (type == FIRE){
player.element.value = MeleeManager.FIRE;
Game.g.setTriangleGuideElement(player.element.value);
player.damage.value = damage.value;
EquipmentBar.selected_weapon = this;
} else {
if (type == WATER){
player.element.value = MeleeManager.WATER;
Game.g.setTriangleGuideElement(player.element.value);
player.damage.value = damage.value;
EquipmentBar.selected_weapon = this;
} else {
if (type == PLANT){
player.element.value = MeleeManager.PLANT;
Game.g.setTriangleGuideElement(player.element.value);
player.damage.value = damage.value;
EquipmentBar.selected_weapon = this;
} else {
if (type == BASIC){
player.element.value = 0;
Game.g.setTriangleGuideElement(player.element.value);
player.damage.value = damage.value;
EquipmentBar.selected_weapon = this;
};
};
};
};
if (EquipmentBar.selected_weapon){
if (EquipmentBar.selected_weapon == this){
addChild(EquipmentBar.selection_box);
EquipmentBar.selection_box.visible = true;
};
} else {
EquipmentBar.selection_box.visible = false;
};
};
NitromeGame.sound_manager.playSound("sword_select");
}
}
}//package com.nitrome.ui.items
Section 119
//AbilitiesButton (com.nitrome.ui.AbilitiesButton)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import com.nitrome.engine.*;
public class AbilitiesButton extends SimpleButton {
public var fade_out:Boolean;
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
public static const FADE_OUT_STEP:Number = 0.025;
public static const FADE_IN_STEP:Number = 0.05;
public function AbilitiesButton(){
if (((PlayerStats.initialised) && (PlayerStats.points.value))){
fade_out = true;
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
};
blendMode = BlendMode.LAYER;
}
public function onEnterFrame(_arg1:Event=null):void{
if (fade_out){
alpha = (alpha - FADE_OUT_STEP);
if (alpha <= 0.3){
fade_out = false;
};
} else {
alpha = (alpha + FADE_IN_STEP);
if (alpha >= 1){
fade_out = true;
};
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("abilities");
}
}
}//package com.nitrome.ui
Section 120
//AbilitiesButton1 (com.nitrome.ui.AbilitiesButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class AbilitiesButton1 extends AbilitiesButton {
public function AbilitiesButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_abilities_button_Layer13_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_abilities_button_Layer13_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "abilities";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 121
//AbilitiesButton2 (com.nitrome.ui.AbilitiesButton2)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class AbilitiesButton2 extends AbilitiesButton {
public function AbilitiesButton2(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_abilities_button_small_Layer13_1();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label2_abilities_button_small_Layer13_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "abilities";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 122
//BackButton (com.nitrome.ui.BackButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class BackButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function BackButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_back_button_Layer13_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function __setProp_label_back_button_Layer13_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "back";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("title_screen");
}
}
}//package com.nitrome.ui
Section 123
//BlastRPGBigText (com.nitrome.ui.BlastRPGBigText)
package com.nitrome.ui {
public class BlastRPGBigText extends TextComponent {
public function BlastRPGBigText(){
_id = "BlastRPGBig";
super();
}
override public function set tracking(_arg1:int){
_tracking = _arg1;
draw();
}
override public function get tracking():int{
return (_tracking);
}
override public function set line_spacing(_arg1:int){
_line_spacing = _arg1;
draw();
}
override public function get line_spacing():int{
return (_line_spacing);
}
}
}//package com.nitrome.ui
Section 124
//BlastRPGText (com.nitrome.ui.BlastRPGText)
package com.nitrome.ui {
public class BlastRPGText extends TextComponent {
public function BlastRPGText(){
_id = "BlastRPG";
super();
}
override public function set tracking(_arg1:int){
_tracking = _arg1;
draw();
}
override public function get tracking():int{
return (_tracking);
}
override public function set line_spacing(_arg1:int){
_line_spacing = _arg1;
draw();
}
override public function get line_spacing():int{
return (_line_spacing);
}
}
}//package com.nitrome.ui
Section 125
//ButtonHitAreaWidget (com.nitrome.ui.ButtonHitAreaWidget)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
public class ButtonHitAreaWidget extends Sprite {
public function ButtonHitAreaWidget(){
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function init(_arg1:Event=null):void{
removeEventListener(Event.ADDED_TO_STAGE, init);
if (((parent) && ((parent is Sprite)))){
(parent as Sprite).hitArea = this;
};
}
}
}//package com.nitrome.ui
Section 126
//ContinueEndButton (com.nitrome.ui.ContinueEndButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
import com.nitrome.sound.*;
public class ContinueEndButton extends SimpleButton {
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
public function ContinueEndButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_continue_end_button_Layer9_1();
}
function doStuff():void{
NitromeGame.timeline.game.clearListeners();
NitromeGame.timeline.popup_holder.key_pressed = true;
NitromeGame.timeline.popup_holder.hidePopUp();
NitromeGame.timeline.tt.doTween("congrats");
NitromeGame.sound_manager.crossFade(SoundManager.MENU);
NitromeGame.setGameComplete();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
if (!NitromeGame.timeline.popup_holder.key_pressed){
doStuff();
};
}
function __setProp_label2_continue_end_button_Layer9_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "view ending";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 127
//ContinueGameButton (com.nitrome.ui.ContinueGameButton)
package com.nitrome.ui {
import flash.events.*;
public class ContinueGameButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.game.pauseGame();
}
}
}//package com.nitrome.ui
Section 128
//ContinueGameButton1 (com.nitrome.ui.ContinueGameButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class ContinueGameButton1 extends ContinueGameButton {
public function ContinueGameButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_continue_game_button_Layer9_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_continue_game_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "continue";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 129
//ContinueGameButton2 (com.nitrome.ui.ContinueGameButton2)
package com.nitrome.ui {
public dynamic class ContinueGameButton2 extends ContinueGameButton {
public function ContinueGameButton2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package com.nitrome.ui
Section 130
//CreditsButton (com.nitrome.ui.CreditsButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class CreditsButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function CreditsButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_credits_button_Layer9_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_credits_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "credits";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("credits");
}
}
}//package com.nitrome.ui
Section 131
//CustomMouse (com.nitrome.ui.CustomMouse)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class CustomMouse extends MovieClip {
public var right_clicked:Boolean;// = false
public var directed_angle:Number;// = 0
public var directed:Boolean;// = false
public var mouse:MovieClip;
public function CustomMouse(){
directed = false;
directed_angle = 0;
right_clicked = false;
super();
addFrameScript(0, frame1);
addEventListener(Event.ADDED_TO_STAGE, init);
}
public function init(_arg1:Event=null):void{
removeEventListener(Event.ADDED_TO_STAGE, init);
NitromeGame.custom_mouse = this;
Mouse.hide();
mouseChildren = false;
mouseEnabled = false;
visible = false;
stage.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
stage.addEventListener(MouseEvent.MOUSE_UP, onUp);
stage.addEventListener(Event.MOUSE_LEAVE, onOut);
stage.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
NitromeGame.context_menu.addEventListener(ContextMenuEvent.MENU_SELECT, rightClick);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
public function onDown(_arg1:Event=null):void{
if (right_clicked){
Mouse.hide();
right_clicked = false;
};
if (directed){
gotoAndStop("direction");
} else {
gotoAndStop("down");
};
}
public function onMove(_arg1:Event=null):void{
visible = true;
}
function frame1(){
stop();
}
public function onEnterFrame(_arg1:Event=null):void{
x = parent.mouseX;
y = parent.mouseY;
if ((((currentLabel == "direction")) && (mouse))){
mouse.rotation = directed_angle;
};
}
public function rightClick(_arg1:ContextMenuEvent=null):void{
right_clicked = true;
}
public function onUp(_arg1:Event=null):void{
gotoAndStop("up");
}
public function onOut(_arg1:Event=null):void{
visible = false;
}
}
}//package com.nitrome.ui
Section 132
//DeleteSlotButton (com.nitrome.ui.DeleteSlotButton)
package com.nitrome.ui {
import flash.events.*;
public class DeleteSlotButton extends SimpleButton {
public var id:int;
public var hit_area:ButtonHitAreaWidget;
public function DeleteSlotButton(){
var _local1:Object;
super();
addFrameScript(0, frame1);
id = name.match(/\d+/)[0];
_local1 = NitromeGame.getValue("player_stats", id);
visible = Boolean(_local1);
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.save_slot = id;
NitromeGame.timeline.popup_holder.launchPopUp("erase");
}
}
}//package com.nitrome.ui
Section 133
//FxToggle (com.nitrome.ui.FxToggle)
package com.nitrome.ui {
import flash.events.*;
public class FxToggle extends SimpleButton {
public function FxToggle(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30);
if (!NitromeGame.sfx){
gotoAndStop("_off_up");
} else {
gotoAndStop("_on_up");
};
addEventListener(MouseEvent.CLICK, onClick);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
override protected function updateGraphic():void{
if (over){
if (NitromeGame.sound_manager.sfx){
gotoAndStop("_on_over");
} else {
if (!NitromeGame.sound_manager.sfx){
gotoAndStop("_off_over");
};
};
} else {
if (NitromeGame.sound_manager.sfx){
gotoAndStop("_on_up");
} else {
if (!NitromeGame.sound_manager.sfx){
gotoAndStop("_off_up");
};
};
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.sound_manager.toggleSfx();
updateGraphic();
}
}
}//package com.nitrome.ui
Section 134
//GameHelpButton (com.nitrome.ui.GameHelpButton)
package com.nitrome.ui {
import flash.events.*;
public class GameHelpButton extends SimpleButton {
public function GameHelpButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.game.pauseGame("game_help");
}
}
}//package com.nitrome.ui
Section 135
//GameOptionsButton (com.nitrome.ui.GameOptionsButton)
package com.nitrome.ui {
import flash.display.*;
public dynamic class GameOptionsButton extends MovieClip {
public function GameOptionsButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package com.nitrome.ui
Section 136
//HelpArrowButtonLeft (com.nitrome.ui.HelpArrowButtonLeft)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class HelpArrowButtonLeft extends SimpleButton {
public function HelpArrowButtonLeft(){
addFrameScript(0, frame1, 9, frame10);
if ((parent as MovieClip).currentFrame == 1){
visible = false;
};
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
(parent as MovieClip).right.visible = true;
if ((parent as MovieClip).currentFrame == 2){
visible = false;
};
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame - 1));
}
}
}//package com.nitrome.ui
Section 137
//HelpArrowButtonRight (com.nitrome.ui.HelpArrowButtonRight)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
public class HelpArrowButtonRight extends SimpleButton {
public function HelpArrowButtonRight(){
addFrameScript(0, frame1, 9, frame10);
if ((parent as MovieClip).currentFrame == (parent as MovieClip).totalFrames){
visible = false;
};
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
(parent as MovieClip).left.visible = true;
if ((parent as MovieClip).currentFrame == ((parent as MovieClip).totalFrames - 1)){
visible = false;
};
(parent as MovieClip).gotoAndStop(((parent as MovieClip).currentFrame + 1));
}
}
}//package com.nitrome.ui
Section 138
//HelpButton (com.nitrome.ui.HelpButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class HelpButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function HelpButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_help_button_Layer9_1();
}
function __setProp_label_help_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "help";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("help");
}
}
}//package com.nitrome.ui
Section 139
//IntStepper (com.nitrome.ui.IntStepper)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import com.nitrome.util.misc.*;
public class IntStepper extends MovieClip {
public var MAX_CAP:int;// = 50
public var up_button:stepper_up_button;
public var min:int;// = 0
public var max:int;// = 1000000
public var down_button:stepper_down_button;
private var _value:int;
public var num:BlastRPGFont;
public var step:int;// = 1
public var digits:int;// = 2
public function IntStepper(){
min = 0;
max = 1000000;
step = 1;
digits = 2;
MAX_CAP = 50;
super();
value = 0;
up_button.addEventListener(MouseEvent.CLICK, stepUp, false, 0, true);
down_button.addEventListener(MouseEvent.CLICK, stepDown, false, 0, true);
__setProp_num_IntStepper_Layer1_1();
}
function __setProp_num_IntStepper_Layer1_1(){
try {
num["componentInspectorSetting"] = true;
} catch(e:Error) {
};
num.align = "center";
num.align_vert = "center";
num.color = 0xFFFFFF;
num.line_spacing = 22;
num.preview_text = "00";
num.tracking = -2;
try {
num["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
public function get value():int{
return (_value);
}
private function stepUp(_arg1:MouseEvent):void{
value = (value + step);
dispatchEvent(new Event(Event.CHANGE));
}
private function stepDown(_arg1:MouseEvent):void{
value = (value - step);
dispatchEvent(new Event(Event.CHANGE));
}
public function set value(_arg1:int):void{
_value = _arg1;
_value = (((_arg1 / step) >> 0) * step);
_value = Math.max(min, _value);
_value = Math.min(max, _value);
num.text = formatNumber(_value, digits);
if (_value > min){
num.color = 9170984;
} else {
num.color = 0xFFFFFF;
};
}
}
}//package com.nitrome.ui
Section 140
//Key (com.nitrome.ui.Key)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class Key {
public static const NUMBER_0:int = 48;
public static const NUMBER_1:int = 49;
public static const NUMBER_2:int = 50;
public static const NUMBER_3:int = 51;
public static const NUMBER_4:int = 52;
public static const NUMBER_5:int = 53;
public static const NUMBER_6:int = 54;
public static const NUMBER_7:int = 55;
public static const NUMBER_8:int = 56;
public static const NUMBER_9:int = 57;
public static const D:int = 68;
public static const E:int = 69;
public static const F:int = 70;
public static const G:int = 71;
public static const A:int = 65;
public static const I:int = 73;
public static const C:int = 67;
public static const K:int = 75;
public static const L:int = 76;
public static const M:int = 77;
public static const N:int = 78;
public static const H:int = 72;
public static const B:int = 66;
public static const R:int = 82;
public static const S:int = 83;
public static const U:int = 85;
public static const O:int = 79;
public static const Q:int = 81;
public static const J:int = 74;
public static const Z:int = 90;
public static const T:int = 84;
public static const V:int = 86;
public static const W:int = 87;
public static const P:int = 80;
public static const Y:int = 89;
public static const X:int = 88;
public static var stage:Stage;
public static var reserved:Array = [];
private static var keysDown:Array = [];
private static var initialized:Boolean = false;
public static var keys_pressed:int = 0;
public static var custom:Array;
public static function init(_arg1:Stage){
if (!initialized){
stage = _arg1;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased);
stage.addEventListener(Event.DEACTIVATE, clearKeys);
initialized = true;
};
}
public static function customDown(_arg1:int):Boolean{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
return (((!((custom == null))) && (Boolean(keysDown[custom[_arg1]]))));
}
private static function clearKeys(_arg1:Event):void{
keysDown = [];
keys_pressed = 0;
}
public static function forceClearKeys():void{
keysDown = [];
keys_pressed = 0;
}
private static function keyPressed(_arg1:KeyboardEvent):void{
if (!Boolean(keysDown[_arg1.keyCode])){
keys_pressed++;
};
keysDown[_arg1.keyCode] = true;
}
public static function keyString(_arg1:uint):String{
switch (_arg1){
case Keyboard.BACKSPACE:
return ("bsp");
case Keyboard.CAPS_LOCK:
return ("cpl");
case Keyboard.CONTROL:
return ("ctr");
case Keyboard.DELETE:
return ("del");
case Keyboard.DOWN:
return ("dwn");
case Keyboard.END:
return ("end");
case Keyboard.ENTER:
return ("ent");
case Keyboard.ESCAPE:
return ("esc");
case Keyboard.HOME:
return ("hom");
case Keyboard.INSERT:
return ("ins");
case Keyboard.LEFT:
return ("lft");
case Keyboard.PAGE_DOWN:
return ("pgd");
case Keyboard.PAGE_UP:
return ("pgu");
case Keyboard.RIGHT:
return ("rgt");
case Keyboard.SHIFT:
return ("sht");
case Keyboard.SPACE:
return ("spc");
case Keyboard.TAB:
return ("tab");
case Keyboard.UP:
return ("up");
case 186:
return (":");
case 188:
return (".");
case 190:
return (",");
case 191:
return ("?");
case 109:
return ("n -");
case 107:
return ("n +");
case 187:
return ("+");
case 189:
return ("-");
case 222:
return ("'");
default:
if ((((_arg1 >= 96)) && ((_arg1 <= 105)))){
return (("n " + String.fromCharCode((_arg1 - 48))));
};
return (String.fromCharCode(_arg1));
};
}
private static function keyReleased(_arg1:KeyboardEvent):void{
keysDown[_arg1.keyCode] = false;
keys_pressed--;
}
public static function isDown(_arg1:int):Boolean{
if (!initialized){
throw (new Error("Key class has yet been initialized."));
};
return (Boolean(keysDown[_arg1]));
}
}
}//package com.nitrome.ui
Section 141
//LevelChooserButton (com.nitrome.ui.LevelChooserButton)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import com.nitrome.util.*;
public class LevelChooserButton extends SimpleButton {
private var active:Boolean;
private var id:int;
public var lock:MovieClip;
public var level_num:BlastRPGBigFont;
public var num:String;
public var hit_area:ButtonHitAreaWidget;
public var level_image:MovieClip;
public static const up_col:int = 0xFFC300;
public static const over_col:int = 0xC74E00;
public function LevelChooserButton(){
addFrameScript(0, frame1, 9, frame10);
id = name.match(/\d+/)[0];
if (NitromeGame.getLevelUnlocked(id)){
active = true;
useHandCursor = true;
} else {
active = false;
useHandCursor = false;
};
addEventListener(Event.ADDED_TO_STAGE, init);
__setProp_level_num_level_chooser_button_Layer14_1();
}
private function init(_arg1:Event):void{
updateGraphic();
_arg1.target.removeEventListener(Event.ADDED_TO_STAGE, init);
}
function frame10(){
if (!lock.visible){
level_num.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
};
}
function frame1(){
level_num.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_level_num_level_chooser_button_Layer14_1(){
try {
level_num["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_num.align = "center";
level_num.align_vert = "center";
level_num.color = 0xFFFFFF;
level_num.line_spacing = 40;
level_num.preview_text = "0";
level_num.tracking = -1;
try {
level_num["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override protected function updateGraphic():void{
var _local1:String;
super.updateGraphic();
if (active){
_local1 = String(id);
level_num.text = _local1;
level_image.gotoAndStop(("_" + id));
lock.visible = false;
} else {
lock.visible = true;
level_num.text = "?";
};
}
override public function onClick(_arg1:MouseEvent):void{
if (active){
NitromeGame.selected_level = id;
Score.value = 0;
NitromeGame.played = false;
NitromeGame.timeline.tt.doTween("play_game");
};
updateGraphic();
}
}
}//package com.nitrome.ui
Section 142
//MusicToggle (com.nitrome.ui.MusicToggle)
package com.nitrome.ui {
import flash.events.*;
public class MusicToggle extends SimpleButton {
public function MusicToggle(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30);
if (!NitromeGame.music){
gotoAndStop("_off_up");
} else {
gotoAndStop("_on_up");
};
addEventListener(MouseEvent.CLICK, onClick);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
override protected function updateGraphic():void{
if (over){
if (NitromeGame.sound_manager.music){
gotoAndStop("_on_over");
} else {
if (!NitromeGame.sound_manager.music){
gotoAndStop("_off_over");
};
};
} else {
if (NitromeGame.sound_manager.music){
gotoAndStop("_on_up");
} else {
if (!NitromeGame.sound_manager.music){
gotoAndStop("_off_up");
};
};
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.sound_manager.toggleMusic();
updateGraphic();
}
}
}//package com.nitrome.ui
Section 143
//NextLevelButton (com.nitrome.ui.NextLevelButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class NextLevelButton extends SimpleButton {
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
public function NextLevelButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_next_level_button_Layer12_1();
}
function __setProp_label2_next_level_button_Layer12_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "next level";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function doStuff():void{
NitromeGame.timeline.game.clearListeners();
NitromeGame.selected_level++;
NitromeGame.timeline.popup_holder.hidePopUp();
NitromeGame.transition.doTween("game_reset");
NitromeGame.played = false;
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
if (!NitromeGame.timeline.popup_holder.key_pressed){
doStuff();
};
}
}
}//package com.nitrome.ui
Section 144
//NitromeButton (com.nitrome.ui.NitromeButton)
package com.nitrome.ui {
import flash.events.*;
import flash.net.*;
public class NitromeButton extends SimpleButton {
public function NitromeButton(){
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
override public function onClick(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.nitrome.com"), "_blank");
}
}
}//package com.nitrome.ui
Section 145
//NoButton (com.nitrome.ui.NoButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class NoButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function NoButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_no_button_Layer9_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.popup_holder.hidePopUp();
}
function __setProp_label_no_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "no";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 146
//OptionsButton (com.nitrome.ui.OptionsButton)
package com.nitrome.ui {
import flash.events.*;
public class OptionsButton extends SimpleButton {
public var __id0_:BlastRPGFont;
public function OptionsButton(){
addFrameScript(0, frame1);
__setProp___id0__options_button_Layer13_1();
}
function frame1(){
stop();
}
function __setProp___id0__options_button_Layer13_1(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.align = "center";
__id0_.align_vert = "center";
__id0_.color = 0xFFFFFF;
__id0_.line_spacing = 22;
__id0_.preview_text = "options";
__id0_.tracking = -2;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("options");
}
}
}//package com.nitrome.ui
Section 147
//PauseButton (com.nitrome.ui.PauseButton)
package com.nitrome.ui {
import flash.events.*;
public class PauseButton extends SimpleButton {
public function PauseButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.game.pauseGame();
}
}
}//package com.nitrome.ui
Section 148
//PlayButton (com.nitrome.ui.PlayButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class PlayButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function PlayButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_play_button_Layer9_1();
}
function __setProp_label_play_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "play";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("login");
}
}
}//package com.nitrome.ui
Section 149
//PlayGameButton (com.nitrome.ui.PlayGameButton)
package com.nitrome.ui {
import flash.events.*;
import com.nitrome.util.*;
public class PlayGameButton extends SimpleButton {
public var __id1_:BlastRPGFont;
public function PlayGameButton(){
addFrameScript(0, frame1);
__setProp___id1__play_game_button_Layer9_1();
}
function __setProp___id1__play_game_button_Layer9_1(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.align = "center";
__id1_.align_vert = "center";
__id1_.color = 0xFFFFFF;
__id1_.line_spacing = 22;
__id1_.preview_text = "play";
__id1_.tracking = -2;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
Score.value = 0;
if (NitromeGame.last_level < NitromeGame.total_levels){
NitromeGame.selected_level = NitromeGame.last_level;
} else {
NitromeGame.selected_level = 1;
};
NitromeGame.played = false;
NitromeGame.timeline.tt.doTween("play_game");
}
}
}//package com.nitrome.ui
Section 150
//PopUpHolder (com.nitrome.ui.PopUpHolder)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public class PopUpHolder extends MovieClip {
public var popup_clip:MovieClip;
private var action_performed:Boolean;
public var key_pressed:Boolean;
private var popup_id:String;
public function PopUpHolder(){
addFrameScript(0, frame1, 1, frame2, 10, frame11);
}
function frame1(){
popup_clip.gotoAndStop("wait");
stop();
}
function frame2(){
popup_clip.gotoAndStop(popup_id);
}
function frame11(){
stop();
}
public function hidePopUp():void{
action_performed = true;
key_pressed = true;
popup_id = "wait";
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
gotoAndPlay("out");
}
private function onEnterFrame(_arg1:Event):void{
if ((((((((currentLabel == "stopped")) && (Key.isDown(Keyboard.SPACE)))) && (!(key_pressed)))) && (!(action_performed)))){
key_pressed = true;
action_performed = true;
if (popup_id == "level_complete"){
popup_clip.next_level_button.doStuff();
} else {
if (popup_id == "game_over"){
popup_clip.try_again_button.doStuff();
} else {
if (popup_id == "final_level_complete"){
popup_clip.continue_end_button.doStuff();
} else {
if (popup_id == "reset"){
popup_clip.yes_button.doStuff();
} else {
if ((((popup_id == "message")) || ((popup_id == "first_message")))){
NitromeGame.timeline.game.pauseGame();
};
};
};
};
};
};
if ((((currentLabel == "stopped")) && (!(Key.isDown(Keyboard.SPACE))))){
key_pressed = false;
};
}
public function launchPopUp(_arg1:String, _arg2:Boolean=false):void{
popup_id = _arg1;
key_pressed = false;
action_performed = false;
addEventListener(Event.ENTER_FRAME, onEnterFrame, false, 0, true);
if (!_arg2){
gotoAndPlay(2);
} else {
gotoAndStop("stopped");
popup_clip.gotoAndStop(popup_id);
};
}
}
}//package com.nitrome.ui
Section 151
//Preloader (com.nitrome.ui.Preloader)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
public class Preloader extends MovieClip {
public var progress:BlastRPGBigFont;
public function Preloader(){
addEventListener(Event.ENTER_FRAME, enterFrame);
__setProp_progress_preloader_Layer1_1();
}
public function finishedLoading(){
if (hasEventListener(Event.COMPLETE)){
removeEventListener(Event.ENTER_FRAME, enterFrame);
dispatchEvent(new Event(Event.COMPLETE));
};
}
public function enterFrame(_arg1:Event):void{
var _local2:Number;
var _local3:TextComponent;
if (stage.loaderInfo.bytesLoaded < stage.loaderInfo.bytesTotal){
_local2 = Math.floor(((100 * stage.loaderInfo.bytesLoaded) / stage.loaderInfo.bytesTotal));
_local3 = (getChildByName("progress") as TextComponent);
_local3.text = (("loading: " + _local2.toString()) + "%");
} else {
(root as MovieClip).stop();
finishedLoading();
};
}
function __setProp_progress_preloader_Layer1_1(){
try {
progress["componentInspectorSetting"] = true;
} catch(e:Error) {
};
progress.align = "center";
progress.align_vert = "center";
progress.color = 0xFFFFFF;
progress.line_spacing = 40;
progress.preview_text = "Loading";
progress.tracking = -1;
try {
progress["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 152
//QualityButton (com.nitrome.ui.QualityButton)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
public class QualityButton extends SimpleButton {
public function QualityButton(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
var _local2:String;
if (NitromeGame.quality == "low"){
NitromeGame.quality = "medium";
} else {
if (NitromeGame.quality == "medium"){
NitromeGame.quality = "low";
};
};
_local2 = NitromeGame.quality;
if (_local2 == "medium"){
(parent as MovieClip).quality.quality_text.text = "Medium";
} else {
if (_local2 == "low"){
(parent as MovieClip).quality.quality_text.text = "Low";
};
};
}
}
}//package com.nitrome.ui
Section 153
//QuitGameButton (com.nitrome.ui.QuitGameButton)
package com.nitrome.ui {
import flash.events.*;
import com.nitrome.engine.*;
import com.nitrome.ui.items.*;
import com.nitrome.sound.*;
public class QuitGameButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
override public function onClick(_arg1:MouseEvent):void{
if ((((NitromeGame.timeline.currentLabel == "abilities")) || ((NitromeGame.timeline.currentLabel == "shop")))){
PlayerStats.setSharedObject();
EquipmentBar.setSharedObject();
};
if (NitromeGame.timeline.popup_holder){
NitromeGame.timeline.popup_holder.hidePopUp();
};
NitromeGame.transition.doTween("choose_level");
if (NitromeGame.timeline.game){
NitromeGame.timeline.game.clearAll();
if (NitromeGame.timeline.game.parent){
NitromeGame.timeline.game.parent.removeChild(NitromeGame.timeline.game);
};
NitromeGame.timeline.game = null;
};
NitromeGame.sound_manager.crossFade(SoundManager.MENU);
}
}
}//package com.nitrome.ui
Section 154
//QuitGameButton1 (com.nitrome.ui.QuitGameButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class QuitGameButton1 extends QuitGameButton {
public function QuitGameButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_quit_game_button_Layer9_1();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label2_quit_game_button_Layer9_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "level select";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 155
//QuitGameButton2 (com.nitrome.ui.QuitGameButton2)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class QuitGameButton2 extends QuitGameButton {
public function QuitGameButton2(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_level_select_button_Layer9_1();
}
function __setProp_label_level_select_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "back";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
}
}//package com.nitrome.ui
Section 156
//QuitGameButton3 (com.nitrome.ui.QuitGameButton3)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class QuitGameButton3 extends QuitGameButton {
public function QuitGameButton3(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_exit_button_Layer9_1();
}
function __setProp_label_exit_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "exit";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
}
}//package com.nitrome.ui
Section 157
//QuitGameButton4 (com.nitrome.ui.QuitGameButton4)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class QuitGameButton4 extends QuitGameButton {
public function QuitGameButton4(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_quit_game2_Layer9_1();
}
function __setProp_label_quit_game2_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "quit";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
}
}//package com.nitrome.ui
Section 158
//ResetButton (com.nitrome.ui.ResetButton)
package com.nitrome.ui {
import flash.events.*;
public class ResetButton extends SimpleButton {
public function ResetButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.game.pauseGame("reset");
}
}
}//package com.nitrome.ui
Section 159
//SaveSlotButton (com.nitrome.ui.SaveSlotButton)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
import com.nitrome.engine.*;
import flash.geom.*;
import com.nitrome.ui.items.*;
public class SaveSlotButton extends SimpleButton {
public var id:int;
public var label:BlastRPGBigFont;
public var slot_data:MovieClip;
public var hit_area:ButtonHitAreaWidget;
public function SaveSlotButton(){
addFrameScript(0, frame1, 9, frame10);
id = name.match(/\d+/)[0];
addEventListener(Event.ADDED_TO_STAGE, init);
__setProp_label_SaveSlotButton_Layer5_1();
}
public function init(_arg1:Event=null):void{
var _local2:Object;
if (_arg1){
_arg1.target.removeEventListener(Event.ADDED_TO_STAGE, init);
};
label.text = (id + ":");
_local2 = NitromeGame.getValue("player_stats", id);
if (_local2){
slot_data.visible = true;
slot_data.distance_text.text = NitromeGame.getLastUnlocked(id).toString();
slot_data.level_text.text = _local2.level.value.toString();
slot_data.gold_text.text = _local2.gold.value.toString();
} else {
label.text = (label.text + " no data");
slot_data.visible = false;
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_SaveSlotButton_Layer5_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "left";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "1:";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.save_slot = id;
PlayerStats.init();
EquipmentBar.getSharedObject();
ShopStockBar.refresh = true;
NitromeGame.transition.doTween("choose_level");
}
}
}//package com.nitrome.ui
Section 160
//ScoreTicker (com.nitrome.ui.ScoreTicker)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
public class ScoreTicker extends MovieClip {
private var count_interval:int;
private var next_clip:String;
public var val:int;
private var total:int;
private var next_start_val:int;
private var counting:Boolean;// = false
private var next_inc:int;
public var score_text:BlastRPGFont;
private var inc:int;
private var next_total:int;
public function ScoreTicker(){
counting = false;
super();
}
public function setScore(_arg1:int):void{
val = _arg1;
setText(Math.abs(val));
}
private function doCount(_arg1:Event):void{
val = (val + inc);
if ((((((inc > 0)) && ((val >= total)))) || ((((inc < 0)) && ((val <= total)))))){
val = total;
setText(val);
removeEventListener(Event.ENTER_FRAME, doCount);
counting = false;
onFinish();
} else {
setText(val);
};
}
private function onFinish():void{
if (next_clip != null){
parent[next_clip].startCount(next_total, next_inc, next_start_val);
};
}
public function setTarget(_arg1:int, _arg2:int):void{
total = _arg1;
if (_arg2 == 0){
_arg2 = ((val > _arg1)) ? -1 : 1;
} else {
_arg2 = ((val > _arg1)) ? -(_arg2) : _arg2;
};
this.inc = _arg2;
if (!counting){
addEventListener(Event.ENTER_FRAME, doCount, false, 0, true);
counting = true;
};
}
public function setText(_arg1:int):void{
var _local2:String;
var _local3:int;
_local2 = ("" + (0.1 * _arg1));
_local3 = _local2.indexOf(".");
if (_local3 == -1){
_local2 = (_local2 + ".0");
} else {
_local2 = _local2.substr(0, (_local3 + 2));
};
score_text.text = ("" + _local2);
}
public function startCount(_arg1:int, _arg2:int, _arg3:int=0):void{
total = _arg1;
if (_arg2 == 0){
_arg2 = ((_arg3 > _arg1)) ? -1 : 1;
};
this.inc = _arg2;
setScore(_arg3);
addEventListener(Event.ENTER_FRAME, doCount, false, 0, true);
counting = true;
}
public function setOnFinish(_arg1:String, _arg2:int, _arg3:int, _arg4:int=0):void{
next_clip = _arg1;
next_total = _arg2;
if (_arg3 == 0){
_arg3 = ((_arg4 > _arg2)) ? -1 : 1;
};
next_inc = _arg3;
next_start_val = _arg4;
if (_arg4 > 0){
parent[next_clip].setScore(_arg4);
};
}
}
}//package com.nitrome.ui
Section 161
//ScoreTicker1 (com.nitrome.ui.ScoreTicker1)
package com.nitrome.ui {
public dynamic class ScoreTicker1 extends ScoreTicker {
public function ScoreTicker1(){
__setProp_score_text_score_ticker_Layer1_1();
}
function __setProp_score_text_score_ticker_Layer1_1(){
try {
score_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
score_text.align = "right";
score_text.align_vert = "center";
score_text.color = 0xFFFFFF;
score_text.line_spacing = 22;
score_text.preview_text = "0";
score_text.tracking = -2;
try {
score_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 162
//ShopButton (com.nitrome.ui.ShopButton)
package com.nitrome.ui {
import flash.events.*;
public class ShopButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("shop");
}
}
}//package com.nitrome.ui
Section 163
//ShopButton1 (com.nitrome.ui.ShopButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class ShopButton1 extends ShopButton {
public function ShopButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_shop_button_Layer9_1();
}
function __setProp_label_shop_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "shop";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
}
}//package com.nitrome.ui
Section 164
//ShopButton2 (com.nitrome.ui.ShopButton2)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class ShopButton2 extends ShopButton {
public function ShopButton2(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_shop_button_small_Layer9_1();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label2_shop_button_small_Layer9_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "shop";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 165
//SimpleButton (com.nitrome.ui.SimpleButton)
package com.nitrome.ui {
import flash.display.*;
import flash.events.*;
public class SimpleButton extends MovieClip {
public var i:int;
public var over:Boolean;// = false
public function SimpleButton(){
over = false;
super();
mouseChildren = false;
buttonMode = true;
addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, onMouseOut, false, 0, true);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
protected function onMouseOver(_arg1:MouseEvent):void{
over = true;
updateGraphic();
}
protected function onMouseOut(_arg1:MouseEvent):void{
over = false;
updateGraphic();
}
protected function updateGraphic():void{
if (over){
gotoAndStop("_over");
} else {
gotoAndStop("_up");
};
}
public function onClick(_arg1:MouseEvent):void{
}
}
}//package com.nitrome.ui
Section 166
//SubmitScoreButton (com.nitrome.ui.SubmitScoreButton)
package com.nitrome.ui {
import flash.events.*;
import com.nitrome.util.*;
import com.nitrome.sound.*;
public class SubmitScoreButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
public function SubmitScoreButton(){
if (Score.value > NitromeGame.getLastSavedScore()){
visible = true;
} else {
visible = false;
};
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.timeline.popup_holder.hidePopUp();
NitromeGame.transition.doTween("submit_score");
NitromeGame.setLastSavedScore(Score.value);
if (NitromeGame.timeline.game){
NitromeGame.timeline.game.clearAll();
if (NitromeGame.timeline.game.parent){
NitromeGame.timeline.game.parent.removeChild(NitromeGame.timeline.game);
};
NitromeGame.timeline.game = null;
};
NitromeGame.sound_manager.crossFade(SoundManager.MENU);
}
}
}//package com.nitrome.ui
Section 167
//SubmitScoreButton1 (com.nitrome.ui.SubmitScoreButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class SubmitScoreButton1 extends SubmitScoreButton {
public function SubmitScoreButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_submit_score_button_Layer9_1();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label2_submit_score_button_Layer9_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "submit score";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 168
//TextComponent (com.nitrome.ui.TextComponent)
package com.nitrome.ui {
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class TextComponent extends Sprite {
protected var _align:String;
protected var letters:Array;
protected var _text:String;
private var previewing:Boolean;
protected var _tracking:int;
public var obj_num:int;
protected var _color:ColorTransform;
private var _height:Number;// = 0
protected var holder:Array;
protected var _id:String;
private var _width:Number;// = 0
protected var _align_vert:String;
private var _background:Sprite;
protected var base:Sprite;
protected var _line_spacing:int;
protected var _colorInt:uint;
public static var obj_count:int = 0;
public function TextComponent(){
_width = 0;
_height = 0;
super();
init();
createChildren();
draw();
}
public function get align():String{
return (_align);
}
private function init():void{
letters = new Array();
holder = new Array();
_width = width;
_height = height;
scaleX = 1;
scaleY = 1;
removeChildAt(0);
previewing = true;
}
public function set align(_arg1:String){
_align = _arg1;
draw();
}
private function createChildren():void{
_background = new Sprite();
addChild(_background);
}
public function get align_vert():String{
return (_align_vert);
}
public function get text():String{
return (_text);
}
public function get preview_text():String{
return (_text);
}
public function set align_vert(_arg1:String){
_align_vert = _arg1;
draw();
}
public function get color():uint{
return (_colorInt);
}
protected function draw():void{
var line:*;
var i:int;
var isLivePreview:Boolean;
var c:*;
var class_name:String;
var class_id:Class;
var temp:Sprite;
var j:int;
var x_tracking:*;
_background.graphics.clear();
if (base != null){
this.removeChild(base);
};
base = new Sprite();
holder = new Array();
line = 0;
holder.push(base.addChild(new Sprite()));
letters = new Array();
letters.push(new Array());
if (!_text){
_text = "";
};
i = 0;
while (i < _text.length) {
_text = _text.toUpperCase();
c = _text.charAt(i);
class_name = getClassNameFromChar(c);
if (class_name == "NEWLINE"){
line = (line + 1);
letters.push(new Array());
holder.push(base.addChild(new Sprite()));
holder[line].y = (line_spacing * line);
} else {
if (class_name != ""){
try {
class_id = (getDefinitionByName(((("Text_" + _id) + "_") + class_name)) as Class);
} catch(e:ReferenceError) {
try {
class_id = (getDefinitionByName((("Text_" + _id) + "_SPACE")) as Class);
} catch(e:ReferenceError) {
trace(("TextComponent error: could not find font " + _id));
break;
};
};
if (class_id != null){
temp = (new (class_id) as Sprite);
letters[line].push(holder[line].addChild(temp));
};
};
};
i = (i + 1);
};
i = 0;
while (i < letters.length) {
j = 1;
while (j < letters[i].length) {
x_tracking = _tracking;
if (letters[i][(j - 1)].kerning != null){
x_tracking = (x_tracking + letters[i][(j - 1)].kerning.x);
} else {
x_tracking = (x_tracking + letters[i][(j - 1)].width);
};
letters[i][j].x = (letters[i][(j - 1)].x + x_tracking);
j = (j + 1);
};
if (_align == "center"){
holder[i].x = (holder[i].x + int(((_width * 0.5) - (holder[i].width * 0.5))));
} else {
if (_align == "right"){
holder[i].x = (holder[i].x + int((_width - holder[i].width)));
};
};
i = (i + 1);
};
if (_align_vert == "bottom"){
base.y = (base.y + int((_height - base.height)));
} else {
if (_align_vert == "center"){
base.y = (base.y + int(((_height * 0.5) - (base.height * 0.5))));
};
};
if (_color != null){
base.transform.colorTransform = _color;
};
base.cacheAsBitmap = true;
this.addChild(base);
this.cacheAsBitmap = true;
isLivePreview = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
if (((isLivePreview) && ((_text == "")))){
_background.graphics.clear();
_background.graphics.lineStyle(1, 0);
_background.graphics.beginFill(0xFFFFFF, 0.5);
_background.graphics.drawRect(0, 0, _width, _height);
_background.graphics.endFill();
};
}
public function set text(_arg1:String){
previewing = false;
_text = _arg1;
draw();
}
public function set tracking(_arg1:int){
_tracking = _arg1;
draw();
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
draw();
}
public function set preview_text(_arg1:String){
if (previewing){
_text = _arg1;
draw();
};
}
protected function getClassNameFromChar(_arg1:String):String{
if (_arg1 == "Space"){
return ("SPACE");
};
if (_arg1 == "."){
return ("STOP");
};
if (_arg1 == "?"){
return ("QUESTION");
};
if (_arg1 == ","){
return ("COMMA");
};
if (_arg1 == "!"){
return ("EXCLAMATION");
};
if (_arg1 == "\\"){
return ("BACKSLASH");
};
if (_arg1 == "/"){
return ("FORWARDSLASH");
};
if (_arg1 == "="){
return ("EQUALS");
};
if (_arg1 == "+"){
return ("PLUS");
};
if (_arg1 == "("){
return ("LEFTBRACKET");
};
if (_arg1 == ")"){
return ("RIGHTBRACKET");
};
if (_arg1 == "-"){
return ("HYPHEN");
};
if (_arg1 == "\""){
return ("QUOTES");
};
if (_arg1 == ":"){
return ("COLON");
};
if (_arg1 == "�"){
return ("POUND");
};
if (_arg1 == "_"){
return ("UNDERSCORE");
};
if (_arg1 == "'"){
return ("APOSTROPHE");
};
if (_arg1 == "@"){
return ("AT");
};
if ((((((_arg1 == "\n")) || ((_arg1 == "\r")))) || ((_arg1 == "|")))){
return ("NEWLINE");
};
return (_arg1);
}
public function get tracking():int{
return (_tracking);
}
public function set color(_arg1:uint):void{
_colorInt = _arg1;
if (_arg1 == 0xFFFFFF){
_color = null;
} else {
_color = new ColorTransform((((_arg1 >> 16) % 0x0100) / 0xFF), (((_arg1 >> 8) % 0x0100) / 0xFF), ((_arg1 % 0x0100) / 0xFF));
};
draw();
}
public function set line_spacing(_arg1:int){
_line_spacing = _arg1;
draw();
}
public function get line_spacing():int{
return (_line_spacing);
}
}
}//package com.nitrome.ui
Section 169
//Transition (com.nitrome.ui.Transition)
package com.nitrome.ui {
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
public class Transition extends MovieClip {
public var next_frame:String;
public var bitmap:Bitmap;
public var tween:Tween;
public var bitmapdata:BitmapData;
public var tweening:Boolean;
public static const TWEEN_DELAY:int = 20;
public function Transition(){
bitmapdata = new BitmapData(550, 400, true, 0xFFFFFF);
bitmap = new Bitmap(bitmapdata);
bitmap.visible = false;
bitmap.x = (bitmap.x - 275);
bitmap.y = (bitmap.y - 200);
addChild(bitmap);
tweening = false;
next_frame = "";
}
private function onFinish(_arg1:TweenEvent=null):void{
bitmap.visible = false;
_arg1.target.removeEventListener(TweenEvent.MOTION_CHANGE, onChange);
_arg1.target.removeEventListener(TweenEvent.MOTION_FINISH, onFinish);
tweening = false;
NitromeGame.timeline.x = 0;
if (next_frame != ""){
beginTransition(next_frame);
next_frame = "";
};
}
private function onChange(_arg1:TweenEvent=null):void{
NitromeGame.timeline.custom_mouse.x = NitromeGame.timeline.mouseX;
NitromeGame.timeline.custom_mouse.y = NitromeGame.timeline.mouseY;
}
public function doTween(_arg1:String, _arg2:int=0):void{
if (!tweening){
beginTransition(_arg1);
} else {
next_frame = _arg1;
};
}
public function beginTransition(_arg1:String):void{
tweening = true;
NitromeGame.custom_mouse.visible = false;
bitmapdata.draw(NitromeGame.timeline);
NitromeGame.custom_mouse.visible = true;
NitromeGame.timeline.x = 550;
x = (-550 + 275);
bitmap.visible = true;
(parent as MovieClip).gotoAndStop(_arg1);
tween = new Tween(NitromeGame.timeline, "x", Regular.easeInOut, 550, 0, TWEEN_DELAY);
tween.addEventListener(TweenEvent.MOTION_CHANGE, onChange, false, 0, true);
tween.addEventListener(TweenEvent.MOTION_FINISH, onFinish, false, 0, true);
}
}
}//package com.nitrome.ui
Section 170
//TryAgainButton (com.nitrome.ui.TryAgainButton)
package com.nitrome.ui {
import flash.events.*;
import com.nitrome.util.*;
import com.nitrome.sound.*;
public class TryAgainButton extends SimpleButton {
public var hit_area:ButtonHitAreaWidget;
public var label2:BlastRPGFont;
function doStuff():void{
NitromeGame.timeline.game.clearListeners();
Score.value = 0;
NitromeGame.level_score = 0;
NitromeGame.timeline.popup_holder.hidePopUp();
NitromeGame.played = true;
NitromeGame.transition.doTween("game_reset");
NitromeGame.sound_manager.playMusicFadeIn(SoundManager.GAME, NitromeGame.sound_manager.stop_time);
}
override public function onClick(_arg1:MouseEvent):void{
if (!NitromeGame.timeline.popup_holder.key_pressed){
doStuff();
};
}
}
}//package com.nitrome.ui
Section 171
//TryAgainButton1 (com.nitrome.ui.TryAgainButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class TryAgainButton1 extends TryAgainButton {
public function TryAgainButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label2_try_again_button_Layer9_1();
}
function frame10(){
label2.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label2.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label2_try_again_button_Layer9_1(){
try {
label2["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label2.align = "center";
label2.align_vert = "center";
label2.color = 9731411;
label2.line_spacing = 22;
label2.preview_text = "try again";
label2.tracking = -2;
try {
label2["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 172
//ViewScoresButton (com.nitrome.ui.ViewScoresButton)
package com.nitrome.ui {
import flash.events.*;
public class ViewScoresButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("view_scores");
}
}
}//package com.nitrome.ui
Section 173
//ViewScoresButton1 (com.nitrome.ui.ViewScoresButton1)
package com.nitrome.ui {
import flash.geom.*;
public dynamic class ViewScoresButton1 extends ViewScoresButton {
public function ViewScoresButton1(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_scores_button_Layer13_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_scores_button_Layer13_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "scores";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package com.nitrome.ui
Section 174
//ViewScoresSurvivalButton (com.nitrome.ui.ViewScoresSurvivalButton)
package com.nitrome.ui {
import flash.events.*;
public class ViewScoresSurvivalButton extends SimpleButton {
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.transition.doTween("view_scores_survival");
}
}
}//package com.nitrome.ui
Section 175
//YesButton (com.nitrome.ui.YesButton)
package com.nitrome.ui {
import flash.events.*;
import flash.geom.*;
public class YesButton extends SimpleButton {
public var label:BlastRPGBigFont;
public var hit_area:ButtonHitAreaWidget;
public function YesButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_yes_button_Layer9_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function __setProp_label_yes_button_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "yes";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
override public function onClick(_arg1:MouseEvent):void{
NitromeGame.deleteSharedObject(NitromeGame.save_slot);
NitromeGame.timeline[("slot_" + NitromeGame.save_slot)].init();
NitromeGame.timeline[("delete_" + NitromeGame.save_slot)].visible = false;
NitromeGame.timeline.popup_holder.hidePopUp();
}
}
}//package com.nitrome.ui
Section 176
//startClips (com.nitrome.util.clips.startClips)
package com.nitrome.util.clips {
import flash.display.*;
public function startClips(_arg1:DisplayObjectContainer):void{
var _local2:int;
_local2 = 0;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is MovieClip)){
(_arg1.getChildAt(_local2) as MovieClip).gotoAndPlay((_arg1.getChildAt(_local2) as MovieClip).currentFrame);
};
if ((_arg1.getChildAt(_local2) is DisplayObjectContainer)){
startClips((_arg1.getChildAt(_local2) as DisplayObjectContainer));
};
_local2++;
};
}
}//package com.nitrome.util.clips
Section 177
//stopClips (com.nitrome.util.clips.stopClips)
package com.nitrome.util.clips {
import flash.display.*;
public function stopClips(_arg1:DisplayObjectContainer):void{
var _local2:int;
_local2 = 0;
while (_local2 < _arg1.numChildren) {
if ((_arg1.getChildAt(_local2) is MovieClip)){
(_arg1.getChildAt(_local2) as MovieClip).stop();
};
if ((_arg1.getChildAt(_local2) is DisplayObjectContainer)){
stopClips((_arg1.getChildAt(_local2) as DisplayObjectContainer));
};
_local2++;
};
}
}//package com.nitrome.util.clips
Section 178
//degreeLerp (com.nitrome.util.lerp.degreeLerp)
package com.nitrome.util.lerp {
public function degreeLerp(_arg1:Number, _arg2:Number, _arg3:Number):Number{
_arg1 = (_arg1 + ((Math.abs((_arg2 - _arg1)))>180) ? ((_arg1)<_arg2) ? 360 : -(360) : 0);
return ((_arg1 + ((_arg2 - _arg1) * _arg3)));
}
}//package com.nitrome.util.lerp
Section 179
//formatNumber (com.nitrome.util.misc.formatNumber)
package com.nitrome.util.misc {
public function formatNumber(_arg1:int, _arg2:int):String{
var _local3:String;
_local3 = _arg1.toString();
while (_local3.length < _arg2) {
_local3 = ("0" + _local3);
};
return (_local3);
}
}//package com.nitrome.util.misc
Section 180
//onScreen (com.nitrome.util.misc.onScreen)
package com.nitrome.util.misc {
public function onScreen(_arg1:Number, _arg2:Number, _arg3:Game, _arg4:Number):Boolean{
return (((((((((_arg1 + _arg4) >= -(_arg3.canvas.x))) && (((_arg2 + _arg4) >= -(_arg3.canvas.y))))) && (((_arg1 - _arg4) < (-(_arg3.canvas.x) + Game.WIDTH))))) && (((_arg2 - _arg4) < (-(_arg3.canvas.y) + Game.HEIGHT)))));
}
}//package com.nitrome.util.misc
Section 181
//randomiseArray (com.nitrome.util.misc.randomiseArray)
package com.nitrome.util.misc {
public function randomiseArray(_arg1:Array):void{
var _local2:*;
var _local3:int;
var _local4:int;
_local4 = _arg1.length;
while (_local4) {
_local3 = (Math.random() * _local4);
--_local4;
_local2 = _arg1[_local4];
_arg1[_local4] = _arg1[_local3];
_arg1[_local3] = _local2;
};
}
}//package com.nitrome.util.misc
Section 182
//HiddenInt (com.nitrome.util.HiddenInt)
package com.nitrome.util {
public class HiddenInt {
private var _value:int;
private var r:int;
public function HiddenInt(_arg1:int=0){
r = ((Math.random() * 2000000) - 1000000);
_value = (r + _arg1);
}
public function get value():int{
return ((_value - r));
}
public function set value(_arg1:int):void{
r = ((Math.random() * 2000000) - 1000000);
_value = (r + _arg1);
}
}
}//package com.nitrome.util
Section 183
//Lock (com.nitrome.util.Lock)
package com.nitrome.util {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Lock extends Sprite {
public var lock_background:MovieClip;
public var lock_message:MovieClip;
private static var locked:Boolean = false;
public function Lock(){
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
private function init(_arg1:Event):void{
lock_background.width = Math.max(550, stage.stageWidth);
lock_background.height = Math.max(400, stage.stageHeight);
lock_message.x = (stage.stageWidth * 0.5);
lock_message.y = (stage.stageHeight * 0.5);
removeEventListener(Event.ADDED_TO_STAGE, init);
}
public static function urlLock(_arg1:Stage):void{
var _local2:String;
if (NitromeGame.isAtURL(NitromeGame.ARMOR_URL) == true){
} else {
if (!locked){
_arg1.addChild(new (Lock));
locked = true;
_local2 = ("http://www.nitrome.com/games/" + NitromeGame.game_id);
navigateToURL(new URLRequest(_local2), "_blank");
};
};
}
}
}//package com.nitrome.util
Section 184
//MD5 (com.nitrome.util.MD5)
package com.nitrome.util {
public class MD5 {
private var chrsz:int;// = 8
private var b64pad:String;// = ""
public function MD5(_arg1:String=null, _arg2:int=0){
b64pad = "";
chrsz = 8;
super();
if (_arg1 != null){
this.b64pad = _arg1;
};
if (((((!((_arg2 == 0))) && ((_arg2 == 8)))) || ((_arg2 == 16)))){
this.chrsz = _arg2;
};
}
private function binl2b64(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:int;
var _local5:int;
var _local6:int;
_local2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
_local3 = new String("");
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local5 = (((((_arg1[(_local4 >> 2)] >> (8 * (_local4 % 4))) & 0xFF) << 16) | (((_arg1[((_local4 + 1) >> 2)] >> (8 * ((_local4 + 1) % 4))) & 0xFF) << 8)) | ((_arg1[((_local4 + 2) >> 2)] >> (8 * ((_local4 + 2) % 4))) & 0xFF));
_local6 = 0;
while (_local6 < 4) {
if (((_local4 * 8) + (_local6 * 6)) > (_arg1.length * 32)){
_local3 = (_local3 + b64pad);
} else {
_local3 = (_local3 + _local2.charAt(((_local5 >> (6 * (3 - _local6))) & 63)));
};
_local6++;
};
_local4 = (_local4 + 3);
};
return (_local3);
}
private function md5_cmn(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int):int{
return (safe_add(bit_rol(safe_add(safe_add(_arg2, _arg1), safe_add(_arg4, _arg6)), _arg5), _arg3));
}
private function binl2str(_arg1:Array):String{
var _local2:String;
var _local3:int;
var _local4:int;
_local2 = new String("");
_local3 = ((1 << chrsz) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * 32)) {
_local2 = (_local2 + String.fromCharCode(((_arg1[(_local4 >> 5)] >>> (_local4 % 32)) & _local3)));
_local4 = (_local4 + chrsz);
};
return (_local2);
}
private function core_hmac_md5(_arg1:String, _arg2:String):Array{
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:int;
var _local7:Array;
_local3 = new Array(str2binl(_arg1));
if (_local3.length > 16){
_local3 = core_md5(_local3, (_arg1.length * chrsz));
};
_local4 = new Array(16);
_local5 = new Array(16);
_local6 = 0;
while (_local6 < 16) {
_local4[_local6] = (_local3[_local6] ^ 909522486);
_local5[_local6] = (_local3[_local6] ^ 1549556828);
_local6++;
};
_local7 = new Array(core_md5(_local4.concat(str2binl(_arg2)), (0x0200 + (_arg2.length * chrsz))));
return (core_md5(_local5.concat(_local7), (0x0200 + 128)));
}
private function md5_gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (md5_cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private function hex_hmac_md5(_arg1:String, _arg2:String):String{
return (binl2hex(core_hmac_md5(_arg1, _arg2)));
}
public function hash(_arg1:String):String{
return (hex_md5(_arg1));
}
private function md5_ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (md5_cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private function hex_md5(_arg1:String):String{
return (binl2hex(core_md5(str2binl(_arg1), (_arg1.length * chrsz))));
}
private function bit_rol(_arg1:int, _arg2:int):int{
return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
}
private function core_md5(_arg1:Array, _arg2:int):Array{
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
_arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
_arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
_local3 = 1732584193;
_local4 = -271733879;
_local5 = -1732584194;
_local6 = 271733878;
_local7 = 0;
while (_local7 < _arg1.length) {
_local8 = _local3;
_local9 = _local4;
_local10 = _local5;
_local11 = _local6;
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, -680876936);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, -389564586);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, -1044525330);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, -176418897);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, -1473231341);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, -45705983);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, -1958414417);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, -42063);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, -1990404162);
_local3 = md5_ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
_local6 = md5_ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, -40341101);
_local5 = md5_ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, -1502002290);
_local4 = md5_ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, -165796510);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, -1069501632);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, -373897302);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, -701558691);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, -660478335);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, -405537848);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, -1019803690);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, -187363961);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
_local3 = md5_gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, -1444681467);
_local6 = md5_gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, -51403784);
_local5 = md5_gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
_local4 = md5_gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, -1926607734);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, -378558);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, -2022574463);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, -35309556);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, -1530992060);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, -155497632);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, -1094730640);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, -358537222);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, -722521979);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
_local3 = md5_hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, -640364487);
_local6 = md5_hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, -421815835);
_local5 = md5_hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
_local4 = md5_hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, -995338651);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, -198630844);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, -1416354905);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, -57434055);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, -1894986606);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, -1051523);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, -2054922799);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, -30611744);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, -1560198380);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
_local3 = md5_ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, -145523070);
_local6 = md5_ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, -1120210379);
_local5 = md5_ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
_local4 = md5_ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, -343485551);
_local3 = safe_add(_local3, _local8);
_local4 = safe_add(_local4, _local9);
_local5 = safe_add(_local5, _local10);
_local6 = safe_add(_local6, _local11);
_local7 = (_local7 + 16);
};
return (new Array(_local3, _local4, _local5, _local6));
}
private function b64_md5(_arg1:String):String{
return (binl2b64(core_md5(str2binl(_arg1), (_arg1.length * chrsz))));
}
private function md5_hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (md5_cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
}
private function b64_hmac_md5(_arg1:String, _arg2:String):String{
return (binl2b64(core_hmac_md5(_arg1, _arg2)));
}
private function str2binl(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
_local2 = [];
_local3 = ((1 << chrsz) - 1);
_local4 = 0;
while (_local4 < (_arg1.length * chrsz)) {
_local2[(_local4 >> 5)] = (_local2[(_local4 >> 5)] | ((_arg1.charCodeAt((_local4 / chrsz)) & _local3) << (_local4 % 32)));
_local4 = (_local4 + chrsz);
};
return (_local2);
}
private function binl2hex(_arg1:Array):String{
var _local2:String;
var _local3:String;
var _local4:int;
_local2 = "0123456789abcdef";
_local3 = new String("");
_local4 = 0;
while (_local4 < (_arg1.length * 4)) {
_local3 = (_local3 + (_local2.charAt(((_arg1[(_local4 >> 2)] >> (((_local4 % 4) * 8) + 4)) & 15)) + _local2.charAt(((_arg1[(_local4 >> 2)] >> ((_local4 % 4) * 8)) & 15))));
_local4++;
};
return (_local3);
}
private function safe_add(_arg1:Number, _arg2:Number):Number{
var _local3:int;
var _local4:int;
_local3 = ((_arg1 & 0xFFFF) + (_arg2 & 0xFFFF));
_local4 = (((_arg1 >> 16) + (_arg2 >> 16)) + (_local3 >> 16));
return (((_local4 << 16) | (_local3 & 0xFFFF)));
}
private function str_md5(_arg1:String):String{
return (binl2str(core_md5(str2binl(_arg1), (_arg1.length * chrsz))));
}
private function str_hmac_md5(_arg1:String, _arg2:String):String{
return (binl2str(core_hmac_md5(_arg1, _arg2)));
}
private function md5_ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{
return (md5_cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
}
}
}//package com.nitrome.util
Section 185
//RLE (com.nitrome.util.RLE)
package com.nitrome.util {
public class RLE {
public static function compress(_arg1:Array, _arg2:String=":", _arg3:String=","):String{
var _local4:String;
var _local5:Number;
var _local6:int;
_local4 = "";
_local5 = 0;
_local6 = 0;
while (_local6 < _arg1.length) {
_local5++;
if (_arg1[_local6] != _arg1[(_local6 + 1)]){
_local4 = (_local4 + _arg1[_local6]);
if (_local5 > 1){
_local4 = (_local4 + (_arg2 + _local5));
};
if (_local6 < (_arg1.length - 1)){
_local4 = (_local4 + _arg3);
};
_local5 = 0;
};
_local6++;
};
return (_local4);
}
public static function uncompress(_arg1:String, _arg2:String=":", _arg3:String=",", _arg4:RegExp=null, _arg5:String=""):Array{
var _local6:Array;
var _local7:Array;
var _local8:Array;
var _local9:int;
var _local10:Array;
var _local11:int;
var _local12:int;
if (_arg4){
_local6 = _arg1.match(_arg4);
_arg1 = _arg1.replace(_arg4, _arg5);
};
_local7 = [];
_local8 = _arg1.split(_arg3);
_local9 = 0;
while (_local9 < _local8.length) {
if (_local6){
if (_local8[_local9].indexOf(_arg5) > -1){
_local8[_local9] = _local8[_local9].replace(_arg5, _local6.shift());
};
};
if (_local8[_local9].indexOf(_arg2) > -1){
_local10 = _local8[_local9].split(_arg2);
_local11 = parseInt(_local10[1]);
_local12 = 0;
while (_local12 < _local11) {
_local7.push(_local10[0]);
_local12++;
};
} else {
_local7.push(_local8[_local9]);
};
_local9++;
};
return (_local7);
}
}
}//package com.nitrome.util
Section 186
//Score (com.nitrome.util.Score)
package com.nitrome.util {
public class Score {
private static var r:int;
private static var _value:int;
public static function init():void{
r = ((Math.random() * 2000000) - 1000000);
_value = r;
}
public static function get value():int{
return ((_value - r));
}
public static function set value(_arg1:int):void{
r = ((Math.random() * 2000000) - 1000000);
_value = (r + _arg1);
}
}
}//package com.nitrome.util
Section 187
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 188
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 189
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 190
//AgilityBoostMC (AgilityBoostMC)
package {
import com.nitrome.gfx.*;
public dynamic class AgilityBoostMC extends FloatSprite {
}
}//package
Section 191
//AttackBoostMC (AttackBoostMC)
package {
import com.nitrome.gfx.*;
public dynamic class AttackBoostMC extends FloatSprite {
}
}//package
Section 192
//Background (Background)
package {
import com.nitrome.engine.*;
public dynamic class Background extends Background {
public function Background(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50);
}
function frame10(){
stop();
reset();
}
function frame1(){
stop();
reset();
}
function frame20(){
stop();
reset();
}
function frame30(){
stop();
reset();
}
function frame40(){
stop();
reset();
}
function frame50(){
stop();
reset();
}
}
}//package
Section 193
//BatBiteAnim (BatBiteAnim)
package {
import com.nitrome.gfx.*;
public dynamic class BatBiteAnim extends TickClip {
}
}//package
Section 194
//BatDebrisMC1 (BatDebrisMC1)
package {
import flash.display.*;
public dynamic class BatDebrisMC1 extends Sprite {
}
}//package
Section 195
//BatDebrisMC2 (BatDebrisMC2)
package {
import flash.display.*;
public dynamic class BatDebrisMC2 extends Sprite {
}
}//package
Section 196
//BatDebrisMC3 (BatDebrisMC3)
package {
import flash.display.*;
public dynamic class BatDebrisMC3 extends Sprite {
}
}//package
Section 197
//BatDebrisMC4 (BatDebrisMC4)
package {
import flash.display.*;
public dynamic class BatDebrisMC4 extends Sprite {
}
}//package
Section 198
//BatIdleAnim (BatIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class BatIdleAnim extends TickClip {
}
}//package
Section 199
//BatMC (BatMC)
package {
import com.nitrome.gfx.*;
public dynamic class BatMC extends TickClip {
public function BatMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 200
//BatStrikeAnim (BatStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class BatStrikeAnim extends TickClip {
public function BatStrikeAnim(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 201
//BearTrapMC (BearTrapMC)
package {
import flash.display.*;
public dynamic class BearTrapMC extends MovieClip {
public function BearTrapMC(){
addFrameScript(0, frame1, 44, frame45);
}
function frame1(){
stop();
}
function frame45(){
stop();
}
}
}//package
Section 202
//BlastRPGBigFont (BlastRPGBigFont)
package {
import com.nitrome.ui.*;
public dynamic class BlastRPGBigFont extends BlastRPGBigText {
}
}//package
Section 203
//BlastRPGFont (BlastRPGFont)
package {
import com.nitrome.ui.*;
public dynamic class BlastRPGFont extends BlastRPGText {
}
}//package
Section 204
//BoostAuraMC (BoostAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class BoostAuraMC extends TickClip {
public function BoostAuraMC(){
addFrameScript(39, frame40);
}
function frame40(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 205
//BouncerAnim (BouncerAnim)
package {
import com.nitrome.gfx.*;
public dynamic class BouncerAnim extends TickClip {
public function BouncerAnim(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package
Section 206
//BouncerMC (BouncerMC)
package {
import com.nitrome.gfx.*;
public dynamic class BouncerMC extends TickClip {
public function BouncerMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 207
//BouncyAuraMC (BouncyAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class BouncyAuraMC extends TickClip {
public function BouncyAuraMC(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package
Section 208
//BrickAuraMC (BrickAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class BrickAuraMC extends TickClip {
public function BrickAuraMC(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package
Section 209
//CannonBackMC (CannonBackMC)
package {
import flash.display.*;
public dynamic class CannonBackMC extends MovieClip {
}
}//package
Section 210
//CannonMC (CannonMC)
package {
import flash.display.*;
public dynamic class CannonMC extends MovieClip {
public var cannon:MovieClip;
}
}//package
Section 211
//CharismaBoostMC (CharismaBoostMC)
package {
import com.nitrome.gfx.*;
public dynamic class CharismaBoostMC extends FloatSprite {
}
}//package
Section 212
//ChestMC (ChestMC)
package {
import com.nitrome.gfx.*;
public dynamic class ChestMC extends TickClip {
public function ChestMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 213
//ClearButton (ClearButton)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class ClearButton extends ClearButton {
public function ClearButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 214
//CoinDebrisMC (CoinDebrisMC)
package {
import flash.display.*;
public dynamic class CoinDebrisMC extends MovieClip {
}
}//package
Section 215
//CoinFadeMC (CoinFadeMC)
package {
import flash.display.*;
public dynamic class CoinFadeMC extends MovieClip {
}
}//package
Section 216
//CoinMC (CoinMC)
package {
import com.nitrome.gfx.*;
public dynamic class CoinMC extends TickClip {
}
}//package
Section 217
//DeathAuraMC (DeathAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class DeathAuraMC extends TickClip {
public function DeathAuraMC(){
addFrameScript(39, frame40);
}
function frame40(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 218
//DeathBounceAnim (DeathBounceAnim)
package {
import com.nitrome.gfx.*;
public dynamic class DeathBounceAnim extends TickClip {
}
}//package
Section 219
//DebrisPositionsMC (DebrisPositionsMC)
package {
import flash.display.*;
public dynamic class DebrisPositionsMC extends MovieClip {
public var _2:PlayerDebrisMC2;
public var _4:PlayerDebrisMC4;
public var _6:PlayerDebrisMC6;
public var _8:PlayerDebrisMC8;
public var _9:PlayerDebrisMC9;
public var _3:PlayerDebrisMC3;
public var _5:PlayerDebrisMC5;
public var _1:PlayerDebrisMC1;
public var _7:PlayerDebrisMC7;
}
}//package
Section 220
//DefenceBoostMC (DefenceBoostMC)
package {
import com.nitrome.gfx.*;
public dynamic class DefenceBoostMC extends FloatSprite {
}
}//package
Section 221
//DirtDebrisSet1MC1 (DirtDebrisSet1MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC1 extends Sprite {
}
}//package
Section 222
//DirtDebrisSet1MC10 (DirtDebrisSet1MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC10 extends Sprite {
}
}//package
Section 223
//DirtDebrisSet1MC11 (DirtDebrisSet1MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC11 extends Sprite {
}
}//package
Section 224
//DirtDebrisSet1MC12 (DirtDebrisSet1MC12)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC12 extends Sprite {
}
}//package
Section 225
//DirtDebrisSet1MC2 (DirtDebrisSet1MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC2 extends Sprite {
}
}//package
Section 226
//DirtDebrisSet1MC3 (DirtDebrisSet1MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC3 extends Sprite {
}
}//package
Section 227
//DirtDebrisSet1MC4 (DirtDebrisSet1MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC4 extends Sprite {
}
}//package
Section 228
//DirtDebrisSet1MC5 (DirtDebrisSet1MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC5 extends Sprite {
}
}//package
Section 229
//DirtDebrisSet1MC6 (DirtDebrisSet1MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC6 extends Sprite {
}
}//package
Section 230
//DirtDebrisSet1MC7 (DirtDebrisSet1MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC7 extends Sprite {
}
}//package
Section 231
//DirtDebrisSet1MC8 (DirtDebrisSet1MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC8 extends Sprite {
}
}//package
Section 232
//DirtDebrisSet1MC9 (DirtDebrisSet1MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet1MC9 extends Sprite {
}
}//package
Section 233
//DirtDebrisSet2MC1 (DirtDebrisSet2MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC1 extends Sprite {
}
}//package
Section 234
//DirtDebrisSet2MC10 (DirtDebrisSet2MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC10 extends Sprite {
}
}//package
Section 235
//DirtDebrisSet2MC11 (DirtDebrisSet2MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC11 extends Sprite {
}
}//package
Section 236
//DirtDebrisSet2MC12 (DirtDebrisSet2MC12)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC12 extends Sprite {
}
}//package
Section 237
//DirtDebrisSet2MC2 (DirtDebrisSet2MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC2 extends Sprite {
}
}//package
Section 238
//DirtDebrisSet2MC3 (DirtDebrisSet2MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC3 extends Sprite {
}
}//package
Section 239
//DirtDebrisSet2MC4 (DirtDebrisSet2MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC4 extends Sprite {
}
}//package
Section 240
//DirtDebrisSet2MC5 (DirtDebrisSet2MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC5 extends Sprite {
}
}//package
Section 241
//DirtDebrisSet2MC6 (DirtDebrisSet2MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC6 extends Sprite {
}
}//package
Section 242
//DirtDebrisSet2MC7 (DirtDebrisSet2MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC7 extends Sprite {
}
}//package
Section 243
//DirtDebrisSet2MC8 (DirtDebrisSet2MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC8 extends Sprite {
}
}//package
Section 244
//DirtDebrisSet2MC9 (DirtDebrisSet2MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet2MC9 extends Sprite {
}
}//package
Section 245
//DirtDebrisSet3MC1 (DirtDebrisSet3MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC1 extends Sprite {
}
}//package
Section 246
//DirtDebrisSet3MC10 (DirtDebrisSet3MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC10 extends Sprite {
}
}//package
Section 247
//DirtDebrisSet3MC11 (DirtDebrisSet3MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC11 extends Sprite {
}
}//package
Section 248
//DirtDebrisSet3MC2 (DirtDebrisSet3MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC2 extends Sprite {
}
}//package
Section 249
//DirtDebrisSet3MC3 (DirtDebrisSet3MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC3 extends Sprite {
}
}//package
Section 250
//DirtDebrisSet3MC4 (DirtDebrisSet3MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC4 extends Sprite {
}
}//package
Section 251
//DirtDebrisSet3MC5 (DirtDebrisSet3MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC5 extends Sprite {
}
}//package
Section 252
//DirtDebrisSet3MC6 (DirtDebrisSet3MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC6 extends Sprite {
}
}//package
Section 253
//DirtDebrisSet3MC7 (DirtDebrisSet3MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC7 extends Sprite {
}
}//package
Section 254
//DirtDebrisSet3MC8 (DirtDebrisSet3MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC8 extends Sprite {
}
}//package
Section 255
//DirtDebrisSet3MC9 (DirtDebrisSet3MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet3MC9 extends Sprite {
}
}//package
Section 256
//DirtDebrisSet4MC1 (DirtDebrisSet4MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC1 extends Sprite {
}
}//package
Section 257
//DirtDebrisSet4MC10 (DirtDebrisSet4MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC10 extends Sprite {
}
}//package
Section 258
//DirtDebrisSet4MC11 (DirtDebrisSet4MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC11 extends Sprite {
}
}//package
Section 259
//DirtDebrisSet4MC2 (DirtDebrisSet4MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC2 extends Sprite {
}
}//package
Section 260
//DirtDebrisSet4MC3 (DirtDebrisSet4MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC3 extends Sprite {
}
}//package
Section 261
//DirtDebrisSet4MC4 (DirtDebrisSet4MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC4 extends Sprite {
}
}//package
Section 262
//DirtDebrisSet4MC5 (DirtDebrisSet4MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC5 extends Sprite {
}
}//package
Section 263
//DirtDebrisSet4MC6 (DirtDebrisSet4MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC6 extends Sprite {
}
}//package
Section 264
//DirtDebrisSet4MC7 (DirtDebrisSet4MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC7 extends Sprite {
}
}//package
Section 265
//DirtDebrisSet4MC8 (DirtDebrisSet4MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC8 extends Sprite {
}
}//package
Section 266
//DirtDebrisSet4MC9 (DirtDebrisSet4MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet4MC9 extends Sprite {
}
}//package
Section 267
//DirtDebrisSet5MC1 (DirtDebrisSet5MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC1 extends Sprite {
}
}//package
Section 268
//DirtDebrisSet5MC10 (DirtDebrisSet5MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC10 extends Sprite {
}
}//package
Section 269
//DirtDebrisSet5MC11 (DirtDebrisSet5MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC11 extends Sprite {
}
}//package
Section 270
//DirtDebrisSet5MC2 (DirtDebrisSet5MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC2 extends Sprite {
}
}//package
Section 271
//DirtDebrisSet5MC3 (DirtDebrisSet5MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC3 extends Sprite {
}
}//package
Section 272
//DirtDebrisSet5MC4 (DirtDebrisSet5MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC4 extends Sprite {
}
}//package
Section 273
//DirtDebrisSet5MC5 (DirtDebrisSet5MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC5 extends Sprite {
}
}//package
Section 274
//DirtDebrisSet5MC6 (DirtDebrisSet5MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC6 extends Sprite {
}
}//package
Section 275
//DirtDebrisSet5MC7 (DirtDebrisSet5MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC7 extends Sprite {
}
}//package
Section 276
//DirtDebrisSet5MC8 (DirtDebrisSet5MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC8 extends Sprite {
}
}//package
Section 277
//DirtDebrisSet5MC9 (DirtDebrisSet5MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet5MC9 extends Sprite {
}
}//package
Section 278
//DirtDebrisSet6MC1 (DirtDebrisSet6MC1)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC1 extends Sprite {
}
}//package
Section 279
//DirtDebrisSet6MC10 (DirtDebrisSet6MC10)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC10 extends Sprite {
}
}//package
Section 280
//DirtDebrisSet6MC11 (DirtDebrisSet6MC11)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC11 extends Sprite {
}
}//package
Section 281
//DirtDebrisSet6MC2 (DirtDebrisSet6MC2)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC2 extends Sprite {
}
}//package
Section 282
//DirtDebrisSet6MC3 (DirtDebrisSet6MC3)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC3 extends Sprite {
}
}//package
Section 283
//DirtDebrisSet6MC4 (DirtDebrisSet6MC4)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC4 extends Sprite {
}
}//package
Section 284
//DirtDebrisSet6MC5 (DirtDebrisSet6MC5)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC5 extends Sprite {
}
}//package
Section 285
//DirtDebrisSet6MC6 (DirtDebrisSet6MC6)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC6 extends Sprite {
}
}//package
Section 286
//DirtDebrisSet6MC7 (DirtDebrisSet6MC7)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC7 extends Sprite {
}
}//package
Section 287
//DirtDebrisSet6MC8 (DirtDebrisSet6MC8)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC8 extends Sprite {
}
}//package
Section 288
//DirtDebrisSet6MC9 (DirtDebrisSet6MC9)
package {
import flash.display.*;
public dynamic class DirtDebrisSet6MC9 extends Sprite {
}
}//package
Section 289
//EntDebrisMC1 (EntDebrisMC1)
package {
import flash.display.*;
public dynamic class EntDebrisMC1 extends Sprite {
}
}//package
Section 290
//EntDebrisMC2 (EntDebrisMC2)
package {
import flash.display.*;
public dynamic class EntDebrisMC2 extends Sprite {
}
}//package
Section 291
//EntDebrisMC3 (EntDebrisMC3)
package {
import flash.display.*;
public dynamic class EntDebrisMC3 extends Sprite {
}
}//package
Section 292
//EntIdleAnim (EntIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class EntIdleAnim extends TickClip {
}
}//package
Section 293
//EntMC (EntMC)
package {
import com.nitrome.gfx.*;
public dynamic class EntMC extends TickClip {
public function EntMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 294
//EntStrikeAnim (EntStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class EntStrikeAnim extends TickClip {
}
}//package
Section 295
//EntStrikeAnimHolder (EntStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class EntStrikeAnimHolder extends TickClip {
}
}//package
Section 296
//FairyBobAnim (FairyBobAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FairyBobAnim extends TickClip {
}
}//package
Section 297
//FairyGlowAnim (FairyGlowAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FairyGlowAnim extends TickClip {
}
}//package
Section 298
//FairyGlowWhack (FairyGlowWhack)
package {
import com.nitrome.gfx.*;
public dynamic class FairyGlowWhack extends TickClip {
}
}//package
Section 299
//FairyMC (FairyMC)
package {
import com.nitrome.gfx.*;
public dynamic class FairyMC extends TickClip {
public function FairyMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 300
//FairyWhackAnim (FairyWhackAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FairyWhackAnim extends TickClip {
public function FairyWhackAnim(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 301
//FireAuraMC (FireAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class FireAuraMC extends TickClip {
public function FireAuraMC(){
addFrameScript(9, frame10);
}
function frame10(){
gotoAndPlay(1);
}
}
}//package
Section 302
//FireBallAnimStrike (FireBallAnimStrike)
package {
import com.nitrome.gfx.*;
public dynamic class FireBallAnimStrike extends TickClip {
}
}//package
Section 303
//FireBallDebrisMC (FireBallDebrisMC)
package {
import flash.display.*;
public dynamic class FireBallDebrisMC extends Sprite {
}
}//package
Section 304
//FireBallIdleAnim (FireBallIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireBallIdleAnim extends TickClip {
}
}//package
Section 305
//FireBallMC (FireBallMC)
package {
import com.nitrome.gfx.*;
public dynamic class FireBallMC extends TickClip {
public function FireBallMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 306
//FireBallStrikeAnimHolder (FireBallStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class FireBallStrikeAnimHolder extends TickClip {
}
}//package
Section 307
//FireParticleMC (FireParticleMC)
package {
import flash.display.*;
public dynamic class FireParticleMC extends MovieClip {
}
}//package
Section 308
//FireSkeletonDebrisMC1 (FireSkeletonDebrisMC1)
package {
import flash.display.*;
public dynamic class FireSkeletonDebrisMC1 extends Sprite {
}
}//package
Section 309
//FireSkeletonDebrisMC2 (FireSkeletonDebrisMC2)
package {
import flash.display.*;
public dynamic class FireSkeletonDebrisMC2 extends Sprite {
}
}//package
Section 310
//FireSkeletonDebrisMC3 (FireSkeletonDebrisMC3)
package {
import flash.display.*;
public dynamic class FireSkeletonDebrisMC3 extends Sprite {
}
}//package
Section 311
//FireSkeletonDebrisMC4 (FireSkeletonDebrisMC4)
package {
import flash.display.*;
public dynamic class FireSkeletonDebrisMC4 extends Sprite {
}
}//package
Section 312
//FireSkeletonIdleAnim (FireSkeletonIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireSkeletonIdleAnim extends TickClip {
}
}//package
Section 313
//FireSkeletonMC (FireSkeletonMC)
package {
import com.nitrome.gfx.*;
public dynamic class FireSkeletonMC extends TickClip {
public function FireSkeletonMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 314
//FireSkeletonStrikeAnim (FireSkeletonStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireSkeletonStrikeAnim extends TickClip {
}
}//package
Section 315
//FireSkeletonStrikeAnimHolder (FireSkeletonStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class FireSkeletonStrikeAnimHolder extends TickClip {
}
}//package
Section 316
//FireSlimeDebrisMC1 (FireSlimeDebrisMC1)
package {
import flash.display.*;
public dynamic class FireSlimeDebrisMC1 extends Sprite {
}
}//package
Section 317
//FireSlimeDebrisMC2 (FireSlimeDebrisMC2)
package {
import flash.display.*;
public dynamic class FireSlimeDebrisMC2 extends Sprite {
}
}//package
Section 318
//FireSlimeFlyingAnim (FireSlimeFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireSlimeFlyingAnim extends TickClip {
}
}//package
Section 319
//FireSlimeIdleAnim (FireSlimeIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireSlimeIdleAnim extends TickClip {
}
}//package
Section 320
//FireSlimeMC (FireSlimeMC)
package {
import com.nitrome.gfx.*;
public dynamic class FireSlimeMC extends TickClip {
public function FireSlimeMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 321
//FireSlimeStrikeAnim (FireSlimeStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FireSlimeStrikeAnim extends TickClip {
}
}//package
Section 322
//FishDebrisMC1 (FishDebrisMC1)
package {
import flash.display.*;
public dynamic class FishDebrisMC1 extends Sprite {
}
}//package
Section 323
//FishDebrisMC2 (FishDebrisMC2)
package {
import flash.display.*;
public dynamic class FishDebrisMC2 extends Sprite {
}
}//package
Section 324
//FishDebrisMC3 (FishDebrisMC3)
package {
import flash.display.*;
public dynamic class FishDebrisMC3 extends Sprite {
}
}//package
Section 325
//FishIdleAnim (FishIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FishIdleAnim extends TickClip {
}
}//package
Section 326
//FishMC (FishMC)
package {
import com.nitrome.gfx.*;
public dynamic class FishMC extends TickClip {
public function FishMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 327
//FishMeleeIdleAnim (FishMeleeIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FishMeleeIdleAnim extends TickClip {
}
}//package
Section 328
//FishStrikeAnim (FishStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class FishStrikeAnim extends TickClip {
}
}//package
Section 329
//FishStrikeAnimHolder (FishStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class FishStrikeAnimHolder extends TickClip {
}
}//package
Section 330
//FleeAuraMC (FleeAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class FleeAuraMC extends TickClip {
public function FleeAuraMC(){
addFrameScript(39, frame40);
}
function frame40(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 331
//Game (Game)
package {
import flash.display.*;
import com.nitrome.geom.*;
import flash.events.*;
import com.nitrome.engine.*;
import com.nitrome.gfx.*;
import com.nitrome.ui.items.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
import flash.utils.*;
import com.nitrome.sound.*;
import com.nitrome.util.misc.*;
import com.nitrome.util.clips.*;
public class Game extends Sprite {
public var back_fx_image_holder:Bitmap;
public var back_fx_image:BitmapData;
public var fire_particle_bc:BitmapClip;
public var slow_time_count:int;
public var shaker:Sprite;
public var ogre_debris_bss:Array;
public var clicker:Sprite;
public var scroll_manager:ScrollManager;
public var fire_slime_debris_bss:Array;
public var scroller:Scroller;
public var rumble_x:int;
public var rumble_y:int;
public var milestones_mc:MovieClip;
public var tile_holder:Sprite;
public var level_gold:HiddenInt;
private var i:int;
public var high_score_flag_holder:Sprite;
public var purple_bubble_bcs:Array;
public var flag_count:int;
public var completed:Boolean;
public var mouse_pressed:Boolean;
public var trail_bcs:Array;
public var time_state:int;
public var plant_slime_debris_bss:Array;
public var hit_num_holder:Sprite;
public var battle_queue_holder:Sprite;
public var plant_particle_bc:BitmapClip;
public var player_holder:Sprite;
public var shake_dir_x:int;
public var shake_dir_y:int;
public var fx:Array;
public var plant_skeleton_debris_bss:Array;
public var player:Player;
public var best_flag:Flag;
public var landing_count:int;
public var mouse_count:int;
public var gem_fade_bcs:Array;
public var effects:Array;
public var front_fx_image:BitmapData;
public var time_step:Number;// = 1
public var smoke_bc:BitmapClip;
public var mimic_debris_bss:Array;
public var round_count:Number;
public var game_objects_holder:Sprite;
public var cannon_holder:Sprite;
public var paused:Boolean;
public var coin_fade_bc:BitmapClip;
public var dirt_debris_bss:Array;
public var fire_skeleton_debris_bss:Array;
public var front_fx_image_holder:Bitmap;
public var best_ever_flag:Flag;
public var coin_debris_bc:BitmapClip;
public var canvas:Sprite;
public var milestone_holder:Sprite;
public var normal_skeleton_debris_bss:Array;
public var water_particle_bc:BitmapClip;
public var ent_debris_bss:Array;
public var target_dist_passed_notification:Boolean;
public var target_dist_passed:Boolean;
public var high_score_flags:Array;
public var water_slime_debris_bss:Array;
public var water_skeleton_debris_bss:Array;
public var player_debris_bss:Array;
public var target_dist:HiddenInt;
public var previous_flag:Flag;
public var fire_ball_debris_bss:Array;
public var frame_count:int;
public var ground_y:Number;
public var fish_debris_bss:Array;
public var game_objects:Array;
public var gorgon_debris_bss:Array;
public var melee_manager:MeleeManager;
public var flag_holder:Sprite;
public var bat_debris_bss:Array;
public var tick_count:Number;
public var star_fade_bc:BitmapClip;
public var rumble_count:int;
public static const SLOW_TIME:int = 1;
public static const TRIANGLE_GUIDE_ICONS:Array = [undefined, "fire", "water", "plant"];
public static const SLOW_TIME_STEP:Number = 0.2;
public static const FLAG_DELAY:int = 60;
public static const TIME_INTERPOLATION:Number = 0.2;
public static const SCORE_DIGITS:int = 7;
public static const TARGET_DISTS:Array = [undefined, 15000, 30000, 60000, 90000, 120000, 150000];
public static const DEAD_LANDING_DELAY:int = 80;
public static const LANDING_DELAY:int = 110;
public static const DEFAULT_TIME_STEP:Number = 1;
public static const CANNON_X_OFFSET:Number = 70;
public static const SCALE:Number = 25;
public static const DEFAULT_TIME:int = 0;
public static const WIDTH:Number = 550;
public static const HEIGHT:Number = 350;
public static const SLOW_TIME_DELAY:int = 30;
public static const MAP_SIZE:int = 66;
public static const INV_SCALE:Number = 0.04;
public static const GROUND_CLIP_HEIGHT:Number = 55;
public static var round:Boolean;
public static var debug:Graphics;
public static var g:Game;
public static var tick:Boolean;
public static var inv_overshoot_step:Number = 3.33333333333333E-5;
public function Game(){
time_step = 1;
super();
g = this;
LevelFragment.init();
addEventListener(Event.ENTER_FRAME, transistionWait, false, 0, true);
}
private function updateEffects():void{
i = 0;
while (i < effects.length) {
if (round){
if (effects[i].active){
effects[i].main();
} else {
effects.splice(i, 1);
i--;
};
};
if ((((i > -1)) && (effects[i].active))){
effects[i].updateMC();
};
i++;
};
}
public function gameOver():void{
if (completed){
return;
};
completed = true;
if (player.active){
addScore((player.x - CANNON_X_OFFSET));
};
if (player.active){
player.gold.value = (player.gold.value + level_gold.value);
};
EquipmentBar.setSharedObject();
PlayerStats.setSharedObject();
NitromeGame.timeline.popup_holder.launchPopUp("finish_throw");
}
public function setTriangleGuideElement(_arg1:int):void{
var _local2:int;
if (_arg1 == 0){
NitromeGame.timeline.triangle.visible = false;
} else {
NitromeGame.timeline.triangle.visible = true;
};
_local2 = 0;
while (_local2 < TRIANGLE_GUIDE_ICONS.length) {
if (TRIANGLE_GUIDE_ICONS[_local2]){
if (_arg1 == _local2){
NitromeGame.timeline.triangle[TRIANGLE_GUIDE_ICONS[_local2]].gotoAndPlay(1);
} else {
NitromeGame.timeline.triangle[TRIANGLE_GUIDE_ICONS[_local2]].gotoAndStop(1);
};
};
_local2++;
};
}
public function initPlayer():void{
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:Sprite;
_local1 = new CannonMC();
cannon_holder.addChild(_local1);
_local1.x = CANNON_X_OFFSET;
_local1.y = ground_y;
_local2 = new CannonBackMC();
game_objects_holder.addChild(_local2);
_local2.x = CANNON_X_OFFSET;
_local2.y = (_local1.y + _local1.cannon.y);
_local3 = new PlayerMC();
player_holder.addChild(_local3);
_local3.x = CANNON_X_OFFSET;
_local3.y = (_local1.y + _local1.cannon.y);
player = new Player(_local3, _local1, _local2, 15, this);
scroll_manager = new ScrollManager(this, player);
melee_manager = new MeleeManager(this);
}
public function clearAll():void{
clearListeners();
while (canvas.numChildren > 0) {
canvas.removeChildAt(0);
};
while (numChildren > 0) {
removeChildAt(0);
};
}
public function mouseUp(_arg1:MouseEvent=null):void{
mouse_pressed = false;
}
public function slowTime():void{
time_state = SLOW_TIME;
slow_time_count = SLOW_TIME_DELAY;
time_step = SLOW_TIME_STEP;
}
public function updateInterface():void{
var _local1:String;
var _local2:int;
_local1 = ("" + (0.1 * (player.x - player.cannon_mc.x)));
_local2 = _local1.indexOf(".");
if (_local2 == -1){
_local1 = (_local1 + ".0");
} else {
_local1 = _local1.substr(0, (_local2 + 2));
};
NitromeGame.timeline.distance_text.text = ("" + _local1);
NitromeGame.timeline.gold_text.text = ("" + (player.gold.value + level_gold.value));
if (!target_dist_passed_notification){
if (player.x >= g.target_dist.value){
NitromeGame.timeline.msg.msg_holder.msg.text = "target passed!";
NitromeGame.timeline.msg.gotoAndPlay("show");
target_dist_passed_notification = true;
};
};
}
public function addScore(_arg1:int):void{
NitromeGame.level_score = (NitromeGame.level_score + _arg1);
Score.value = (Score.value + _arg1);
}
private function updateShaker():void{
if (shaker.y != 0){
shaker.y = -(shaker.y);
if ((((shake_dir_y == 1)) && ((shaker.y > 0)))){
shaker.y--;
};
if ((((shake_dir_y == -1)) && ((shaker.y < 0)))){
shaker.y++;
};
};
if (shaker.x != 0){
shaker.x = -(shaker.x);
if ((((shake_dir_x == 1)) && ((shaker.x > 0)))){
shaker.x--;
};
if ((((shake_dir_x == -1)) && ((shaker.x < 0)))){
shaker.x++;
};
};
if (rumble_count > 0){
rumble_count--;
if (((!((rumble_x == 0))) && ((shaker.x == 0)))){
shake(rumble_x, 0);
};
if (((!((rumble_y == 0))) && ((shaker.y == 0)))){
shake(0, rumble_y);
};
} else {
if (rumble_x != 0){
rumble_x = 0;
} else {
if (rumble_y != 0){
rumble_y = 0;
};
};
};
}
private function transistionWait(_arg1:Event):void{
if (((!(NitromeGame.timeline.tt.tweening)) && (LevelFragment.loaded))){
removeEventListener(Event.ENTER_FRAME, transistionWait);
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
};
}
public function rumble(_arg1:int, _arg2:int, _arg3:int):void{
rumble_count = _arg3;
rumble_x = _arg1;
rumble_y = _arg2;
}
private function addListeners():void{
clicker.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true);
clicker.addEventListener(MouseEvent.MOUSE_UP, mouseUp, false, 0, true);
Key.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
addEventListener(Event.ENTER_FRAME, main, false, 0, true);
}
public function coinBang(_arg1:Number, _arg2:Number, _arg3:Dot):void{
var _local4:int;
_local4 = 0;
while (_local4 < 360) {
addFX(_arg1, _arg2, coin_fade_bc, front_fx_image, front_fx_image_holder, new Dot(((_arg3.x + (Trig.cos[_local4] * 3)) + (scroll_manager.last_canvas_x - scroll_manager.canvas.x)), (_arg3.y + (Trig.sin[_local4] * 3))));
_local4 = (_local4 + 30);
};
}
public function dismissAllEffects():void{
var _local1:int;
_local1 = 0;
while (_local1 < effects.length) {
effects[_local1].dismiss();
_local1++;
};
}
public function dismissAllEffectsOnCharacter(_arg1:Character):void{
var _local2:int;
_local2 = 0;
while (_local2 < effects.length) {
if (effects[_local2].target == _arg1){
effects[_local2].dismiss();
};
_local2++;
};
}
public function clearListeners():void{
clicker.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
clicker.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
Key.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown);
removeEventListener(Event.ENTER_FRAME, main);
NitromeGame.sound_manager.killLoops();
Key.forceClearKeys();
}
public function shake(_arg1:int, _arg2:int):void{
if (Math.abs(_arg1) < Math.abs(shaker.x)){
return;
};
if (Math.abs(_arg2) < Math.abs(shaker.y)){
return;
};
shaker.x = _arg1;
shaker.y = _arg2;
shake_dir_x = ((_arg1 > 0)) ? 1 : -1;
shake_dir_y = ((_arg2 > 0)) ? 1 : -1;
}
public function pauseGame(_arg1:String="game_paused"):void{
var _local2:int;
if ((((((((landing_count > 0)) || ((flag_count > 0)))) || (!(player.active)))) || (completed))){
return;
};
if (!paused){
stopClips(canvas);
paused = true;
NitromeGame.timeline.popup_holder.launchPopUp(_arg1);
} else {
startClips(canvas);
_local2 = 0;
while (_local2 < game_objects.length) {
game_objects[_local2].unpause();
_local2++;
};
if (((player) && (player.cannon_mc))){
if (player.cannon_mc.cannon.smoke.currentLabel != "fire"){
player.cannon_mc.cannon.smoke.gotoAndStop(1);
};
};
NitromeGame.timeline.popup_holder.hidePopUp();
paused = false;
};
}
public function mouseDown(_arg1:MouseEvent=null):void{
mouse_count = frame_count;
mouse_pressed = true;
}
public function updateTimeState():void{
if (time_state == DEFAULT_TIME){
if (time_step < DEFAULT_TIME_STEP){
time_step = (time_step + ((DEFAULT_TIME_STEP - time_step) * TIME_INTERPOLATION));
};
} else {
if (time_state == SLOW_TIME){
if (slow_time_count){
slow_time_count--;
} else {
time_state = DEFAULT_TIME;
};
if (time_step > SLOW_TIME_STEP){
time_step = (time_step + ((SLOW_TIME_STEP - time_step) * TIME_INTERPOLATION));
};
};
};
}
public function addFX(_arg1:Number, _arg2:Number, _arg3:BitmapSprite, _arg4:BitmapData, _arg5:Bitmap, _arg6:Dot=null, _arg7:Boolean=false):void{
fx.push(new FX(_arg1, _arg2, _arg3, _arg4, _arg5, this, _arg6, 0, _arg7));
}
public function updateFlags():void{
var _local1:GrabFade;
NitromeGame.previous_throw[(NitromeGame.selected_level - 1)] = player.x;
if (player.x > NitromeGame.best_ever_throw){
_local1 = new GrabFade(best_ever_flag);
flag_holder.addChildAt(_local1, 0);
NitromeGame.best_ever_throw = player.x;
best_ever_flag.x = NitromeGame.best_ever_throw;
NitromeGame.setValue(("best_ever" + NitromeGame.selected_level), NitromeGame.best_ever_throw);
best_ever_flag.hide();
best_ever_flag.show();
};
if (player.x > NitromeGame.best_throw[(NitromeGame.selected_level - 1)]){
_local1 = new GrabFade(best_flag);
flag_holder.addChildAt(_local1, 0);
NitromeGame.best_throw[(NitromeGame.selected_level - 1)] = player.x;
best_flag.x = NitromeGame.best_throw[(NitromeGame.selected_level - 1)];
best_flag.hide();
best_flag.show();
};
}
private function init(_arg1:Event=null):void{
var debug_shape:Shape;
var unlock_flag_mc:Sprite;
var debris_class:Class;
var e = _arg1;
removeEventListener(Event.ADDED_TO_STAGE, init);
game_objects = [];
fx = [];
effects = [];
shaker = new Sprite();
addChild(shaker);
canvas = new Sprite();
shaker.addChild(canvas);
clicker = NitromeGame.timeline.clicker;
back_fx_image = new BitmapData(WIDTH, HEIGHT, true, 0);
back_fx_image_holder = new Bitmap(back_fx_image);
milestone_holder = new Sprite();
tile_holder = new Sprite();
game_objects_holder = new Sprite();
high_score_flag_holder = new Sprite();
flag_holder = new Sprite();
battle_queue_holder = new Sprite();
player_holder = new Sprite();
cannon_holder = new Sprite();
hit_num_holder = new Sprite();
front_fx_image = new BitmapData(WIDTH, HEIGHT, true, 0);
front_fx_image_holder = new Bitmap(front_fx_image);
debug_shape = new Shape();
debug = debug_shape.graphics;
canvas.addChild(milestone_holder);
canvas.addChild(tile_holder);
canvas.addChild(back_fx_image_holder);
canvas.addChild(high_score_flag_holder);
canvas.addChild(game_objects_holder);
canvas.addChild(flag_holder);
canvas.addChild(battle_queue_holder);
canvas.addChild(player_holder);
canvas.addChild(cannon_holder);
canvas.addChild(hit_num_holder);
canvas.addChild(front_fx_image_holder);
canvas.addChild(debug_shape);
trail_bcs = [new BitmapClip(new TrailMC1()), new BitmapClip(new TrailMC2()), new BitmapClip(new TrailMC3()), new BitmapClip(new TrailMC4())];
i = 0;
while (i < trail_bcs.length) {
trail_bcs[i].compress();
i++;
};
smoke_bc = new BitmapClip(new SmokeMC());
star_fade_bc = new BitmapClip(new StarFadeMC());
coin_fade_bc = new BitmapClip(new CoinFadeMC());
gem_fade_bcs = [new BitmapClip(new GemFadeMC1()), new BitmapClip(new GemFadeMC2()), new BitmapClip(new GemFadeMC3()), new BitmapClip(new GemFadeMC4())];
purple_bubble_bcs = [new BitmapClip(new PurpleBubbleMC1()), new BitmapClip(new PurpleBubbleMC2()), new BitmapClip(new PurpleBubbleMC3())];
fire_particle_bc = new BitmapClip(new FireParticleMC());
fire_particle_bc.compress();
water_particle_bc = new BitmapClip(new WaterParticleMC());
water_particle_bc.compress();
plant_particle_bc = new BitmapClip(new PlantParticleMC());
plant_particle_bc.compress();
bat_debris_bss = [new BitmapSprite(new BatDebrisMC2()), new BitmapSprite(new BatDebrisMC1()), new BitmapSprite(new BatDebrisMC3()), new BitmapSprite(new BatDebrisMC4())];
fire_slime_debris_bss = [new BitmapSprite(new FireSlimeDebrisMC2()), new BitmapSprite(new FireSlimeDebrisMC1())];
water_slime_debris_bss = [new BitmapSprite(new WaterSlimeDebrisMC2()), new BitmapSprite(new WaterSlimeDebrisMC1())];
plant_slime_debris_bss = [new BitmapSprite(new PlantSlimeDebrisMC2()), new BitmapSprite(new PlantSlimeDebrisMC1())];
ogre_debris_bss = [new BitmapSprite(new OgreDebrisMC3()), new BitmapSprite(new OgreDebrisMC2()), new BitmapSprite(new OgreDebrisMC1())];
mimic_debris_bss = [new BitmapSprite(new MimicDebrisMC1()), new BitmapSprite(new MimicDebrisMC2()), new BitmapSprite(new MimicDebrisMC3())];
normal_skeleton_debris_bss = [new BitmapSprite(new NormalSkeletonDebrisMC1()), new BitmapSprite(new NormalSkeletonDebrisMC2()), new BitmapSprite(new NormalSkeletonDebrisMC3()), new BitmapSprite(new NormalSkeletonDebrisMC4())];
fire_skeleton_debris_bss = [new BitmapSprite(new FireSkeletonDebrisMC1()), new BitmapSprite(new FireSkeletonDebrisMC2()), new BitmapSprite(new FireSkeletonDebrisMC3()), new BitmapSprite(new FireSkeletonDebrisMC4())];
water_skeleton_debris_bss = [new BitmapSprite(new WaterSkeletonDebrisMC1()), new BitmapSprite(new WaterSkeletonDebrisMC2()), new BitmapSprite(new WaterSkeletonDebrisMC3()), new BitmapSprite(new WaterSkeletonDebrisMC4())];
plant_skeleton_debris_bss = [new BitmapSprite(new PlantSkeletonDebrisMC1()), new BitmapSprite(new PlantSkeletonDebrisMC2()), new BitmapSprite(new PlantSkeletonDebrisMC3()), new BitmapSprite(new PlantSkeletonDebrisMC4())];
ent_debris_bss = [new BitmapSprite(new EntDebrisMC3()), new BitmapSprite(new EntDebrisMC2()), new BitmapSprite(new EntDebrisMC1())];
fire_ball_debris_bss = [new BitmapSprite(new FireBallDebrisMC())];
fish_debris_bss = [new BitmapSprite(new FishDebrisMC2()), new BitmapSprite(new FishDebrisMC3()), new BitmapSprite(new FishDebrisMC1())];
gorgon_debris_bss = [new BitmapSprite(new GorgonDebrisMC())];
player_debris_bss = [new BitmapSprite(new PlayerDebrisMC1()), new BitmapSprite(new PlayerDebrisMC2()), new BitmapSprite(new PlayerDebrisMC3()), new BitmapSprite(new PlayerDebrisMC4()), new BitmapSprite(new PlayerDebrisMC5()), new BitmapSprite(new PlayerDebrisMC6()), new BitmapSprite(new PlayerDebrisMC7()), new BitmapSprite(new PlayerDebrisMC8()), new BitmapSprite(new PlayerDebrisMC9())];
dirt_debris_bss = [];
i = 1;
while (i < 13) {
try {
debris_class = (getDefinitionByName(((("DirtDebrisSet" + NitromeGame.selected_level) + "MC") + i)) as Class);
dirt_debris_bss.push(new BitmapSprite(new (debris_class)));
} catch(e:Error) {
};
i++;
};
coin_debris_bc = new BitmapClip(new CoinDebrisMC());
coin_debris_bc.compress();
time_state = DEFAULT_TIME;
mouse_count = -1;
frame_count = 0;
tick_count = 0;
tick = true;
round_count = 0;
round = true;
ground_y = (HEIGHT - GROUND_CLIP_HEIGHT);
shake_dir_x = 0;
shake_dir_y = 0;
target_dist = new HiddenInt(TARGET_DISTS[NitromeGame.selected_level]);
unlock_flag_mc = new UnlockFlagMC();
unlock_flag_mc.x = target_dist.value;
unlock_flag_mc.y = ground_y;
milestone_holder.addChild(unlock_flag_mc);
target_dist_passed = (target_dist_passed_notification = (NitromeGame.last_level > NitromeGame.selected_level));
if (NitromeGame.selected_level == NitromeGame.total_levels){
target_dist_passed = NitromeGame.completed;
};
level_gold = new HiddenInt();
milestones_mc = new MilestonesMC();
milestones_mc.x = (500 + CANNON_X_OFFSET);
milestones_mc.y = ground_y;
milestone_holder.addChild(milestones_mc);
ShopStockBar.refresh = true;
NitromeGame.timeline.enemy_bar.visible = false;
createLevel();
}
public function reset():void{
if (!paused){
Score.value = 0;
NitromeGame.level_score = 0;
};
}
public function initFlags():void{
previous_flag = new Flag("red", "previous");
best_flag = new Flag("green", "best");
best_ever_flag = new Flag("yellow", "best ever!");
previous_flag.y = ground_y;
best_flag.y = ground_y;
best_ever_flag.y = ground_y;
flag_holder.addChild(previous_flag);
flag_holder.addChild(best_flag);
flag_holder.addChild(best_ever_flag);
previous_flag.x = NitromeGame.previous_throw[(NitromeGame.selected_level - 1)];
best_flag.x = NitromeGame.best_throw[(NitromeGame.selected_level - 1)];
NitromeGame.best_ever_throw = NitromeGame.getValue(("best_ever" + NitromeGame.selected_level), NitromeGame.save_slot);
if (NitromeGame.best_ever_throw){
best_ever_flag.x = NitromeGame.best_ever_throw;
} else {
best_ever_flag.x = -500;
NitromeGame.best_ever_throw = -500;
};
if (NitromeGame.isAtURL(NitromeGame.NITROME_URL)){
if (NitromeGame.high_score_buffer[(NitromeGame.selected_level - 1)] != "0"){
initHighScoreFlags(NitromeGame.high_score_buffer[(NitromeGame.selected_level - 1)]);
};
};
}
private function updateFX():void{
i = 0;
while (i < fx.length) {
if (((fx[i].active) && (onScreen(fx[i].x, fx[i].y, this, fx[i].bitmap.width)))){
fx[i].main();
} else {
fx.splice(i, 1);
i--;
};
i++;
};
}
public function addDebris(_arg1:Number, _arg2:Number, _arg3:BitmapSprite, _arg4:Number=0, _arg5:Number=0, _arg6:Boolean=false, _arg7:Number=1, _arg8:Boolean=false):void{
var _local9:DebrisFX;
_local9 = new DebrisFX(_arg1, _arg2, _arg3, (_arg8) ? back_fx_image : front_fx_image, (_arg8) ? back_fx_image_holder : front_fx_image_holder, this, _arg6, _arg7);
_local9.addVelocity(_arg4, _arg5);
fx.push(_local9);
}
public function startGame():void{
NitromeGame.sound_manager.crossFade(SoundManager.GAME);
initPlayer();
addListeners();
NitromeGame.timeline.loading_clip.gotoAndPlay("fade_out");
if (!target_dist_passed){
NitromeGame.timeline.msg.msg_holder.msg.text = (("target: " + ((target_dist.value / 10) >> 0)) + "m");
NitromeGame.timeline.msg.gotoAndPlay("show");
};
}
public function initHighScoreFlags(_arg1:String):void{
var _local2:int;
var _local3:Object;
var _local4:Flag;
if (_arg1 != "0"){
_local2 = 10;
while (_local2 > 0) {
_local3 = NitromeGame.getHighScoreLine(_arg1, _local2);
if (_local3){
_local4 = new Flag("blue", ((_local2 + ": ") + _local3.username));
_local4.x = _local3.score;
_local4.y = ground_y;
high_score_flag_holder.addChildAt(_local4, 0);
};
_local2--;
};
};
}
public function addEffect(_arg1:int, _arg2:int, _arg3:Character, _arg4:int=0):void{
effects.push(new Effect(_arg1, _arg2, _arg3, this, _arg4));
}
public function keyDown(_arg1:KeyboardEvent=null):void{
if (Key.isDown(Key.P)){
pauseGame();
};
if (Key.isDown(Key.H)){
pauseGame("game_help");
};
}
public function starBang(_arg1:Number, _arg2:Number, _arg3:Dot):void{
var _local4:int;
_local4 = 0;
while (_local4 < 360) {
addFX(_arg1, _arg2, star_fade_bc, front_fx_image, front_fx_image_holder, new Dot(((_arg3.x + (Trig.cos[_local4] * 3)) + (scroll_manager.last_canvas_x - scroll_manager.canvas.x)), (_arg3.y + (Trig.sin[_local4] * 3))));
_local4 = (_local4 + 30);
};
}
public function main(_arg1:Event=null):void{
debug.clear();
debug.lineStyle(2, 0xFF0000);
if (!paused){
player.main();
i = 0;
while (i < game_objects.length) {
if (game_objects[i].active){
if (game_objects[i].call_main){
game_objects[i].main();
};
} else {
if ((game_objects[i].mc is MovieClip)){
stopClips(game_objects[i].mc);
};
game_objects[i].mc.parent.removeChild(game_objects[i].mc);
game_objects.splice(i, 1);
i--;
};
i++;
};
updateEffects();
melee_manager.main();
updateShaker();
scroll_manager.scroll();
updateTimeState();
back_fx_image.fillRect(back_fx_image.rect, 0);
front_fx_image.fillRect(back_fx_image.rect, 0);
back_fx_image_holder.x = -(canvas.x);
back_fx_image_holder.y = -(canvas.y);
front_fx_image_holder.x = -(canvas.x);
front_fx_image_holder.y = -(canvas.y);
updateFX();
if (!completed){
updateInterface();
};
frame_count++;
tick = (((tick_count + time_step) >> 0) > (tick_count >> 0));
round = ((((tick_count + time_step) * 0.05) >> 0) > ((tick_count * 0.05) >> 0));
tick_count = (tick_count + time_step);
if (landing_count){
landing_count--;
if (landing_count == 0){
if (player.active){
flag_count = FLAG_DELAY;
updateFlags();
} else {
gameOver();
};
};
};
if (flag_count){
flag_count--;
if (flag_count == 0){
gameOver();
};
};
};
if (((!(paused)) && (((((player.active) && ((player.state == Player.FLYING)))) || ((player.state == Player.COMBAT)))))){
if (((mouse_pressed) && ((NitromeGame.timeline.mouseY < HEIGHT)))){
NitromeGame.custom_mouse.directed = true;
NitromeGame.custom_mouse.directed_angle = (player.target_line.atan2() * Trig.DEGREES);
if (NitromeGame.custom_mouse.currentLabel == "down"){
NitromeGame.custom_mouse.gotoAndStop("direction");
};
} else {
NitromeGame.custom_mouse.directed = false;
};
} else {
NitromeGame.custom_mouse.directed = false;
};
}
public function createLevel():void{
var _local1:int;
var _local2:int;
var _local3:Boolean;
var _local4:Array;
scroller = new Scroller(this, canvas, tile_holder, SCALE, 20, 0, WIDTH, HEIGHT);
i = 0;
while (i < 1) {
_local3 = false;
_local4 = new Array(MAP_SIZE);
if (i == 0){
scroller.addTileLayer(game_objects_holder);
};
scroller.addLayer(_local4, _local3);
i++;
};
_local1 = (canvas.x * Game.INV_SCALE);
_local2 = (canvas.y * Game.INV_SCALE);
scroller.clipManager();
while ((-(_local1) + 44) > scroller.width) {
LevelFragment.getQueueData().addToMap(scroller, scroller.width);
};
scroller.renderBeginning(0, 0);
initFlags();
startGame();
}
public function starBurst(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
var _local5:Number;
_local5 = 3;
addFX(_arg1, _arg2, star_fade_bc, front_fx_image, front_fx_image_holder, new Dot(((_arg3 * _local5) + (g.scroll_manager.last_canvas_x - g.scroll_manager.canvas.x)), (_arg4 * _local5)));
addFX(_arg1, _arg2, star_fade_bc, front_fx_image, front_fx_image_holder, new Dot((((_arg3 - _arg4) * _local5) + (g.scroll_manager.last_canvas_x - g.scroll_manager.canvas.x)), ((_arg4 + _arg3) * _local5)));
addFX(_arg1, _arg2, star_fade_bc, front_fx_image, front_fx_image_holder, new Dot((((_arg3 + _arg4) * _local5) + (g.scroll_manager.last_canvas_x - g.scroll_manager.canvas.x)), ((_arg4 - _arg3) * _local5)));
}
}
}//package
Section 332
//GameMusic (GameMusic)
package {
import flash.media.*;
public dynamic class GameMusic extends Sound {
}
}//package
Section 333
//GemFadeMC1 (GemFadeMC1)
package {
import flash.display.*;
public dynamic class GemFadeMC1 extends MovieClip {
}
}//package
Section 334
//GemFadeMC2 (GemFadeMC2)
package {
import flash.display.*;
public dynamic class GemFadeMC2 extends MovieClip {
}
}//package
Section 335
//GemFadeMC3 (GemFadeMC3)
package {
import flash.display.*;
public dynamic class GemFadeMC3 extends MovieClip {
}
}//package
Section 336
//GemFadeMC4 (GemFadeMC4)
package {
import flash.display.*;
public dynamic class GemFadeMC4 extends MovieClip {
}
}//package
Section 337
//GemMC1 (GemMC1)
package {
import com.nitrome.gfx.*;
public dynamic class GemMC1 extends TickClip {
}
}//package
Section 338
//GemMC2 (GemMC2)
package {
import com.nitrome.gfx.*;
public dynamic class GemMC2 extends TickClip {
}
}//package
Section 339
//GemMC3 (GemMC3)
package {
import com.nitrome.gfx.*;
public dynamic class GemMC3 extends TickClip {
}
}//package
Section 340
//GemMC4 (GemMC4)
package {
import com.nitrome.gfx.*;
public dynamic class GemMC4 extends TickClip {
}
}//package
Section 341
//GorgonAnimIdle (GorgonAnimIdle)
package {
import com.nitrome.gfx.*;
public dynamic class GorgonAnimIdle extends TickClip {
}
}//package
Section 342
//GorgonDebrisMC (GorgonDebrisMC)
package {
import flash.display.*;
public dynamic class GorgonDebrisMC extends Sprite {
}
}//package
Section 343
//GorgonMC (GorgonMC)
package {
import com.nitrome.gfx.*;
public dynamic class GorgonMC extends TickClip {
public function GorgonMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 344
//GorgonStrikeAnim (GorgonStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class GorgonStrikeAnim extends TickClip {
}
}//package
Section 345
//GorgonStrikeAnimHolder (GorgonStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class GorgonStrikeAnimHolder extends TickClip {
}
}//package
Section 346
//HealthAuraMC (HealthAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class HealthAuraMC extends TickClip {
public function HealthAuraMC(){
addFrameScript(39, frame40);
}
function frame40(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 347
//HighScoreBoard (HighScoreBoard)
package {
import flash.utils.*;
import com.nitrome.highscore.*;
public dynamic class HighScoreBoard extends HighScoreBoard {
public var __id10_:BlastRPGBigFont;
public var __setPropDict:Dictionary;
public var __id9_:BlastRPGBigFont;
public function HighScoreBoard(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame10(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame12(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame14(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame15(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame1(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
stop();
}
function frame19(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame11(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame6(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame13(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame17(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame18(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame5(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame20(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function frame9(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame2(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function __setProp___id10__HighScoreBoard_Layer2_10(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.align = "center";
__id10_.align_vert = "center";
__id10_.color = 0xFFFFFF;
__id10_.line_spacing = 40;
__id10_.preview_text = "scores are available|at nitrome.com";
__id10_.tracking = -1;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id9__HighScoreBoard_Layer2_10(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.align = "center";
__id9_.align_vert = "center";
__id9_.color = 0xFFFFFF;
__id9_.line_spacing = 40;
__id9_.preview_text = "click to play at|nitrome.com";
__id9_.tracking = -1;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame3(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame16(){
if ((((__setPropDict[__id9_] == undefined)) || (!((((int(__setPropDict[__id9_]) >= 10)) && ((int(__setPropDict[__id9_]) <= 20))))))){
__setPropDict[__id9_] = currentFrame;
__setProp___id9__HighScoreBoard_Layer2_10();
};
if ((((__setPropDict[__id10_] == undefined)) || (!((((int(__setPropDict[__id10_]) >= 10)) && ((int(__setPropDict[__id10_]) <= 20))))))){
__setPropDict[__id10_] = currentFrame;
__setProp___id10__HighScoreBoard_Layer2_10();
};
}
function __setProp_loading_text_HighScoreBoard_Layer3_1(){
try {
loading_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
loading_text.align = "center";
loading_text.align_vert = "center";
loading_text.color = 0xFFFFFF;
loading_text.line_spacing = 40;
loading_text.preview_text = "loading";
loading_text.tracking = -1;
try {
loading_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_level_num_HighScoreBoard_Layer4_1(){
try {
level_num["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_num.align = "center";
level_num.align_vert = "center";
level_num.color = 0xFFFFFF;
level_num.line_spacing = 22;
level_num.preview_text = "level 1";
level_num.tracking = -2;
try {
level_num["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame4(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame7(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
function frame8(){
if ((((__setPropDict[loading_text] == undefined)) || (!((((int(__setPropDict[loading_text]) >= 1)) && ((int(__setPropDict[loading_text]) <= 9))))))){
__setPropDict[loading_text] = currentFrame;
__setProp_loading_text_HighScoreBoard_Layer3_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_HighScoreBoard_Layer4_1();
};
}
}
}//package
Section 348
//holder (holder)
package {
import flash.display.*;
public dynamic class holder extends Sprite {
}
}//package
Section 349
//HutsMC1 (HutsMC1)
package {
import flash.display.*;
public dynamic class HutsMC1 extends Sprite {
}
}//package
Section 350
//HutsMC2 (HutsMC2)
package {
import flash.display.*;
public dynamic class HutsMC2 extends Sprite {
}
}//package
Section 351
//HutsMC3 (HutsMC3)
package {
import flash.display.*;
public dynamic class HutsMC3 extends Sprite {
}
}//package
Section 352
//HutsMC4 (HutsMC4)
package {
import flash.display.*;
public dynamic class HutsMC4 extends Sprite {
}
}//package
Section 353
//HutsMC5 (HutsMC5)
package {
import flash.display.*;
public dynamic class HutsMC5 extends Sprite {
}
}//package
Section 354
//HutsMC6 (HutsMC6)
package {
import flash.display.*;
public dynamic class HutsMC6 extends Sprite {
}
}//package
Section 355
//IconPopMC (IconPopMC)
package {
import flash.display.*;
public dynamic class IconPopMC extends MovieClip {
public function IconPopMC(){
addFrameScript(20, frame21);
}
function frame21(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 356
//InvincibleAuraMC (InvincibleAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class InvincibleAuraMC extends TickClip {
public function InvincibleAuraMC(){
addFrameScript(19, frame20);
}
function frame20(){
gotoAndPlay(1);
}
}
}//package
Section 357
//KnightCryAnim (KnightCryAnim)
package {
import flash.display.*;
import com.nitrome.gfx.*;
public dynamic class KnightCryAnim extends TickClip {
public function KnightCryAnim(){
addFrameScript(14, frame15, 45, frame46);
}
function frame15(){
if (NitromeGame.timeline.currentLabel == "play_game"){
if (((parent) && (((parent as MovieClip).currentLabel == "dead_landed")))){
NitromeGame.sound_manager.playSound("crying");
};
};
}
function frame46(){
gotoAndPlay("cry");
}
}
}//package
Section 358
//LavaAnim (LavaAnim)
package {
import com.nitrome.gfx.*;
public dynamic class LavaAnim extends TickClip {
}
}//package
Section 359
//LetterButton (LetterButton)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class LetterButton extends LetterButton {
public function LetterButton(){
addFrameScript(0, frame1, 9, frame10);
__setProp_letter_LetterButton_Layer8_1();
}
function __setProp_letter_LetterButton_Layer8_1(){
try {
letter["componentInspectorSetting"] = true;
} catch(e:Error) {
};
letter.align = "center";
letter.align_vert = "center";
letter.color = 14729344;
letter.line_spacing = 22;
letter.preview_text = "a";
letter.tracking = -2;
try {
letter["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 360
//MenuMusic (MenuMusic)
package {
import flash.media.*;
public dynamic class MenuMusic extends Sound {
}
}//package
Section 361
//MilestonesMC (MilestonesMC)
package {
import flash.display.*;
public dynamic class MilestonesMC extends MovieClip {
public var _0:MovieClip;
public var _2:MovieClip;
public var _1:MovieClip;
public var _3:MovieClip;
}
}//package
Section 362
//MimicBiteAnim (MimicBiteAnim)
package {
import com.nitrome.gfx.*;
public dynamic class MimicBiteAnim extends TickClip {
}
}//package
Section 363
//MimicBiteAnimHolder (MimicBiteAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class MimicBiteAnimHolder extends TickClip {
}
}//package
Section 364
//MimicDebrisMC1 (MimicDebrisMC1)
package {
import flash.display.*;
public dynamic class MimicDebrisMC1 extends Sprite {
}
}//package
Section 365
//MimicDebrisMC2 (MimicDebrisMC2)
package {
import flash.display.*;
public dynamic class MimicDebrisMC2 extends Sprite {
}
}//package
Section 366
//MimicDebrisMC3 (MimicDebrisMC3)
package {
import flash.display.*;
public dynamic class MimicDebrisMC3 extends Sprite {
}
}//package
Section 367
//MimicFlyingAnim (MimicFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class MimicFlyingAnim extends TickClip {
}
}//package
Section 368
//MimicMC (MimicMC)
package {
import com.nitrome.gfx.*;
public dynamic class MimicMC extends TickClip {
public function MimicMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 369
//NextArrow (NextArrow)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class NextArrow extends ArrowButton {
public function NextArrow(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 370
//NextLevel (NextLevel)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class NextLevel extends LevelArrowButton {
public function NextLevel(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 371
//NightHutsMC1 (NightHutsMC1)
package {
import flash.display.*;
public dynamic class NightHutsMC1 extends Sprite {
}
}//package
Section 372
//NightHutsMC2 (NightHutsMC2)
package {
import flash.display.*;
public dynamic class NightHutsMC2 extends Sprite {
}
}//package
Section 373
//NightHutsMC3 (NightHutsMC3)
package {
import flash.display.*;
public dynamic class NightHutsMC3 extends Sprite {
}
}//package
Section 374
//NightHutsMC4 (NightHutsMC4)
package {
import flash.display.*;
public dynamic class NightHutsMC4 extends Sprite {
}
}//package
Section 375
//NightHutsMC5 (NightHutsMC5)
package {
import flash.display.*;
public dynamic class NightHutsMC5 extends Sprite {
}
}//package
Section 376
//NightHutsMC6 (NightHutsMC6)
package {
import flash.display.*;
public dynamic class NightHutsMC6 extends Sprite {
}
}//package
Section 377
//NitromeButton (NitromeButton)
package {
import com.nitrome.ui.*;
public dynamic class NitromeButton extends NitromeButton {
}
}//package
Section 378
//NitromeGame (NitromeGame)
package {
import flash.display.*;
import flash.events.*;
import com.nitrome.util.*;
import com.nitrome.ui.*;
import flash.net.*;
import com.nitrome.sound.*;
import flash.ui.*;
public class NitromeGame {
public static const ARMOR_URL:Array = ["http://www.armorgames.com/", "http://armorgames.com/", "http://*.armorgames.com/"];
public static const MINICLIP_URL:Array = ["http://www.miniclip.com/", "http://miniclip.com/"];
public static const NITROME_URL:Array = ["http://www.nitrome.com/", "http://cdn.nitrome.com/"];
public static const CANDYSTAND_URL:Array = ["http://www.candystand.com/", "http://candystand.com/"];
public static const SUBMIT_URL:String = "http://www.nitrome.com/php/submit_score.php";
public static const RETRIEVE_URL:String = "http://www.nitrome.com/php/retrieve_scores.php";
private static var _save_slot:int = 0;
private static var _selected_level:HiddenInt;
public static var high_score_buffer:Array;
public static var bonus:Object = {};
public static var last_loaded_xml:XML;
private static var _last_level:HiddenInt;
public static var current_level_loading:int;
public static var leading_zero:Boolean = true;
public static var completed:Boolean;
private static var ar_key:String = "ctdngevfaqki8_lb:psoj90ux127hm/4w5y3rz.6-";
public static var transition:Transition;
public static var custom_mouse:CustomMouse;
private static var _level_score:HiddenInt;
public static var timeline:MovieClip;
public static var url:String;
private static var _levels_unlocked:Array;
public static var sound_manager:SoundManager;
public static var game_id:String;
private static var ar_1:Array = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "/", ":", ".", "_", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-"];
private static var ar_2:Array = ["_", "7", "c", "2", "l", "r", "a", "h", "i", ".", "g", "m", "v", "1", "b", "q", "3", "z", "w", "o", "u", "t", "s", "0", "d", "f", "8", "n", "5", "k", ":", "j", "p", "/", "4", "6", "e", "9", "y", "x", "-"];
public static var previous_throw:Array = [-500, -500, -500, -500, -500, -500];
private static var adj:Number = 1.75;
public static var level_id:String;
private static var ff:Array = [];
public static var time_based:Boolean = false;
private static var _quality:String;
public static var total_levels:int;
public static var best_throw:Array = [-500, -500, -500, -500, -500, -500];
public static var best_ever_throw:int = -500;
public static var played:Boolean;
private static var _levels_completed:Array;
public static var context_menu:ContextMenu;
public static var last_loaded_path:String;
public static function set save_slot(_arg1:int):void{
_save_slot = _arg1;
_levels_unlocked = getAllLevelsUnlocked(_arg1);
_levels_completed = getAllLevelsCompleted(_arg1);
_last_level = new HiddenInt(getLastUnlocked(_arg1));
completed = getGameComplete(_arg1);
}
public static function set sfx(_arg1:Boolean):void{
var _local2:String;
var _local3:SharedObject;
_local2 = ("so_" + game_id);
_local3 = SharedObject.getLocal(_local2);
_local3.data.sfxon = _arg1;
_local3.flush();
_local3.close();
}
private static function decryptString(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:int;
var _local11:String;
adj = 1.75;
ff = convertKey(_arg1);
_local3 = "";
_local4 = 0;
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2.substr(_local5, 1);
_local8 = 0;
while (_local8 < ar_2.length) {
if (ar_2[_local8] == _local6){
_local7 = _local8;
break;
};
_local8++;
};
adj = applyFudgeFactor();
_local9 = (_local4 + adj);
_local10 = (_local7 - Math.round(_local9));
_local10 = checkRange(_local10);
_local4 = (_local9 + _local7);
_local11 = ar_1[_local10];
_local3 = (_local3 + _local11);
_local5++;
};
return (_local3);
}
public static function getLastUnlocked(_arg1:int=1):int{
var _local2:String;
var _local3:SharedObject;
var _local4:Boolean;
var _local5:*;
var _local6:Array;
var _local7:int;
_local2 = (("so_" + game_id) + _arg1);
_local3 = SharedObject.getLocal(_local2);
_local4 = false;
for each (_local5 in _local3.data) {
_local4 = true;
break;
};
_local6 = new Array(total_levels);
if (!_local4){
_local7 = 0;
while (_local7 < _local6.length) {
_local6[_local7] = 0;
_local7++;
};
_local6[0] = 1;
_local3.data.levels_unlocked = _local6;
_local3.flush();
_local3.close();
return (1);
//unresolved jump
};
if (_local3.data.levels_unlocked == undefined){
_local7 = 0;
while (_local7 < _local6.length) {
_local6[_local7] = 0;
_local7++;
};
_local6[0] = 1;
_local3.data.levels_unlocked = _local6;
_local3.flush();
_local3.close();
return (1);
//unresolved jump
};
_local7 = 0;
while (_local7 < _local3.data.levels_unlocked.length) {
if (_local3.data.levels_unlocked[_local7] == 0){
return (_local7);
};
_local7++;
};
return (total_levels);
}
private static function checkRange(_arg1:int):int{
var _local2:int;
_arg1 = Math.round(_arg1);
_local2 = ar_1.length;
while (_arg1 >= _local2) {
_arg1 = (_arg1 - _local2);
};
while (_arg1 < 0) {
_arg1 = (_arg1 + _local2);
};
return (_arg1);
}
public static function init(_arg1:MovieClip, _arg2:String, _arg3:String, _arg4:Number, _arg5:Array=null, _arg6:Array=null, _arg7:Boolean=false):void{
var _local8:SoundManager;
timeline = _arg1;
url = timeline.loaderInfo.url;
level_id = _arg3;
total_levels = _arg4;
game_id = _arg2.toLowerCase();
Score.init();
_selected_level = new HiddenInt(1);
_level_score = new HiddenInt();
Key.init(timeline.stage);
if (_arg5 != null){
getKeys(_arg5);
};
if (_arg6 != null){
Key.reserved = _arg6;
};
context_menu = new ContextMenu();
context_menu.hideBuiltInItems();
timeline.contextMenu = context_menu;
if (_arg7){
_local8 = new SoundManager();
_local8.x = -50;
_local8.y = -50;
timeline.addChild(_local8);
};
if (timeline.tt != null){
transition = timeline.tt;
};
_quality = getValue("quality");
if (!_quality){
_quality = "medium";
};
played = false;
save_slot = 1;
if (NitromeGame.isAtURL(NitromeGame.NITROME_URL)){
initHighScoreBuffer();
};
}
public static function getLevelCompleted(_arg1:int, _arg2:int=1):Boolean{
return (Boolean((_levels_completed[(_arg1 - 1)] == 1)));
}
public static function get level_score():int{
return (_level_score.value);
}
public static function get music():Boolean{
var _local1:String;
var _local2:SharedObject;
var _local3:Boolean;
var _local4:*;
_local1 = ("so_" + game_id);
_local2 = SharedObject.getLocal(_local1);
_local3 = false;
for each (_local4 in _local2.data) {
_local3 = true;
break;
};
if (_local3){
if (_local2.data.musicon != undefined){
return (_local2.data.musicon);
};
return (true);
//unresolved jump
};
return (true);
}
public static function setLevelCompleted(_arg1:int, _arg2:int=1):void{
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
var _local7:Array;
var _local8:int;
_levels_completed[(_arg1 - 1)] = 1;
_local3 = (("so_" + game_id) + _arg2);
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
_local7 = new Array(total_levels);
if (!_local5){
_local8 = 0;
while (_local8 < _local7.length) {
_local7[_local8] = 0;
_local8++;
};
_local7[0] = 1;
} else {
if (_local4.data.levels_completed == undefined){
_local8 = 0;
while (_local8 < _local7.length) {
_local7[_local8] = 0;
_local8++;
};
_local7[0] = 1;
} else {
_local7 = _local4.data.levels_completed;
};
};
_local7[(_arg1 - 1)] = 1;
_local4.data.levels_completed = _local7;
_local4.flush();
_local4.close();
}
public static function set level_score(_arg1:int):void{
_level_score.value = _arg1;
}
public static function isAtURL(... _args):Boolean{
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:String;
if (_args.length == 0){
_args.push(NITROME_URL);
};
_local2 = 0;
while (_local2 < _args.length) {
_local3 = _args[_local2];
_local4 = 0;
while (_local4 < _local3.length) {
_local5 = _local3[_local4];
if (compareURLTo(_local5)){
return (true);
};
_local4++;
};
_local2++;
};
return (false);
}
public static function set last_level(_arg1:int):void{
_last_level.value = _arg1;
}
public static function initHighScoreBuffer():void{
var _local1:int;
high_score_buffer = [];
_local1 = 0;
while (_local1 < total_levels) {
high_score_buffer[_local1] = "0";
_local1++;
};
trace((("Requesting " + total_levels) + " high score tables - fasten pantyhose..."));
loadHighScores(1);
}
public static function setLevelUnlocked(_arg1:int, _arg2:int=1):void{
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
var _local7:Array;
var _local8:int;
if (_arg1 > _last_level.value){
_last_level.value = _arg1;
};
_levels_unlocked[(_arg1 - 1)] = 1;
_local3 = (("so_" + game_id) + _arg2);
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
_local7 = new Array(total_levels);
if (!_local5){
_local8 = 0;
while (_local8 < _local7.length) {
_local7[_local8] = 0;
_local8++;
};
_local7[0] = 1;
} else {
if (_local4.data.levels_unlocked == undefined){
_local8 = 0;
while (_local8 < _local7.length) {
_local7[_local8] = 0;
_local8++;
};
_local7[0] = 1;
} else {
_local7 = _local4.data.levels_unlocked;
};
};
_local7[(_arg1 - 1)] = 1;
_local4.data.levels_unlocked = _local7;
_local4.flush();
_local4.close();
}
public static function setValue(_arg1:String, _arg2, _arg3:int=1):void{
var _local4:String;
var _local5:SharedObject;
var _local6:Boolean;
var _local7:*;
_local4 = (("so_" + game_id) + _arg3);
_local5 = SharedObject.getLocal(_local4);
_local6 = false;
for each (_local7 in _local5.data) {
_local6 = true;
break;
};
if (!_local6){
_local5.data[_arg1] = _arg2;
} else {
_local5.data[_arg1] = _arg2;
};
_local5.flush();
_local5.close();
}
public static function set music(_arg1:Boolean):void{
var _local2:String;
var _local3:SharedObject;
_local2 = ("so_" + game_id);
_local3 = SharedObject.getLocal(_local2);
_local3.data.musicon = _arg1;
_local3.flush();
_local3.close();
}
public static function deleteSharedObject(_arg1:int=1):void{
var _local2:String;
var _local3:SharedObject;
_local2 = (("so_" + game_id) + String(_arg1));
_local3 = SharedObject.getLocal(_local2);
_local3.clear();
_local3.close();
}
public static function getLevelScore(_arg1:int, _arg2:int=1):int{
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
_local3 = (("so_" + game_id) + String(_arg2));
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
if (!_local5){
return (0);
};
if (_local4.data.level_scores == undefined){
return (0);
};
if (_local4.data.level_scores[_arg1] == undefined){
return (0);
};
return (_local4.data.level_scores[_arg1]);
}
private static function compareURLTo(_arg1:String):Boolean{
var _local2:String;
var _local3:String;
var _local4:Array;
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:String;
var _local9:String;
_local2 = "http://";
if (url.substr(0, _local2.length) != _local2){
return (false);
};
_local3 = url.substr(_local2.length);
_arg1 = _arg1.substr(_local2.length);
while (_local3.charAt(0) == "/") {
_local3 = _local3.substr(1);
};
while (_arg1.charAt(0) == "/") {
_arg1 = _arg1.substr(1);
};
_local4 = _local3.split("/");
_local5 = _arg1.split("/");
_local6 = 0;
while (_local6 < _local5.length) {
if (_local5[_local6].length < 1){
} else {
_local7 = _local5[_local6].indexOf("*");
if (_local7 != -1){
_local8 = _local5[_local6].substr(0, _local7);
_local9 = _local5[_local6].substr((_local7 + 1));
if (_local4[_local6].substr(0, _local8.length) != _local8){
return (false);
};
if (_local4[_local6].substr(-(_local9.length)) != _local9){
return (false);
};
} else {
if (_local5[_local6] != _local4[_local6]){
return (false);
};
};
};
_local6++;
};
return (true);
}
public static function displayNextButton(_arg1:String):Boolean{
var _local2:Array;
var _local3:String;
_local2 = _arg1.split("|");
_local3 = _local2[10];
if (_local3 == "1"){
return (true);
};
if (_local3 == "0"){
return (false);
};
return (false);
}
public static function getKeys(_arg1:Array, _arg2:int=1):void{
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
_local3 = (("so_" + game_id) + String(_arg2));
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
if (!_local5){
Key.custom = (_local4.data.custom_keys = _arg1);
} else {
if (_local4.data.custom_keys == undefined){
Key.custom = (_local4.data.custom_keys = _arg1);
} else {
Key.custom = _local4.data.custom_keys;
};
};
}
public static function displayPreviousButton(_arg1:String):Boolean{
var _local2:Array;
var _local3:String;
_local2 = _arg1.split("|");
_local3 = _local2[11];
if (_local3 == "1"){
return (true);
};
if (_local3 == "0"){
return (false);
};
return (false);
}
public static function setLevelScore(_arg1:int, _arg2:int, _arg3:int=1):void{
var _local4:String;
var _local5:SharedObject;
var _local6:Boolean;
var _local7:*;
_local4 = (("so_" + game_id) + _arg3);
_local5 = SharedObject.getLocal(_local4);
_local6 = false;
for each (_local7 in _local5.data) {
_local6 = true;
break;
};
if (!_local6){
_local5.data.level_scores = new Array();
_local5.data.level_scores[_arg2] = _arg1;
} else {
if (_local5.data.level_scores == undefined){
_local5.data.level_scores = new Array();
_local5.data.level_scores[_arg2] = _arg1;
} else {
_local5.data.level_scores[_arg2] = _arg1;
};
};
_local5.flush();
_local5.close();
}
public static function getHighScoreLine(_arg1:String, _arg2:int):Object{
var _local3:Array;
var _local4:String;
var _local5:Array;
var _local6:Object;
_local3 = _arg1.split("|");
_local4 = _local3[(_arg2 - 1)];
if ((((((((_local4 == "0")) || ((_local4 == "1")))) || ((_local4 == null)))) || ((_local4 == "")))){
return (null);
};
_local5 = _local4.split("_");
if ((((_local5[1] == "n")) || ((_local5[2] == "n")))){
return (null);
};
_local6 = new Object();
_local6.username = _local5[2];
_local6.score = _local5[1];
_local6.rank = _local5[0];
return (_local6);
}
public static function getLastSavedScore(_arg1:int=1):int{
var _local2:String;
var _local3:SharedObject;
var _local4:Boolean;
var _local5:*;
_local2 = (("so_" + game_id) + String(_arg1));
_local3 = SharedObject.getLocal(_local2);
_local4 = false;
for each (_local5 in _local3.data) {
_local4 = true;
break;
};
if (!_local4){
return (0);
};
if (_local3.data.last_saved_score == undefined){
return (0);
};
return (_local3.data.last_saved_score);
}
public static function getLevelName(_arg1:Number, _arg2:String=".xml"):String{
var _local3:MD5;
var _local4:String;
var _local5:String;
_local3 = new MD5();
_local4 = "";
if (leading_zero){
if (_arg1 < 10){
_local4 = "0";
};
};
_local5 = _local3.hash(String(((level_id + _local4) + _arg1)));
return ((_local5 + _arg2));
}
public static function setLastSavedScore(_arg1:int, _arg2:int=1):void{
var _local3:String;
var _local4:SharedObject;
_local3 = (("so_" + game_id) + String(_arg2));
_local4 = SharedObject.getLocal(_local3);
_local4.data.last_saved_score = _arg1;
_local4.flush();
_local4.close();
}
public static function lockAllLevels(_arg1:int=1):void{
var _local2:String;
var _local3:SharedObject;
var _local4:Array;
var _local5:int;
_local2 = (("so_" + game_id) + _arg1);
_local3 = SharedObject.getLocal(_local2);
_local4 = new Array(total_levels);
_local5 = 0;
while (_local5 < _local4.length) {
_local4[_local5] = 0;
_local5++;
};
_local4[0] = 1;
_local3.data.levels_unlocked = _local4;
_local3.flush();
_local3.close();
_levels_unlocked = getAllLevelsUnlocked();
}
public static function deleteValue(_arg1:String, _arg2:int=1):void{
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
_local3 = (("so_" + game_id) + String(_arg2));
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
if (!_local5){
return;
};
delete _local4.data[_arg1];
_local4.flush();
_local4.close();
}
public static function unlockAllLevels(_arg1:int=1):void{
var _local2:String;
var _local3:SharedObject;
var _local4:Array;
var _local5:int;
_local2 = (("so_" + game_id) + _arg1);
_local3 = SharedObject.getLocal(_local2);
_local4 = new Array(total_levels);
_local5 = 0;
while (_local5 < _local4.length) {
_local4[_local5] = 1;
_local5++;
};
_local3.data.levels_unlocked = _local4;
_local3.flush();
_local3.close();
_levels_unlocked = getAllLevelsUnlocked();
}
public static function retrieveFailed(_arg1:IOErrorEvent=null):void{
trace(((("Retrieve scores failed: " + _arg1.text) + " for level:") + current_level_loading));
}
public static function get last_level():int{
return (_last_level.value);
}
public static function getSwfPath():String{
var _local1:String;
var _local2:int;
_local1 = url;
_local2 = _local1.length;
while (_local2 >= 0) {
if (_local1.charAt(_local2) == "/"){
_local1 = _local1.slice(0, (_local2 + 1));
break;
};
_local2--;
};
return (_local1);
}
public static function getTotalScore(_arg1:int=1):int{
var _local2:String;
var _local3:SharedObject;
var _local4:Boolean;
var _local5:*;
var _local6:int;
var _local7:int;
_local2 = (("so_" + game_id) + String(_arg1));
_local3 = SharedObject.getLocal(_local2);
_local4 = false;
for each (_local5 in _local3.data) {
_local4 = true;
break;
};
if (!_local4){
return (0);
};
if (_local3.data.level_scores == undefined){
return (0);
};
_local6 = 0;
_local7 = 0;
while (_local7 < _local3.data.level_scores.length) {
if (((!((_local3.data.level_scores[_local7] == undefined))) && (!(isNaN(_local3.data.level_scores[_local7]))))){
_local6 = (_local6 + _local3.data.level_scores[_local7]);
};
_local7++;
};
return (_local6);
}
private static function convertKey(_arg1:String):Array{
var _local2:Array;
var _local3:int;
var _local4:int;
var _local5:String;
var _local6:int;
var _local7:int;
_local2 = new Array();
_local2.push(_arg1.length);
_local3 = 0;
_local4 = 0;
while (_local4 < _arg1.length) {
_local5 = _arg1.substr(_local4, 1);
_local7 = 0;
while (_local7 < ar_1.length) {
if (ar_1[_local7] == _local5){
_local6 = _local7;
break;
};
_local7++;
};
_local2.push(_local6);
_local3 = (_local3 + _local6);
_local4++;
};
_local2.push(_local3);
return (_local2);
}
public static function get save_slot():int{
return (_save_slot);
}
public static function getAllLevelsCompleted(_arg1:int=1):Array{
var _local2:Array;
var _local3:String;
var _local4:SharedObject;
var _local5:Number;
_local2 = [];
_local3 = (("so_" + game_id) + _arg1);
_local4 = SharedObject.getLocal(_local3);
if (((_local4) && (_local4.data.levels_completed))){
_local5 = 0;
while (_local5 < total_levels) {
if (_local4.data.levels_completed[_local5]){
_local2.push(1);
} else {
_local2.push(0);
};
_local5++;
};
};
return (_local2);
}
public static function get sfx():Boolean{
var _local1:String;
var _local2:SharedObject;
var _local3:Boolean;
var _local4:*;
_local1 = ("so_" + game_id);
_local2 = SharedObject.getLocal(_local1);
_local3 = false;
for each (_local4 in _local2.data) {
_local3 = true;
break;
};
if (_local3){
if (_local2.data.sfxon != undefined){
return (_local2.data.sfxon);
};
return (true);
//unresolved jump
};
return (true);
}
public static function getScoreData(_arg1:int, _arg2:String, _arg3:String=""):String{
var _local4:String;
var _local5:String;
if (_arg3 == ""){
_arg3 = game_id;
};
_local4 = ((((String(_arg1) + "_") + _arg3) + "_") + _arg2.toLowerCase());
trace(("encrypting: " + _local4));
_local5 = encryptString(ar_key, _local4);
trace(("encrypted: " + _local5));
trace(("decrypted: " + decryptString(ar_key, _local5)));
return (_local5);
}
public static function getValue(_arg1:String, _arg2:int=1){
var _local3:String;
var _local4:SharedObject;
var _local5:Boolean;
var _local6:*;
_local3 = (("so_" + game_id) + String(_arg2));
_local4 = SharedObject.getLocal(_local3);
_local5 = false;
for each (_local6 in _local4.data) {
_local5 = true;
break;
};
if (!_local5){
return (null);
};
return (_local4.data[_arg1]);
}
public static function getAllLevelsUnlocked(_arg1:int=1):Array{
var _local2:Array;
var _local3:String;
var _local4:SharedObject;
var _local5:Number;
_local2 = [1];
_local3 = (("so_" + game_id) + _arg1);
_local4 = SharedObject.getLocal(_local3);
if (((_local4) && (_local4.data.levels_unlocked))){
_local5 = 1;
while (_local5 < total_levels) {
if (_local4.data.levels_unlocked[_local5]){
_local2.push(1);
} else {
_local2.push(0);
};
_local5++;
};
};
return (_local2);
}
public static function setKey(_arg1:uint, _arg2:uint, _arg3:int=1):void{
var _local4:String;
var _local5:SharedObject;
var _local6:Boolean;
var _local7:*;
_local4 = (("so_" + game_id) + _arg3);
_local5 = SharedObject.getLocal(_local4);
_local6 = false;
for each (_local7 in _local5.data) {
_local6 = true;
break;
};
if (!_local6){
_local5.data.custom_keys = Key.custom;
Key.custom[_arg1] = (_local5.data.custom_keys[_arg1] = _arg2);
} else {
if (_local5.data.custom_keys == undefined){
_local5.data.custom_keys = Key.custom;
Key.custom[_arg1] = (_local5.data.custom_keys[_arg1] = _arg2);
} else {
Key.custom[_arg1] = (_local5.data.custom_keys[_arg1] = _arg2);
};
};
_local5.flush();
_local5.close();
}
public static function getGameComplete(_arg1:int=1):Boolean{
var _local2:String;
var _local3:SharedObject;
var _local4:Boolean;
var _local5:*;
_local2 = (("so_" + game_id) + String(_arg1));
_local3 = SharedObject.getLocal(_local2);
_local4 = false;
for each (_local5 in _local3.data) {
_local4 = true;
break;
};
if (!_local4){
return (false);
};
return (Boolean(_local3.data.completed));
}
public static function setGameComplete(_arg1:int=1):void{
var _local2:String;
var _local3:SharedObject;
var _local4:Boolean;
var _local5:*;
_local2 = (("so_" + game_id) + _arg1);
_local3 = SharedObject.getLocal(_local2);
_local4 = false;
for each (_local5 in _local3.data) {
_local4 = true;
break;
};
if (!_local4){
_local3.data.completed = true;
} else {
_local3.data.completed = true;
};
_local3.flush();
_local3.close();
}
public static function getLevelUnlocked(_arg1:int, _arg2:int=1):Boolean{
return (Boolean((_levels_unlocked[(_arg1 - 1)] == 1)));
}
private static function encryptString(_arg1:String, _arg2:String):String{
var _local3:String;
var _local4:Number;
var _local5:int;
var _local6:String;
var _local7:int;
var _local8:int;
var _local9:Number;
var _local10:int;
var _local11:String;
adj = 1.75;
ff = convertKey(_arg1);
_local3 = "";
_local4 = 0;
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2.substr(_local5, 1);
_local8 = 0;
while (_local8 < ar_1.length) {
if (ar_1[_local8] == _local6){
_local7 = _local8;
break;
};
_local8++;
};
adj = applyFudgeFactor();
_local9 = (_local4 + adj);
_local10 = (Math.round(_local9) + _local7);
_local10 = checkRange(_local10);
_local4 = (_local9 + _local10);
_local11 = ar_2[_local10];
_local3 = (_local3 + _local11);
_local5++;
};
return (_local3);
}
public static function set selected_level(_arg1:int):void{
_selected_level.value = _arg1;
if (_arg1 > _last_level.value){
_last_level.value = _arg1;
};
}
public static function get selected_level():int{
return (_selected_level.value);
}
public static function loadHighScores(_arg1:int):void{
var _local2:URLLoader;
var _local3:URLVariables;
var _local4:URLRequest;
_local2 = new URLLoader();
_local3 = new URLVariables();
_local4 = new URLRequest(NitromeGame.RETRIEVE_URL);
_local4.method = URLRequestMethod.POST;
_local4.data = _local3;
_local2.dataFormat = URLLoaderDataFormat.VARIABLES;
_local2.addEventListener(Event.COMPLETE, retrieveSuccessful);
_local2.addEventListener(IOErrorEvent.IO_ERROR, retrieveFailed);
_local3.min_rank = String(1);
_local3.game_name = (game_id + _arg1);
current_level_loading = _arg1;
_local3.time_based = (NitromeGame.time_based) ? "1" : "0";
_local2.load(_local4);
}
private static function applyFudgeFactor():Number{
var _local1:Number;
_local1 = Number(ff.shift());
_local1 = (_local1 + adj);
ff.push(_local1);
return (_local1);
}
public static function retrieveSuccessful(_arg1:Event=null):void{
var _local2:String;
_local2 = _arg1.target.data.result;
trace(((("Scores retrieved: (" + _local2) + ") for level:") + current_level_loading));
high_score_buffer[(current_level_loading - 1)] = _local2;
if (current_level_loading < total_levels){
loadHighScores((current_level_loading + 1));
} else {
trace("Request complete");
};
}
public static function set quality(_arg1:String):void{
_quality = _arg1;
Key.stage.quality = _quality;
setValue("quality", _arg1);
}
public static function get quality():String{
return (_quality);
}
}
}//package
Section 379
//NormalSkeletonDebrisMC1 (NormalSkeletonDebrisMC1)
package {
import flash.display.*;
public dynamic class NormalSkeletonDebrisMC1 extends Sprite {
}
}//package
Section 380
//NormalSkeletonDebrisMC2 (NormalSkeletonDebrisMC2)
package {
import flash.display.*;
public dynamic class NormalSkeletonDebrisMC2 extends Sprite {
}
}//package
Section 381
//NormalSkeletonDebrisMC3 (NormalSkeletonDebrisMC3)
package {
import flash.display.*;
public dynamic class NormalSkeletonDebrisMC3 extends Sprite {
}
}//package
Section 382
//NormalSkeletonDebrisMC4 (NormalSkeletonDebrisMC4)
package {
import flash.display.*;
public dynamic class NormalSkeletonDebrisMC4 extends Sprite {
}
}//package
Section 383
//NormalSkeletonIdleAnim (NormalSkeletonIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class NormalSkeletonIdleAnim extends TickClip {
}
}//package
Section 384
//NormalSkeletonMC (NormalSkeletonMC)
package {
import com.nitrome.gfx.*;
public dynamic class NormalSkeletonMC extends TickClip {
public function NormalSkeletonMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 385
//NormalSkeletonStrikeAnim (NormalSkeletonStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class NormalSkeletonStrikeAnim extends TickClip {
}
}//package
Section 386
//NormalSkeletonStrikeAnimHolder (NormalSkeletonStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class NormalSkeletonStrikeAnimHolder extends TickClip {
}
}//package
Section 387
//OgreDebrisMC1 (OgreDebrisMC1)
package {
import flash.display.*;
public dynamic class OgreDebrisMC1 extends Sprite {
}
}//package
Section 388
//OgreDebrisMC2 (OgreDebrisMC2)
package {
import flash.display.*;
public dynamic class OgreDebrisMC2 extends Sprite {
}
}//package
Section 389
//OgreDebrisMC3 (OgreDebrisMC3)
package {
import flash.display.*;
public dynamic class OgreDebrisMC3 extends Sprite {
}
}//package
Section 390
//OgreFlyingAnim (OgreFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class OgreFlyingAnim extends TickClip {
}
}//package
Section 391
//OgreIdleAnim (OgreIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class OgreIdleAnim extends TickClip {
}
}//package
Section 392
//OgreMC (OgreMC)
package {
import com.nitrome.gfx.*;
public dynamic class OgreMC extends TickClip {
public function OgreMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 393
//OgreStrikeAnim (OgreStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class OgreStrikeAnim extends TickClip {
}
}//package
Section 394
//OgreStrikeAnimHolder (OgreStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class OgreStrikeAnimHolder extends TickClip {
}
}//package
Section 395
//OvershootBonusMC (OvershootBonusMC)
package {
import flash.display.*;
public dynamic class OvershootBonusMC extends MovieClip {
public var bonus:BlastRPGFont;
public function OvershootBonusMC(){
__setProp_bonus_OvershootBonusMC_Layer1_1();
}
function __setProp_bonus_OvershootBonusMC_Layer1_1(){
try {
bonus["componentInspectorSetting"] = true;
} catch(e:Error) {
};
bonus.align = "center";
bonus.align_vert = "center";
bonus.color = 0xFFFFFF;
bonus.line_spacing = 22;
bonus.preview_text = "+0";
bonus.tracking = -2;
try {
bonus["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 396
//PetrifyAuraMC (PetrifyAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class PetrifyAuraMC extends TickClip {
public function PetrifyAuraMC(){
addFrameScript(44, frame45);
}
function frame45(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 397
//PlantAuraMC (PlantAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class PlantAuraMC extends TickClip {
public function PlantAuraMC(){
addFrameScript(9, frame10);
}
function frame10(){
gotoAndPlay(1);
}
}
}//package
Section 398
//PlantParticleMC (PlantParticleMC)
package {
import flash.display.*;
public dynamic class PlantParticleMC extends MovieClip {
}
}//package
Section 399
//PlantSkeletonDebrisMC1 (PlantSkeletonDebrisMC1)
package {
import flash.display.*;
public dynamic class PlantSkeletonDebrisMC1 extends Sprite {
}
}//package
Section 400
//PlantSkeletonDebrisMC2 (PlantSkeletonDebrisMC2)
package {
import flash.display.*;
public dynamic class PlantSkeletonDebrisMC2 extends Sprite {
}
}//package
Section 401
//PlantSkeletonDebrisMC3 (PlantSkeletonDebrisMC3)
package {
import flash.display.*;
public dynamic class PlantSkeletonDebrisMC3 extends Sprite {
}
}//package
Section 402
//PlantSkeletonDebrisMC4 (PlantSkeletonDebrisMC4)
package {
import flash.display.*;
public dynamic class PlantSkeletonDebrisMC4 extends Sprite {
}
}//package
Section 403
//PlantSkeletonIdleAnim (PlantSkeletonIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSkeletonIdleAnim extends TickClip {
}
}//package
Section 404
//PlantSkeletonMC (PlantSkeletonMC)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSkeletonMC extends TickClip {
public function PlantSkeletonMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 405
//PlantSkeletonStrikeAnim (PlantSkeletonStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSkeletonStrikeAnim extends TickClip {
}
}//package
Section 406
//PlantSkeletonStrikeAnimHolder (PlantSkeletonStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSkeletonStrikeAnimHolder extends TickClip {
}
}//package
Section 407
//PlantSlimeDebrisMC1 (PlantSlimeDebrisMC1)
package {
import flash.display.*;
public dynamic class PlantSlimeDebrisMC1 extends Sprite {
}
}//package
Section 408
//PlantSlimeDebrisMC2 (PlantSlimeDebrisMC2)
package {
import flash.display.*;
public dynamic class PlantSlimeDebrisMC2 extends Sprite {
}
}//package
Section 409
//PlantSlimeFlyingAnim (PlantSlimeFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSlimeFlyingAnim extends TickClip {
}
}//package
Section 410
//PlantSlimeIdleAnim (PlantSlimeIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSlimeIdleAnim extends TickClip {
}
}//package
Section 411
//PlantSlimeMC (PlantSlimeMC)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSlimeMC extends TickClip {
public function PlantSlimeMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 412
//PlantSlimeStrikeAnim (PlantSlimeStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlantSlimeStrikeAnim extends TickClip {
}
}//package
Section 413
//PlayerBounceAnim (PlayerBounceAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerBounceAnim extends TickClip {
}
}//package
Section 414
//PlayerCloakAnim (PlayerCloakAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerCloakAnim extends TickClip {
}
}//package
Section 415
//PlayerDebrisMC1 (PlayerDebrisMC1)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC1 extends Sprite {
}
}//package
Section 416
//PlayerDebrisMC2 (PlayerDebrisMC2)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC2 extends Sprite {
}
}//package
Section 417
//PlayerDebrisMC3 (PlayerDebrisMC3)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC3 extends Sprite {
}
}//package
Section 418
//PlayerDebrisMC4 (PlayerDebrisMC4)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC4 extends Sprite {
}
}//package
Section 419
//PlayerDebrisMC5 (PlayerDebrisMC5)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC5 extends Sprite {
}
}//package
Section 420
//PlayerDebrisMC6 (PlayerDebrisMC6)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC6 extends Sprite {
}
}//package
Section 421
//PlayerDebrisMC7 (PlayerDebrisMC7)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC7 extends Sprite {
}
}//package
Section 422
//PlayerDebrisMC8 (PlayerDebrisMC8)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC8 extends Sprite {
}
}//package
Section 423
//PlayerDebrisMC9 (PlayerDebrisMC9)
package {
import flash.display.*;
public dynamic class PlayerDebrisMC9 extends Sprite {
}
}//package
Section 424
//PlayerFlyingAnim (PlayerFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerFlyingAnim extends TickClip {
}
}//package
Section 425
//PlayerMC (PlayerMC)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerMC extends TickClip {
public function PlayerMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 426
//PlayerStrikeAnim (PlayerStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerStrikeAnim extends TickClip {
public function PlayerStrikeAnim(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 427
//PlayerStrikeAnimHolder (PlayerStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerStrikeAnimHolder extends TickClip {
public function PlayerStrikeAnimHolder(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 428
//PlayerVisorAnim (PlayerVisorAnim)
package {
import com.nitrome.gfx.*;
public dynamic class PlayerVisorAnim extends TickClip {
}
}//package
Section 429
//PrevArrow (PrevArrow)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class PrevArrow extends ArrowButton {
public function PrevArrow(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 430
//PrevLevel (PrevLevel)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class PrevLevel extends LevelArrowButton {
public function PrevLevel(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 431
//PurpleBubbleMC1 (PurpleBubbleMC1)
package {
import flash.display.*;
public dynamic class PurpleBubbleMC1 extends MovieClip {
}
}//package
Section 432
//PurpleBubbleMC2 (PurpleBubbleMC2)
package {
import flash.display.*;
public dynamic class PurpleBubbleMC2 extends MovieClip {
}
}//package
Section 433
//PurpleBubbleMC3 (PurpleBubbleMC3)
package {
import flash.display.*;
public dynamic class PurpleBubbleMC3 extends MovieClip {
}
}//package
Section 434
//ScoreLine (ScoreLine)
package {
import com.nitrome.highscore.*;
public dynamic class ScoreLine extends HighScoreLine {
public function ScoreLine(){
__setProp_name_text_ScoreLine_Layer3_1();
__setProp_rank_text_ScoreLine_Layer3_1();
__setProp_score_text_ScoreLine_Layer3_1();
}
function __setProp_rank_text_ScoreLine_Layer3_1(){
try {
rank_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
rank_text.align = "left";
rank_text.align_vert = "center";
rank_text.color = 0xFFFFFF;
rank_text.line_spacing = 22;
rank_text.preview_text = "100.";
rank_text.tracking = -2;
try {
rank_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_name_text_ScoreLine_Layer3_1(){
try {
name_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
name_text.align = "center";
name_text.align_vert = "center";
name_text.color = 0xFFFFFF;
name_text.line_spacing = 22;
name_text.preview_text = "name";
name_text.tracking = -2;
try {
name_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp_score_text_ScoreLine_Layer3_1(){
try {
score_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
score_text.align = "right";
score_text.align_vert = "center";
score_text.color = 0xFFFFFF;
score_text.line_spacing = 22;
score_text.preview_text = "280000";
score_text.tracking = -2;
try {
score_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 435
//scores_button2 (scores_button2)
package {
import com.nitrome.ui.*;
public dynamic class scores_button2 extends ViewScoresButton {
public function scores_button2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 436
//ScoreSubmitPanel (ScoreSubmitPanel)
package {
import flash.utils.*;
import com.nitrome.highscore.*;
public dynamic class ScoreSubmitPanel extends ScoreSubmitPanel {
public var __setPropDict:Dictionary;
public var __id11_:BlastRPGBigFont;
public var __id12_:BlastRPGBigFont;
public function ScoreSubmitPanel(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame14(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame1(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
stop();
}
function frame12(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame13(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame16(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame17(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame18(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame19(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame9(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame15(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame5(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame20(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame7(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame4(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame10(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function frame8(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame3(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function frame6(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function __setProp_level_num_ScoreSubmitPanel_Layer5_1(){
try {
level_num["componentInspectorSetting"] = true;
} catch(e:Error) {
};
level_num.align = "center";
level_num.align_vert = "center";
level_num.color = 0xFFFFFF;
level_num.line_spacing = 22;
level_num.preview_text = "level 1";
level_num.tracking = -2;
try {
level_num["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame2(){
if ((((__setPropDict[score_text] == undefined)) || (!((((int(__setPropDict[score_text]) >= 1)) && ((int(__setPropDict[score_text]) <= 9))))))){
__setPropDict[score_text] = currentFrame;
__setProp_score_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[name_text] == undefined)) || (!((((int(__setPropDict[name_text]) >= 1)) && ((int(__setPropDict[name_text]) <= 9))))))){
__setPropDict[name_text] = currentFrame;
__setProp_name_text_ScoreSubmitPanel_Layer5_1();
};
if ((((__setPropDict[level_num] == undefined)) || (!((((int(__setPropDict[level_num]) >= 1)) && ((int(__setPropDict[level_num]) <= 9))))))){
__setPropDict[level_num] = currentFrame;
__setProp_level_num_ScoreSubmitPanel_Layer5_1();
};
}
function __setProp_name_text_ScoreSubmitPanel_Layer5_1(){
try {
name_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
name_text.align = "center";
name_text.align_vert = "center";
name_text.color = 0xFFFFFF;
name_text.line_spacing = 22;
name_text.preview_text = "";
name_text.tracking = -2;
try {
name_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame11(){
if ((((__setPropDict[__id12_] == undefined)) || (!((((int(__setPropDict[__id12_]) >= 10)) && ((int(__setPropDict[__id12_]) <= 20))))))){
__setPropDict[__id12_] = currentFrame;
__setProp___id12__ScoreSubmitPanel_Layer5_10();
};
if ((((__setPropDict[__id11_] == undefined)) || (!((((int(__setPropDict[__id11_]) >= 10)) && ((int(__setPropDict[__id11_]) <= 20))))))){
__setPropDict[__id11_] = currentFrame;
__setProp___id11__ScoreSubmitPanel_Layer5_10();
};
}
function __setProp_score_text_ScoreSubmitPanel_Layer5_1(){
try {
score_text["componentInspectorSetting"] = true;
} catch(e:Error) {
};
score_text.align = "center";
score_text.align_vert = "center";
score_text.color = 0xFFFFFF;
score_text.line_spacing = 22;
score_text.preview_text = "Your Score is 280000";
score_text.tracking = -2;
try {
score_text["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id11__ScoreSubmitPanel_Layer5_10(){
try {
__id11_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id11_.align = "center";
__id11_.align_vert = "center";
__id11_.color = 0xFFFFFF;
__id11_.line_spacing = 40;
__id11_.preview_text = "click to play at|nitrome.com";
__id11_.tracking = -1;
try {
__id11_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id12__ScoreSubmitPanel_Layer5_10(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.align = "center";
__id12_.align_vert = "center";
__id12_.color = 0xFFFFFF;
__id12_.line_spacing = 40;
__id12_.preview_text = "scores are available|at nitrome.com";
__id12_.tracking = -1;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 437
//SelectionBoxMC (SelectionBoxMC)
package {
import flash.display.*;
public dynamic class SelectionBoxMC extends Sprite {
}
}//package
Section 438
//ShopMusic (ShopMusic)
package {
import flash.media.*;
public dynamic class ShopMusic extends Sound {
}
}//package
Section 439
//ShopStockBarClip (ShopStockBarClip)
package {
import com.nitrome.ui.items.*;
public dynamic class ShopStockBarClip extends ShopStockBar {
}
}//package
Section 440
//ShuffleAuraMC (ShuffleAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class ShuffleAuraMC extends TickClip {
public function ShuffleAuraMC(){
addFrameScript(39, frame40);
}
function frame40(){
if (parent){
parent.removeChild(this);
};
stop();
}
}
}//package
Section 441
//SmokeMC (SmokeMC)
package {
import flash.display.*;
public dynamic class SmokeMC extends MovieClip {
}
}//package
Section 442
//StarFadeMC (StarFadeMC)
package {
import flash.display.*;
public dynamic class StarFadeMC extends MovieClip {
}
}//package
Section 443
//StatBoostBubbleMC (StatBoostBubbleMC)
package {
import com.nitrome.gfx.*;
public dynamic class StatBoostBubbleMC extends TickClip {
public function StatBoostBubbleMC(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 444
//stepper_down_button (stepper_down_button)
package {
import com.nitrome.ui.*;
public dynamic class stepper_down_button extends SimpleButton {
public function stepper_down_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 445
//stepper_up_button (stepper_up_button)
package {
import com.nitrome.ui.*;
public dynamic class stepper_up_button extends SimpleButton {
public function stepper_up_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 446
//StrengthBoostMC (StrengthBoostMC)
package {
import com.nitrome.gfx.*;
public dynamic class StrengthBoostMC extends FloatSprite {
}
}//package
Section 447
//submit_score_button2 (submit_score_button2)
package {
import flash.geom.*;
import com.nitrome.ui.*;
public dynamic class submit_score_button2 extends SubmitScoreButton {
public function submit_score_button2(){
addFrameScript(0, frame1, 9, frame10);
__setProp_label_submit_score_button2_Layer9_1();
}
function frame10(){
label.transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
label.transform.colorTransform = new ColorTransform();
stop();
}
function __setProp_label_submit_score_button2_Layer9_1(){
try {
label["componentInspectorSetting"] = true;
} catch(e:Error) {
};
label.align = "center";
label.align_vert = "center";
label.color = 0xFFFFFF;
label.line_spacing = 40;
label.preview_text = "submit";
label.tracking = -1;
try {
label["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 448
//SubmitButton (SubmitButton)
package {
import flash.geom.*;
import com.nitrome.highscore.*;
public dynamic class SubmitButton extends SubmitButton {
public function SubmitButton(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
transform.colorTransform = new ColorTransform(1, 1, 1, 1, 50, 50, 50, 0);
}
function frame1(){
transform.colorTransform = new ColorTransform();
stop();
}
}
}//package
Section 449
//survival_scores_button (survival_scores_button)
package {
import com.nitrome.ui.*;
public dynamic class survival_scores_button extends ViewScoresSurvivalButton {
public function survival_scores_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 450
//Text_BlastRPG_0 (Text_BlastRPG_0)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_0 extends Sprite {
}
}//package
Section 451
//Text_BlastRPG_1 (Text_BlastRPG_1)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_1 extends Sprite {
}
}//package
Section 452
//Text_BlastRPG_2 (Text_BlastRPG_2)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_2 extends Sprite {
}
}//package
Section 453
//Text_BlastRPG_3 (Text_BlastRPG_3)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_3 extends Sprite {
}
}//package
Section 454
//Text_BlastRPG_4 (Text_BlastRPG_4)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_4 extends Sprite {
}
}//package
Section 455
//Text_BlastRPG_5 (Text_BlastRPG_5)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_5 extends Sprite {
}
}//package
Section 456
//Text_BlastRPG_6 (Text_BlastRPG_6)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_6 extends Sprite {
}
}//package
Section 457
//Text_BlastRPG_7 (Text_BlastRPG_7)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_7 extends Sprite {
}
}//package
Section 458
//Text_BlastRPG_8 (Text_BlastRPG_8)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_8 extends Sprite {
}
}//package
Section 459
//Text_BlastRPG_9 (Text_BlastRPG_9)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_9 extends Sprite {
}
}//package
Section 460
//Text_BlastRPG_A (Text_BlastRPG_A)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_A extends Sprite {
}
}//package
Section 461
//Text_BlastRPG_APOSTROPHE (Text_BlastRPG_APOSTROPHE)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_APOSTROPHE extends Sprite {
}
}//package
Section 462
//Text_BlastRPG_B (Text_BlastRPG_B)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_B extends Sprite {
}
}//package
Section 463
//Text_BlastRPG_C (Text_BlastRPG_C)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_C extends Sprite {
}
}//package
Section 464
//Text_BlastRPG_COLON (Text_BlastRPG_COLON)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_COLON extends Sprite {
}
}//package
Section 465
//Text_BlastRPG_COMMA (Text_BlastRPG_COMMA)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_COMMA extends Sprite {
}
}//package
Section 466
//Text_BlastRPG_D (Text_BlastRPG_D)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_D extends Sprite {
}
}//package
Section 467
//Text_BlastRPG_E (Text_BlastRPG_E)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_E extends Sprite {
}
}//package
Section 468
//Text_BlastRPG_EQUALS (Text_BlastRPG_EQUALS)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_EQUALS extends Sprite {
}
}//package
Section 469
//Text_BlastRPG_EXCLAMATION (Text_BlastRPG_EXCLAMATION)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_EXCLAMATION extends Sprite {
}
}//package
Section 470
//Text_BlastRPG_F (Text_BlastRPG_F)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_F extends Sprite {
}
}//package
Section 471
//Text_BlastRPG_FORWARDSLASH (Text_BlastRPG_FORWARDSLASH)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_FORWARDSLASH extends Sprite {
}
}//package
Section 472
//Text_BlastRPG_G (Text_BlastRPG_G)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_G extends Sprite {
}
}//package
Section 473
//Text_BlastRPG_H (Text_BlastRPG_H)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_H extends Sprite {
}
}//package
Section 474
//Text_BlastRPG_HYPHEN (Text_BlastRPG_HYPHEN)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_HYPHEN extends Sprite {
}
}//package
Section 475
//Text_BlastRPG_I (Text_BlastRPG_I)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_I extends Sprite {
}
}//package
Section 476
//Text_BlastRPG_J (Text_BlastRPG_J)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_J extends Sprite {
}
}//package
Section 477
//Text_BlastRPG_K (Text_BlastRPG_K)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_K extends Sprite {
}
}//package
Section 478
//Text_BlastRPG_L (Text_BlastRPG_L)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_L extends Sprite {
}
}//package
Section 479
//Text_BlastRPG_M (Text_BlastRPG_M)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_M extends Sprite {
}
}//package
Section 480
//Text_BlastRPG_N (Text_BlastRPG_N)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_N extends Sprite {
}
}//package
Section 481
//Text_BlastRPG_O (Text_BlastRPG_O)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_O extends Sprite {
}
}//package
Section 482
//Text_BlastRPG_P (Text_BlastRPG_P)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_P extends Sprite {
}
}//package
Section 483
//Text_BlastRPG_PLUS (Text_BlastRPG_PLUS)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_PLUS extends Sprite {
}
}//package
Section 484
//Text_BlastRPG_Q (Text_BlastRPG_Q)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_Q extends Sprite {
}
}//package
Section 485
//Text_BlastRPG_QUESTION (Text_BlastRPG_QUESTION)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_QUESTION extends Sprite {
}
}//package
Section 486
//Text_BlastRPG_QUOTES (Text_BlastRPG_QUOTES)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_QUOTES extends Sprite {
}
}//package
Section 487
//Text_BlastRPG_R (Text_BlastRPG_R)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_R extends Sprite {
}
}//package
Section 488
//Text_BlastRPG_S (Text_BlastRPG_S)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_S extends Sprite {
}
}//package
Section 489
//Text_BlastRPG_SPACE (Text_BlastRPG_SPACE)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_SPACE extends Sprite {
}
}//package
Section 490
//Text_BlastRPG_STOP (Text_BlastRPG_STOP)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_STOP extends Sprite {
}
}//package
Section 491
//Text_BlastRPG_T (Text_BlastRPG_T)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_T extends Sprite {
public var kerning:MovieClip;
}
}//package
Section 492
//Text_BlastRPG_U (Text_BlastRPG_U)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_U extends Sprite {
}
}//package
Section 493
//Text_BlastRPG_V (Text_BlastRPG_V)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_V extends Sprite {
}
}//package
Section 494
//Text_BlastRPG_W (Text_BlastRPG_W)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_W extends Sprite {
}
}//package
Section 495
//Text_BlastRPG_X (Text_BlastRPG_X)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_X extends Sprite {
}
}//package
Section 496
//Text_BlastRPG_Y (Text_BlastRPG_Y)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_Y extends Sprite {
}
}//package
Section 497
//Text_BlastRPG_Z (Text_BlastRPG_Z)
package {
import flash.display.*;
public dynamic class Text_BlastRPG_Z extends Sprite {
}
}//package
Section 498
//Text_BlastRPGBig_0 (Text_BlastRPGBig_0)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_0 extends Sprite {
}
}//package
Section 499
//Text_BlastRPGBig_1 (Text_BlastRPGBig_1)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_1 extends Sprite {
}
}//package
Section 500
//Text_BlastRPGBig_2 (Text_BlastRPGBig_2)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_2 extends Sprite {
}
}//package
Section 501
//Text_BlastRPGBig_3 (Text_BlastRPGBig_3)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_3 extends Sprite {
}
}//package
Section 502
//Text_BlastRPGBig_4 (Text_BlastRPGBig_4)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_4 extends Sprite {
}
}//package
Section 503
//Text_BlastRPGBig_5 (Text_BlastRPGBig_5)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_5 extends Sprite {
}
}//package
Section 504
//Text_BlastRPGBig_6 (Text_BlastRPGBig_6)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_6 extends Sprite {
}
}//package
Section 505
//Text_BlastRPGBig_7 (Text_BlastRPGBig_7)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_7 extends Sprite {
}
}//package
Section 506
//Text_BlastRPGBig_8 (Text_BlastRPGBig_8)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_8 extends Sprite {
}
}//package
Section 507
//Text_BlastRPGBig_9 (Text_BlastRPGBig_9)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_9 extends Sprite {
}
}//package
Section 508
//Text_BlastRPGBig_A (Text_BlastRPGBig_A)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_A extends Sprite {
}
}//package
Section 509
//Text_BlastRPGBig_APOSTROPHE (Text_BlastRPGBig_APOSTROPHE)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_APOSTROPHE extends Sprite {
}
}//package
Section 510
//Text_BlastRPGBig_B (Text_BlastRPGBig_B)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_B extends Sprite {
}
}//package
Section 511
//Text_BlastRPGBig_C (Text_BlastRPGBig_C)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_C extends Sprite {
}
}//package
Section 512
//Text_BlastRPGBig_COLON (Text_BlastRPGBig_COLON)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_COLON extends Sprite {
}
}//package
Section 513
//Text_BlastRPGBig_COMMA (Text_BlastRPGBig_COMMA)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_COMMA extends Sprite {
}
}//package
Section 514
//Text_BlastRPGBig_D (Text_BlastRPGBig_D)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_D extends Sprite {
}
}//package
Section 515
//Text_BlastRPGBig_E (Text_BlastRPGBig_E)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_E extends Sprite {
}
}//package
Section 516
//Text_BlastRPGBig_EQUALS (Text_BlastRPGBig_EQUALS)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_EQUALS extends Sprite {
}
}//package
Section 517
//Text_BlastRPGBig_EXCLAMATION (Text_BlastRPGBig_EXCLAMATION)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_EXCLAMATION extends Sprite {
}
}//package
Section 518
//Text_BlastRPGBig_F (Text_BlastRPGBig_F)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_F extends Sprite {
}
}//package
Section 519
//Text_BlastRPGBig_FORWARDSLASH (Text_BlastRPGBig_FORWARDSLASH)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_FORWARDSLASH extends Sprite {
}
}//package
Section 520
//Text_BlastRPGBig_G (Text_BlastRPGBig_G)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_G extends Sprite {
}
}//package
Section 521
//Text_BlastRPGBig_H (Text_BlastRPGBig_H)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_H extends Sprite {
}
}//package
Section 522
//Text_BlastRPGBig_HYPHEN (Text_BlastRPGBig_HYPHEN)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_HYPHEN extends Sprite {
}
}//package
Section 523
//Text_BlastRPGBig_I (Text_BlastRPGBig_I)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_I extends Sprite {
}
}//package
Section 524
//Text_BlastRPGBig_J (Text_BlastRPGBig_J)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_J extends Sprite {
}
}//package
Section 525
//Text_BlastRPGBig_K (Text_BlastRPGBig_K)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_K extends Sprite {
}
}//package
Section 526
//Text_BlastRPGBig_L (Text_BlastRPGBig_L)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_L extends Sprite {
}
}//package
Section 527
//Text_BlastRPGBig_M (Text_BlastRPGBig_M)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_M extends Sprite {
}
}//package
Section 528
//Text_BlastRPGBig_N (Text_BlastRPGBig_N)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_N extends Sprite {
}
}//package
Section 529
//Text_BlastRPGBig_O (Text_BlastRPGBig_O)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_O extends Sprite {
}
}//package
Section 530
//Text_BlastRPGBig_P (Text_BlastRPGBig_P)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_P extends Sprite {
}
}//package
Section 531
//Text_BlastRPGBig_Q (Text_BlastRPGBig_Q)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_Q extends Sprite {
}
}//package
Section 532
//Text_BlastRPGBig_QUESTION (Text_BlastRPGBig_QUESTION)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_QUESTION extends Sprite {
}
}//package
Section 533
//Text_BlastRPGBig_QUOTES (Text_BlastRPGBig_QUOTES)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_QUOTES extends Sprite {
}
}//package
Section 534
//Text_BlastRPGBig_R (Text_BlastRPGBig_R)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_R extends Sprite {
public var kerning:MovieClip;
}
}//package
Section 535
//Text_BlastRPGBig_S (Text_BlastRPGBig_S)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_S extends Sprite {
}
}//package
Section 536
//Text_BlastRPGBig_SPACE (Text_BlastRPGBig_SPACE)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_SPACE extends Sprite {
}
}//package
Section 537
//Text_BlastRPGBig_STOP (Text_BlastRPGBig_STOP)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_STOP extends Sprite {
}
}//package
Section 538
//Text_BlastRPGBig_T (Text_BlastRPGBig_T)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_T extends Sprite {
}
}//package
Section 539
//Text_BlastRPGBig_U (Text_BlastRPGBig_U)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_U extends Sprite {
}
}//package
Section 540
//Text_BlastRPGBig_V (Text_BlastRPGBig_V)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_V extends Sprite {
}
}//package
Section 541
//Text_BlastRPGBig_W (Text_BlastRPGBig_W)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_W extends Sprite {
}
}//package
Section 542
//Text_BlastRPGBig_X (Text_BlastRPGBig_X)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_X extends Sprite {
}
}//package
Section 543
//Text_BlastRPGBig_Y (Text_BlastRPGBig_Y)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_Y extends Sprite {
}
}//package
Section 544
//Text_BlastRPGBig_Z (Text_BlastRPGBig_Z)
package {
import flash.display.*;
public dynamic class Text_BlastRPGBig_Z extends Sprite {
}
}//package
Section 545
//TrailMC (TrailMC)
package {
import flash.display.*;
public dynamic class TrailMC extends MovieClip {
}
}//package
Section 546
//TrailMC1 (TrailMC1)
package {
import flash.display.*;
public dynamic class TrailMC1 extends MovieClip {
}
}//package
Section 547
//TrailMC2 (TrailMC2)
package {
import flash.display.*;
public dynamic class TrailMC2 extends MovieClip {
}
}//package
Section 548
//TrailMC3 (TrailMC3)
package {
import flash.display.*;
public dynamic class TrailMC3 extends MovieClip {
}
}//package
Section 549
//TrailMC4 (TrailMC4)
package {
import flash.display.*;
public dynamic class TrailMC4 extends MovieClip {
}
}//package
Section 550
//UnlockFlagMC (UnlockFlagMC)
package {
import flash.display.*;
public dynamic class UnlockFlagMC extends Sprite {
}
}//package
Section 551
//WaterAuraMC (WaterAuraMC)
package {
import com.nitrome.gfx.*;
public dynamic class WaterAuraMC extends TickClip {
public function WaterAuraMC(){
addFrameScript(9, frame10);
}
function frame10(){
gotoAndPlay(1);
}
}
}//package
Section 552
//WaterParticleMC (WaterParticleMC)
package {
import flash.display.*;
public dynamic class WaterParticleMC extends MovieClip {
}
}//package
Section 553
//WaterSkeletonDebrisMC1 (WaterSkeletonDebrisMC1)
package {
import flash.display.*;
public dynamic class WaterSkeletonDebrisMC1 extends Sprite {
}
}//package
Section 554
//WaterSkeletonDebrisMC2 (WaterSkeletonDebrisMC2)
package {
import flash.display.*;
public dynamic class WaterSkeletonDebrisMC2 extends Sprite {
}
}//package
Section 555
//WaterSkeletonDebrisMC3 (WaterSkeletonDebrisMC3)
package {
import flash.display.*;
public dynamic class WaterSkeletonDebrisMC3 extends Sprite {
}
}//package
Section 556
//WaterSkeletonDebrisMC4 (WaterSkeletonDebrisMC4)
package {
import flash.display.*;
public dynamic class WaterSkeletonDebrisMC4 extends Sprite {
}
}//package
Section 557
//WaterSkeletonIdleAnim (WaterSkeletonIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSkeletonIdleAnim extends TickClip {
}
}//package
Section 558
//WaterSkeletonMC (WaterSkeletonMC)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSkeletonMC extends TickClip {
public function WaterSkeletonMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 559
//WaterSkeletonStrikeAnim (WaterSkeletonStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSkeletonStrikeAnim extends TickClip {
}
}//package
Section 560
//WaterSkeletonStrikeAnimHolder (WaterSkeletonStrikeAnimHolder)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSkeletonStrikeAnimHolder extends TickClip {
}
}//package
Section 561
//WaterSlimeDebrisMC1 (WaterSlimeDebrisMC1)
package {
import flash.display.*;
public dynamic class WaterSlimeDebrisMC1 extends Sprite {
}
}//package
Section 562
//WaterSlimeDebrisMC2 (WaterSlimeDebrisMC2)
package {
import flash.display.*;
public dynamic class WaterSlimeDebrisMC2 extends Sprite {
}
}//package
Section 563
//WaterSlimeFlyingAnim (WaterSlimeFlyingAnim)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSlimeFlyingAnim extends TickClip {
}
}//package
Section 564
//WaterSlimeIdleAnim (WaterSlimeIdleAnim)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSlimeIdleAnim extends TickClip {
}
}//package
Section 565
//WaterSlimeMC (WaterSlimeMC)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSlimeMC extends TickClip {
public function WaterSlimeMC(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 566
//WaterSlimeStrikeAnim (WaterSlimeStrikeAnim)
package {
import com.nitrome.gfx.*;
public dynamic class WaterSlimeStrikeAnim extends TickClip {
}
}//package