| STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 233053 |
| /disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2640 · P5279 |
![]() | This is the info page for Flash #263922 |
| THIS VERSION OF THE GAME IS URL LOCKED. YOU CAN PLAY IT ONLY AT WWW.ZUPERGAMES.NET |
| THIS VERSION OF THE GAME IS URL LOCKED. YOU CAN PLAY IT ONLY AT WWW.ARMORGAMES.COM |
| THIS VERSION OF THE GAME IS URL LOCKED. YOU CAN PLAY IT ONLY AT WWW.NEWGROUNDS.COM |
| v 1.2 AG |
| DAMAGE: |
| RATE: |
| RANGE: |
| PRICE: |
ActionScript [AS3]
Section 1//MainTimeline (miniTowerDefencearmor1_fla.MainTimeline) package miniTowerDefencearmor1_fla { import flash.events.*; import flash.text.*; import flash.media.*; import flash.display.*; import flash.net.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.printing.*; import flash.system.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public const INSTRUCTIONS_BTN_Y:int; public const PREDICTIVE_STEPS:int = 20; public const FIRST_ENEMIES_KILLED_ACHIEVEMENT:int = 13; public const MAX_BONUS_POINTS:int = 200; public const TOWER_BULLET_SPEED:Array; public const D:Number = 20; public const FIRST_VISITED_DEVELOPER_WEBSITE_ACHIEVEMENT:int = 60; public const MUSIC_BTN_X:int = 425; public const MUSIC_BTN_Y:int = 20; public const TOTAL_ACHIEVEMENTS:int = 60; public const TD_TEXT2_X:int = 520; public const TOWER_CANCEL_Y:int = 295; public const TOWER_CANCEL_X:int = 471; public const TOTAL_UPGRADES:Array; public const TOTAL_H_ACHIEVEMENT_BOXES:int = 15; public const NEW_GAME_BTN_Y:int = 158; public const INIT_MAP_AWARDS_BTN_X:int = 457; public const FIRST_TIMER_ACHIEVEMENT:int = 1; public const INITIAL_ACHIEVEMENT_FALL_SPEED:Number = 1.52; public const FISRT_LVL_ICON_X:int = 92; public const FISRT_LVL_ICON_Y:int = 105; public const BONUS_DELAY:int = 10; public const TOTAL_V_ACHIEVEMENT_BOXES:int = 4; public const FIRST_MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT:int = 44; public const NW_BONUS_POINTS_X:int = 500; public const NW_BONUS_POINTS_Y:int = 431; public const SMALL_BOMB_RADIUS:Array; public const UPGRADE_DETAILS_TOWER_ICON_X:int = 465; public const UPGRADE_DETAILS_TOWER_ICON_Y:int = 270; public const BUILDING_SINGLE_TOWER_TITLE_X:int = 480; public const BUILDING_SINGLE_TOWER_TITLE_Y:int = 200; public const LVL_ICON_DIST_Y:int = 29; public const LVL_ICON_DIST_X:int = 125; public const INIT_MAP_MAP_BTN_X:int = 104; public const INIT_ACHIEVEMENT_BOXES_X:int = 53; public const INIT_ACHIEVEMENT_BOXES_Y:int = 120; public const TOWER_ICONS_DIST_Y:int = 30; public const TOTAL_UPGRADE_TYPES:int = 10; public const TOTAL_MAX_UPGRADED_TURRETS_ACHIEVEMENTS:int = 5; public const ACHIEVEMENT_BOXES_DIST_X:int = 32; public const ACHIEVEMENT_BOXES_DIST_Y:int = 67; public const TOWER_ICONS_DIST_X:int = 33; public const FIRST_6_TOWERS_COST_MULTIPLIER:Array; public const TOTAL_TOWER_TYPES:int = 8; public const TOTAL_LEVELS:int = 40; public const TD_TEXTS_V_DIST:int = 20; public const INITIAL_UPGRADE_POINTS:int = 5; public const UPGRADE_BTN_Y:int = 302; public const TOTAL_ENEMIES_KILLED_ACHIEVEMENT:int = 8; public const BOMBS_COST_MULTIPLIER:Array; public const TOTAL_VISITED_DEVELOPER_WEBSITE_ACHIEVEMENTS:int = 1; public const CONTINUE_GAME_BTN_Y:int = 203; public const NW_ENEMY_COUNT_X:int = 490; public const NW_ENEMY_COUNT_Y:int = 375; public const UPGRADE_BTN_X:int = 528; public const FISRT_UPGRADE_BOX_Y:Array; public const FISRT_UPGRADE_BOX_X:Array; public const INIT_MAP_UPGRADES_BTN_X:int = 281; public const INIT_MAP_MAINMENU_BTN_X:int = 117; public const INIT_MAP_MAINMENU_BTN_Y:int = 422; public const SOUND_BTN_X:int = 400; public const SOUND_BTN_Y:int = 20; public const FIRST_TOTAL_BOMBS_EXPLODED_ACHIEVEMENT:int = 34; public const INITIAL_MONEY:Array; public const SELL_BTN_X:int = 473; public const BUILDING_TOWER_DESC_X:int = 480; public const BUILDING_TOWER_DESC_Y:int = 288; public const MENU_AREA_X:int = 111; public const MENU_AREA_Y:int = 115; public const SCREEN_WIDTH:int = 560; public const MAX_TOWER_LEVEL:int = 5; public const NW_ENEMIES_HP_X:int = 450; public const NW_ENEMIES_HP_Y:int = 385; public const ACHIEVEMENT_RECTANGLE_X:int = 124; public const ACHIEVEMENT_RECTANGLE_Y:int = 450; public const INIT_MAP_PLAY_BTN_X:int = 443; public const TOTAL_MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENTS:int = 8; public const SCREEN_HEIGHT:int = 450; public const TOTAL_ACHIEVEMENT_FALL_FRAMES:int = 140; public const FIRST_TOTAL_MAX_UPGRADED_TURRETS_ACHIEVEMENT:int = 39; public const TD_TEXT1_X:int = 496; public const TD_TEXT1_Y:int = 210; public const TOWER_DAMAGE_MULTIPLIER:Array; public const TOTAL_SCORE_ACHIEVEMENTS:int = 8; public const NEW_GAME_WINDOW_X:int = 250; public const NEW_GAME_WINDOW_Y:int = 180; public const FIRST_BIG_LEVEL_SCORE_ACHIEVEMENT:int = 8; public const FIRST_TOWER_ICON_X:int = 471; public const FIRST_TOWER_ICON_Y:int = 155; public const DEV_ACHIEVEMENT_TEXT_Y:int = 25; public const NW_ENEMY_ICON_Y:int = 375; public const NW_ENEMY_ICON_X:int = 515; public const TOTAL_TURRETS_BUILT_ACHIEVEMENTS:int = 5; public const BOMBS_DAMAGE_MULTIPLIER:Array; public const ACHIEVEMENT_DESC_TEXT_Y:int = 360; public const ACHIEVEMENT_DESC_TEXT_X:int = 30; public const OPTIONS_BTN_Y:int; public const LINK_ADD_GAME_Y:int = 404; public const LINK_ADD_GAME_X:int = 111; public const TOTAL_BIG_LEVEL_SCORE_ACHIEVEMENTS:int = 5; public const PLAY_BTN_Y:int = 115; public const UPGRADE_BOX_DIST:int = 30; public const TOTAL_TIMER_ACHIEVEMENTS:int = 7; public const CREDITS_BTN_Y:int; public const DETAILS_TOWER_ICON_X:int = 475; public const DETAILS_TOWER_ICON_Y:int = 180; public const TOTAL_FADE_FRAMES:int = 9; public const TURRET_ROTATION_SPEED:int = 2; public const INIT_MAP_TOP_BTN_Y:int = 59; public const LINK_MORE_GAMES_X:int = 410; public const LINK_MORE_GAMES_Y:int = 383; public const NW_TITLE_X:int = 450; public const NW_TITLE_Y:int = 347; public const TOTAL_OWNED_UPGRADES_ACHIEVEMENTS:int = 8; public const FIRST_TOTAL_SCORE_ACHIEVEMENT:int = 21; public const LEVEL_ICONS_ROWS:int = 4; public const FIRST_TOTAL_TURRETS_BUILT_ACHIEVEMENT:int = 29; public const NW_SEND_BTN_X:int = 502; public const NW_SEND_BTN_Y:int = 421; public const TOTAL_BOMBS_EXPLODED_ACHIEVEMENTS:int = 5; public const FIRST_TOTAL_OWNED_UPGRADES_ACHIEVEMENT:int = 52; public const BIG_BOMB_RADIUS:Array; public const FALL_ACHIEVEMENT_ACCELERATION:Number = 1.21; public var enemyHpText:TextField; public var total_series_data:Array; public var totalScoreText:TextField; public var add_game_btn_ha:addGameBtnHitArea; public var save_name:String; public var STAT_TURRETS_UPGRADED_TO_MAX:int; public var loader:Loader; public var myFont:Font; public var logo_ha:logoHitArea; public var intro_anim:introAnim; public var expert_score; public var lives_left:livesLeft; public var upgradeWindowFormat:TextFormat; public var TOWER_RANGE:Array; public var a:Array; public var upgrade_points:int; public var i; public var j; public var k:int; public var TOWER_RATE:Array; public var options_sound_off_btn:soundOffBtn; public var finished:Boolean; public var skip_btn_ha:skipBtnHitArea; public var boxUpgradeA; public var pause_btn:PauseBtn; public var building_tower_desc:BuildingTowerDesc; public var Cx; public var Cy; public var towerNameText:TextField; public var TIME_ACHIEVEMENT:Array; public var FinishWindowFormatText:TextFormat; public var achievementBoxHaA:Array; public var black_screen:blackScreen; public var money; public var bg_new_game_window:bgNewGameWindow; public var instructions_btn:instructionsBtn; public var achievementWindowDescriptionFormat:TextFormat; public var tmp_deg; public var selected_level:int; public var oldCx; public var oldCy:int; public var quality:int; public var speedButtonA:Array; public var towerPriceText:TextField; public var sound:int; public var bonus_points; public var levels_icons_ha:Sprite; public var tmp_achievement_rectangle_text:TextField; public var segment_data:Array; public var music_btn_ha:musicBtnHitArea; public var temp_enemy_id; public var upgrade_btn_ha:UpgradeBtnHitArea; public var options_low_btn_ha:qualityLowBtnHitArea; public var music_btn:musicBtn; public var bg_confirm_delete_window:bgConfirmDeleteWindow; public var continue_game_btn:continueGameBtn; public var options_sound_on_btn_ha:soundOnBtnHitArea; public var towerIconA:Array; public var bonus_delay:int; public var tower_upgrade_data:TowerUpgradeData; public var speed_buttons_ha:Sprite; public var next_wave_enemies_hp_text:TextField; public var destinations_data:Array; public var s_21:s21; public var s_22:s22; public var s_23:s23; public var wave_start_time:Array; public var current_page:String; public var instructions_btn_ha:instructionsBtnHitArea; public var back_to_menu_btn:BtnMainMenu; public var wave_last_enemy:Array; public var ad_img:Ad; public var s_30:s30; public var s_31:s31; public var s_32:s32; public var new_game_speed:int; public var game_speed; public var ACHIEVEMENT_NAME:Array; public var enemies_hp:Array; public var achievementTitleFormat:TextFormat; public var s_41:s41; public var api_url:String; public var s_43:s43; public var s_40:s40; public var s_42:s42; public var levelIconA:Array; public var total_score:int; public var kongregate; public var STAT_TURRETS_BUILT; public var single_serie_time_dif_data:Array; public var barFormatAlignLeft:TextFormat; public var pause_frame:int; public var upgrade_btn:UpgradeBtn; public var options_close_btn_ha:closeBtnHitArea; public var tower_next_price_text:TextField; public var shift_key_pressed:Boolean; public var moneyText:TextField; public var last_frame_interface_status:String; public var level_score; public var BOMBS_USED_ACHIEVEMENT:Array; public var tmpX; public var tmpY:Number; public var active_upgrade_level:Array; public var tower_icons_ha2:Sprite; public var STAT_ENEMIES_KILLED; public var tmp_tower_icon_ha2:towerBtnHitArea; public var tower_current_rate_text:TextField; public var total_segments:int; public var tmp_tower_icon_ha:towerBtnHitArea; public var tower_turrets:Sprite; public var TOWER_UPGRADE_PRICE:Array; public var not_enough_money_txt:notEnoughMoneyTxt; public var pause_window:pauseWindow; public var tower_icons:Sprite; public var next_wave_title_text:TextField; public var achievements_anim:achievementsAnim; public var levelIconExpertA:Array; public var total_level_time; public var tower_next_range_text:TextField; public var next_wave_enemy_icon:EnemyBigIcon; public var SCORE_SINGLE_GAME_ACHIEVEMENT:Array; public var request:URLRequest; public var ad_img_ha:smallAdHitArea; public var new_game_btn_ha:newGameBtnHitArea; public var STAT_MISSIONS_COMPLETED_EXPERT_SCORE; public var start_level_time; public var ACHIEVEMENT_DESCRIPTION:Array; public var sAmbienceVol:SoundTransform; public var areas_data:Array; public var not_ok:notOK; public var tutorial_page:int; public var TURRETS_BUILT_ACHIEVEMENT:Array; public var music_frame:int; public var tower_next_rate_text:TextField; public var boxUpgradeHaA:Array; public var achievementBoxBgA; public var options_music_on_btn_ha:soundOnBtnHitArea; public var tmp_speed_btn_ha:speedBtnHitArea; public var tmp_achievement_box_hit_area:AchievementBoxHitArea; public var tower_turret:Array; public var goto_menu_btn:gotoMenuBtn; public var sound_btn_ha:soundBtnHitArea; public var enemy_icon:EnemyIcon; public var barFormatLevelScore:TextFormat; public var wave:int; public var options_high_btn_ha:qualityHighBtnHitArea; public var play_map_btn:playMapBtn; public var achievement_status:Array; public var tower_bases:Sprite; public var percentText:TextField; public var black_screen_pause_window:blackScreen; public var mouse_over_btn_id:int; public var continue_game_btn_ha:newGameBtnHitArea; public var tower_next_damage_text:TextField; public var barFormatTotalScore:TextFormat; public var options_sound_off_btn_ha:soundOffBtnHitArea; public var main_menu_btn_ha:BtnBackToMenuHitArea; public var intro_play_btn:introPlayBtn; public var sell_btn_ha:UpgradeBtnHitArea; public var options_close_btn:closeBtn; public var grid:Grid; public var options_music_on_btn:soundOnBtn; public var pointsEarnedFWText:TextField; public var upgradePriceText:TextField; public var myFont2:Font; public var tmp_achievement_bg:AchievementBg; public var level; public var STAT_OWNED_UPGRADES; public var skip_btn:skipBtn; public var next_wave_enemies_speed_text:TextField; public var tower_range_circle:towerRangeCircle; public var tmp_level_icon_ha:levelIconHitArea; public var game_music_vol:Number; public var tmp_upgrade_box_ha:UpgradeBoxHitArea; public var bullets:Sprite; public var tmp_dist:Number; public var enemy_starter_hp:Array; public var map_window_bg:mapWindowBg; public var upgrade_boxes:Sprite; public var towerIconHaA:Array; public var tmp_current_segm:int; public var sell_btn:SellBtn; public var border_load_bar:borderLoadBar; public var tower_current_damage_text:TextField; public var total_wave_enemies:Array; public var upgrades_btn:BtnUpgrades; public var confirm_delete_no_btn_ha:YesNoBtnHitArea; public var legend:Legend; public var destination:Destination; public var total_waves_data:Array; public var STAT_BOMBS_USED; public var tmp_tower_icon:towerBtn; public var logo_over_text:LogoOverText; public var pause_btn_ha:PauseBtnHitArea; public var restart_btn:restartBtn; public var BUY_UPGRADE_DESC:Array; public var go_home_btn_ha:goHomeBtnHitArea; public var finish_level_window_bg:FinishLevelWindowBg; public var new_game_btn:newGameBtn; public var awards_btn:BtnAwards; public var MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT:Array; public var selected_tower:String; public var options_music_off_btn_ha:soundOffBtnHitArea; public var levels_icons:Sprite; public var achievementList:Array; public var go_home_btn:goHomeBtn; public var TURRETS_UPGRADED_ACHIEVEMENT:Array; public var tmp_level_icon:levelIcon; public var levelScoreFWText:TextField; public var tmp_enemy_id_to_shoot:int; public var confirm_delete_no_btn:NoBtn; public var last_enemy_id:int; public var tower_icons_ha:Sprite; public var options_med_btn:qualityMedBtn; public var enemy_speed:Array; public var totalScoreFWText:TextField; public var achievement_box:Sprite; public var game_status; public var selected_enemy; public var music_channel:SoundChannel; public var tmp_rad:Number; public var enemies_speed:Array; public var interseries_time_dif_data:Array; public var max_pos:Number; public var tmp_rap; public var credits_btn_ha:creditsBtnHitArea; public var bullet:Array; public var lives; public var map_btn:BtnMap; public var interface_bg:interfaceBg; public var level_status:Array; public var achievement_desc_text; public var instructions_bg:instructionsWindow; public var next_wave_enemy_count:enemyCount; public var ENEMIES_KILLED_ACHIEVEMENT:Array; public var play_btn_ha:playBtnHitArea; public var paramObj:Object; public var canBuildTower:Boolean; public var frame_id; public var options_sound_on_btn:soundOnBtn; public var credits_btn:creditsBtn; public var wave_enemies_type:Array; public var load_bar:loadBar; public var options_btn:optionsBtn; public var max_grid:int; public var tmp_speed_btn:speedBtn; public var achievementRectangleA:Array; public var speedButtonHaA:Array; public var enemy_money:Array; public var map:MapBg; public var tmp_type:int; public var m1:mm01; public var m2:mm02; public var m3:mm03; public var STAT_FINISHED_GAMES_TOTAL_TIME:int; public var confirm_delete_yes_btn_ha:YesNoBtnHitArea; public var credits_close_btn_ha:closeBtnHitArea; public var ok_btn:OkBtn; public var instructions_close_btn:closeBtn; public var TOWER_DAMAGE:Array; public var mX; public var mY:Number; public var tmp_achievement_box:AchievementBox; public var achievementRectangleTextA:Array; public var levels_expert_icons:Sprite; public var options_bg:optionsWindow; public var ok_btn_ha:OkBtnHitArea; public var old_page; public var btn_cancel:btnCancel; public var towerLevelText:TextField; public var confirm_delete_yes_btn:YesBtn; public var interface_status; public var tower_details_icon:towerBtn; public var tower_current_price_text:TextField; public var SCORE_TOTAL_ACHIEVEMENT:Array; public var barFormat:TextFormat; public var restart_btn_ha:gotoMenuBtnHitArea; public var active_enemies:int; public var level_icon_over:levelIconOver; public var build_tower:int; public var just_clicked_upgrade_tower:Boolean; public var tmp_upgrade_box:UpgradeBox; public var upgrade_boxes_ha:Sprite; public var credits_bg:creditsWindow; public var resume_btn_ha:resumeBtnHitArea; public var s3:s03; public var OWNED_UPGRADES_ACHIEVEMENT:Array; public var music; public var credits_close_btn:closeBtn; public var s1:s01; public var barFormatExpertScore:TextFormat; public var instructions_close_btn_ha:closeBtnHitArea; public var tower_base:Array; public var options_low_btn:qualityLowBtn; public var enemies:Sprite; public var show_tutorial:int; public var saved_data:SharedObject; public var tmp_achievement_text; public var isKong:Boolean; public var tower_current_range_text:TextField; public var level_icon_selected:levelIconSelected; public var add_game_btn:addGameBtn; public var tmp_segm_pos:Number; public var tmp_display_object_list:Array; public var expertScoreFWText:TextField; public var options_btn_ha:optionsBtnHitArea; public var barFormatTitle:TextFormat; public var main_menu_bg:mainMenuBg; public var btn_next_wave:sendBtn; public var tmp_expert_mc:expertMc; public var enemy_slowed_down_icon:EnemySlowedDownIcon; public var enemies_type_data:Array; public var ad_id:int; public var btn_cancel_ha:btnCancelHitArea; public var tmp_explosion_data:Array; public var achievementTextA:Array; public var old_game_status; public var black_screen_finish_window:blackScreen; public var options_high_btn:qualityHighBtn; public var play_btn:playBtn; public var upgradeDetailsText:TextField; public var status_frame; public var bonus_points_text:TextField; public var wave_enemy_wait_data:Array; public var barFormatYellow:TextFormat; public var levelIconHaA:Array; public var BUY_UPGRADE_PRICE:Array; public var last_bullet_id:int; public var achievementRectangleFormat:TextFormat; public var canPlay:Boolean; public var activeAchievementRectangle:Boolean; public var sound_btn:soundBtn; public var segment:Array; public var total_enemies_data:Array; public var tmp_achievement_rectangle:AchievementRectangle; public var back_to_menu_btn_ha:BtnMainMenuHitArea; public var main_menu_btn:BtnBackToMenu; public var highlight_bomb:highlightBomb; public var towerIconHa2A:Array; public var upgrade_names:UpgradeNames; public var score_titles:scoreTitles; public var enemySpeedText:TextField; public var resume_btn:resumeBtn; public var STAT_VISITED_LINKS:int; public var level_frame_id:int; public var speed_buttons:Sprite; public var enemy:Array; public var barFormat2:TextFormat; public var enemy_poisoned_icon:EnemyPoisonedIcon; public var building_single_tower_title:BuildingTowerTitle; public var options_music_off_btn:soundOffBtn; public var achievementBoxA; public var useURLLock:Boolean; public var btn_next_wave_ha:sendBtnHitArea; public var highlight_tower:highlightTower; public var goto_menu_btn_ha:gotoMenuBtnHitArea; public var levelScoreText:TextField; public var explosionA:Array; public var expert_scores:Array; public var intro_play_btn_ha:introPlayBtnHitArea; public var expertScoreText:TextField; public var total_waves:int; public var upgradePointsText:TextField; public var tutorial_window:tutorialWindow; public var options_med_btn_ha:qualityMedBtnHitArea; public var myformat7:TextFormat; public var play_map_btn_ha:playMapBtnHitArea; public var explosions:Sprite; public var wave_status:Array; public function MainTimeline(){ TOWER_BULLET_SPEED = new Array(4, 4, 4, 4, 4, 4); INSTRUCTIONS_BTN_Y = (MENU_AREA_Y + 45); OPTIONS_BTN_Y = (MENU_AREA_Y + 90); CREDITS_BTN_Y = (MENU_AREA_Y + 135); TOTAL_UPGRADES = new Array(10, 10, 10, 10, 5, 5, 4, 5, 5, 4); INITIAL_MONEY = new Array(300, 330, 375, 450, 600, 800, 1000, 1500, 2000, 3000, 4000); FIRST_6_TOWERS_COST_MULTIPLIER = new Array(1, 0.95, 0.9, 0.85, 0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5); TOWER_DAMAGE_MULTIPLIER = new Array(1, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2); SMALL_BOMB_RADIUS = new Array(35, 40, 45, 50, 55, 60); BIG_BOMB_RADIUS = new Array(70, 80, 90, 100, 110, 120); BOMBS_COST_MULTIPLIER = new Array(1, 0.9, 0.8, 0.7, 0.6, 0.5); BOMBS_DAMAGE_MULTIPLIER = new Array(1, 1.5, 2, 4, 10); FISRT_UPGRADE_BOX_X = new Array(230, 230, 230, 230, 230, 230, 230, 230, 230, 230); FISRT_UPGRADE_BOX_Y = new Array(120, 140, 160, 180, 220, 240, 260, 300, 320, 340); super(); addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4); } public function pressedKeyBuildTower(_arg1:int):void{ build_tower = _arg1; if (build_tower <= 6){ grid.visible = true; }; hide_interface_data(); building_single_tower_title.gotoAndStop(build_tower); building_single_tower_title.visible = true; btn_cancel.visible = true; btn_cancel_ha.visible = true; interface_status = "build_tower"; if (show_tutorial == 1){ tutorial_page++; tutorial_window.gotoAndStop(tutorial_page); skip_btn.x = 346; skip_btn.y = 324; skip_btn_ha.x = skip_btn.x; skip_btn_ha.y = skip_btn.y; }; } public function intro_play_btn_mouse_over(_arg1:MouseEvent):void{ intro_play_btn.gotoAndStop(2); } public function pause_btn_mouse_out(_arg1:MouseEvent):void{ pause_btn.gotoAndStop(1); } public function precalculateGameData():void{ var _local1:*; var _local2:*; var _local3:*; var _local4:String; var _local5:*; var _local6:int; var _local7:*; var _local8:*; var _local9:*; var _local10:int; var _local11:*; var _local12:*; var _local13:*; var _local14:int; var _local15:*; var _local16:*; var _local17:int; _local1 = "expert_scores = new Array("; i = 0; while (i < total_waves_data.length) { _local16 = 0; j = 0; while (j < total_waves_data[i]) { _local10 = enemies_type_data[(i + 1)].charAt(j); _local15 = total_enemies_data[(i + 1)][j]; if (_local10 < 9){ _local16 = (_local16 + (_local15 * (10 + _local10))); } else { _local16 = (_local16 + (_local15 * 100)); }; j++; }; _local17 = (_local16 + (180 * (total_waves_data[i] - 1))); _local17 = (Math.floor((_local17 / 100)) * 100); _local1 = (_local1 + _local17); if (i < (total_waves_data.length - 1)){ _local1 = (_local1 + ", "); }; i++; }; trace((_local1 + ");")); } public function options_sound_on_btn_click(_arg1:MouseEvent):void{ sound = 1; options_sound_on_btn.gotoAndStop(1); options_sound_off_btn.gotoAndStop(2); } public function get_enemy_id(_arg1:String):int{ var _local2:int; var _local3:int; _local3 = -1; _local2 = 0; while (_local2 < enemy.length) { if (enemy[_local2].name == _arg1){ _local3 = _local2; }; _local2++; }; return (_local3); } public function confirm_no_btn_click(_arg1:MouseEvent):void{ bg_confirm_delete_window.visible = false; confirm_delete_no_btn.visible = false; confirm_delete_no_btn_ha.visible = false; confirm_delete_yes_btn.visible = false; confirm_delete_yes_btn_ha.visible = false; new_game_btn_ha.visible = true; continue_game_btn_ha.visible = true; playSound(s3); } public function tower_icon_ha2_mouse_over(_arg1:MouseEvent):void{ var _local2:towerBtnHitArea; var _local3:int; var _local4:Array; var _local5:int; _local2 = (_arg1.currentTarget as towerBtnHitArea); _local3 = int(_local2.name); towerIconHa2A[(_local3 - 1)].alpha = 0.1; building_tower_desc.gotoAndStop(_local3); building_tower_desc.visible = true; _local4 = TOWER_UPGRADE_PRICE[_local3]; _local5 = _local4[0]; if (_local3 <= 6){ _local5 = (_local5 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local5 = (_local5 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local5 = Math.floor(_local5); towerPriceText.text = String(_local5); towerPriceText.visible = true; not_enough_money_txt.visible = true; playSound(s1); } public function get_dir(_arg1:int):Object{ var _local2:Object; _local2 = new Object(); _local2.x = 0; _local2.y = 0; if (_arg1 == 1){ _local2.x = 1; _local2.y = 0; }; if (_arg1 == 2){ _local2.x = 0; _local2.y = 1; }; if (_arg1 == 3){ _local2.x = -1; _local2.y = 0; }; if (_arg1 == 4){ _local2.x = 0; _local2.y = -1; }; if (_arg1 == 5){ _local2.x = 0.7; _local2.y = 0.7; }; if (_arg1 == 6){ _local2.x = -0.7; _local2.y = 0.7; }; if (_arg1 == 7){ _local2.x = -0.7; _local2.y = -0.7; }; if (_arg1 == 8){ _local2.x = 0.7; _local2.y = -0.7; }; return (_local2); } public function main_menu_btn_mouse_out(_arg1:MouseEvent):void{ main_menu_btn.gotoAndStop(1); } public function show_default_interface():void{ var _local1:int; var _local2:int; _local1 = 0; while (_local1 < TOTAL_TOWER_TYPES) { _local2 = TOWER_UPGRADE_PRICE[(_local1 + 1)][0]; if (_local1 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ if (mouse_over_btn_id == (_local1 + 1)){ towerIconA[_local1].gotoAndStop((_local1 + 11)); } else { towerIconA[_local1].gotoAndStop((_local1 + 1)); }; towerIconA[_local1].visible = true; towerIconHaA[_local1].visible = true; towerIconHa2A[_local1].visible = false; } else { towerIconA[_local1].gotoAndStop((_local1 + 21)); towerIconA[_local1].visible = true; towerIconHaA[_local1].visible = false; towerIconHa2A[_local1].visible = true; }; _local1++; }; } public function logo_intro_mouse_out(_arg1:MouseEvent):void{ intro_anim.alpha = 1; logo_over_text.visible = false; } public function credits_btn_mouse_over(_arg1:MouseEvent):void{ credits_btn.gotoAndStop(2); playSound(s1); } public function goto_menu_btn_mouse_out(_arg1:MouseEvent):void{ back_to_menu_btn.gotoAndStop(1); } public function music_btn_click(_arg1:MouseEvent):void{ if (music == 1){ music = 0; music_channel.stop(); music_btn.gotoAndStop(4); } else { if (music == 0){ music = 1; music_channel = m2.play(0, 200); music_btn.gotoAndStop(2); }; }; playSound(s3); } public function initLevel(_arg1:int):void{ var _local2:*; var _local3:*; var _local4:Array; var _local5:*; var _local6:*; var _local7:int; var _local8:Segment; var _local9:*; var _local10:*; var _local11:*; var _local12:String; var _local13:Number; level = _arg1; old_game_status = game_status; game_status = "prepare_level"; status_frame = 0; if (old_game_status == "restart"){ status_frame = 4; }; level_frame_id = 0; if (old_game_status != "restart"){ music_frame = 0; }; lives = 10; money = INITIAL_MONEY[active_upgrade_level[1]]; level_score = 0; map.gotoAndStop(_arg1); map.cacheAsBitmap = true; lives_left.gotoAndStop((lives + 1)); _local4 = destinations_data[(_arg1 - 1)].split("|"); destination.x = ((_local4[0] * 20) + 10); destination.y = (((_local4[1] * 20) + 10) - 40); if (sound == 1){ sound_btn.gotoAndStop(1); } else { sound_btn.gotoAndStop(3); }; if (music == 1){ music_btn.gotoAndStop(1); } else { music_btn.gotoAndStop(3); }; bonus_points = MAX_BONUS_POINTS; bonus_delay = BONUS_DELAY; build_tower = 0; Cx = -1; interface_status = "towers"; last_frame_interface_status = ""; selected_enemy = ""; selected_tower = ""; active_enemies = 0; _local3 = segment_data[_arg1]; total_segments = _local3[0]; _local7 = 1; segment = new Array(); i = 0; while (i < total_segments) { _local8 = new Segment(_local3[_local7], _local3[(_local7 + 1)], _local3[(_local7 + 2)], _local3[(_local7 + 3)]); segment.push(_local8); _local7 = (_local7 + 4); i++; }; max_pos = 0; i = 0; while (i < total_segments) { max_pos = (max_pos + segment[i].len_pos); i++; }; max_pos = (max_pos * 1000); _local9 = areas_data[_arg1]; _local7 = 0; _local12 = ""; i = 0; while (i < _local9.length) { _local10 = _local9.charAt(_local7); switch (_local10){ case "0": _local11 = "0000"; break; case "1": _local11 = "0001"; break; case "2": _local11 = "0010"; break; case "3": _local11 = "0011"; break; case "4": _local11 = "0100"; break; case "5": _local11 = "0101"; break; case "6": _local11 = "0110"; break; case "7": _local11 = "0111"; break; case "8": _local11 = "1000"; break; case "9": _local11 = "1001"; break; case "A": _local11 = "1010"; break; case "B": _local11 = "1011"; break; case "C": _local11 = "1100"; break; case "D": _local11 = "1101"; break; case "E": _local11 = "1110"; break; case "F": _local11 = "1111"; break; }; _local12 = (_local12 + _local11); _local7++; i++; }; k = 0; a = new Array(); i = 0; while (i < max_grid) { a[i] = new Array(); j = 0; while (j < max_grid) { a[i][j] = int(_local12.charAt(k)); k++; j++; }; i++; }; total_waves = total_waves_data[(_arg1 - 1)]; wave = 0; wave_status = new Array(); wave_last_enemy = new Array(); wave_start_time = new Array(); i = 1; while (i <= total_waves) { wave_status.push("inactive"); wave_last_enemy.push(-1); wave_start_time.push(-1); i++; }; total_wave_enemies = new Array(); wave_enemies_type = new Array(); enemies_hp = new Array(); enemies_speed = new Array(); wave_enemy_wait_data = new Array(); _local7 = 1; i = 1; while (i <= total_waves) { total_wave_enemies[i] = total_enemies_data[_arg1][(i - 1)]; wave_enemies_type[i] = enemies_type_data[_arg1].charAt((i - 1)); enemies_hp[i] = getEnemyInitialHp(wave_enemies_type[i], i, _arg1); _local13 = (1 + ((_arg1 - 1) * 0.025)); enemies_speed[i] = (enemy_speed[(wave_enemies_type[i] - 1)] * _local13); _local5 = 0; _local2 = new Array(); _local6 = total_series_data[_arg1][(i - 1)]; j = 0; while (j < total_wave_enemies[i]) { if (j > 0){ _local5 = (_local5 + single_serie_time_dif_data[_arg1][(i - 1)]); }; if (_local6 > 1){ if (j > 0){ if ((j % (total_wave_enemies[i] / _local6)) == 0){ _local5 = (_local5 + interseries_time_dif_data[_arg1][(i - 1)]); }; }; }; _local2.push(_local5); j++; }; wave_enemy_wait_data[i] = _local2; _local7 = (_local7 + 5); i++; }; tmp_explosion_data = new Array(); expert_score = expert_scores[(_arg1 - 1)]; game_speed = 1; new_game_speed = 1; } public function tower_icon_mouse_out(_arg1:MouseEvent):void{ var _local2:towerBtnHitArea; var _local3:int; _local2 = (_arg1.currentTarget as towerBtnHitArea); _local3 = int(_local2.name); towerIconA[(_local3 - 1)].gotoAndStop((_local3 + 0)); mouse_over_btn_id = -1; building_tower_desc.visible = false; towerPriceText.visible = false; } public function click_send_next_wave(_arg1:MouseEvent):void{ if (wave > 0){ level_score = (level_score + bonus_points); total_score = (total_score + bonus_points); levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); }; send_next_wave(); if (show_tutorial == 1){ show_tutorial = 0; saved_data.data.showtutorial = show_tutorial; saved_data.flush(); tutorial_window.visible = false; skip_btn.visible = false; skip_btn_ha.visible = false; start_level_time = getTimer(); total_level_time = 0; status_frame = 0; game_status = "play"; }; } public function restart_btn_mouse_out(_arg1:MouseEvent):void{ restart_btn.gotoAndStop(1); } public function clickSpeedButton(_arg1:MouseEvent):void{ var _local2:speedBtnHitArea; var _local3:int; _local2 = (_arg1.currentTarget as speedBtnHitArea); _local3 = int(_local2.name); if (_local3 == 1){ new_game_speed = 1; }; if (_local3 == 2){ new_game_speed = 2; }; if (_local3 == 3){ new_game_speed = 3; }; if (new_game_speed != game_speed){ playSound(s_42); }; i = 1; while (i <= 3) { speedButtonA[(i - 1)].gotoAndStop(i); i++; }; speedButtonA[(new_game_speed - 1)].gotoAndStop((10 + new_game_speed)); } public function sell_btn_mouse_out(_arg1:MouseEvent):void{ sell_btn.gotoAndStop(1); } public function resume_btn_click(_arg1:MouseEvent):void{ game_status = "play"; pause_window.visible = false; resume_btn.visible = false; resume_btn_ha.visible = false; restart_btn.visible = false; restart_btn_ha.visible = false; goto_menu_btn.visible = false; goto_menu_btn_ha.visible = false; black_screen_pause_window.visible = false; start_level_time = getTimer(); total_level_time = 0; playSound(s3); } public function continue_game_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "init_upgrades_window"; loadStoredData(); playSound(s3); } public function credits_btn_click(_arg1:MouseEvent):void{ credits_bg.visible = true; credits_close_btn.visible = true; credits_close_btn_ha.visible = true; playSound(s3); } public function keyUpHandler(_arg1:KeyboardEvent):void{ if (_arg1.keyCode == 16){ shift_key_pressed = false; }; } public function playGameMusic():void{ music_frame++; if ((((game_music_vol < 100)) && ((game_music_vol > 0)))){ game_music_vol = (game_music_vol - 2); if (music == 1){ sAmbienceVol = new SoundTransform((game_music_vol / 100), 0); music_channel.soundTransform = sAmbienceVol; if (game_music_vol < 5){ game_music_vol = 0; music_channel.stop(); game_music_vol = 100; music_channel = m3.play(0, 200); }; }; }; if (music_frame < TOTAL_FADE_FRAMES){ if (music == 1){ sAmbienceVol = new SoundTransform((1 - (music_frame / TOTAL_FADE_FRAMES)), 0); music_channel.soundTransform = sAmbienceVol; }; }; if (music == 1){ if (music_frame == TOTAL_FADE_FRAMES){ music_channel.stop(); }; }; if (music == 1){ if (music_frame == (TOTAL_FADE_FRAMES + 1)){ music_channel = m2.play(0, 200); }; }; if (music == 1){ if ((((music_frame >= (TOTAL_FADE_FRAMES + 1))) && ((music_frame <= (TOTAL_FADE_FRAMES * 2))))){ sAmbienceVol = new SoundTransform(((music_frame - TOTAL_FADE_FRAMES) / TOTAL_FADE_FRAMES), 0); music_channel.soundTransform = sAmbienceVol; }; }; } public function keyDownHandler(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:int; if (_arg1.keyCode == 16){ shift_key_pressed = true; }; if (_arg1.keyCode == 27){ if ((((game_status == "play")) && ((build_tower > 0)))){ cancelBuildTower(); }; }; if ((((game_status == "play")) && ((interface_status == "towers")))){ if (_arg1.keyCode == 81){ _local3 = 1; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 87){ _local3 = 2; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 69){ _local3 = 3; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 65){ _local3 = 4; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 83){ _local3 = 5; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 68){ _local3 = 6; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 90){ _local3 = 7; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; if (_arg1.keyCode == 88){ _local3 = 8; _local2 = TOWER_UPGRADE_PRICE[_local3][0]; if (_local3 < 6){ _local2 = (_local2 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local2 = (_local2 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local2 = Math.floor(_local2); if (money >= _local2){ pressedKeyBuildTower(_local3); }; }; }; if (_arg1.keyCode == 80){ pause_btn_key_press(); }; if (_arg1.keyCode == 49){ pressKeySpeed(1); }; if (_arg1.keyCode == 50){ pressKeySpeed(2); }; if (_arg1.keyCode == 51){ pressKeySpeed(3); }; if (_arg1.keyCode == 78){ keypress_send_next_wave(); }; if (_arg1.keyCode == 77){ music_btn_key_press(); }; if (_arg1.keyCode == 70){ sound_btn_key_press(); }; } public function next_wave_btn_mouse_over(_arg1:MouseEvent):void{ btn_next_wave.gotoAndStop(2); playSound(s1); } public function hideLevelSelectWindow():void{ map_window_bg.visible = false; map_btn.visible = false; upgrades_btn.visible = false; achievements_anim.visible = false; awards_btn.visible = false; main_menu_btn.visible = false; play_map_btn.visible = false; main_menu_btn_ha.visible = false; play_map_btn_ha.visible = false; i = 1; while (i <= TOTAL_LEVELS) { levelIconA[(i - 1)].visible = false; levelIconHaA[(i - 1)].visible = false; levelIconExpertA[(i - 1)].visible = false; i++; }; level_icon_selected.visible = false; } public function onEnterFrame(_arg1:Event){ var _local2:Number; _local2 = ((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100); load_bar.scaleX = (_local2 / 100); if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){ percentText.text = "Load Complete"; percentText.setTextFormat(myformat7); intro_play_btn.visible = true; intro_play_btn_ha.visible = true; this.removeEventListener("enterFrame", onEnterFrame); } else { percentText.text = (String(int(_local2)) + "%"); percentText.setTextFormat(myformat7); }; } public function mainProg(_arg1:Event):void{ if (game_status == "intro_screen"){ showIntroScreen(); } else { if (game_status == "init_menu"){ showMenu(); fadeOutGameMusic(); } else { if (game_status == "init_upgrades_window"){ initUpgradesWindow(); fadeOutGameMusic(); } else { if (game_status == "level_select_window"){ showLevelSelectPage(); } else { if (game_status == "upgrades_window"){ showUpgradesPage(); } else { if (game_status == "awards_window"){ showAchievementsPage(); } else { if (game_status == "prepare_level"){ prepareLevel(); playGameMusic(); } else { if (game_status == "tutorial"){ showTutorial(); playGameMusic(); } else { if (game_status == "play"){ playGame(); playGameMusic(); } else { if (game_status == "paused"){ showPauseWindow(); } else { if (game_status == "end_level"){ showFinishLevelScreen(); playGameMusic(); } else { if (game_status == "restart"){ restartMission(); }; }; }; }; }; }; }; }; }; }; }; }; checkForNewAchievements(); updateAchievementsAnimations(); } public function play_btn_mouse_out(_arg1:MouseEvent):void{ play_btn.gotoAndStop(1); } public function options_sound_off_btn_click(_arg1:MouseEvent):void{ sound = 0; options_sound_on_btn.gotoAndStop(2); options_sound_off_btn.gotoAndStop(1); } public function intro_play_btn_click(_arg1:MouseEvent):void{ intro_play_btn_ha.visible = false; border_load_bar.visible = false; load_bar.visible = false; percentText.visible = false; gotoAndPlay(2); playSound(s3); } public function showUpgradesPage():void{ var _local1:*; var _local2:int; status_frame++; if (status_frame == 1){ old_page = current_page; current_page = "upgrades"; }; if (status_frame == 1){ map_window_bg.gotoAndStop(2); upgrade_names.visible = true; legend.visible = true; upgradeDetailsText.text = ""; upgradeDetailsText.visible = true; upgradePriceText.text = ""; upgradePriceText.visible = true; upgradePointsText.text = ("Upgrade Points: " + upgrade_points); upgradePointsText.visible = true; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; _local2 = BUY_UPGRADE_PRICE[(i + 1)][j]; if (active_upgrade_level[(i + 1)] > (j + 0)){ boxUpgradeA[(k - 1)].gotoAndStop(3); boxUpgradeHaA[(k - 1)].buttonMode = false; } else { if (upgrade_points >= _local2){ boxUpgradeA[(k - 1)].gotoAndStop(2); boxUpgradeHaA[(k - 1)].buttonMode = true; } else { boxUpgradeA[(k - 1)].gotoAndStop(1); boxUpgradeHaA[(k - 1)].buttonMode = false; }; }; boxUpgradeA[(k - 1)].visible = true; boxUpgradeHaA[(k - 1)].visible = true; j++; }; i++; }; if (old_page == "level_select"){ i = 1; while (i <= TOTAL_LEVELS) { levelIconA[(i - 1)].visible = false; levelIconHaA[(i - 1)].visible = false; levelIconExpertA[(i - 1)].visible = false; i++; }; level_icon_selected.visible = false; }; if (old_page == "achievements"){ k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].visible = false; achievementBoxHaA[(k - 1)].visible = false; i++; }; j++; }; }; }; } public function skip_btn_mouse_over(_arg1:MouseEvent):void{ skip_btn.gotoAndStop(2); playSound(s1); } public function resetStoredData():void{ total_score = 0; upgrade_points = INITIAL_UPGRADE_POINTS; show_tutorial = 1; tutorial_page = 1; saved_data.data.totalscore = total_score; saved_data.data.upgradepoints = upgrade_points; saved_data.data.showtutorial = show_tutorial; level_status = new Array(); i = 1; while (i <= TOTAL_LEVELS) { level_status[i] = 0; i++; }; level_status[1] = 1; saved_data.data.levels_status = level_status; achievement_status = new Array(); i = 1; while (i <= TOTAL_ACHIEVEMENTS) { achievement_status[i] = 0; i++; }; saved_data.data.achievements_status = achievement_status; STAT_FINISHED_GAMES_TOTAL_TIME = 0; STAT_ENEMIES_KILLED = 0; STAT_TURRETS_BUILT = 0; STAT_BOMBS_USED = 0; STAT_TURRETS_UPGRADED_TO_MAX = 0; STAT_MISSIONS_COMPLETED_EXPERT_SCORE = 0; STAT_OWNED_UPGRADES = 0; STAT_VISITED_LINKS = 0; saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME = 0; saved_data.data.SAVED_STAT_ENEMIES_KILLED = 0; saved_data.data.SAVED_STAT_TURRETS_BUILT = 0; saved_data.data.SAVED_STAT_BOMBS_USED = 0; saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX = 0; saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE = 0; saved_data.data.SAVED_STAT_OWNED_UPGRADES = 0; saved_data.data.SAVED_STAT_VISITED_LINKS = 0; i = 1; while (i <= TOTAL_UPGRADE_TYPES) { active_upgrade_level[i] = 0; i++; }; saved_data.data.active_upgrades_level = active_upgrade_level; saved_data.flush(); } public function send_next_wave():void{ if (wave < total_waves){ wave++; playSound(s_43); bonus_points = MAX_BONUS_POINTS; bonus_delay = BONUS_DELAY; wave_status[wave] = "started"; wave_last_enemy[wave] = 0; wave_start_time[wave] = level_frame_id; if (wave < total_waves){ show_next_wave_box(); } else { hide_next_wave_box(); }; }; } public function play_map_btn_click(_arg1:MouseEvent):void{ initLevel(selected_level); play_map_btn_ha.visible = false; main_menu_btn_ha.visible = false; playSound(s3); } public function add_explosion(_arg1:int, _arg2:int):void{ var _local3:Explosion; _local3 = new Explosion(); _local3.x = _arg1; _local3.y = _arg2; _local3.frame_id = 0; _local3.gotoAndPlay(1); explosions.addChild(_local3); explosionA.push(_local3); } public function advance_bullets():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:Boolean; var _local5:Number; var _local6:*; var _local7:*; var _local8:*; var _local9:Number; var _local10:Array; var _local11:Boolean; var _local12:int; _local1 = new Array(); i = 0; while (i < bullet.length) { temp_enemy_id = get_enemy_id(bullet[i].e_target_name); _local3 = bullet[i].speed; if (temp_enemy_id >= 0){ tmp_dist = get_3rd_lat(bullet[i].realX, bullet[i].realY, bullet[i].endX, bullet[i].endY); _local4 = false; if (_local3 < tmp_dist){ bullet[i].realX = (bullet[i].realX + (Math.cos((bullet[i].angle_rad / 1000)) * _local3)); bullet[i].realY = (bullet[i].realY + (Math.sin((bullet[i].angle_rad / 1000)) * _local3)); _local5 = get_3rd_lat(bullet[i].startX, bullet[i].startY, bullet[i].realX, bullet[i].realY); if (_local5 > bullet[i].total_dist){ _local4 = true; }; } else { _local4 = true; }; if (_local4 == true){ if (((!((bullet[i].bullet_type == 5))) && (!((bullet[i].bullet_type == 6))))){ enemy[temp_enemy_id].health = (enemy[temp_enemy_id].health - bullet[i].damage); enemy[temp_enemy_id].gotoAndPlay((enemy[temp_enemy_id].tip * 10)); if (enemy[temp_enemy_id].health <= 0){ active_enemies--; STAT_ENEMIES_KILLED++; if (enemy[temp_enemy_id].tip < 9){ playSound(s_31); } else { playSound(s_32); }; money = (money + (enemy_money[(enemy[temp_enemy_id].tip - 1)] * (1 + (active_upgrade_level[3] / 10)))); moneyText.text = ("$" + String(int(money))); if (enemy[temp_enemy_id].tip < 9){ level_score = (level_score + (10 + enemy[temp_enemy_id].tip)); total_score = (total_score + (10 + enemy[temp_enemy_id].tip)); } else { level_score = (level_score + 100); total_score = (total_score + 100); }; levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); if (interface_status == "enemy_details"){ if (temp_enemy_id == get_enemy_id(selected_enemy)){ hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; add_explosion(enemy[temp_enemy_id].x, enemy[temp_enemy_id].y); enemies.removeChild(enemy[temp_enemy_id]); enemy.splice(temp_enemy_id, 1); } else { playSound(s_30); }; } else { if (bullet[i].bullet_type == 5){ if (enemy[temp_enemy_id].slow_down_timer == 0){ enemy[temp_enemy_id].speed = ((enemy[temp_enemy_id].init_speed * (1 - ((bullet[i].damage / 1000) / 100))) * (1 - (active_upgrade_level[5] / 10))); }; enemy[temp_enemy_id].slow_down_timer = (100 + (active_upgrade_level[6] * 50)); enemy[temp_enemy_id].gotoAndPlay(((enemy[temp_enemy_id].tip * 10) + 100)); } else { if (bullet[i].bullet_type == 6){ enemy[temp_enemy_id].poison_damage = (enemy[temp_enemy_id].poison_damage + Math.round(((((bullet[i].damage / 1000) * (1 + (active_upgrade_level[7] / 10))) / 5) * 1000))); enemy[temp_enemy_id].gotoAndPlay(((enemy[temp_enemy_id].tip * 10) + 200)); }; }; }; _local1.push(i); }; } else { if (bullet[i].bullet_type != 4){ tmp_dist = get_3rd_lat(bullet[i].realX, bullet[i].realY, bullet[i].endX, bullet[i].endY); if (_local3 < tmp_dist){ bullet[i].realX = (bullet[i].realX + (Math.cos((bullet[i].angle_rad / 1000)) * _local3)); bullet[i].realY = (bullet[i].realY + (Math.sin((bullet[i].angle_rad / 1000)) * _local3)); bullet[i].alpha = (bullet[i].alpha - 0.05); if (bullet[i].alpha <= 0){ _local1.push(i); }; } else { _local1.push(i); }; } else { tmp_dist = get_3rd_lat(bullet[i].realX, bullet[i].realY, bullet[i].endX, bullet[i].endY); _local4 = false; if (_local3 < tmp_dist){ bullet[i].realX = (bullet[i].realX + (Math.cos((bullet[i].angle_rad / 1000)) * _local3)); bullet[i].realY = (bullet[i].realY + (Math.sin((bullet[i].angle_rad / 1000)) * _local3)); _local5 = get_3rd_lat(bullet[i].startX, bullet[i].startY, bullet[i].realX, bullet[i].realY); if (_local5 > bullet[i].total_dist){ _local4 = true; }; } else { _local4 = true; }; _local12 = -1; j = 0; while (j < enemy.length) { tmp_dist = get_3rd_lat(bullet[i].realX, bullet[i].realY, enemy[j].realX, enemy[j].realY); if (tmp_dist < 9000){ _local12 = j; _local4 = true; }; j++; }; if (_local4 == true){ _local1.push(i); }; if (_local12 >= 0){ enemy[_local12].health = (enemy[_local12].health - bullet[i].damage); enemy[_local12].gotoAndPlay((enemy[_local12].tip * 10)); if (enemy[_local12].health <= 0){ active_enemies--; STAT_ENEMIES_KILLED++; money = (money + (enemy_money[(enemy[_local12].tip - 1)] * (1 + (active_upgrade_level[3] / 10)))); moneyText.text = ("$" + String(int(money))); if (enemy[_local12].tip < 9){ level_score = (level_score + (10 + enemy[_local12].tip)); total_score = (total_score + (10 + enemy[_local12].tip)); } else { level_score = (level_score + 100); total_score = (total_score + 100); }; levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); if (interface_status == "enemy_details"){ if (_local12 == get_enemy_id(selected_enemy)){ hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; add_explosion(enemy[_local12].x, enemy[_local12].y); enemies.removeChild(enemy[_local12]); enemy.splice(_local12, 1); }; }; }; }; i++; }; if (tmp_explosion_data.length > 0){ _local10 = new Array(); _local6 = tmp_explosion_data[0]; _local7 = tmp_explosion_data[1]; _local8 = tmp_explosion_data[2]; _local9 = tmp_explosion_data[3]; i = 0; while (i < enemy.length) { _local5 = get_3rd_lat(_local6, _local7, (enemy[i].realX / 1000), (enemy[i].realY / 1000)); if (_local5 <= _local8){ enemy[i].health = (enemy[i].health - ((_local9 * 1000) / 20)); enemy[i].gotoAndPlay((enemy[i].tip * 10)); if (enemy[i].health <= 0){ active_enemies--; STAT_ENEMIES_KILLED++; money = (money + (enemy_money[(enemy[i].tip - 1)] * (1 + (active_upgrade_level[3] / 10)))); moneyText.text = ("$" + String(int(money))); if (enemy[i].tip < 9){ level_score = (level_score + (10 + enemy[i].tip)); total_score = (total_score + (10 + enemy[i].tip)); } else { level_score = (level_score + 100); total_score = (total_score + 100); }; levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); if (interface_status == "enemy_details"){ if (i == get_enemy_id(selected_enemy)){ hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; add_explosion(enemy[i].x, enemy[i].y); _local10.push(i); }; }; i++; }; _local10.sort((Array.DESCENDING | Array.NUMERIC)); if (_local10.length > 0){ i = 0; while (i < _local10.length) { _local2 = _local10[i]; enemies.removeChild(enemy[_local2]); enemy.splice(_local2, 1); i++; }; }; if (wave == total_waves){ _local11 = true; i = 1; while (i <= total_waves) { if (wave_status[i] != "active"){ _local11 = false; }; i++; }; if ((((enemy.length == 0)) && ((_local11 == true)))){ game_status = "end_level"; status_frame = 0; }; }; tmp_explosion_data = new Array(); }; _local1.sort((Array.DESCENDING | Array.NUMERIC)); if (_local1.length > 0){ i = 0; while (i < _local1.length) { _local2 = _local1[i]; bullets.removeChild(bullet[_local2]); bullet.splice(_local2, 1); i++; }; }; } public function showAchievementsPage():void{ status_frame++; if (status_frame == 1){ old_page = current_page; current_page = "achievements"; }; if (status_frame == 1){ map_window_bg.gotoAndStop(3); k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; achievementBoxA[(k - 1)].alpha = 1; achievementBoxHaA[(k - 1)].visible = true; if (achievement_status[k] == 0){ achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].gotoAndStop(61); }; if (achievement_status[k] == 1){ achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].gotoAndStop(k); }; if (achievement_status[k] == 2){ achievementBoxBgA[(k - 1)].visible = true; achievementBoxA[(k - 1)].gotoAndStop(k); }; achievementBoxA[(k - 1)].visible = true; i++; }; j++; }; k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; if (achievement_status[k] == 2){ achievement_status[k] = 1; }; i++; }; j++; }; achievements_anim.gotoAndStop(1); achievements_anim.visible = false; if (old_page == "level_select"){ i = 1; while (i <= TOTAL_LEVELS) { levelIconA[(i - 1)].visible = false; levelIconHaA[(i - 1)].visible = false; levelIconExpertA[(i - 1)].visible = false; i++; }; level_icon_selected.visible = false; }; if (old_page == "upgrades"){ upgrade_names.visible = false; legend.visible = false; upgradeDetailsText.text = ""; upgradeDetailsText.visible = false; upgradePriceText.text = ""; upgradePriceText.visible = false; upgradePointsText.text = ""; upgradePointsText.visible = false; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; boxUpgradeA[(k - 1)].visible = false; boxUpgradeHaA[(k - 1)].visible = false; j++; }; i++; }; }; }; } public function add_game_btn_click(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; _local2 = "http://www.zupergames.net/download"; _local3 = new URLRequest(_local2); navigateToURL(_local3); playSound(s3); } public function playGame():void{ var _local1:int; just_clicked_upgrade_tower = false; game_speed = new_game_speed; _local1 = 1; while (_local1 <= game_speed) { level_frame_id++; add_enemies(); advance_enemies(); add_new_bullets(); advance_bullets(); _local1++; }; drawGame(); updateExplosions(); if (build_tower > 0){ if (build_tower <= 6){ showTowerShadow(); } else { showBombShadow(); }; }; updateInterface(); total_level_time = Math.round(((getTimer() - start_level_time) / 1000)); } public function add_game_btn_mouse_over(_arg1:MouseEvent):void{ add_game_btn.gotoAndStop(2); playSound(s1); } public function logo_intro_click(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; _local2 = "http://www.zupergames.net"; _local3 = new URLRequest(_local2); navigateToURL(_local3); playSound(s3); } public function main_menu_btn_mouse_over(_arg1:MouseEvent):void{ main_menu_btn.gotoAndStop(2); playSound(s1); } public function add_new_bullets():void{ var _local1:*; var _local2:*; var _local3:Array; var _local4:String; var _local5:*; var _local6:int; var _local7:*; var _local8:Number; var _local9:*; var _local10:*; var _local11:*; var _local12:*; var _local13:Number; var _local14:*; var _local15:Number; var _local16:*; var _local17:Number; var _local18:Boolean; var _local19:*; var _local20:int; var _local21:*; var _local22:Array; var _local23:Bullet; var _local24:Object; var _local25:Array; var _local26:Boolean; var _local27:int; var _local28:*; var _local29:*; var _local30:*; var _local31:*; var _local32:int; var _local33:*; var _local34:*; var _local35:Number; var _local36:Number; var _local37:int; _local21 = new Array(); _local19 = enemy.length; _local28 = 0; while (_local28 < _local19) { _local21.push(new EnemyItem(_local28, enemy[_local28].pos)); _local28++; }; _local21.sortOn("pos", Array.NUMERIC); i = 0; while (i < tower_turret.length) { _local33 = 15; _local22 = new Array(); _local28 = 0; while (_local28 < _local21.length) { _local20 = _local21[_local28].id; if (enemy[_local20].pos > 30000){ if (tower_turret[i].tower_type <= 4){ _local22.push(_local20); } else { if (tower_turret[i].tower_type == 5){ if (enemy[_local20].slow_down_timer == 0){ _local22.push(_local20); }; } else { if (tower_turret[i].tower_type == 6){ if (enemy[_local20].poison_damage == 0){ _local22.push(_local20); }; }; }; }; }; _local28++; }; _local25 = new Array(); k = 0; while (k < _local22.length) { temp_enemy_id = _local22[k]; tmp_dist = get_dist_to_enemy(i, temp_enemy_id); if (tmp_dist <= tower_turret[i].range){ _local25.push(temp_enemy_id); }; k++; }; if (_local25.length > 0){ _local27 = _local25[(_local25.length - 1)]; if (tower_turret[i].tower_type != 4){ get_coords_at_pos((enemy[_local27].pos + 5000)); _local10 = (tmpX + enemy[_local27].dev); _local11 = (tmpY + enemy[_local27].dev); _local36 = (Math.atan2((tower_turret[i].y - (_local11 / 1000)), (tower_turret[i].x - (_local10 / 1000))) * (180 / Math.PI)); tower_turret[i].realRotation = getClosestAngle(tower_turret[i].realRotation, _local36, TURRET_ROTATION_SPEED); }; }; if (tower_turret[i].wait > 0){ tower_turret[i].wait--; }; _local26 = false; k = 0; while ((((_local26 == false)) && ((_local25.length > 0)))) { k++; tmp_enemy_id_to_shoot = _local25.pop(); if (tower_turret[i].wait == 0){ if (tower_turret[i].tower_type != 4){ _local1 = new Array(); _local9 = enemy[tmp_enemy_id_to_shoot].pos; _local5 = 0; while (_local5 <= PREDICTIVE_STEPS) { _local1.push(_local9); _local9 = (_local9 + (enemy[tmp_enemy_id_to_shoot].speed * 25)); _local5++; }; _local2 = new Array(); _local5 = 0; while (_local5 <= PREDICTIVE_STEPS) { if ((((_local1[_local5] > 0)) && ((_local1[_local5] < max_pos)))){ get_coords_at_pos(_local1[_local5]); _local10 = (tmpX + enemy[tmp_enemy_id_to_shoot].dev); _local11 = (tmpY + enemy[tmp_enemy_id_to_shoot].dev); _local14 = Math.atan2(((_local11 / 1000) - tower_turret[i].y), ((_local10 / 1000) - tower_turret[i].x)); _local12 = (tower_turret[i].x + (Math.cos(_local14) * (((_local5 * tower_turret[i].speed) * 25) + _local33))); _local13 = (tower_turret[i].y + (Math.sin(_local14) * (((_local5 * tower_turret[i].speed) * 25) + _local33))); tmp_dist = get_3rd_lat(_local12, _local13, (_local10 / 1000), (_local11 / 1000)); _local2.push(tmp_dist); } else { _local2.push(-1); }; _local5++; }; _local3 = new Array(); _local5 = 0; finished = false; do { _local5++; if (((!((_local2[_local5] == -1))) && (!((_local2[(_local5 - 1)] == -1))))){ if (_local2[_local5] > _local2[(_local5 - 1)]){ _local3.push("increase"); } else { _local3.push("decrease"); }; finished = true; }; } while ((((finished == false)) && ((_local5 < PREDICTIVE_STEPS)))); _local6 = -1; _local5 = 1; finished = false; do { _local5++; if (((!((_local2[_local5] == -1))) && (!((_local2[(_local5 - 1)] == -1))))){ if (_local2[_local5] > _local2[(_local5 - 1)]){ _local4 = "increase"; } else { _local4 = "decrease"; }; if (_local4 != _local3[(_local3.length - 1)]){ _local3.push(_local4); if ((((_local3[0] == "decrease")) && ((_local3[1] == "increase")))){ _local6 = (_local5 - 1); finished = true; } else { if ((((((_local3[0] == "increase")) && ((_local3[1] == "decrease")))) && ((_local3[2] == "increase")))){ _local6 = (_local5 - 1); finished = true; }; }; }; }; } while ((((finished == false)) && ((_local5 < PREDICTIVE_STEPS)))); if (_local6 < 0){ if (_local3[0] == "increase"){ _local6 = 1; }; if (_local3[0] == "decrease"){ _local6 = (PREDICTIVE_STEPS - 1); }; }; _local16 = (_local1[_local6] - (enemy[tmp_enemy_id_to_shoot].speed * 50)); _local17 = (_local6 - 2); _local1 = new Array(); _local9 = _local16; _local5 = 0; while (_local5 <= PREDICTIVE_STEPS) { _local1.push(_local9); _local9 = (_local9 + (enemy[tmp_enemy_id_to_shoot].speed * 5)); _local5++; }; _local2 = new Array(); _local5 = 0; while (_local5 <= PREDICTIVE_STEPS) { if ((((_local1[_local5] > 0)) && ((_local1[_local5] < max_pos)))){ get_coords_at_pos(_local1[_local5]); _local10 = (tmpX + enemy[tmp_enemy_id_to_shoot].dev); _local11 = (tmpY + enemy[tmp_enemy_id_to_shoot].dev); _local14 = Math.atan2(((_local11 / 1000) - tower_turret[i].y), ((_local10 / 1000) - tower_turret[i].x)); _local12 = ((tower_turret[i].x + (((Math.cos(_local14) * _local17) * tower_turret[i].speed) * 25)) + (Math.cos(_local14) * (((_local5 * tower_turret[i].speed) * 5) + _local33))); _local13 = ((tower_turret[i].y + (((Math.sin(_local14) * _local17) * tower_turret[i].speed) * 25)) + (Math.sin(_local14) * (((_local5 * tower_turret[i].speed) * 5) + _local33))); tmp_dist = get_3rd_lat(_local12, _local13, (_local10 / 1000), (_local11 / 1000)); _local2.push(tmp_dist); } else { _local2.push(-1); }; _local5++; }; _local3 = new Array(); _local5 = 0; finished = false; do { _local5++; if (((!((_local2[_local5] == -1))) && (!((_local2[(_local5 - 1)] == -1))))){ if (_local2[_local5] > _local2[(_local5 - 1)]){ _local3.push("increase"); } else { _local3.push("decrease"); }; finished = true; }; } while ((((finished == false)) && ((_local5 < PREDICTIVE_STEPS)))); _local6 = -1; _local5 = 1; finished = false; do { _local5++; if (((!((_local2[_local5] == -1))) && (!((_local2[(_local5 - 1)] == -1))))){ if (_local2[_local5] > _local2[(_local5 - 1)]){ _local4 = "increase"; } else { _local4 = "decrease"; }; if (_local4 != _local3[(_local3.length - 1)]){ _local3.push(_local4); if ((((_local3[0] == "decrease")) && ((_local3[1] == "increase")))){ _local6 = (_local5 - 1); finished = true; } else { if ((((((_local3[0] == "increase")) && ((_local3[1] == "decrease")))) && ((_local3[2] == "increase")))){ _local6 = (_local5 - 1); finished = true; }; }; }; }; } while ((((finished == false)) && ((_local5 < PREDICTIVE_STEPS)))); _local18 = false; if (_local6 < 0){ if (_local3.length == 1){ _local18 = true; }; }; if (_local18 == false){ get_coords_at_pos(_local1[_local6]); } else { get_coords_at_pos((max_pos - 100)); }; _local7 = (tmpX + enemy[tmp_enemy_id_to_shoot].dev); _local8 = (tmpY + enemy[tmp_enemy_id_to_shoot].dev); _local15 = get_3rd_lat(tower_turret[i].x, tower_turret[i].y, (_local7 / 1000), (_local8 / 1000)); if (_local15 <= tower_turret[i].range){ _local14 = Math.atan2(((_local8 / 1000) - tower_turret[i].y), ((_local7 / 1000) - tower_turret[i].x)); _local34 = Math.round(((tower_turret[i].x + (Math.cos(_local14) * _local33)) * 1000)); _local35 = Math.round(((tower_turret[i].y + (Math.sin(_local14) * _local33)) * 1000)); last_bullet_id++; _local23 = new Bullet(enemy[tmp_enemy_id_to_shoot].name, Math.round((tower_turret[i].damage * 1000)), Math.round((tower_turret[i].speed * 1000)), int(_local34), int(_local35), int(_local7), int(_local8)); _local23.x = (_local34 / 1000); _local23.y = (_local35 / 1000); _local23.realX = int(_local34); _local23.realY = int(_local35); _local23.gotoAndStop(tower_turret[i].tower_type); _local23.name = ("b_" + last_bullet_id); _local23.bullet_type = tower_turret[i].tower_type; _local23.cacheAsBitmap = true; bullets.addChild(_local23); bullet.push(_local23); tower_turret[i].realRotation = _local36; tower_turret[i].wait = (400 / tower_turret[i].rate); if (tower_turret[i].tower_type <= 3){ _local37 = randRange(1, 2); if (_local37 == 1){ playSound(s_21); } else { playSound(s_22); }; } else { playSound(s_23); }; _local26 = true; }; } else { j = 0; while (j < 8) { _local24 = get_dir((j + 1)); _local14 = Math.atan2(((tower_turret[i].y + (tower_turret[i].range * _local24.y)) - tower_turret[i].y), ((tower_turret[i].x + (tower_turret[i].range * _local24.x)) - tower_turret[i].x)); _local34 = Math.round(((tower_turret[i].x + (Math.cos(_local14) * _local33)) * 1000)); _local35 = Math.round(((tower_turret[i].y + (Math.sin(_local14) * _local33)) * 1000)); last_bullet_id++; _local23 = new Bullet("none", Math.round((tower_turret[i].damage * 1000)), Math.round((tower_turret[i].speed * 1000)), _local34, _local35, Math.round(((tower_turret[i].x + (tower_turret[i].range * _local24.x)) * 1000)), (Math.round((tower_turret[i].y + (tower_turret[i].range * _local24.y))) * 1000)); _local23.x = (_local34 / 1000); _local23.y = (_local35 / 1000); _local23.realX = _local34; _local23.realY = _local35; _local23.gotoAndStop(tower_turret[i].tower_type); _local23.name = ("b_" + last_bullet_id); _local23.bullet_type = tower_turret[i].tower_type; bullets.addChild(_local23); bullet.push(_local23); tower_turret[i].wait = (400 / tower_turret[i].rate); _local26 = true; j++; }; playSound(s_22); }; }; }; i++; }; } public function intro_play_btn_mouse_out(_arg1:MouseEvent):void{ intro_play_btn.gotoAndStop(1); } public function instructions_btn_mouse_out(_arg1:MouseEvent):void{ instructions_btn.gotoAndStop(1); } public function goto_menu_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "init_menu"; game_music_vol = 90; playSound(s3); } public function get_segment_pos_and_segment_id(_arg1:Number):void{ var _local2:int; var _local3:Number; tmp_current_segm = 0; _local3 = 0; _local2 = 0; while (_local2 < total_segments) { _local3 = (_local3 + segment[_local2].len_pos); if (_arg1 >= _local3){ tmp_current_segm = (_local2 + 1); }; _local2++; }; _local3 = 0; _local2 = 0; while (_local2 < tmp_current_segm) { _local3 = (_local3 + segment[_local2].len_pos); _local2++; }; tmp_segm_pos = (_arg1 - _local3); } public function credits_close_btn_mouse_over(_arg1:MouseEvent):void{ credits_close_btn.gotoAndStop(2); playSound(s1); } public function show_next_wave_box():void{ next_wave_title_text.text = ((("Wave " + String((wave + 1))) + "/") + String(total_waves)); next_wave_title_text.visible = true; next_wave_enemy_count.gotoAndStop(total_wave_enemies[(wave + 1)]); next_wave_enemy_count.visible = true; next_wave_enemy_icon.gotoAndStop(wave_enemies_type[(wave + 1)]); next_wave_enemy_icon.visible = true; next_wave_enemies_hp_text.text = (("Health: " + formatNumber2Decimals(enemies_hp[(wave + 1)])) + " Hp"); next_wave_enemies_hp_text.visible = true; next_wave_enemies_speed_text.text = ("Speed: " + formatNumber2Decimals((Math.round((enemies_speed[(wave + 1)] * 100)) / 10))); next_wave_enemies_speed_text.visible = true; btn_next_wave.visible = true; btn_next_wave_ha.visible = true; bonus_points_text.text = (("+ " + bonus_points) + " p"); bonus_points_text.visible = true; } public function show_tower_data(_arg1:int, _arg2:int):void{ var _local3:int; tower_details_icon.gotoAndStop(_arg1); tower_details_icon.visible = true; towerNameText.text = ("Tower " + String(_arg1)); towerLevelText.text = ("Level " + String(_arg2)); towerNameText.visible = true; towerLevelText.visible = true; if (_arg2 < MAX_TOWER_LEVEL){ tower_upgrade_data.gotoAndStop(1); } else { tower_upgrade_data.gotoAndStop(2); }; tower_upgrade_data.visible = true; tower_current_price_text.text = formatNumber2Decimals(calculateTotalTowerPrice(_arg1, _arg2)); tower_current_damage_text.text = formatNumber2Decimals((TOWER_DAMAGE[_arg1][(_arg2 - 1)] * TOWER_DAMAGE_MULTIPLIER[active_upgrade_level[4]])); tower_current_rate_text.text = formatNumber2Decimals(TOWER_RATE[_arg1][(_arg2 - 1)]); tower_current_range_text.text = formatNumber2Decimals(TOWER_RANGE[_arg1][(_arg2 - 1)]); tower_current_price_text.visible = true; tower_current_damage_text.visible = true; tower_current_rate_text.visible = true; tower_current_range_text.visible = true; if (_arg2 < MAX_TOWER_LEVEL){ _local3 = TOWER_UPGRADE_PRICE[_arg1][_arg2]; if (_arg1 <= 6){ _local3 = (_local3 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); }; _local3 = Math.floor(_local3); tower_next_price_text.text = ("+" + formatNumber2Decimals(_local3)); tower_next_damage_text.text = ("+" + formatNumber2Decimals(((TOWER_DAMAGE[_arg1][_arg2] - TOWER_DAMAGE[_arg1][(_arg2 - 1)]) * TOWER_DAMAGE_MULTIPLIER[active_upgrade_level[4]]))); tower_next_rate_text.text = ("+" + formatNumber2Decimals((TOWER_RATE[_arg1][_arg2] - TOWER_RATE[_arg1][(_arg2 - 1)]))); tower_next_range_text.text = ("+" + formatNumber2Decimals((TOWER_RANGE[_arg1][_arg2] - TOWER_RANGE[_arg1][(_arg2 - 1)]))); tower_next_price_text.visible = true; } else { tower_next_damage_text.text = "(MAX)"; tower_next_rate_text.text = "(MAX)"; tower_next_range_text.text = "(MAX)"; tower_next_price_text.visible = false; }; tower_next_damage_text.visible = true; tower_next_rate_text.visible = true; tower_next_range_text.visible = true; if (_arg2 < MAX_TOWER_LEVEL){ _local3 = TOWER_UPGRADE_PRICE[_arg1][_arg2]; if (_arg1 <= 6){ _local3 = (_local3 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); }; _local3 = Math.floor(_local3); if (money >= _local3){ if (just_clicked_upgrade_tower == false){ upgrade_btn.gotoAndStop(1); } else { upgrade_btn.gotoAndStop(2); }; upgrade_btn.visible = true; upgrade_btn_ha.visible = true; } else { upgrade_btn_ha.visible = false; upgrade_btn.gotoAndStop(3); upgrade_btn.visible = true; }; } else { upgrade_btn.visible = false; upgrade_btn_ha.visible = false; }; sell_btn.visible = true; sell_btn_ha.visible = true; } public function upgrade_btn_mouse_out(_arg1:MouseEvent):void{ if (upgrade_btn_ha.visible == true){ upgrade_btn.gotoAndStop(1); } else { upgrade_btn.gotoAndStop(3); }; } public function pause_btn_key_press():void{ if (game_status == "play"){ pause_frame = 0; game_status = "paused"; black_screen_pause_window.alpha = 0.5; black_screen_pause_window.visible = true; }; } public function quit_btn_mouse_over(_arg1:MouseEvent):void{ goto_menu_btn.gotoAndStop(2); playSound(s1); } public function initUpgradesWindow():void{ var _local1:int; var _local2:*; var _local3:int; status_frame++; if (status_frame == 1){ old_page = current_page; current_page = "upgrades"; }; if (status_frame == 1){ black_screen.alpha = 0; black_screen.visible = true; }; if (status_frame == 1){ if (old_game_status == "init_menu"){ play_btn_ha.visible = false; instructions_btn_ha.visible = false; options_btn_ha.visible = false; credits_btn_ha.visible = false; go_home_btn_ha.visible = false; add_game_btn_ha.visible = false; new_game_btn_ha.visible = false; continue_game_btn_ha.visible = false; confirm_delete_no_btn_ha.visible = false; confirm_delete_yes_btn_ha.visible = false; }; if (old_game_status == "end_level"){ back_to_menu_btn_ha.visible = false; ok_btn_ha.visible = false; }; }; if ((((status_frame >= 1)) && ((status_frame < 5)))){ black_screen.alpha = (black_screen.alpha + 0.2); }; if (status_frame == 5){ black_screen.alpha = 1; clearGameGraphics(); finish_level_window_bg.visible = false; ad_img.visible = false; ad_img_ha.visible = false; black_screen_finish_window.visible = false; levelScoreFWText.visible = false; expertScoreFWText.visible = false; totalScoreFWText.visible = false; pointsEarnedFWText.visible = false; back_to_menu_btn.visible = false; back_to_menu_btn_ha.visible = false; ok_btn.visible = false; ok_btn_ha.visible = false; main_menu_bg.visible = false; play_btn.visible = false; instructions_btn.visible = false; options_btn.visible = false; credits_btn.visible = false; go_home_btn.visible = false; add_game_btn.visible = false; bg_new_game_window.visible = false; new_game_btn.visible = false; continue_game_btn.visible = false; bg_confirm_delete_window.visible = false; confirm_delete_no_btn.visible = false; confirm_delete_yes_btn.visible = false; selected_level = 1; i = 1; while (i <= TOTAL_LEVELS) { if (level_status[i] > 0){ if (selected_level < i){ selected_level = i; }; }; i++; }; _local3 = 0; i = 1; while (i <= TOTAL_ACHIEVEMENTS) { if (achievement_status[i] == 2){ _local3++; }; i++; }; map_window_bg.gotoAndStop(2); map_window_bg.visible = true; map_btn.visible = true; upgrades_btn.visible = true; if (_local3 > 0){ achievements_anim.visible = true; achievements_anim.gotoAndPlay(1); }; awards_btn.visible = true; main_menu_btn.visible = true; play_map_btn.visible = true; upgrade_names.visible = true; legend.visible = true; upgradeDetailsText.text = ""; upgradeDetailsText.visible = true; upgradePriceText.text = ""; upgradePriceText.visible = true; upgradePointsText.text = ("Upgrade Points: " + upgrade_points); upgradePointsText.visible = true; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; _local2 = BUY_UPGRADE_PRICE[(i + 1)][j]; if (active_upgrade_level[(i + 1)] > (j + 0)){ boxUpgradeA[(k - 1)].gotoAndStop(3); boxUpgradeHaA[(k - 1)].buttonMode = false; } else { if (upgrade_points >= _local2){ boxUpgradeA[(k - 1)].gotoAndStop(2); boxUpgradeHaA[(k - 1)].buttonMode = true; } else { boxUpgradeA[(k - 1)].gotoAndStop(1); boxUpgradeHaA[(k - 1)].buttonMode = false; }; }; boxUpgradeA[(k - 1)].visible = true; boxUpgradeHaA[(k - 1)].visible = true; j++; }; i++; }; }; if ((((status_frame >= 6)) && ((status_frame < 10)))){ black_screen.alpha = (black_screen.alpha - 0.2); }; if (status_frame == 10){ black_screen.alpha = 0; black_screen.visible = false; main_menu_btn_ha.visible = true; play_map_btn_ha.visible = true; }; if (status_frame > 1000){ status_frame = 1000; }; } public function music_btn_mouse_out(_arg1:MouseEvent):void{ if (music == 1){ music_btn.gotoAndStop(1); } else { music_btn.gotoAndStop(3); }; } public function get_dist_to_enemy(_arg1:int, _arg2:int):Number{ var _local3:Number; var _local4:Number; var _local5:Number; _local4 = ((enemy[_arg2].realX / 1000) - tower_base[_arg1].x); _local5 = ((enemy[_arg2].realY / 1000) - tower_base[_arg1].y); _local3 = Math.sqrt(((_local4 * _local4) + (_local5 * _local5))); return (_local3); } public function options_close_btn_mouse_over(_arg1:MouseEvent):void{ options_close_btn.gotoAndStop(2); playSound(s1); } public function play_map_btn_mouse_over(_arg1:MouseEvent):void{ play_map_btn.gotoAndStop(2); playSound(s1); } public function formatNumber(_arg1:int):String{ var _local2:String; var _local3:*; _local2 = String(_arg1); _local3 = /(\d+)(\d{3})/; while (_local3.test(_local2)) { _local2 = _local2.replace(_local3, (("$1" + ",") + "$2")); }; return (_local2); } public function achievement_box_mouse_out(_arg1:MouseEvent){ var _local2:AchievementBoxHitArea; var _local3:int; _local2 = (_arg1.currentTarget as AchievementBoxHitArea); _local3 = (int(_local2.name) - 1); achievementBoxA[_local3].alpha = 1; achievementTextA[_local3].visible = false; achievement_desc_text.visible = false; } public function fadeOutGameMusic():void{ if ((((game_music_vol < 100)) && ((game_music_vol > 0)))){ game_music_vol = (game_music_vol - 10); if (music == 1){ sAmbienceVol = new SoundTransform((game_music_vol / 100), 0); music_channel.soundTransform = sAmbienceVol; if (game_music_vol < 5){ game_music_vol = 0; music_channel.stop(); game_music_vol = 100; music_channel = m1.play(0, 200); }; }; }; } public function tower_icon_ha2_mouse_out(_arg1:MouseEvent):void{ var _local2:towerBtnHitArea; var _local3:int; _local2 = (_arg1.currentTarget as towerBtnHitArea); _local3 = int(_local2.name); towerIconHa2A[(_local3 - 1)].alpha = 0; building_tower_desc.visible = false; towerPriceText.visible = false; not_enough_money_txt.visible = false; } public function showPauseWindow():void{ pause_frame++; if (pause_frame == 1){ saved_data.data.totalscore = total_score; saved_data.data.upgradepoints = upgrade_points; saved_data.data.levels_status = level_status; saved_data.data.achievements_status = achievement_status; saved_data.data.active_upgrades_level = active_upgrade_level; saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME = STAT_FINISHED_GAMES_TOTAL_TIME; saved_data.data.SAVED_STAT_ENEMIES_KILLED = STAT_ENEMIES_KILLED; saved_data.data.SAVED_STAT_TURRETS_BUILT = STAT_TURRETS_BUILT; saved_data.data.SAVED_STAT_BOMBS_USED = STAT_BOMBS_USED; saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX = STAT_TURRETS_UPGRADED_TO_MAX; saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE = STAT_MISSIONS_COMPLETED_EXPERT_SCORE; saved_data.data.SAVED_STAT_OWNED_UPGRADES = STAT_OWNED_UPGRADES; saved_data.data.SAVED_STAT_VISITED_LINKS = STAT_VISITED_LINKS; saved_data.flush(); }; if (pause_frame == 1){ pause_window.visible = true; resume_btn.visible = true; resume_btn_ha.visible = true; restart_btn.visible = true; restart_btn_ha.visible = true; goto_menu_btn.visible = true; goto_menu_btn_ha.visible = true; }; if (pause_frame == 1){ STAT_FINISHED_GAMES_TOTAL_TIME = (STAT_FINISHED_GAMES_TOTAL_TIME + total_level_time); }; } public function new_game_btn_click(_arg1:MouseEvent):void{ if (saved_data.data.levels_status == null){ old_game_status = game_status; status_frame = 0; game_status = "init_upgrades_window"; resetStoredData(); } else { new_game_btn_ha.visible = false; continue_game_btn_ha.visible = false; bg_confirm_delete_window.visible = true; confirm_delete_no_btn.gotoAndStop(1); confirm_delete_no_btn.visible = true; confirm_delete_no_btn_ha.visible = true; confirm_delete_yes_btn.gotoAndStop(1); confirm_delete_yes_btn.visible = true; confirm_delete_yes_btn_ha.visible = true; }; playSound(s3); } public function play_btn_mouse_over(_arg1:MouseEvent):void{ play_btn.gotoAndStop(2); playSound(s1); } public function get_coords_at_pos(_arg1:int):void{ if (_arg1 > (max_pos - 100)){ _arg1 = (max_pos - 100); }; get_segment_pos_and_segment_id((_arg1 / 1000)); if (segment[tmp_current_segm].tip < 10){ tmp_rap = (tmp_segm_pos / segment[tmp_current_segm].len_pos); tmpX = (segment[tmp_current_segm].startX + ((segment[tmp_current_segm].endX - segment[tmp_current_segm].startX) * tmp_rap)); tmpY = (segment[tmp_current_segm].startY + ((segment[tmp_current_segm].endY - segment[tmp_current_segm].startY) * tmp_rap)); } else { tmp_deg = ((tmp_segm_pos / segment[tmp_current_segm].len_pos) * 90); if (segment[tmp_current_segm].tip >= 15){ tmp_deg = (90 - tmp_deg); }; if (segment[tmp_current_segm].tip == 11){ tmp_deg = (tmp_deg - 90); }; if (segment[tmp_current_segm].tip == 13){ tmp_deg = (tmp_deg + 90); }; if (segment[tmp_current_segm].tip == 14){ tmp_deg = (tmp_deg + 180); }; if (segment[tmp_current_segm].tip == 15){ tmp_deg = (tmp_deg - 90); }; if (segment[tmp_current_segm].tip == 17){ tmp_deg = (tmp_deg + 90); }; if (segment[tmp_current_segm].tip == 18){ tmp_deg = (tmp_deg + 180); }; tmp_rad = (tmp_deg * (Math.PI / 180)); tmpX = (segment[tmp_current_segm].startX + (Math.cos(tmp_rad) * ((segment[tmp_current_segm].a_len - 0.5) * D))); tmpY = (segment[tmp_current_segm].startY + (Math.sin(tmp_rad) * ((segment[tmp_current_segm].a_len - 0.5) * D))); }; tmpX = (tmpX * 1000); tmpY = (tmpY * 1000); } public function upgrade_box_mouse_out(_arg1:MouseEvent):void{ var _local2:int; var _local3:UpgradeBoxHitArea; _local3 = (_arg1.currentTarget as UpgradeBoxHitArea); _local2 = int(_local3.name); boxUpgradeHaA[(_local2 - 1)].alpha = 0; upgradePriceText.text = ""; upgradeDetailsText.text = ""; } public function pressKeySpeed(_arg1:int):void{ var _local2:int; _local2 = _arg1; if (_local2 == 1){ new_game_speed = 1; }; if (_local2 == 2){ new_game_speed = 2; }; if (_local2 == 3){ new_game_speed = 3; }; if (new_game_speed != game_speed){ playSound(s_42); }; i = 1; while (i <= 3) { speedButtonA[(i - 1)].gotoAndStop(i); i++; }; speedButtonA[(new_game_speed - 1)].gotoAndStop((10 + new_game_speed)); } public function awards_btn_click(_arg1:MouseEvent):void{ game_status = "awards_window"; status_frame = 0; playSound(s3); } public function options_btn_mouse_out(_arg1:MouseEvent):void{ options_btn.gotoAndStop(1); } public function ok_btn_mouse_over(_arg1:MouseEvent):void{ ok_btn.gotoAndStop(2); playSound(s1); } public function credits_close_btn_click(_arg1:MouseEvent):void{ credits_bg.visible = false; credits_close_btn.visible = false; credits_close_btn_ha.visible = false; playSound(s3); } public function prepareLevel():void{ status_frame++; if (status_frame == 1){ black_screen.alpha = 0; black_screen.visible = true; }; if (status_frame == 1){ i = 1; while (i <= TOTAL_LEVELS) { levelIconHaA[(i - 1)].visible = false; i++; }; }; if ((((status_frame >= 1)) && ((status_frame < 5)))){ black_screen.alpha = (black_screen.alpha + 0.2); }; if (status_frame == 5){ black_screen.alpha = 1; hideLevelSelectWindow(); upgrade_names.visible = false; legend.visible = false; upgradeDetailsText.text = ""; upgradeDetailsText.visible = false; upgradePriceText.text = ""; upgradePriceText.visible = false; upgradePointsText.text = ""; upgradePointsText.visible = false; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; boxUpgradeA[(k - 1)].visible = false; boxUpgradeHaA[(k - 1)].visible = false; j++; }; i++; }; k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].visible = false; achievementBoxHaA[(k - 1)].visible = false; i++; }; j++; }; map.visible = true; lives_left.visible = true; destination.visible = true; interface_bg.visible = true; moneyText.text = ("$" + String(int(money))); moneyText.visible = true; score_titles.visible = true; levelScoreText.text = formatNumber(level_score); expertScoreText.text = formatNumber(expert_score); totalScoreText.text = formatNumber(total_score); levelScoreText.visible = true; expertScoreText.visible = true; totalScoreText.visible = true; pause_btn.visible = true; pause_btn_ha.visible = true; sound_btn.visible = true; sound_btn_ha.visible = true; music_btn.visible = true; music_btn_ha.visible = true; i = 1; while (i <= 3) { speedButtonA[(i - 1)].gotoAndStop(i); speedButtonA[(i - 1)].visible = true; speedButtonHaA[(i - 1)].visible = true; i++; }; speedButtonA[0].gotoAndStop(11); show_default_interface(); enemy_slowed_down_icon.visible = false; enemy_poisoned_icon.visible = false; next_wave_title_text.text = ("Wave 1/" + String(total_waves)); next_wave_title_text.visible = true; next_wave_enemy_count.gotoAndStop(total_wave_enemies[1]); next_wave_enemy_count.visible = true; next_wave_enemy_icon.gotoAndStop(wave_enemies_type[1]); next_wave_enemy_icon.visible = true; next_wave_enemies_hp_text.text = (("Health: " + formatNumber2Decimals(enemies_hp[1])) + " Hp"); next_wave_enemies_hp_text.visible = true; next_wave_enemies_speed_text.text = ("Speed: " + formatNumber2Decimals((Math.round((enemies_speed[1] * 100)) / 10))); next_wave_enemies_speed_text.visible = true; btn_next_wave.visible = true; btn_next_wave_ha.visible = true; bonus_points_text.text = ""; bonus_points_text.visible = true; }; if ((((status_frame >= 6)) && ((status_frame < 10)))){ black_screen.alpha = (black_screen.alpha - 0.2); }; if (status_frame == 10){ black_screen.alpha = 0; black_screen.visible = false; }; if (status_frame == 10){ if (show_tutorial == 1){ old_game_status = game_status; status_frame = 0; game_status = "tutorial"; } else { start_level_time = getTimer(); total_level_time = 0; old_game_status = game_status; status_frame = 0; game_status = "play"; }; }; } public function go_home_btn_click(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; _local2 = "http://www.armorgames.com"; _local3 = new URLRequest(_local2); navigateToURL(_local3); STAT_VISITED_LINKS = 1; playSound(s3); } public function options_low_btn_click(_arg1:MouseEvent):void{ quality = 1; stage.quality = StageQuality.LOW; options_low_btn.gotoAndStop(1); options_med_btn.gotoAndStop(2); options_high_btn.gotoAndStop(2); } public function instructions_close_btn_mouse_out(_arg1:MouseEvent):void{ instructions_close_btn.gotoAndStop(1); } public function cancelBuildTowerClick(_arg1:MouseEvent):void{ cancelBuildTower(); } public function confirm_yes_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "init_upgrades_window"; resetStoredData(); playSound(s3); } public function pause_btn_mouse_over(_arg1:MouseEvent):void{ pause_btn.gotoAndStop(2); playSound(s1); } public function drawGame():void{ i = 0; while (i < enemy.length) { enemy[i].x = (enemy[i].realX / 1000); enemy[i].y = (enemy[i].realY / 1000); enemy[i].rotation = ((Math.atan2((enemy[i].realY - enemy[i].old_realY), (enemy[i].realX - enemy[i].old_realX)) * 180) / Math.PI); i++; }; i = 0; while (i < tower_turrets.numChildren) { tower_turret[i].rotation = tower_turret[i].realRotation; i++; }; i = 0; while (i < bullet.length) { bullet[i].x = (bullet[i].realX / 1000); bullet[i].y = (bullet[i].realY / 1000); i++; }; } public function sound_btn_mouse_over(_arg1:MouseEvent):void{ if (sound == 1){ sound_btn.gotoAndStop(2); } else { sound_btn.gotoAndStop(4); }; playSound(s1); } public function sound_btn_mouse_out(_arg1:MouseEvent):void{ if (sound == 1){ sound_btn.gotoAndStop(1); } else { sound_btn.gotoAndStop(3); }; } public function advance_enemies():void{ var _local1:Array; var _local2:int; var _local3:Boolean; var _local4:int; _local4 = enemy.length; _local1 = new Array(); i = 0; while (i < _local4) { if (enemy[i].slow_down_timer > 0){ enemy[i].slow_down_timer--; if (enemy[i].slow_down_timer == 0){ enemy[i].speed = enemy[i].init_speed; if (enemy[i].poison_damage == 0){ enemy[i].gotoAndStop(((enemy[i].tip * 10) + 9)); } else { enemy[i].gotoAndStop(((enemy[i].tip * 10) + 209)); }; }; }; if (enemy[i].poison_damage > 0){ enemy[i].health = (enemy[i].health - (enemy[i].poison_damage * 0.5)); if (enemy[i].health < 0){ enemy[i].health = 0; }; }; enemy[i].pos = (enemy[i].pos + enemy[i].speed); if ((((enemy[i].pos < max_pos)) && ((enemy[i].health > 0)))){ get_coords_at_pos(enemy[i].pos); enemy[i].old_realX = enemy[i].realX; enemy[i].old_realY = enemy[i].realY; enemy[i].realX = (tmpX + enemy[i].dev); enemy[i].realY = (tmpY + enemy[i].dev); } else { _local1.push(i); if (interface_status == "enemy_details"){ if (i == get_enemy_id(selected_enemy)){ hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; if (enemy[i].pos >= max_pos){ lives--; lives_left.gotoAndStop((lives + 1)); playSound(s_41); }; if (enemy[i].pos < max_pos){ money = (money + (enemy_money[(enemy[i].tip - 1)] * (1 + (active_upgrade_level[3] / 10)))); moneyText.text = ("$" + String(int(money))); if (enemy[i].tip < 9){ level_score = (level_score + (10 + enemy[i].tip)); total_score = (total_score + (10 + enemy[i].tip)); } else { level_score = (level_score + 100); total_score = (total_score + 100); }; levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); }; active_enemies--; }; i++; }; _local1.sort((Array.DESCENDING | Array.NUMERIC)); if (_local1.length > 0){ i = 0; while (i < _local1.length) { _local2 = _local1[i]; enemies.removeChild(enemy[_local2]); enemy.splice(_local2, 1); i++; }; }; if (wave == total_waves){ _local3 = true; i = 1; while (i <= total_waves) { if (wave_status[i] != "active"){ _local3 = false; }; i++; }; if ((((enemy.length == 0)) && ((_local3 == true)))){ game_status = "end_level"; status_frame = 0; }; }; if (lives <= 0){ game_status = "end_level"; status_frame = 0; }; } public function go_home_btn_mouse_over(_arg1:MouseEvent):void{ go_home_btn.gotoAndStop(2); playSound(s1); } public function formatNumber2Decimals(_arg1:Number):String{ var _local2:Number; var _local3:String; _local2 = (Math.floor((_arg1 * 100)) / 100); _local3 = String(_local2); return (_local3); } public function confirm_yes_btn_mouse_out(_arg1:MouseEvent):void{ confirm_delete_yes_btn.gotoAndStop(1); } public function hide_interface_data():void{ var _local1:int; if (interface_status == "towers"){ _local1 = 0; while (_local1 < TOTAL_TOWER_TYPES) { towerIconA[_local1].visible = false; towerIconHaA[_local1].visible = false; towerIconHa2A[_local1].visible = false; _local1++; }; } else { if (interface_status == "tower_details"){ tower_range_circle.visible = false; tower_details_icon.visible = false; towerNameText.visible = false; towerLevelText.visible = false; tower_upgrade_data.visible = false; tower_current_price_text.visible = false; tower_next_price_text.visible = false; tower_current_damage_text.visible = false; tower_next_damage_text.visible = false; tower_current_rate_text.visible = false; tower_next_rate_text.visible = false; tower_current_range_text.visible = false; tower_next_range_text.visible = false; upgrade_btn.visible = false; upgrade_btn_ha.visible = false; sell_btn.visible = false; sell_btn_ha.visible = false; } else { if (interface_status == "enemy_details"){ enemy_icon.visible = false; enemySpeedText.visible = false; enemyHpText.visible = false; enemy_slowed_down_icon.visible = false; enemy_poisoned_icon.visible = false; } else { if (interface_status == "build_tower"){ building_single_tower_title.visible = false; btn_cancel.visible = false; btn_cancel_ha.visible = false; }; }; }; }; } public function upgrade_box_mouse_over(_arg1:MouseEvent):void{ var _local2:int; var _local3:UpgradeBoxHitArea; var _local4:*; var _local5:int; _local3 = (_arg1.currentTarget as UpgradeBoxHitArea); _local2 = int(_local3.name); _local4 = (int(_local3.upgrade_type) + 1); _local5 = int(_local3.upgrade_level); boxUpgradeHaA[(_local2 - 1)].alpha = 0.2; upgradePriceText.text = (("Cost: " + BUY_UPGRADE_PRICE[_local4][_local5]) + " Upgrade points"); upgradeDetailsText.text = BUY_UPGRADE_DESC[_local4][_local5]; playSound(s1); } public function music_btn_key_press():void{ if (music == 1){ music = 0; music_channel.stop(); music_btn.gotoAndStop(4); } else { if (music == 0){ music = 1; music_channel = m2.play(0, 200); music_btn.gotoAndStop(2); }; }; } public function showLevelSelectPage():void{ var _local1:*; var _local2:int; status_frame++; if (status_frame == 1){ old_page = current_page; current_page = "level_select"; }; if (status_frame == 1){ map_window_bg.gotoAndStop(1); i = 1; while (i <= TOTAL_LEVELS) { tmp_type = level_status[i]; if (tmp_type == 0){ tmp_type = 10; }; levelIconA[(i - 1)].visible = true; if (tmp_type == 3){ levelIconExpertA[(i - 1)].visible = true; } else { levelIconExpertA[(i - 1)].visible = false; }; if (tmp_type < 10){ levelIconA[(i - 1)].visible = true; } else { levelIconA[(i - 1)].visible = false; }; i++; }; level_icon_selected.x = levelIconA[(selected_level - 1)].x; level_icon_selected.y = levelIconA[(selected_level - 1)].y; level_icon_selected.visible = true; i = 1; while (i <= TOTAL_LEVELS) { tmp_type = level_status[i]; if (tmp_type == 0){ tmp_type = 10; }; if (tmp_type < 10){ levelIconHaA[(i - 1)].visible = true; } else { levelIconHaA[(i - 1)].visible = false; }; i++; }; if (old_page == "upgrades"){ upgrade_names.visible = false; legend.visible = false; upgradeDetailsText.text = ""; upgradeDetailsText.visible = false; upgradePriceText.text = ""; upgradePriceText.visible = false; upgradePointsText.text = ""; upgradePointsText.visible = false; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; boxUpgradeA[(k - 1)].visible = false; boxUpgradeHaA[(k - 1)].visible = false; j++; }; i++; }; }; if (old_page == "achievements"){ k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].visible = false; achievementBoxHaA[(k - 1)].visible = false; i++; }; j++; }; }; }; } public function restart_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "restart"; resume_btn_ha.visible = false; restart_btn_ha.visible = false; goto_menu_btn_ha.visible = false; playSound(s3); } public function updateAchievementsAnimations():void{ var _local1:AchievementRectangle; var _local2:TextField; var _local3:int; _local1 = achievementRectangleA[0]; _local2 = achievementRectangleTextA[0]; if ((((activeAchievementRectangle == false)) && ((achievementList.length > 0)))){ activeAchievementRectangle = true; _local3 = achievementList.pop(); _local1.y = ACHIEVEMENT_RECTANGLE_Y; _local1.gotoAndStop(_local3); _local1.alpha = 0.1; _local1.visible = true; _local1.frame_id = TOTAL_ACHIEVEMENT_FALL_FRAMES; _local1.speed = INITIAL_ACHIEVEMENT_FALL_SPEED; _local2.y = (ACHIEVEMENT_RECTANGLE_Y - 30); _local2.alpha = 0.1; _local2.visible = true; _local2.text = ACHIEVEMENT_NAME[(_local3 - 1)]; }; if (activeAchievementRectangle == true){ _local1.frame_id--; if (_local1.frame_id >= (TOTAL_ACHIEVEMENT_FALL_FRAMES - 9)){ _local1.alpha = (_local1.alpha + 0.1); _local2.alpha = (_local2.alpha + 0.1); }; if (_local1.frame_id <= 8){ _local1.speed = (_local1.speed * FALL_ACHIEVEMENT_ACCELERATION); _local1.y = (_local1.y + _local1.speed); _local2.y = (_local2.y + _local1.speed); _local1.alpha = (_local1.alpha - 0.1); _local2.alpha = (_local2.alpha - 0.1); }; if (_local1.frame_id == 0){ activeAchievementRectangle = false; _local1.visible = false; _local2.visible = false; }; }; } public function skip_btn_mouse_out(_arg1:MouseEvent):void{ skip_btn.gotoAndStop(1); } public function go_home_btn_mouse_out(_arg1:MouseEvent):void{ go_home_btn.gotoAndStop(1); } public function checkForNewAchievements():void{ var _local1:int; var _local2:int; if (game_status == "play"){ _local2 = (STAT_FINISHED_GAMES_TOTAL_TIME + total_level_time); _local1 = 0; while (_local1 < TOTAL_TIMER_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TIMER_ACHIEVEMENT)] == 0){ if (_local2 >= (TIME_ACHIEVEMENT[_local1] * 60)){ addAchievement((_local1 + FIRST_TIMER_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_BIG_LEVEL_SCORE_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_BIG_LEVEL_SCORE_ACHIEVEMENT)] == 0){ if (level_score >= SCORE_SINGLE_GAME_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_BIG_LEVEL_SCORE_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_ENEMIES_KILLED_ACHIEVEMENT) { if (achievement_status[(_local1 + FIRST_ENEMIES_KILLED_ACHIEVEMENT)] == 0){ if (STAT_ENEMIES_KILLED >= ENEMIES_KILLED_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_ENEMIES_KILLED_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_SCORE_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TOTAL_SCORE_ACHIEVEMENT)] == 0){ if (total_score >= SCORE_TOTAL_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_TOTAL_SCORE_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_TURRETS_BUILT_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TOTAL_TURRETS_BUILT_ACHIEVEMENT)] == 0){ if (STAT_TURRETS_BUILT >= TURRETS_BUILT_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_TOTAL_TURRETS_BUILT_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_BOMBS_EXPLODED_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TOTAL_BOMBS_EXPLODED_ACHIEVEMENT)] == 0){ if (STAT_BOMBS_USED >= BOMBS_USED_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_TOTAL_BOMBS_EXPLODED_ACHIEVEMENT)); }; }; _local1++; }; _local1 = 0; while (_local1 < TOTAL_MAX_UPGRADED_TURRETS_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TOTAL_MAX_UPGRADED_TURRETS_ACHIEVEMENT)] == 0){ if (STAT_TURRETS_UPGRADED_TO_MAX >= TURRETS_UPGRADED_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_TOTAL_MAX_UPGRADED_TURRETS_ACHIEVEMENT)); }; }; _local1++; }; } else { if (game_status == "end_level"){ _local1 = 0; while (_local1 < TOTAL_MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT)] == 0){ if (STAT_MISSIONS_COMPLETED_EXPERT_SCORE >= MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT)); }; }; _local1++; }; } else { if ((((game_status == "init_upgrades_window")) || ((game_status == "upgrades_window")))){ _local1 = 0; while (_local1 < TOTAL_OWNED_UPGRADES_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_TOTAL_OWNED_UPGRADES_ACHIEVEMENT)] == 0){ if (STAT_OWNED_UPGRADES >= OWNED_UPGRADES_ACHIEVEMENT[_local1]){ addAchievement((_local1 + FIRST_TOTAL_OWNED_UPGRADES_ACHIEVEMENT)); }; }; _local1++; }; }; }; }; _local1 = 0; while (_local1 < TOTAL_VISITED_DEVELOPER_WEBSITE_ACHIEVEMENTS) { if (achievement_status[(_local1 + FIRST_VISITED_DEVELOPER_WEBSITE_ACHIEVEMENT)] == 0){ if (STAT_VISITED_LINKS >= 1){ addAchievement((_local1 + FIRST_VISITED_DEVELOPER_WEBSITE_ACHIEVEMENT)); }; }; _local1++; }; } public function randRange(_arg1:Number, _arg2:Number):Number{ var _local3:Number; _local3 = (Math.floor((Math.random() * ((_arg2 - _arg1) + 1))) + _arg1); return (_local3); } public function get_3rd_lat(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ var _local5:Number; _local5 = Math.sqrt((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2)))); return (_local5); } public function confirm_no_btn_mouse_out(_arg1:MouseEvent):void{ confirm_delete_no_btn.gotoAndStop(1); } public function logo_intro_mouse_over(_arg1:MouseEvent):void{ intro_anim.alpha = 0.7; logo_over_text.visible = true; playSound(s1); } public function loadComplete(_arg1:Event):void{ kongregate = _arg1.target.content; kongregate.services.connect(); } public function resume_btn_mouse_over(_arg1:MouseEvent):void{ resume_btn.gotoAndStop(2); playSound(s1); } public function goto_menu_btn_mouse_over(_arg1:MouseEvent):void{ back_to_menu_btn.gotoAndStop(2); playSound(s1); } function frame3(){ initOnce(); } public function clickUpgradeTower(_arg1:MouseEvent):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:int; _local2 = get_tower_id(selected_tower); _local3 = TOWER_UPGRADE_PRICE[tower_turret[_local2].tower_type][tower_turret[_local2].tower_level]; if (tower_turret[_local2].tower_type <= 6){ _local3 = (_local3 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); }; _local3 = Math.floor(_local3); money = (money - _local3); moneyText.text = ("$" + String(int(money))); tower_turret[_local2].tower_level++; if (tower_turret[_local2].tower_level == MAX_TOWER_LEVEL){ STAT_TURRETS_UPGRADED_TO_MAX++; }; tower_base[_local2].gotoAndStop((tower_turret[_local2].tower_level + ((tower_turret[_local2].tower_type - 1) * 10))); _local4 = tower_turret[_local2].tower_type; _local5 = tower_turret[_local2].tower_level; tower_turret[_local2].damage = (TOWER_DAMAGE[_local4][(_local5 - 1)] * TOWER_DAMAGE_MULTIPLIER[active_upgrade_level[4]]); tower_turret[_local2].rate = TOWER_RATE[_local4][(_local5 - 1)]; tower_turret[_local2].range = TOWER_RANGE[_local4][(_local5 - 1)]; tower_range_circle.gotoAndStop(tower_turret[_local2].range); just_clicked_upgrade_tower = true; show_tower_data(tower_turret[_local2].tower_type, tower_turret[_local2].tower_level); } function frame1(){ if (this.root.loaderInfo.url.indexOf("kongregate.com") != -1){ isKong = true; } else { isKong = false; }; paramObj = LoaderInfo(root.loaderInfo).parameters; api_url = ((paramObj.kongregate_api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf")); Security.allowDomain(api_url); if (isKong == true){ request = new URLRequest(api_url); loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete); loader.load(request); this.addChild(loader); }; percentText = new TextField(); percentText.x = 130; percentText.y = 260; percentText.width = 300; percentText.height = 100; percentText.selectable = false; addChild(percentText); myformat7 = new TextFormat(); myformat7.color = 0xFFFFFF; myformat7.size = 10; myformat7.bold = true; myformat7.align = "center"; myformat7.font = "Arial"; percentText.text = "00"; percentText.setTextFormat(myformat7); load_bar = new loadBar(); load_bar.x = 188; load_bar.y = 243; load_bar.gotoAndStop(1); addChild(load_bar); border_load_bar = new borderLoadBar(); border_load_bar.x = 278; border_load_bar.y = 210; border_load_bar.gotoAndStop(1); addChild(border_load_bar); intro_play_btn = new introPlayBtn(); intro_play_btn.x = 275; intro_play_btn.y = 355; intro_play_btn.gotoAndStop(1); intro_play_btn.visible = false; addChild(intro_play_btn); intro_play_btn_ha = new introPlayBtnHitArea(); intro_play_btn_ha.x = intro_play_btn.x; intro_play_btn_ha.y = intro_play_btn.y; intro_play_btn_ha.alpha = 0; intro_play_btn_ha.buttonMode = true; intro_play_btn_ha.visible = false; addChild(intro_play_btn_ha); intro_play_btn_ha.addEventListener(MouseEvent.ROLL_OVER, intro_play_btn_mouse_over); intro_play_btn_ha.addEventListener(MouseEvent.ROLL_OUT, intro_play_btn_mouse_out); intro_play_btn_ha.addEventListener(MouseEvent.CLICK, intro_play_btn_click); this.addEventListener("enterFrame", onEnterFrame); stage.showDefaultContextMenu = false; save_name = "data_mtd"; saved_data = SharedObject.getLocal(save_name); useURLLock = true; stop(); } public function confirm_no_btn_mouse_over(_arg1:MouseEvent):void{ confirm_delete_no_btn.gotoAndStop(2); playSound(s1); } public function getClosestAngle(_arg1:Number, _arg2:Number, _arg3:Number):Number{ var _local4:Number; var _local5:Boolean; if (_arg2 == _arg1){ _local4 = (_arg2 + 720); } else { _arg1 = (_arg1 + 720); _arg2 = (_arg2 + 720); _local5 = false; if (_arg2 > _arg1){ if ((_arg2 - _arg1) <= _arg3){ _local4 = _arg2; _local5 = true; }; } else { if (_arg2 < _arg1){ if ((_arg1 - _arg2) <= _arg3){ _local4 = _arg2; _local5 = true; }; }; }; if (_local5 == false){ if ((((_arg2 > _arg1)) && (((_arg2 - _arg1) > 180)))){ _arg2 = (_arg2 - 360); }; if ((((_arg2 < _arg1)) && (((_arg1 - _arg2) > 180)))){ _arg2 = (_arg2 + 360); }; if (_arg2 > _arg1){ _local4 = (_arg1 + _arg3); }; if (_arg2 < _arg1){ _local4 = (_arg1 - _arg3); }; }; }; _local4 = (_local4 - 720); return (_local4); } public function restartMission():void{ status_frame++; if (status_frame == 1){ black_screen.alpha = 0; black_screen.visible = true; }; if ((((status_frame >= 1)) && ((status_frame < 5)))){ black_screen.alpha = (black_screen.alpha + 0.2); }; if (status_frame == 5){ black_screen.alpha = 1; if (old_game_status == "paused"){ clearGameGraphics(); black_screen_pause_window.visible = false; pause_window.visible = false; resume_btn.visible = false; resume_btn_ha.visible = false; restart_btn.visible = false; restart_btn_ha.visible = false; goto_menu_btn.visible = false; goto_menu_btn_ha.visible = false; }; grid.visible = false; initLevel(selected_level); }; } function frame4(){ if (useURLLock == false){ canPlay = true; } else { if (this.root.loaderInfo.url.indexOf("armorgames.com") != -1){ canPlay = true; } else { canPlay = false; }; }; if (canPlay == true){ addEventListener(Event.ENTER_FRAME, mainProg); stage.addEventListener(MouseEvent.CLICK, stage_click); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); } else { not_ok = new notOK(); not_ok.gotoAndStop(2); addChild(not_ok); intro_play_btn.visible = false; intro_play_btn_ha.visible = false; }; stop(); } function frame2(){ levelIconA = new Array(); levelIconHaA = new Array(); levelIconExpertA = new Array(); towerIconA = new Array(); towerIconHaA = new Array(); towerIconHa2A = new Array(); speedButtonA = new Array(); speedButtonHaA = new Array(); tmp_display_object_list = new Array(); enemies_type_data = new Array(); total_enemies_data = new Array(); total_series_data = new Array(); single_serie_time_dif_data = new Array(); interseries_time_dif_data = new Array(); total_waves_data = new Array(5, 6, 7, 8, 10, 12, 14, 15, 16, 18, 20, 22, 24, 25, 27, 29, 30, 32, 33, 34, 35, 37, 39, 40, 41, 42, 43, 45, 47, 49, 50, 51, 53, 55, 57, 58, 60, 62, 64, 65); enemies_type_data[1] = "13745"; enemies_type_data[2] = "467848"; enemies_type_data[3] = "5831318"; enemies_type_data[4] = "13782727"; enemies_type_data[5] = "2823762547"; enemies_type_data[6] = "653521748128"; enemies_type_data[7] = "18657463415265"; enemies_type_data[8] = "687281754365812"; enemies_type_data[9] = "3631712143614382"; enemies_type_data[10] = "472762763534351689"; enemies_type_data[11] = "31235286328682647131"; enemies_type_data[12] = "3187371474374574252358"; enemies_type_data[13] = "218612861281275457325418"; enemies_type_data[14] = "1461642542815783125654762"; enemies_type_data[15] = "634748387573186451478638316"; enemies_type_data[16] = "85658756824384268361456216215"; enemies_type_data[17] = "472635687413861534253242634786"; enemies_type_data[18] = "25864351474815623726815418215314"; enemies_type_data[19] = "218586452647654654831874327648686"; enemies_type_data[20] = "1523512583171315638623153148576459"; enemies_type_data[21] = "18757845637632385626548284131635726"; enemies_type_data[22] = "4542785756126231456767837141343183482"; enemies_type_data[23] = "164735256862614151254818761278521678754"; enemies_type_data[24] = "7183545164175458471835234657174843465867"; enemies_type_data[25] = "27846751868264145243632514218132868582146"; enemies_type_data[26] = "374348253642821863626813183236235858675471"; enemies_type_data[27] = "3124263186586576171257382154653436428518371"; enemies_type_data[28] = "251456425245724678351638423614865243127842712"; enemies_type_data[29] = "86534717257614372562582347238723623812632534714"; enemies_type_data[30] = "5127358741285253581481462467278261386348738231429"; enemies_type_data[31] = "46813642726452435484135324525835138458432151531386"; enemies_type_data[32] = "315814258342537574526865328327235148372451413623654"; enemies_type_data[33] = "84628216414643642163476753858462841567513284745765245"; enemies_type_data[34] = "8384725768536832368141814254653248418458542617568385435"; enemies_type_data[35] = "751532128731537612484212458368487518756364716138367854683"; enemies_type_data[36] = "2354273565712453848271321712562657564765812758482835235278"; enemies_type_data[37] = "284743161632462735826787653125131367826376278537236547146414"; enemies_type_data[38] = "64347456424678657531768157384621516316481631247657381765676867"; enemies_type_data[39] = "8121386173621313835843846243827568181716387683747315743574732737"; enemies_type_data[40] = "82646572863583641548676217584257426313417124127358356826746527139"; total_enemies_data[1] = new Array(4, 7, 8, 5, 9); total_series_data[1] = new Array(1, 1, 2, 1, 1); single_serie_time_dif_data[1] = new Array(40, 80, 60, 70, 50); interseries_time_dif_data[1] = new Array(0, 0, 200, 0, 0); total_enemies_data[2] = new Array(7, 6, 6, 11, 9, 12); total_series_data[2] = new Array(1, 1, 3, 1, 1, 1); single_serie_time_dif_data[2] = new Array(80, 40, 60, 60, 60, 50); interseries_time_dif_data[2] = new Array(0, 0, 150, 0, 0, 0); total_enemies_data[3] = new Array(7, 6, 9, 9, 12, 8, 9); total_series_data[3] = new Array(1, 1, 1, 1, 2, 1, 1); single_serie_time_dif_data[3] = new Array(40, 40, 60, 40, 40, 80, 70); interseries_time_dif_data[3] = new Array(0, 0, 0, 0, 170, 0, 0); total_enemies_data[4] = new Array(8, 9, 9, 12, 10, 12, 12, 15); total_series_data[4] = new Array(1, 3, 3, 1, 1, 1, 1, 3); single_serie_time_dif_data[4] = new Array(50, 60, 50, 50, 80, 40, 70, 50); interseries_time_dif_data[4] = new Array(0, 150, 200, 0, 0, 0, 0, 180); total_enemies_data[5] = new Array(9, 11, 10, 9, 10, 10, 14, 15, 10, 11); total_series_data[5] = new Array(1, 1, 2, 1, 1, 1, 2, 3, 1, 1); single_serie_time_dif_data[5] = new Array(50, 60, 40, 80, 60, 70, 50, 70, 60, 50); interseries_time_dif_data[5] = new Array(0, 0, 150, 0, 0, 0, 200, 170, 0, 0); total_enemies_data[6] = new Array(10, 8, 10, 9, 12, 15, 12, 16, 18, 14, 14, 17); total_series_data[6] = new Array(1, 1, 1, 3, 2, 3, 3, 1, 3, 2, 1, 1); single_serie_time_dif_data[6] = new Array(60, 60, 60, 60, 60, 60, 40, 70, 50, 70, 50, 50); interseries_time_dif_data[6] = new Array(0, 0, 0, 150, 200, 180, 150, 0, 160, 170, 0, 0); total_enemies_data[7] = new Array(11, 12, 9, 14, 13, 12, 13, 17, 15, 14, 18, 15, 14, 20); total_series_data[7] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 2, 1); single_serie_time_dif_data[7] = new Array(60, 70, 70, 70, 80, 70, 40, 50, 70, 70, 50, 60, 60, 80); interseries_time_dif_data[7] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 200, 180, 160, 0); total_enemies_data[8] = new Array(11, 9, 10, 14, 10, 17, 12, 14, 18, 14, 19, 14, 21, 24, 22); total_series_data[8] = new Array(1, 3, 1, 1, 1, 1, 1, 2, 3, 2, 1, 2, 1, 3, 1); single_serie_time_dif_data[8] = new Array(50, 50, 50, 50, 60, 60, 40, 70, 40, 60, 50, 40, 80, 50, 50); interseries_time_dif_data[8] = new Array(0, 200, 0, 0, 0, 0, 0, 200, 150, 160, 0, 180, 0, 150, 0); total_enemies_data[9] = new Array(11, 9, 14, 12, 12, 13, 17, 14, 17, 21, 15, 21, 21, 18, 21, 20); total_series_data[9] = new Array(1, 1, 2, 2, 3, 1, 1, 1, 1, 3, 1, 3, 3, 1, 1, 1); single_serie_time_dif_data[9] = new Array(80, 40, 80, 70, 70, 60, 60, 50, 40, 70, 60, 60, 50, 80, 50, 50); interseries_time_dif_data[9] = new Array(0, 0, 200, 150, 160, 0, 0, 0, 0, 200, 0, 170, 150, 0, 0, 0); total_enemies_data[10] = new Array(12, 13, 13, 16, 15, 13, 16, 13, 21, 20, 21, 24, 21, 18, 21, 24, 23, 4); total_series_data[10] = new Array(2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 3, 1, 3, 3, 1, 1, 1); single_serie_time_dif_data[10] = new Array(40, 40, 60, 60, 50, 40, 60, 50, 50, 80, 80, 40, 40, 70, 70, 80, 70, 200); interseries_time_dif_data[10] = new Array(200, 0, 0, 0, 0, 0, 0, 0, 160, 0, 180, 170, 0, 160, 180, 0, 0, 0); total_enemies_data[11] = new Array(9, 14, 12, 18, 17, 12, 15, 20, 20, 18, 14, 21, 21, 21, 21, 19, 20, 27, 26, 20); total_series_data[11] = new Array(1, 2, 3, 3, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 1, 2, 2); single_serie_time_dif_data[11] = new Array(60, 40, 60, 60, 60, 80, 80, 80, 70, 60, 80, 80, 80, 40, 60, 70, 70, 60, 40, 80); interseries_time_dif_data[11] = new Array(0, 160, 160, 160, 0, 200, 0, 0, 0, 180, 0, 0, 0, 0, 170, 0, 0, 0, 180, 170); total_enemies_data[12] = new Array(12, 15, 18, 14, 18, 16, 17, 14, 14, 18, 18, 22, 24, 20, 21, 21, 19, 20, 30, 26, 26, 28); total_series_data[12] = new Array(2, 1, 3, 2, 3, 1, 1, 1, 1, 3, 2, 1, 2, 1, 3, 1, 1, 1, 3, 2, 1, 2); single_serie_time_dif_data[12] = new Array(60, 80, 80, 50, 70, 50, 50, 60, 80, 60, 70, 50, 50, 80, 60, 70, 40, 80, 50, 80, 80, 40); interseries_time_dif_data[12] = new Array(170, 0, 200, 170, 170, 0, 0, 0, 0, 170, 150, 0, 170, 0, 150, 0, 0, 0, 150, 150, 0, 200); total_enemies_data[13] = new Array(10, 16, 12, 13, 16, 13, 14, 16, 20, 23, 18, 23, 19, 24, 22, 18, 19, 28, 28, 30, 24, 31, 26, 32); total_series_data[13] = new Array(1, 2, 1, 1, 2, 1, 2, 2, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 1, 2); single_serie_time_dif_data[13] = new Array(50, 40, 80, 70, 40, 60, 80, 50, 80, 40, 80, 80, 60, 80, 70, 80, 70, 40, 70, 40, 50, 80, 70, 80); interseries_time_dif_data[13] = new Array(0, 150, 0, 0, 180, 0, 150, 180, 160, 0, 150, 0, 0, 0, 0, 0, 0, 0, 160, 170, 150, 0, 0, 200); total_enemies_data[14] = new Array(15, 15, 18, 18, 17, 17, 18, 16, 20, 20, 21, 17, 19, 24, 19, 25, 22, 30, 26, 30, 27, 32, 24, 31, 33); total_series_data[14] = new Array(1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 2, 2, 2, 3, 3, 1, 3, 1, 1); single_serie_time_dif_data[14] = new Array(80, 80, 80, 70, 80, 80, 70, 60, 80, 50, 60, 70, 70, 50, 80, 70, 70, 80, 50, 40, 50, 70, 40, 40, 50); interseries_time_dif_data[14] = new Array(0, 0, 180, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 150, 0, 0, 200, 180, 180, 170, 160, 0, 150, 0, 0); total_enemies_data[15] = new Array(12, 18, 15, 21, 16, 20, 18, 20, 16, 18, 19, 20, 26, 18, 24, 19, 24, 27, 22, 22, 24, 24, 31, 31, 30, 33, 26); total_series_data[15] = new Array(1, 3, 1, 3, 1, 2, 3, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 2, 1, 1, 1, 1, 1, 3, 3, 2); single_serie_time_dif_data[15] = new Array(60, 60, 50, 40, 70, 70, 60, 60, 50, 70, 40, 60, 70, 60, 80, 60, 60, 70, 80, 50, 60, 60, 40, 50, 80, 80, 60); interseries_time_dif_data[15] = new Array(0, 180, 0, 160, 0, 160, 170, 0, 0, 0, 0, 0, 0, 200, 200, 0, 0, 0, 200, 0, 0, 0, 0, 0, 150, 200, 150); total_enemies_data[16] = new Array(18, 21, 19, 16, 21, 18, 17, 16, 21, 25, 27, 27, 27, 29, 30, 26, 25, 32, 29, 24, 26, 26, 30, 29, 33, 26, 33, 31, 29); total_series_data[16] = new Array(2, 3, 1, 2, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 3, 2, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1); single_serie_time_dif_data[16] = new Array(60, 80, 50, 50, 80, 60, 50, 80, 50, 70, 50, 50, 80, 60, 60, 40, 80, 60, 50, 80, 80, 40, 70, 50, 70, 40, 80, 60, 60); interseries_time_dif_data[16] = new Array(170, 160, 0, 170, 0, 0, 0, 0, 0, 0, 160, 0, 200, 0, 150, 170, 0, 0, 0, 0, 0, 160, 180, 0, 0, 0, 0, 0, 0); total_enemies_data[17] = new Array(14, 20, 21, 20, 20, 23, 20, 18, 21, 19, 19, 24, 24, 21, 25, 27, 24, 25, 27, 30, 29, 32, 26, 31, 34, 26, 26, 28, 36, 36); total_series_data[17] = new Array(1, 1, 3, 2, 2, 1, 1, 3, 1, 1, 1, 2, 1, 3, 1, 3, 3, 1, 1, 3, 1, 2, 1, 1, 1, 2, 2, 2, 1, 1); single_serie_time_dif_data[17] = new Array(70, 40, 40, 50, 50, 70, 80, 60, 40, 50, 80, 80, 40, 60, 80, 40, 60, 60, 40, 60, 50, 70, 80, 60, 50, 60, 60, 50, 80, 60); interseries_time_dif_data[17] = new Array(0, 0, 160, 160, 170, 0, 0, 200, 0, 0, 0, 180, 0, 170, 0, 150, 200, 0, 0, 160, 0, 170, 0, 0, 0, 180, 160, 170, 0, 0); total_enemies_data[18] = new Array(17, 19, 15, 22, 19, 22, 18, 22, 22, 21, 21, 23, 21, 20, 30, 29, 24, 24, 25, 30, 25, 33, 27, 34, 33, 26, 39, 27, 30, 39, 41, 40); total_series_data[18] = new Array(1, 1, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 3, 3, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1); single_serie_time_dif_data[18] = new Array(50, 50, 60, 70, 40, 80, 50, 60, 70, 80, 70, 80, 80, 80, 50, 50, 40, 50, 80, 80, 80, 70, 70, 40, 50, 50, 70, 50, 40, 80, 80, 50); interseries_time_dif_data[18] = new Array(0, 0, 0, 180, 0, 150, 0, 0, 0, 180, 0, 0, 0, 180, 0, 0, 170, 160, 0, 180, 0, 0, 0, 150, 0, 0, 0, 0, 180, 0, 0, 0); total_enemies_data[19] = new Array(20, 21, 21, 23, 23, 18, 21, 22, 20, 26, 18, 21, 20, 21, 24, 33, 25, 23, 28, 32, 23, 35, 35, 29, 30, 35, 33, 28, 27, 37, 30, 40, 43); total_series_data[19] = new Array(1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 2, 1, 1); single_serie_time_dif_data[19] = new Array(70, 80, 70, 80, 50, 70, 80, 70, 40, 50, 80, 60, 70, 60, 50, 70, 60, 50, 60, 80, 70, 80, 80, 40, 60, 70, 70, 60, 50, 60, 60, 50, 70); interseries_time_dif_data[19] = new Array(0, 0, 0, 0, 0, 150, 0, 0, 0, 200, 200, 0, 200, 170, 180, 160, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0, 200, 0, 150, 0, 0); total_enemies_data[20] = new Array(17, 18, 17, 22, 20, 18, 23, 23, 21, 28, 28, 30, 30, 26, 23, 27, 33, 33, 27, 32, 33, 33, 30, 35, 33, 29, 38, 42, 34, 33, 35, 45, 41, 4); total_series_data[20] = new Array(1, 3, 1, 2, 1, 2, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1); single_serie_time_dif_data[20] = new Array(40, 40, 60, 40, 70, 70, 80, 80, 70, 80, 40, 50, 50, 80, 80, 50, 40, 50, 70, 60, 40, 50, 80, 50, 60, 50, 60, 70, 60, 80, 50, 80, 70, 200); interseries_time_dif_data[20] = new Array(0, 200, 0, 170, 0, 170, 0, 0, 0, 0, 200, 170, 0, 0, 0, 0, 170, 200, 0, 0, 0, 0, 180, 0, 0, 0, 0, 180, 0, 170, 0, 0, 0, 0); total_enemies_data[21] = new Array(15, 22, 18, 24, 21, 26, 27, 26, 19, 23, 21, 25, 27, 23, 21, 29, 22, 32, 26, 32, 28, 31, 38, 26, 33, 30, 28, 32, 42, 34, 29, 39, 39, 36, 40); total_series_data[21] = new Array(3, 1, 3, 3, 3, 1, 3, 1, 1, 1, 3, 1, 3, 1, 1, 1, 2, 2, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 2, 1, 3, 3, 2, 1); single_serie_time_dif_data[21] = new Array(70, 70, 80, 80, 40, 50, 60, 80, 40, 50, 70, 80, 70, 60, 80, 60, 70, 40, 50, 70, 70, 80, 70, 40, 80, 40, 70, 50, 80, 40, 70, 50, 80, 60, 60); interseries_time_dif_data[21] = new Array(200, 0, 150, 170, 180, 0, 150, 0, 0, 0, 170, 0, 150, 0, 0, 0, 150, 200, 150, 0, 180, 0, 0, 0, 200, 0, 0, 0, 170, 170, 0, 180, 180, 180, 0); total_enemies_data[22] = new Array(24, 24, 18, 24, 21, 21, 25, 25, 29, 23, 28, 24, 32, 30, 26, 33, 26, 28, 30, 32, 27, 36, 30, 40, 33, 30, 38, 36, 33, 44, 40, 48, 45, 48, 42, 40, 48); total_series_data[22] = new Array(2, 3, 3, 1, 3, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 3, 2, 1, 3, 3, 1, 1, 2, 3); single_serie_time_dif_data[22] = new Array(40, 60, 60, 50, 60, 50, 40, 70, 40, 40, 80, 50, 40, 40, 40, 70, 80, 40, 80, 60, 80, 80, 50, 80, 60, 50, 40, 70, 70, 50, 80, 50, 80, 40, 70, 60, 70); interseries_time_dif_data[22] = new Array(180, 170, 150, 0, 180, 0, 0, 0, 0, 0, 160, 0, 0, 200, 180, 0, 0, 0, 0, 0, 0, 0, 170, 200, 0, 0, 0, 0, 160, 150, 0, 180, 150, 0, 0, 160, 160); total_enemies_data[23] = new Array(17, 21, 24, 21, 22, 19, 26, 24, 19, 21, 20, 26, 24, 24, 25, 31, 24, 33, 24, 37, 38, 36, 30, 27, 27, 40, 42, 43, 44, 36, 41, 48, 38, 36, 44, 51, 44, 40, 36); total_series_data[23] = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1, 3, 1, 3, 2, 1, 1, 3, 1, 1, 2); single_serie_time_dif_data[23] = new Array(70, 70, 80, 40, 80, 50, 80, 60, 50, 60, 60, 70, 50, 50, 40, 70, 40, 80, 70, 70, 50, 70, 50, 50, 60, 70, 50, 80, 80, 70, 40, 60, 80, 40, 50, 60, 70, 40, 50); interseries_time_dif_data[23] = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 180, 0, 0, 0, 0, 160, 0, 170, 160, 0, 0, 170, 0, 0, 160); total_enemies_data[24] = new Array(22, 22, 21, 27, 20, 25, 26, 27, 22, 21, 28, 28, 30, 24, 23, 30, 35, 32, 28, 36, 30, 31, 33, 31, 40, 42, 42, 39, 36, 32, 39, 40, 44, 48, 49, 34, 46, 38, 42, 39); total_series_data[24] = new Array(2, 1, 1, 3, 1, 1, 2, 1, 2, 1, 1, 2, 2, 1, 1, 3, 1, 1, 2, 2, 3, 1, 3, 1, 1, 1, 2, 3, 3, 2, 3, 2, 1, 3, 1, 1, 1, 2, 2, 1); single_serie_time_dif_data[24] = new Array(70, 80, 80, 70, 70, 60, 80, 40, 50, 40, 70, 40, 50, 80, 60, 50, 70, 80, 50, 60, 80, 70, 40, 40, 50, 50, 40, 70, 60, 50, 40, 60, 50, 40, 70, 70, 50, 70, 50, 60); interseries_time_dif_data[24] = new Array(160, 0, 0, 170, 0, 0, 170, 0, 180, 0, 0, 150, 150, 0, 0, 150, 0, 0, 200, 200, 200, 0, 180, 0, 0, 0, 150, 150, 160, 180, 160, 200, 0, 200, 0, 0, 0, 170, 180, 0); total_enemies_data[25] = new Array(22, 18, 21, 25, 27, 21, 27, 28, 29, 28, 28, 30, 23, 26, 24, 32, 25, 34, 27, 30, 39, 28, 30, 30, 29, 36, 30, 42, 33, 44, 40, 45, 32, 36, 50, 34, 50, 36, 39, 37, 36); total_series_data[25] = new Array(2, 3, 1, 1, 3, 3, 3, 2, 1, 2, 2, 1, 1, 1, 1, 2, 1, 2, 3, 3, 3, 2, 3, 1, 1, 2, 1, 2, 3, 2, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1); single_serie_time_dif_data[25] = new Array(80, 40, 70, 80, 50, 80, 50, 70, 40, 70, 50, 50, 70, 70, 40, 70, 50, 50, 80, 50, 50, 60, 50, 70, 60, 50, 60, 40, 80, 50, 50, 50, 80, 70, 80, 50, 60, 60, 40, 70, 60); interseries_time_dif_data[25] = new Array(170, 200, 0, 0, 150, 170, 150, 180, 0, 170, 200, 0, 0, 0, 0, 200, 0, 150, 170, 160, 180, 170, 180, 0, 0, 180, 0, 170, 170, 160, 0, 0, 0, 0, 0, 200, 0, 200, 0, 0, 0); total_enemies_data[26] = new Array(24, 21, 21, 28, 23, 26, 27, 27, 33, 22, 24, 30, 31, 30, 31, 34, 37, 40, 27, 40, 28, 42, 35, 30, 33, 33, 34, 40, 46, 45, 34, 39, 34, 48, 38, 42, 42, 44, 42, 37, 45, 51); total_series_data[26] = new Array(1, 3, 3, 1, 1, 2, 3, 1, 3, 1, 2, 1, 1, 1, 1, 2, 1, 2, 3, 1, 2, 1, 1, 1, 3, 3, 1, 1, 2, 3, 2, 3, 1, 3, 1, 2, 3, 2, 3, 1, 1, 1); single_serie_time_dif_data[26] = new Array(50, 40, 80, 40, 70, 60, 80, 50, 40, 70, 50, 70, 50, 80, 40, 40, 40, 80, 80, 60, 40, 40, 40, 70, 80, 70, 70, 40, 40, 70, 80, 50, 40, 60, 70, 70, 60, 70, 40, 40, 70, 70); interseries_time_dif_data[26] = new Array(0, 150, 180, 0, 0, 170, 150, 0, 150, 0, 170, 0, 0, 0, 0, 170, 0, 200, 150, 0, 180, 0, 0, 0, 180, 200, 0, 0, 180, 160, 200, 180, 0, 170, 0, 150, 180, 180, 200, 0, 0, 0); total_enemies_data[27] = new Array(23, 22, 24, 27, 26, 24, 30, 24, 28, 27, 25, 33, 31, 33, 24, 25, 26, 27, 30, 30, 33, 38, 42, 34, 30, 32, 44, 32, 43, 39, 42, 45, 39, 36, 39, 39, 35, 47, 36, 56, 45, 42, 52); total_series_data[27] = new Array(1, 2, 1, 3, 2, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 3, 1, 3, 2, 3, 2, 1, 2, 1, 1, 3, 1, 3, 1, 3, 1, 1, 1, 2, 2, 1, 3, 1); single_serie_time_dif_data[27] = new Array(80, 50, 70, 80, 40, 50, 50, 70, 50, 40, 80, 40, 60, 60, 40, 60, 60, 40, 50, 60, 50, 60, 50, 40, 70, 40, 70, 40, 60, 60, 40, 50, 40, 70, 40, 60, 40, 80, 80, 50, 60, 60, 60); interseries_time_dif_data[27] = new Array(0, 180, 0, 180, 160, 150, 0, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 200, 0, 170, 0, 170, 200, 170, 150, 0, 150, 0, 0, 200, 0, 170, 0, 150, 0, 0, 0, 160, 160, 0, 200, 0); total_enemies_data[28] = new Array(23, 21, 24, 26, 28, 29, 22, 27, 25, 28, 26, 36, 36, 26, 32, 33, 26, 30, 37, 33, 36, 36, 37, 41, 45, 32, 42, 39, 43, 47, 36, 42, 51, 51, 38, 54, 54, 39, 52, 54, 40, 48, 46, 60, 46); total_series_data[28] = new Array(1, 3, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 3, 2, 1, 3, 1, 2, 1, 3, 2, 1, 1, 1, 3, 1, 3, 3, 1, 1, 2, 1, 3, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1); single_serie_time_dif_data[28] = new Array(40, 60, 70, 50, 40, 70, 70, 80, 80, 80, 60, 60, 80, 40, 80, 40, 80, 40, 50, 40, 40, 60, 50, 70, 70, 60, 40, 40, 60, 40, 40, 70, 80, 40, 70, 40, 60, 50, 70, 60, 80, 50, 40, 50, 40); interseries_time_dif_data[28] = new Array(0, 160, 0, 160, 200, 0, 0, 0, 0, 0, 170, 0, 200, 150, 0, 150, 0, 150, 0, 170, 200, 0, 0, 0, 150, 0, 170, 170, 0, 0, 160, 0, 160, 0, 0, 0, 180, 0, 180, 0, 160, 0, 0, 0, 0); total_enemies_data[29] = new Array(20, 27, 21, 24, 22, 31, 24, 24, 28, 28, 23, 34, 30, 36, 30, 33, 33, 40, 27, 28, 33, 43, 36, 41, 40, 38, 45, 37, 32, 42, 42, 39, 39, 36, 46, 38, 52, 42, 43, 52, 40, 42, 60, 54, 48, 49, 48); total_series_data[29] = new Array(1, 1, 3, 1, 2, 1, 3, 1, 2, 1, 1, 1, 3, 3, 1, 1, 1, 2, 1, 2, 3, 1, 3, 1, 1, 1, 1, 1, 1, 3, 2, 3, 1, 1, 1, 1, 2, 3, 1, 1, 2, 1, 3, 1, 2, 1, 1); single_serie_time_dif_data[29] = new Array(40, 80, 70, 60, 40, 50, 50, 70, 50, 80, 50, 40, 60, 80, 40, 80, 40, 50, 40, 60, 70, 70, 40, 80, 50, 40, 80, 70, 60, 40, 80, 40, 60, 40, 60, 70, 50, 60, 70, 80, 80, 70, 80, 70, 70, 70, 40); interseries_time_dif_data[29] = new Array(0, 0, 200, 0, 160, 0, 200, 0, 200, 0, 0, 0, 150, 180, 0, 0, 0, 160, 0, 170, 150, 0, 200, 0, 0, 0, 0, 0, 0, 200, 160, 150, 0, 0, 0, 0, 200, 160, 0, 0, 180, 0, 170, 0, 170, 0, 0); total_enemies_data[30] = new Array(29, 21, 24, 25, 28, 27, 22, 28, 24, 25, 32, 32, 27, 36, 34, 35, 39, 29, 37, 45, 33, 42, 32, 44, 45, 44, 42, 49, 37, 44, 45, 45, 52, 39, 54, 49, 57, 38, 44, 54, 57, 51, 53, 60, 42, 58, 51, 54, 4); total_series_data[30] = new Array(1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 3, 3, 1, 2, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 1, 1, 3, 1, 2, 2, 3, 3, 1, 2, 1, 1, 3, 1, 1); single_serie_time_dif_data[30] = new Array(40, 80, 50, 40, 80, 60, 40, 70, 60, 60, 60, 50, 40, 70, 40, 70, 50, 60, 80, 40, 50, 50, 70, 70, 60, 50, 60, 80, 60, 40, 40, 40, 80, 80, 40, 40, 60, 40, 50, 50, 40, 80, 70, 80, 70, 60, 50, 60, 200); interseries_time_dif_data[30] = new Array(0, 0, 160, 0, 200, 0, 0, 0, 0, 0, 170, 0, 200, 0, 0, 0, 0, 0, 0, 150, 180, 0, 150, 0, 0, 0, 180, 0, 0, 0, 0, 160, 0, 0, 0, 0, 160, 0, 160, 180, 170, 200, 0, 150, 0, 0, 170, 0, 0); total_enemies_data[31] = new Array(22, 24, 30, 21, 24, 29, 24, 27, 36, 26, 26, 32, 27, 36, 30, 41, 39, 36, 42, 30, 43, 36, 42, 44, 34, 38, 45, 46, 51, 45, 49, 40, 52, 42, 46, 47, 48, 57, 42, 40, 57, 42, 46, 50, 50, 57, 44, 44, 49, 44); total_series_data[31] = new Array(1, 2, 1, 1, 3, 1, 3, 3, 2, 1, 2, 1, 1, 3, 2, 1, 3, 1, 1, 2, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 2, 2, 1, 1); single_serie_time_dif_data[31] = new Array(40, 50, 50, 40, 60, 50, 50, 50, 50, 70, 40, 70, 70, 50, 80, 60, 80, 60, 60, 80, 60, 70, 40, 50, 80, 40, 80, 60, 60, 40, 60, 50, 80, 60, 60, 80, 80, 80, 50, 60, 70, 40, 50, 60, 80, 80, 80, 40, 40, 70); interseries_time_dif_data[31] = new Array(0, 180, 0, 0, 150, 0, 150, 170, 180, 0, 180, 0, 0, 150, 170, 0, 200, 0, 0, 200, 0, 0, 200, 0, 160, 0, 170, 0, 150, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 170, 0, 150, 0, 0, 180, 150, 0, 0); total_enemies_data[32] = new Array(29, 32, 25, 24, 28, 24, 35, 24, 28, 35, 38, 32, 37, 29, 30, 37, 38, 36, 31, 40, 44, 43, 37, 35, 36, 44, 34, 40, 39, 54, 36, 36, 51, 38, 41, 45, 56, 54, 57, 48, 56, 62, 62, 46, 60, 64, 56, 57, 57, 69, 53); total_series_data[32] = new Array(1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 3, 2, 1, 3, 2, 1, 1, 1, 2, 3, 1, 1, 2, 2, 2, 1, 2, 1, 3, 3, 3, 1); single_serie_time_dif_data[32] = new Array(80, 40, 80, 80, 80, 60, 60, 50, 70, 40, 60, 40, 40, 60, 80, 60, 50, 70, 70, 40, 50, 80, 80, 50, 50, 60, 80, 70, 50, 50, 70, 50, 40, 70, 80, 70, 40, 80, 70, 50, 50, 40, 70, 80, 80, 80, 80, 80, 70, 70, 50); interseries_time_dif_data[32] = new Array(0, 0, 0, 0, 0, 170, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 180, 0, 0, 0, 0, 0, 200, 170, 200, 0, 150, 170, 0, 150, 170, 0, 0, 0, 180, 170, 0, 0, 180, 150, 200, 0, 150, 0, 200, 160, 170, 0); total_enemies_data[33] = new Array(27, 25, 28, 22, 32, 32, 34, 30, 36, 34, 26, 26, 39, 36, 30, 30, 38, 30, 32, 44, 44, 40, 46, 35, 40, 48, 33, 38, 49, 47, 42, 42, 39, 56, 46, 51, 45, 50, 58, 42, 45, 46, 46, 45, 51, 60, 45, 66, 53, 50, 62, 51, 65); total_series_data[33] = new Array(3, 1, 1, 1, 2, 1, 2, 2, 3, 1, 1, 1, 3, 1, 1, 2, 2, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 2, 3, 1, 1, 3, 3, 2, 2, 3, 1, 2, 2, 1, 3, 1, 1, 3, 1, 1, 1, 3, 1); single_serie_time_dif_data[33] = new Array(50, 70, 60, 50, 70, 50, 40, 60, 50, 80, 50, 40, 40, 80, 40, 60, 50, 50, 40, 70, 40, 80, 70, 70, 50, 60, 60, 50, 70, 70, 70, 80, 50, 40, 60, 50, 40, 70, 60, 80, 70, 40, 40, 80, 60, 80, 60, 60, 80, 80, 40, 70, 80); interseries_time_dif_data[33] = new Array(150, 0, 0, 0, 170, 0, 150, 170, 180, 0, 0, 0, 160, 0, 0, 150, 170, 160, 170, 0, 160, 0, 170, 0, 180, 0, 0, 180, 0, 0, 0, 160, 180, 0, 0, 170, 180, 180, 150, 180, 0, 150, 170, 0, 170, 0, 0, 180, 0, 0, 0, 160, 0); total_enemies_data[34] = new Array(29, 32, 24, 24, 30, 27, 27, 28, 34, 29, 34, 30, 41, 30, 33, 34, 40, 32, 44, 39, 46, 33, 48, 49, 50, 51, 44, 44, 48, 45, 42, 51, 43, 45, 42, 48, 56, 52, 60, 50, 42, 48, 61, 45, 50, 49, 47, 45, 61, 54, 47, 56, 52, 52, 66); total_series_data[34] = new Array(1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 2, 1, 3, 1, 1, 2, 1, 2, 1, 1, 3, 1, 1, 1, 1, 2, 1, 3, 3, 1, 3, 1, 3, 3, 3, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1); single_serie_time_dif_data[34] = new Array(80, 50, 40, 60, 60, 50, 60, 40, 70, 80, 50, 40, 60, 40, 40, 70, 50, 70, 80, 40, 80, 70, 40, 70, 80, 70, 70, 50, 80, 50, 70, 50, 60, 50, 80, 70, 80, 50, 80, 60, 80, 80, 40, 70, 60, 70, 50, 70, 40, 60, 60, 40, 80, 60, 40); interseries_time_dif_data[34] = new Array(0, 200, 0, 180, 0, 0, 0, 160, 0, 0, 180, 180, 0, 170, 0, 0, 150, 0, 170, 0, 0, 180, 0, 0, 0, 0, 160, 0, 200, 170, 0, 200, 0, 180, 200, 180, 0, 0, 150, 0, 170, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 170, 0, 0); total_enemies_data[35] = new Array(30, 30, 30, 32, 23, 28, 27, 39, 38, 27, 39, 37, 28, 42, 37, 32, 31, 44, 33, 32, 48, 48, 39, 50, 41, 35, 45, 43, 51, 50, 44, 53, 48, 50, 56, 40, 55, 49, 48, 62, 58, 50, 56, 58, 50, 58, 63, 66, 69, 55, 50, 69, 55, 57, 60, 51, 58); total_series_data[35] = new Array(3, 1, 2, 1, 1, 1, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 1, 1, 3, 2, 2, 1, 3, 2, 1, 1, 3, 1, 3, 1, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 3, 1, 2, 3, 1, 1, 3, 1, 1); single_serie_time_dif_data[35] = new Array(70, 80, 70, 50, 60, 60, 60, 60, 80, 80, 50, 60, 50, 50, 80, 40, 70, 40, 80, 50, 80, 60, 80, 60, 50, 80, 70, 50, 60, 70, 50, 60, 50, 80, 80, 80, 60, 70, 60, 80, 60, 70, 60, 60, 80, 80, 70, 70, 50, 60, 70, 70, 40, 80, 70, 80, 50); interseries_time_dif_data[35] = new Array(180, 0, 170, 0, 0, 0, 0, 180, 0, 0, 170, 0, 0, 200, 0, 0, 0, 0, 150, 170, 180, 0, 200, 170, 0, 0, 170, 0, 200, 0, 170, 0, 0, 150, 0, 150, 0, 0, 0, 0, 160, 0, 170, 0, 0, 170, 0, 0, 180, 0, 200, 170, 0, 0, 170, 0, 0); total_enemies_data[36] = new Array(27, 30, 24, 25, 30, 38, 36, 38, 38, 33, 37, 40, 42, 34, 32, 45, 36, 40, 36, 33, 36, 36, 33, 39, 43, 49, 35, 46, 42, 53, 42, 55, 38, 41, 50, 56, 60, 58, 61, 42, 51, 56, 50, 53, 60, 54, 58, 53, 66, 65, 64, 50, 51, 63, 65, 53, 55, 64); total_series_data[36] = new Array(1, 3, 3, 1, 3, 2, 1, 1, 1, 1, 1, 2, 3, 2, 2, 3, 3, 2, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 3, 1, 2, 1, 1, 3, 2, 1, 2, 1, 2, 2, 1, 1, 1, 1, 1, 2); single_serie_time_dif_data[36] = new Array(40, 80, 50, 60, 70, 60, 80, 70, 50, 40, 60, 80, 60, 60, 50, 60, 60, 50, 50, 80, 40, 50, 60, 50, 40, 80, 70, 50, 40, 70, 80, 80, 60, 40, 60, 70, 60, 40, 80, 60, 80, 60, 80, 60, 80, 40, 50, 50, 40, 50, 70, 40, 50, 40, 80, 60, 40, 70); interseries_time_dif_data[36] = new Array(0, 150, 180, 0, 160, 150, 0, 0, 0, 0, 0, 200, 170, 160, 150, 160, 150, 150, 150, 170, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 170, 0, 0, 0, 0, 160, 0, 150, 0, 0, 200, 0, 170, 0, 0, 180, 150, 0, 160, 0, 170, 200, 0, 0, 0, 0, 0, 160); total_enemies_data[37] = new Array(33, 24, 29, 27, 28, 37, 32, 30, 33, 29, 36, 34, 42, 42, 43, 42, 38, 46, 35, 44, 46, 38, 48, 42, 39, 36, 51, 41, 45, 38, 46, 38, 42, 47, 50, 45, 57, 54, 48, 61, 45, 58, 47, 44, 66, 53, 55, 66, 48, 70, 54, 67, 66, 56, 66, 69, 63, 68, 61, 77); total_series_data[37] = new Array(3, 3, 1, 3, 1, 1, 1, 1, 1, 1, 3, 2, 1, 2, 1, 3, 1, 2, 1, 2, 2, 1, 3, 3, 3, 2, 3, 1, 3, 1, 1, 1, 3, 1, 2, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 3, 3, 1, 1, 1, 1); single_serie_time_dif_data[37] = new Array(70, 70, 70, 40, 50, 50, 50, 80, 40, 50, 80, 80, 40, 60, 80, 80, 70, 70, 60, 50, 70, 80, 60, 70, 70, 70, 40, 80, 40, 80, 40, 40, 60, 40, 60, 50, 70, 40, 40, 60, 80, 50, 80, 60, 40, 80, 60, 40, 40, 70, 70, 80, 40, 50, 50, 40, 60, 40, 40, 80); interseries_time_dif_data[37] = new Array(150, 170, 0, 150, 0, 0, 0, 0, 0, 0, 160, 170, 0, 150, 0, 150, 0, 170, 0, 150, 180, 0, 150, 170, 200, 170, 180, 0, 180, 0, 0, 0, 180, 0, 180, 0, 0, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 200, 160, 0, 0, 0, 0); total_enemies_data[38] = new Array(30, 33, 30, 39, 29, 28, 39, 41, 29, 30, 42, 36, 39, 31, 30, 38, 32, 38, 36, 45, 43, 48, 41, 47, 52, 42, 36, 50, 46, 39, 45, 60, 60, 60, 48, 51, 46, 52, 56, 48, 44, 50, 54, 55, 69, 61, 63, 68, 68, 58, 70, 54, 66, 75, 72, 66, 52, 78, 69, 57, 68, 74); total_series_data[38] = new Array(2, 1, 3, 3, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 2, 2, 1, 1, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 3, 3, 2, 1, 2, 3, 1, 1, 2, 2, 1, 1, 3, 1, 3, 1, 1, 1, 2, 1, 2, 1, 1, 3, 1, 3, 2, 2, 1, 3, 1, 1); single_serie_time_dif_data[38] = new Array(40, 80, 40, 50, 60, 60, 60, 40, 50, 80, 80, 70, 40, 50, 40, 50, 80, 50, 60, 60, 40, 80, 50, 50, 80, 60, 80, 50, 60, 80, 50, 70, 40, 40, 70, 80, 60, 50, 60, 60, 50, 80, 70, 60, 60, 50, 50, 50, 80, 70, 80, 60, 80, 60, 70, 60, 60, 50, 40, 80, 40, 80); interseries_time_dif_data[38] = new Array(200, 0, 200, 160, 0, 0, 160, 0, 0, 0, 0, 0, 180, 0, 170, 0, 200, 160, 0, 0, 0, 180, 0, 0, 200, 0, 0, 0, 0, 0, 200, 150, 160, 0, 180, 170, 0, 0, 200, 150, 0, 0, 170, 0, 150, 0, 0, 0, 180, 0, 150, 0, 0, 170, 0, 200, 150, 150, 0, 160, 0, 0); total_enemies_data[39] = new Array(28, 35, 30, 30, 26, 32, 36, 30, 28, 30, 37, 40, 36, 39, 38, 33, 45, 42, 48, 42, 48, 46, 42, 44, 42, 54, 39, 38, 38, 38, 46, 58, 43, 44, 51, 48, 44, 50, 60, 52, 63, 64, 65, 60, 62, 48, 69, 48, 53, 51, 67, 53, 51, 71, 63, 70, 59, 68, 61, 67, 69, 78, 70, 64); total_series_data[39] = new Array(1, 1, 3, 1, 2, 2, 3, 1, 2, 2, 1, 1, 3, 1, 2, 3, 1, 3, 3, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 3, 1, 3, 1, 1, 2, 2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 2); single_serie_time_dif_data[39] = new Array(70, 70, 60, 60, 70, 40, 70, 50, 70, 60, 50, 80, 40, 40, 40, 60, 70, 50, 60, 50, 80, 50, 60, 70, 80, 60, 70, 80, 60, 70, 50, 60, 70, 60, 80, 40, 70, 60, 70, 40, 50, 80, 60, 40, 70, 70, 40, 60, 40, 80, 70, 80, 40, 70, 60, 60, 50, 60, 40, 70, 50, 70, 80, 40); interseries_time_dif_data[39] = new Array(0, 0, 170, 0, 150, 180, 180, 0, 170, 170, 0, 0, 200, 0, 180, 150, 0, 180, 160, 0, 0, 0, 0, 0, 160, 0, 160, 0, 0, 150, 0, 0, 0, 0, 160, 0, 0, 0, 180, 0, 150, 0, 0, 160, 180, 170, 180, 200, 0, 0, 0, 0, 0, 0, 170, 0, 0, 0, 0, 0, 150, 0, 0, 170); total_enemies_data[40] = new Array(34, 26, 36, 38, 26, 32, 35, 33, 39, 34, 40, 44, 43, 48, 45, 48, 34, 38, 43, 48, 37, 39, 51, 49, 37, 50, 46, 58, 56, 42, 48, 48, 44, 48, 48, 63, 46, 60, 64, 59, 51, 60, 59, 60, 64, 50, 62, 49, 60, 65, 73, 52, 57, 72, 56, 66, 59, 63, 68, 72, 60, 75, 81, 82, 4); total_series_data[40] = new Array(2, 2, 2, 1, 2, 1, 1, 3, 1, 2, 2, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 2, 2, 2, 1, 2, 3, 2, 1, 3, 2, 1, 2, 3, 1, 1, 1, 3, 1, 2, 1, 1, 1, 1, 3, 1, 1, 1, 3, 2, 2, 3, 1, 3, 1, 2, 1, 3, 1, 1, 1); single_serie_time_dif_data[40] = new Array(60, 80, 70, 50, 70, 60, 40, 70, 40, 50, 80, 60, 50, 50, 60, 60, 60, 70, 80, 80, 40, 70, 40, 80, 50, 70, 50, 50, 70, 70, 40, 70, 40, 50, 80, 60, 80, 80, 50, 40, 70, 60, 50, 60, 40, 50, 50, 60, 50, 80, 80, 60, 80, 80, 50, 40, 50, 60, 80, 50, 60, 40, 70, 60, 200); interseries_time_dif_data[40] = new Array(200, 160, 180, 0, 200, 0, 0, 150, 0, 150, 150, 0, 0, 200, 0, 0, 0, 0, 0, 150, 0, 170, 0, 0, 0, 180, 160, 170, 0, 180, 150, 200, 0, 200, 180, 0, 160, 150, 0, 0, 0, 150, 0, 200, 0, 0, 0, 0, 150, 0, 0, 0, 160, 180, 150, 200, 0, 150, 0, 150, 0, 200, 0, 0, 0); expert_scores = new Array(1100, 1700, 1900, 2500, 3200, 4200, 5100, 5800, 6100, 7900, 8500, 10000, 11100, 12200, 13500, 15600, 16000, 17200, 0x4B00, 19800, 20600, 23300, 24600, 26300, 25800, 28200, 28500, 31600, 32600, 36600, 36600, 39300, 41600, 44400, 48200, 48800, 0xC800, 56400, 57200, 59300); segment_data = new Array(); segment_data[1] = [18, -1, 5, 1, 10, 9, 5, 16, 2, 10, 3, 14, 2, 12, 2, 1, 3, 15, 2, 11, 2, 16, 4, 2, 3, 16, 7, 17, 2, 18, 8, 1, 1, 19, 8, 11, 2, 20, 10, 2, 8, 20, 18, 12, 2, 18, 19, 3, 5, 13, 19, 13, 2, 12, 17, 4, 6, 12, 11, 15, 2, 10, 10, 3, 3, 7, 10, 18, 2, 6, 12, 2, 8]; segment_data[2] = [13, -1, 6, 1, 8, 7, 6, 11, 2, 8, 8, 2, 3, 8, 11, 12, 2, 6, 12, 3, 3, 3, 12, 18, 2, 2, 14, 2, 1, 2, 15, 17, 2, 4, 16, 1, 6, 10, 16, 11, 2, 11, 18, 2, 1, 11, 19, 17, 2, 13, 20, 1, 7]; segment_data[3] = [15, 19, 23, 4, 4, 19, 19, 15, 2, 17, 18, 3, 14, 3, 18, 13, 2, 2, 16, 4, 3, 2, 13, 14, 2, 4, 12, 1, 3, 7, 12, 16, 2, 8, 10, 4, 4, 8, 6, 15, 2, 6, 5, 3, 3, 3, 5, 13, 2, 2, 3, 4, 1, 2, 2, 14, 2, 4, 1, 1, 3]; segment_data[4] = [13, 23, 18, 3, 19, 4, 18, 13, 2, 3, 16, 4, 6, 3, 10, 14, 2, 5, 9, 1, 4, 9, 9, 11, 2, 10, 11, 2, 2, 10, 13, 17, 2, 12, 14, 1, 5, 17, 14, 16, 2, 18, 12, 4, 7, 18, 5, 15, 2, 16, 4, 3, 11]; segment_data[5] = [19, -1, 6, 1, 12, 11, 6, 11, 2, 12, 8, 2, 2, 12, 10, 17, 2, 14, 11, 1, 1, 15, 11, 11, 2, 16, 13, 2, 3, 16, 16, 17, 2, 18, 17, 11, 2, 19, 19, 12, 2, 17, 20, 3, 14, 3, 20, 13, 2, 2, 18, 4, 7, 2, 11, 14, 2, 4, 10, 1, 2, 6, 10, 11, 2, 7, 12, 2, 3, 7, 15, 17, 2, 9, 16, 1, 3]; segment_data[6] = [13, 3, -1, 2, 10, 3, 9, 17, 2, 5, 10, 1, 7, 12, 10, 11, 2, 13, 12, 2, 2, 13, 14, 17, 2, 15, 15, 1, 4, 19, 15, 11, 2, 20, 17, 2, 2, 20, 19, 12, 2, 18, 20, 3, 14, 4, 20, 13, 2, 3, 18, 4, 3]; segment_data[7] = [16, 17, 23, 4, 8, 17, 15, 15, 2, 15, 14, 13, 2, 14, 12, 4, 3, 14, 9, 14, 2, 16, 8, 1, 3, 19, 8, 16, 2, 20, 6, 4, 2, 20, 4, 15, 2, 18, 3, 3, 14, 4, 3, 18, 2, 3, 5, 2, 5, 3, 10, 17, 2, 5, 11, 1, 3, 8, 11, 16, 2, 9, 9, 4, 3]; segment_data[8] = [14, 4, 23, 4, 4, 4, 19, 14, 2, 6, 18, 1, 2, 8, 18, 16, 2, 9, 16, 4, 9, 9, 7, 15, 2, 7, 6, 13, 2, 6, 4, 4, 1, 6, 3, 14, 2, 8, 2, 1, 4, 12, 2, 11, 2, 13, 4, 2, 9, 13, 13, 17, 2, 15, 14, 1, 3]; segment_data[9] = [9, 19, 23, 4, 8, 19, 15, 15, 2, 17, 14, 3, 4, 13, 14, 18, 2, 12, 16, 2, 2, 12, 18, 12, 2, 10, 19, 3, 6, 4, 19, 13, 2, 3, 17, 4, 15]; segment_data[10] = [17, -1, 2, 1, 18, 17, 2, 11, 2, 18, 4, 2, 2, 18, 6, 12, 2, 16, 7, 3, 6, 10, 7, 18, 2, 9, 9, 2, 5, 9, 14, 17, 2, 11, 15, 1, 3, 14, 15, 16, 2, 15, 13, 4, 1, 15, 12, 14, 2, 17, 11, 1, 2, 19, 11, 11, 2, 20, 13, 2, 5, 20, 18, 12, 2, 18, 19, 3, 14]; segment_data[11] = [13, 8, 23, 4, 6, 8, 17, 15, 2, 6, 16, 3, 3, 3, 16, 13, 2, 2, 14, 4, 10, 2, 4, 14, 2, 4, 3, 1, 8, 12, 3, 11, 2, 13, 5, 2, 6, 13, 11, 17, 2, 15, 12, 1, 4, 19, 12, 16, 2, 20, 10, 4, 5]; segment_data[12] = [9, 23, 16, 3, 6, 17, 16, 13, 2, 16, 14, 4, 11, 16, 3, 15, 2, 14, 2, 3, 4, 10, 2, 18, 2, 9, 4, 2, 15, 9, 19, 12, 2, 7, 20, 3, 5]; segment_data[13] = [11, 2, 23, 4, 19, 2, 4, 14, 2, 4, 3, 1, 6, 10, 3, 11, 2, 11, 5, 2, 10, 11, 15, 12, 2, 9, 16, 3, 2, 7, 16, 18, 2, 6, 18, 2, 1, 6, 19, 17, 2, 8, 20, 1, 9]; segment_data[14] = [14, 2, 23, 4, 11, 2, 12, 14, 2, 4, 11, 1, 1, 5, 11, 11, 2, 6, 13, 2, 4, 6, 17, 17, 2, 8, 18, 1, 11, 19, 18, 16, 2, 20, 16, 4, 3, 20, 13, 15, 2, 18, 12, 13, 2, 17, 10, 4, 5, 17, 5, 15, 2, 15, 4, 3, 13]; segment_data[15] = [19, -1, 20, 1, 5, 4, 20, 16, 2, 5, 18, 4, 3, 5, 15, 15, 2, 3, 14, 3, 1, 2, 14, 13, 2, 1, 12, 4, 2, 1, 10, 14, 2, 3, 9, 1, 16, 19, 9, 16, 2, 20, 7, 4, 4, 20, 3, 15, 2, 18, 2, 3, 3, 15, 2, 18, 2, 14, 4, 2, 1, 14, 5, 12, 2, 12, 6, 3, 7, 5, 6, 13, 2, 4, 4, 4, 2]; segment_data[16] = [13, 23, 2, 3, 20, 3, 2, 18, 2, 2, 4, 2, 4, 2, 8, 17, 2, 4, 9, 1, 4, 8, 9, 11, 2, 9, 11, 2, 4, 9, 15, 17, 2, 11, 16, 1, 4, 15, 16, 11, 2, 16, 18, 2, 1, 16, 19, 17, 2, 18, 20, 1, 2]; segment_data[17] = [14, -1, 4, 1, 12, 11, 4, 16, 2, 12, 2, 14, 2, 14, 1, 1, 4, 18, 1, 11, 2, 19, 3, 2, 3, 19, 6, 12, 2, 17, 7, 3, 4, 13, 7, 18, 2, 12, 9, 2, 2, 12, 11, 17, 2, 14, 12, 1, 4, 18, 12, 11, 2, 19, 14, 2, 4]; segment_data[18] = [11, -1, 2, 1, 11, 10, 2, 11, 2, 11, 4, 2, 9, 11, 13, 12, 2, 9, 14, 3, 6, 3, 14, 18, 2, 2, 16, 2, 3, 2, 19, 17, 2, 4, 20, 1, 15, 19, 20, 16, 2, 20, 18, 4, 3]; segment_data[19] = [11, 6, 23, 4, 17, 6, 6, 14, 2, 8, 5, 1, 4, 12, 5, 16, 2, 13, 3, 14, 2, 15, 2, 11, 2, 16, 4, 2, 4, 16, 8, 12, 2, 14, 9, 3, 2, 12, 9, 18, 2, 11, 11, 2, 8]; segment_data[20] = [10, -1, 10, 1, 12, 11, 10, 16, 2, 12, 8, 4, 1, 12, 7, 15, 2, 10, 6, 3, 4, 6, 6, 13, 2, 5, 4, 14, 2, 7, 3, 1, 8, 15, 3, 11, 2, 16, 5, 2, 13]; segment_data[21] = [19, -1, 10, 1, 7, 6, 10, 16, 2, 7, 8, 4, 1, 7, 7, 15, 2, 5, 6, 3, 2, 3, 6, 13, 2, 2, 4, 4, 1, 2, 3, 14, 2, 4, 2, 1, 6, 10, 2, 11, 2, 11, 4, 2, 5, 11, 9, 17, 2, 13, 10, 1, 6, 19, 10, 11, 2, 20, 12, 2, 5, 20, 17, 12, 2, 18, 18, 3, 3, 15, 18, 13, 2, 14, 16, 4, 3]; segment_data[22] = [15, -1, 20, 1, 9, 8, 20, 16, 2, 9, 18, 4, 1, 9, 17, 15, 2, 7, 16, 3, 3, 4, 16, 13, 2, 3, 14, 4, 1, 3, 13, 14, 2, 5, 12, 1, 7, 12, 12, 11, 2, 13, 14, 2, 5, 13, 19, 17, 2, 15, 20, 1, 4, 19, 20, 16, 2, 20, 18, 4, 8]; segment_data[23] = [15, -1, 20, 1, 19, 18, 20, 16, 2, 19, 18, 4, 15, 19, 3, 15, 2, 17, 2, 3, 12, 5, 2, 18, 2, 4, 4, 2, 11, 4, 15, 17, 2, 6, 16, 1, 8, 14, 16, 16, 2, 15, 14, 4, 7, 15, 7, 15, 2, 13, 6, 3, 4, 9, 6, 18, 2, 8, 8, 2, 3]; segment_data[24] = [16, -1, 15, 1, 11, 10, 15, 11, 2, 11, 17, 17, 2, 13, 18, 1, 2, 15, 18, 16, 2, 16, 16, 4, 13, 16, 3, 15, 2, 14, 2, 3, 7, 7, 2, 18, 2, 6, 4, 2, 6, 6, 10, 17, 2, 8, 11, 1, 4, 12, 11, 16, 2, 13, 9, 4, 2, 13, 7, 15, 2, 11, 6, 3, 2]; segment_data[25] = [11, -1, 5, 1, 8, 7, 5, 16, 2, 8, 3, 14, 2, 10, 2, 1, 9, 19, 2, 11, 2, 20, 4, 2, 12, 20, 16, 12, 2, 18, 17, 3, 3, 15, 17, 18, 2, 14, 19, 12, 2, 12, 20, 3, 8]; segment_data[26] = [21, -1, 19, 1, 4, 3, 19, 16, 2, 4, 17, 4, 6, 4, 11, 14, 2, 6, 10, 1, 1, 7, 10, 11, 2, 8, 12, 2, 6, 8, 18, 17, 2, 10, 19, 1, 1, 11, 19, 16, 2, 12, 17, 4, 6, 12, 11, 14, 2, 14, 10, 1, 1, 15, 10, 11, 2, 16, 12, 2, 6, 16, 18, 17, 2, 18, 19, 1, 1, 19, 19, 16, 2, 20, 17, 4, 12, 20, 5, 15, 2, 18, 4, 3, 16]; segment_data[27] = [10, -1, 2, 1, 11, 10, 2, 11, 2, 11, 4, 2, 6, 11, 10, 12, 2, 9, 11, 18, 2, 8, 13, 2, 3, 8, 16, 17, 2, 10, 17, 1, 7, 17, 17, 11, 2, 18, 19, 2, 1]; segment_data[28] = [9, -1, 4, 1, 19, 18, 4, 11, 2, 19, 6, 2, 12, 19, 18, 12, 2, 17, 19, 3, 13, 4, 19, 13, 2, 3, 17, 4, 1, 3, 16, 14, 2, 5, 15, 1, 10]; segment_data[29] = [19, 23, 6, 3, 14, 9, 6, 13, 2, 8, 4, 4, 1, 8, 3, 15, 2, 6, 2, 3, 3, 3, 2, 18, 2, 2, 4, 2, 8, 2, 12, 17, 2, 4, 13, 1, 9, 13, 13, 16, 2, 14, 11, 14, 2, 16, 10, 1, 3, 19, 10, 11, 2, 20, 12, 2, 7, 20, 19, 12, 2, 18, 20, 3, 3, 15, 20, 13, 2, 14, 18, 15, 2, 12, 17, 3, 9]; segment_data[30] = [7, -1, 6, 1, 15, 14, 6, 16, 2, 15, 4, 4, 1, 15, 3, 14, 2, 17, 2, 1, 1, 18, 2, 11, 2, 19, 4, 2, 15]; segment_data[31] = [16, 23, 9, 3, 7, 16, 9, 13, 2, 15, 7, 4, 4, 15, 3, 15, 2, 13, 2, 3, 7, 6, 2, 18, 2, 5, 4, 2, 9, 5, 13, 17, 2, 7, 14, 1, 10, 17, 14, 11, 2, 18, 16, 2, 3, 18, 19, 12, 2, 16, 20, 3, 5, 11, 20, 13, 2, 10, 18, 15, 2, 8, 17, 3, 6]; segment_data[32] = [9, 23, 7, 3, 13, 10, 7, 13, 2, 9, 5, 4, 2, 9, 3, 15, 2, 7, 2, 3, 4, 3, 2, 18, 2, 2, 4, 2, 7, 2, 11, 17, 2, 4, 12, 1, 10]; segment_data[33] = [7, -1, 2, 1, 20, 19, 2, 11, 2, 20, 4, 2, 14, 20, 18, 12, 2, 18, 19, 3, 15, 3, 19, 13, 2, 2, 17, 4, 10]; segment_data[34] = [15, -1, 3, 1, 17, 16, 3, 11, 2, 17, 5, 2, 1, 17, 6, 17, 2, 19, 7, 1, 1, 20, 7, 11, 2, 21, 9, 2, 1, 21, 10, 12, 2, 19, 11, 3, 5, 14, 11, 18, 2, 13, 13, 2, 2, 13, 15, 12, 2, 11, 16, 3, 7, 4, 16, 13, 2, 3, 14, 4, 6]; segment_data[35] = [9, 23, 18, 3, 19, 4, 18, 13, 2, 3, 16, 4, 3, 3, 13, 14, 2, 5, 12, 1, 6, 11, 12, 16, 2, 12, 10, 4, 5, 12, 5, 15, 2, 10, 4, 3, 6]; segment_data[36] = [16, 20, 23, 4, 15, 20, 8, 15, 2, 18, 7, 3, 1, 17, 7, 13, 2, 16, 5, 4, 2, 16, 3, 15, 2, 14, 2, 3, 11, 3, 2, 18, 2, 2, 4, 2, 13, 2, 17, 17, 2, 4, 18, 1, 3, 7, 18, 16, 2, 8, 16, 14, 2, 10, 15, 1, 3, 13, 15, 11, 2, 14, 17, 2, 3]; segment_data[37] = [5, -1, 3, 1, 19, 18, 3, 11, 2, 19, 5, 2, 13, 19, 18, 12, 2, 17, 19, 3, 15]; segment_data[38] = [13, -1, 3, 1, 20, 19, 3, 11, 2, 20, 5, 2, 6, 20, 11, 12, 2, 18, 12, 3, 3, 15, 12, 13, 2, 14, 10, 4, 3, 14, 7, 15, 2, 12, 6, 3, 2, 10, 6, 18, 2, 9, 8, 2, 3, 9, 11, 12, 2, 7, 12, 3, 5]; segment_data[39] = [7, -1, 3, 1, 16, 15, 3, 11, 2, 16, 5, 2, 13, 16, 18, 12, 2, 14, 19, 3, 8, 6, 19, 13, 2, 5, 17, 4, 7]; segment_data[40] = [15, 2, 23, 4, 11, 2, 12, 14, 2, 4, 11, 1, 3, 7, 11, 16, 2, 8, 9, 4, 5, 8, 4, 14, 2, 10, 3, 1, 9, 19, 3, 11, 2, 20, 5, 2, 13, 20, 18, 12, 2, 18, 19, 3, 2, 16, 19, 13, 2, 15, 17, 4, 8, 15, 9, 15, 2, 13, 8, 3, 2]; areas_data = new Array(); areas_data[1] = "137DFE407A173C333CFC1FF3FFFDCE001B38007CE7FFF39FDE0E7F7839FFE7E0039F800E7FE739FF1CE019738071C3F9FB21A7FCE18003D6000DDFFFF"; areas_data[2] = "5923D4E681309E0606799909E6602799209E614201860806603C39F1E020431E01397DE44C131E602E6D80B9C60265D0099200126A0041A80106A004F"; areas_data[3] = "FDBD7408805022010CF9E533E794CF9E533E790C01E6F0079A0F7E780639E004E780079E000E580039B00067C0019E00067600083800608000FFE003F"; areas_data[4] = "DFEFF37FFFC9F0010FC007FF3F9E1CFE7873F9F9CFE4E73F939C064E701939C267E7099F9C267E7099F9FE67E7F99F80067E0019FFC0E69E739943CE7"; areas_data[5] = "19FFF066001198004667F9199F04267C10180642601909FE6407F9909F86420219000FE4033F900CFE40000100002400FC90003040000100000000000"; areas_data[6] = "F1FFFFC7FFF00100400401FF9FE7FE7F9BF9867AE6D9039B67E66D8DD9863B67F9BC80E780039E17CE480F3900B4E4021391044E421101085404017FF"; areas_data[7] = "71F803C7E00C0000300000CFCC033F380CFC8033F300C0080300200CFF8033FE0CCFF9F73807FCE01FF39E7FCE780339E00CE60FC0100700001FF6008"; areas_data[8] = "8001AE00027C0035E601C0F4310206C6781FF9E67FE698001A600079FFFFA7FFFF8001E20007C7FF9D5FDE681A01C400074E567D2CC4E0EB8930E1554"; areas_data[9] = "FF80FFFE07F00000C00003FFFFCFFFFF003F1CC01C72007FCC0FFF3F07FCEDDE03B5380D5AE78B799E3DB27FD3E9FCECA7FD8E803D8200EBFFFDFE7FF"; areas_data[10] = "8E6BF619BDF93CBFA647FF1C0F0E7E3C39FFFCE7FFF31C00CA700339CFCCE73F339CFCCE73F339CC0CC730339CCFC6033F180CFCCFF0038FC00C9EDBF"; areas_data[11] = "7D7BC300010C000433FF904E7E6338398CE067F30080CC00033807FCF00FF3E00DC0042F0018C7FE560FF9F0F266007F9E03FE400801C020060079780"; areas_data[12] = "0DFFFC278EF0D8384660E16223E798F79CFFFE47FFF9800006000019FE3FC7F8FF1E038E7F8E39FFFFA0001D80006FFFF9BFFFE6C7F798C52E63DB99B"; areas_data[13] = "FD9EFF00000C00003381FFCCE3FF34201CC0C05340190C866630F9980006600019BFFFE4FFFF9E3A7E40B8E10FE80407D8F001DFC001EC00026400083"; areas_data[14] = "7FF6FC1B00006C0009F3FF27C9FD9F006E7C01380FE5E23F9088E6621099C9006727F99C9EE6727F9981FFE6200790801E41FE7900F80400E01008F24"; areas_data[15] = "F701E7EC079FF39E404E79013807E4E01F93FFFE4FF0F93DC324F80C93203E4C00F93C0204E008130027CC001F30027C8009F200200800802000FF800"; areas_data[16] = "FBFD0200F808031027CC409F3F827CFE09F3F827CFE01F00027C0009FFE4263F90988E427C3989D0270700819C000670039940006600019C000660007"; areas_data[17] = "27D40418700061C001F680058F001FBA106A5309FCB8E799A39FF38E7FEA000198000710F390D3CE40CF39F83CE76CF29FE00A00C02004FBDFE33BDF8"; areas_data[18] = "9FFFFE61A01901806400799001E6400799C01E6782799FF9E67FE798001E600079FFFE27FFF89FFFFE7B87B9BE07E6F81F9C205C718201FF08077FFFF"; areas_data[19] = "100BC0003A0300600901E32F87FF800004000014FFFF93FFFECFFFF33000DCC003833FFE0CFFF9F3FFE008C7802005FF8021FE00C1F8030290040A603"; areas_data[20] = "019980067603F9C83FE690C19E6306750C99F33267AEC99C0B06717C9981720723C81E633FFF7CFFFFB00004C00013FFFF8FFFFE0BECE014C003E1F80"; areas_data[21] = "F599C206750819DA266738999C62667D498183A606241FFE5A77F83801FEA007FBBD9FE4FE0058780128E7E7C79F9BCE1E5B91F9FA60009880026BA7E"; areas_data[22] = "7D1FE6087F9006064018190026600099900066400198000604001810007E4001F100000400801003FE4001F900A7E0063F9839FE0FC000190000A7FB9"; areas_data[23] = "00BFE40FFF93FFFE6000198000667FF999FFE6260399980E6667F9999E6666719919FE6667F98980066600189F9FE67C3F980000600001FFBFFFF01FF"; areas_data[24] = "000480001200004821C120FFFC8200330800CC27F33081CCC20733899CC0267304980F92603E49FFF9A0000780001FFC0FFF8007FE001F10002040008"; areas_data[25] = "D2003E4800FB0003EC0001300005C0009F00066000188000626001818006260018900064400019000024000E901030603CC9C6F2600003800013F6DB0"; areas_data[26] = "FFDFCA1CFF287FFCE9E003E7800D827FF609FFD8200360800D9FFF3E7FFCB9E00287800E1A7FFE59FFF9E00327800E9FFF3A7FFCC000038000037FFFF"; areas_data[27] = "9502524C0F49B029E6616F9D7E3A73E3C9E03E27F0089FC0227F3CC800F32003CEFFFF3DFFFCFFF8B3FEC0CF2F013C580410C01043007C0000E010031"; areas_data[28] = "A7A7BF9E3FDC70C0797D03E7FCC99AF33E604CF18133E684CF98133A62CCF98721E63CCE98F31E7F0CF9FC32E77F4D9FDF300000800002F7BFBBFFF7F"; areas_data[29] = "F57FE2000F88000227FC089FF3227FCC89E331200CCE81B313E7CCF39F33267CCE09F33CE6001898304667F9C19FE0267F8299BE4A600109800487BCF"; areas_data[30] = "B92001E680039A0206600C09C0102540009D0002640009DE00213C0182700645E0399683E40E08109EE0577D9F0C1C7E7F080000E00003FCEF82EFDEC"; areas_data[31] = "0201C0000003FC423FFBC8800122000089F792278E4C1C183A40601800904002791019E673E798039E200E79FF39E7FCE011F38040CF9F0708240C400"; areas_data[32] = "FDFF02001C08007827F9E09FE6E27F9F79FE7F67F9F080E79E039EFFCE723F39822CE4B8F216814858873E7C1CBBF013ECA0C8BE0320F81CB70073D90"; areas_data[33] = "9FFFFE4000390000E7FFF39F03CE71E7399FCCE6E19391034A5C0D297034E580D393024E641331B8ECE67B339C71CE7C1F39FFFCE0000380000FFFE1E"; areas_data[34] = "CFF7C33FFF8C80063200144FFE7B3FF980F866F201984B3E772219CCB066734F98CC4041330144FCF803F3C880CE20033B00CCC00332100C0A80B02C0"; areas_data[35] = "FBFFF3F7FFCFFE01A1F80587E79F919E7E4679B919E7E4679C9F9E627E792801E1E0078F6FFE203F189C4EE2FC218E380210140901C0070000180C004"; areas_data[36] = "DF5FEA0000680001E609E4980790603E58007920000680001E000388000F20003F9000FC40001980406000F88082E0720B2CCFFDF80000F80003EFE7B"; areas_data[37] = "C0007F00003CE000F30013C8004F20013C800CF20032C800CF20033CC00CF30073CE01CF300330F00CC3E1F38FFFC33FFF0C0000F000029F3FF0380F8"; areas_data[38] = "0FFDF83E1430C0584309634C24D13199CCFE6733F988080760201C801FC2027F0809FFB0201E40807DC3F9C4CFE7133F9E4CFE6A3001C0C00563F3FD8"; areas_data[39] = "CF1F773C7DFCCFFFB3FFFFCE000F38003CFFFCF3FBB3CF3FCF1CFD3CE3FCF3C873CFF1CF3BFF3CFBFCF00003C0000FFFFFFFFFFFDFFFFC1FE0041F07F"; areas_data[40] = "B0BBBE46000DF0003393FFE6CFFFC3308FFCD8300257C00ADF3FCD4C8759321D8BCE70B339FF8CA000B38003CFFFCF2F7F3CFFFCF00003C0000BFFEDE"; destinations_data = new Array("5|19", "19|19", "6|0", "4|3", "11|15", "2|14", "8|5", "17|13", "2|1", "3|18", "19|4", "1|19", "16|19", "1|3", "3|1", "19|19", "18|17", "19|14", "10|18", "15|17", "13|12", "19|9", "7|10", "8|5", "3|19", "1|3", "17|19", "14|14", "2|16", "18|18", "1|16", "13|11", "1|6", "2|7", "3|3", "13|19", "1|18", "1|11", "4|9", "10|7"); achievementRectangleA = new Array(); achievementRectangleTextA = new Array(); game_music_vol = 100; s1 = new s01(); s3 = new s03(); s_21 = new s21(); s_22 = new s22(); s_23 = new s23(); s_30 = new s30(); s_31 = new s31(); s_32 = new s32(); s_40 = new s40(); s_41 = new s41(); s_42 = new s42(); s_43 = new s43(); m1 = new mm01(); m2 = new mm02(); m3 = new mm03(); myFont = new Font1(); myFont2 = new Font2(); barFormatTitle = new TextFormat(); barFormatTitle.color = 0xFFFFFF; barFormatTitle.kerning = false; barFormatTitle.size = 14; barFormatTitle.font = myFont.fontName; barFormatTitle.align = TextFormatAlign.CENTER; barFormatYellow = new TextFormat(); barFormatYellow.color = 0xFFFF00; barFormatYellow.kerning = false; barFormatYellow.size = 14; barFormatYellow.font = myFont.fontName; barFormatYellow.align = TextFormatAlign.LEFT; barFormat = new TextFormat(); barFormat.color = 0xFFFFFF; barFormat.kerning = false; barFormat.size = 10; barFormat.font = myFont2.fontName; barFormat.align = TextFormatAlign.CENTER; barFormatAlignLeft = new TextFormat(); barFormatAlignLeft.color = 0xFFFFFF; barFormatAlignLeft.kerning = false; barFormatAlignLeft.size = 10; barFormatAlignLeft.font = myFont2.fontName; barFormatAlignLeft.align = TextFormatAlign.LEFT; barFormat2 = new TextFormat(); barFormat2.color = 0xFFFFFF; barFormat2.kerning = false; barFormat2.bold = true; barFormat2.size = 10; barFormat2.font = myFont2.fontName; barFormat2.align = TextFormatAlign.CENTER; barFormatLevelScore = new TextFormat(); barFormatLevelScore.color = 0xFFFFFF; barFormatLevelScore.kerning = false; barFormatLevelScore.size = 10; barFormatLevelScore.font = myFont2.fontName; barFormatLevelScore.align = TextFormatAlign.LEFT; barFormatExpertScore = new TextFormat(); barFormatExpertScore.color = 0xFFFF00; barFormatExpertScore.kerning = false; barFormatExpertScore.size = 10; barFormatExpertScore.font = myFont2.fontName; barFormatExpertScore.align = TextFormatAlign.LEFT; barFormatTotalScore = new TextFormat(); barFormatTotalScore.color = 0xCCCCCC; barFormatTotalScore.kerning = false; barFormatTotalScore.size = 10; barFormatTotalScore.font = myFont2.fontName; barFormatTotalScore.align = TextFormatAlign.CENTER; FinishWindowFormatText = new TextFormat(); FinishWindowFormatText.color = 0xFFFFFF; FinishWindowFormatText.kerning = false; FinishWindowFormatText.size = 14; FinishWindowFormatText.font = myFont.fontName; FinishWindowFormatText.align = TextFormatAlign.LEFT; upgradeWindowFormat = new TextFormat(); upgradeWindowFormat.color = 0xFFFFFF; upgradeWindowFormat.kerning = false; upgradeWindowFormat.bold = true; upgradeWindowFormat.size = 10; upgradeWindowFormat.font = myFont2.fontName; upgradeWindowFormat.align = TextFormatAlign.LEFT; achievementRectangleFormat = new TextFormat(); achievementRectangleFormat.color = 0xEEEEEE; achievementRectangleFormat.size = 10; achievementRectangleFormat.bold = true; achievementRectangleFormat.font = myFont2.fontName; achievementRectangleFormat.align = TextFormatAlign.CENTER; achievementWindowDescriptionFormat = new TextFormat(); achievementWindowDescriptionFormat.color = 0xFFFFFF; achievementWindowDescriptionFormat.kerning = false; achievementWindowDescriptionFormat.bold = false; achievementWindowDescriptionFormat.size = 10; achievementWindowDescriptionFormat.font = myFont2.fontName; achievementWindowDescriptionFormat.align = TextFormatAlign.LEFT; achievementTitleFormat = new TextFormat(); achievementTitleFormat.color = 0xFFFFFF; achievementTitleFormat.kerning = false; achievementTitleFormat.bold = true; achievementTitleFormat.size = 10; achievementTitleFormat.font = myFont2.fontName; achievementTitleFormat.align = TextFormatAlign.CENTER; ACHIEVEMENT_NAME = new Array("Endurance I", "Endurance II", "Endurance III", "Endurance IV", "Endurance V", "Endurance VI", "Endurance VII", "Score Master I", "Score Master II", "Score Master III", "Score Master IV", "Score Master V", "First Blood", "Tank Destroyer I", "Tank Destroyer II", "Tank Destroyer III", "Tank Destroyer IV", "Tank Destroyer V", "Tank Destroyer VI", "Tank Destroyer VII", "Money Maker I", "Money Maker II", "Money Maker III", "Money Maker IV", "Money Maker V", "Money Maker VI", "Money Maker VII", "Money Maker VIII", "Tower Master I", "Tower Master II", "Tower Master III", "Tower Master IV", "Tower Master V", "Bomb Master I", "Bomb Master II", "Bomb Master III", "Bomb Master IV", "Bomb Master V", "Tower Guru I", "Tower Guru II", "Tower Guru III", "Tower Guru IV", "Tower Guru V", "Sergeant", "Lieutenant", "Captain", "Major", "Colonel", "Brigadier", "General", "Marshal", "Upgrade Master I", "Upgrade Master II", "Upgrade Master III", "Upgrade Master IV", "Upgrade Master V", "Upgrade Master VI", "Upgrade Master VII", "Upgrade Master VIII", "Supporter"); ACHIEVEMENT_DESCRIPTION = new Array("Played the game for at least one minute. You're starting to like it, don't you?", "Played the game for at least 5 minutes. You just began your career!", "Played the game for at least 15 minutes. Still not bored yet?", "Played the game for at least 30 minutes. Great, but can you play for one hour?", "Played the game for at least one hour. Wow! You probably really like this game!", "You have played for at least 2 hours. Woohoo! Has anyone else played this much?", "You have played for at least 5 hours. Simply amazing.", "Score 5,000 points within a single mission. Very easy, even a monkey could have done it", "Score 10,000 points in a single game. Still easy, I'm sure it wasn't a problem for you", "Score 20,000 points in a single game. A bit harder, but I know you can handle it", "Score 40,000 points in a single game. Well, this was harder than you thought, right?", "Score 60,000 points in a single game. I'm impressed! I thought this is almost impossible!", "You have destroyed your first tank!", "You have destroyed over 50 tanks. You're not a novice anymore.", "You have destroyed over 100 tanks. But can you do more?", "You have destroyed over 250 tanks. Come on, I know you can do even more damage!", "You have destroyed over 500 tanks. That's better.", "You have destroyed over 1000 tanks. That's a lot of tanks!", "You have destroyed over 2000 tanks. Excellent!", "You have destroyed over 4000 tanks. You must be good, real good!", "You have achieved a total score of 50,000 within your whole career.", "You have achieved a total score of 100,000 within your whole career.", "You have achieved a total score of 250,000 within your whole career.", "You have achieved a total score of 500,000 within your whole career.", "You have achieved a total score of 1,000,000 within your whole career.", "You have achieved a total score of 2,000,000 within your whole career.", "You have achieved a total score of 3,000,000 within your whole career.", "You have achieved a total score of 5,000,000 within your whole career.", "You have built 10 turrets. That's a good start.", "You have built 50 turrets. That's even better.", "You have built 100 turrets. You just don't have enought, do you?", "You have built 200 turrets. Fantastic!", "You have built 400 turrets. Can you realise this? Four hundred! Amazing", "You have used a total of 5 bombs. Not bad for a beginner", "You have used a total of 25 bombs. Is it enough for you?", "You have used a total of 50 bombs. That's a lot. But I bet you can't reach 100!", "You have used a total of 100 bombs. Are you human?", "You have used a total of 150 bombs. Man, you're unstoppable!", "You have built and upgraded to maximum a total of 5 towers throughout your career.", "You have built and upgraded to maximum a total of 15 towers throughout your career.", "You have built and upgraded to maximum a total of 25 towers throughout your career.", "You have built and upgraded to maximum a total of 50 towers throughout your career.", "You have built and upgraded to maximum a total of 100 towers throughout your career.", "You have completed 5 missions with an expert score. You are now a Sergeant.", "You have completed 10 missions with expert score. You are now a Lieutenant.", "You have completed 15 missions with expert score. You have achieved the rank of Captain.", "You have completed 20 missions with expert score. You have achieved the rank of Major.", "You have completed 25 missions with expert score. You are now a Colonel.", "You have completed 30 missions with expert score. You are now a Brigadier.", "You have completed 35 missions with expert score. You are now a General!", "All 40 missions completed. Congratulations! You have been promoted to Marshal!", "You own 5 upgrades. Great, but how about getting 5 more?", "You own 10 upgrades. Way to go!", "You own 20 upgrades. You can't stop playing, can't you?", "You own 30 upgrades. Great, but can you reach 40?", "You own 40 upgrades. Almost 50 in total! Come on, get some more!", "You own 50 upgrades. That's a lot. But I know you won't stop here ;)", "You own 60 upgrades. You're amazing!", "You own all 68 upgrades. Congratulations! What more can I say?", "Thank you for visiting our website!"); TIME_ACHIEVEMENT = new Array(1, 5, 15, 30, 60, 120, 300); SCORE_SINGLE_GAME_ACHIEVEMENT = new Array(5000, 10000, 20000, 40000, 60000); ENEMIES_KILLED_ACHIEVEMENT = new Array(1, 50, 100, 250, 500, 1000, 2000, 4000); SCORE_TOTAL_ACHIEVEMENT = new Array(50000, 100000, 250000, 500000, 1000000, 2000000, 3000000, 5000000); TURRETS_BUILT_ACHIEVEMENT = new Array(10, 50, 100, 200, 400); BOMBS_USED_ACHIEVEMENT = new Array(5, 25, 50, 100, 150); TURRETS_UPGRADED_ACHIEVEMENT = new Array(5, 15, 25, 50, 100); MISSIONS_COMPLETED_EXPERT_SCORE_ACHIEVEMENT = new Array(5, 10, 15, 20, 25, 30, 35, 40); OWNED_UPGRADES_ACHIEVEMENT = new Array(5, 10, 20, 30, 40, 50, 60, 68); TOWER_UPGRADE_PRICE = new Array(); TOWER_UPGRADE_PRICE[1] = new Array(100, 150, 300, 600, 1200); TOWER_UPGRADE_PRICE[2] = new Array(250, 300, 450, 800, 1500); TOWER_UPGRADE_PRICE[3] = new Array(1500, 2500, 3500, 5000, 9000); TOWER_UPGRADE_PRICE[4] = new Array(450, 700, 1200, 1600, 2200); TOWER_UPGRADE_PRICE[5] = new Array(600, 800, 1200, 1600, 2000); TOWER_UPGRADE_PRICE[6] = new Array(800, 1200, 1600, 2000, 2800); TOWER_UPGRADE_PRICE[7] = new Array(100, 0, 0, 0, 0); TOWER_UPGRADE_PRICE[8] = new Array(2000, 0, 0, 0, 0); TOWER_RATE = new Array(); TOWER_RATE[1] = new Array(10, 12, 14, 15, 15); TOWER_RATE[2] = new Array(30, 35, 40, 45, 50); TOWER_RATE[3] = new Array(80, 90, 100, 120, 150); TOWER_RATE[4] = new Array(20, 22, 23, 24, 25); TOWER_RATE[5] = new Array(10, 12, 14, 15, 15); TOWER_RATE[6] = new Array(10, 12, 14, 15, 15); TOWER_RANGE = new Array(); TOWER_RANGE[1] = new Array(80, 90, 100, 110, 120); TOWER_RANGE[2] = new Array(70, 75, 80, 90, 100); TOWER_RANGE[3] = new Array(80, 90, 100, 100, 100); TOWER_RANGE[4] = new Array(90, 100, 110, 120, 150); TOWER_RANGE[5] = new Array(90, 90, 100, 100, 110); TOWER_RANGE[6] = new Array(90, 90, 100, 100, 110); TOWER_DAMAGE = new Array(); TOWER_DAMAGE[1] = new Array(5, 10, 20, 40, 80); TOWER_DAMAGE[2] = new Array(3, 6, 12, 24, 48); TOWER_DAMAGE[3] = new Array(15, 30, 60, 100, 180); TOWER_DAMAGE[4] = new Array(2, 4, 8, 16, 30); TOWER_DAMAGE[5] = new Array(20, 25, 30, 35, 40); TOWER_DAMAGE[6] = new Array(1, 1.5, 2, 2.5, 3); TOWER_DAMAGE[7] = new Array(200, 0, 0, 0, 0); TOWER_DAMAGE[8] = new Array(1000, 0, 0, 0, 0); enemy_starter_hp = [10, 12, 8, 13, 5, 15, 7, 14, 250]; enemy_money = [7, 8, 9, 7, 8, 9, 7, 8, 100]; enemy_speed = [0.6, 0.5, 0.75, 0.55, 0.8, 0.65, 0.45, 0.7, 0.3]; BUY_UPGRADE_PRICE = new Array(); BUY_UPGRADE_PRICE[1] = new Array(5, 10, 20, 40, 80, 150, 300, 500, 1000, 2000); BUY_UPGRADE_PRICE[2] = new Array(5, 10, 20, 40, 80, 150, 300, 600, 1200, 2400); BUY_UPGRADE_PRICE[3] = new Array(5, 10, 20, 40, 80, 160, 320, 600, 1200, 2000); BUY_UPGRADE_PRICE[4] = new Array(10, 20, 40, 80, 150, 300, 500, 1000, 1500, 2000); BUY_UPGRADE_PRICE[5] = new Array(20, 50, 150, 500, 1500); BUY_UPGRADE_PRICE[6] = new Array(30, 100, 300, 1000, 2000); BUY_UPGRADE_PRICE[7] = new Array(100, 500, 1000, 1500); BUY_UPGRADE_PRICE[8] = new Array(50, 200, 500, 1000, 1500); BUY_UPGRADE_PRICE[9] = new Array(250, 500, 750, 1000, 2000); BUY_UPGRADE_PRICE[10] = new Array(500, 1000, 1500, 2000); BUY_UPGRADE_DESC = new Array(); BUY_UPGRADE_DESC[1] = new Array("Get 10% more money at the beggining of each mission", "Get 25% more money at the beggining of each mission", "Get 50% more money at the beggining of each mission", "Get $600 at the beggining of each mission", "Get $800 at the beggining of each mission", "Get $1000 at the beggining of each mission", "Get $1500 at the beggining of each mission", "Get $2000 at the beggining of each mission", "Get $3000 at the beggining of each mission", "Get $4000 at the beggining of each mission"); BUY_UPGRADE_DESC[2] = new Array("Decrease the cost of tower building and upgrading by 5%", "Decrease the cost of tower building and upgrading by 10%", "Decrease the cost of tower building and upgrading by 15%", "Decrease the cost of tower building and upgrading by 20%", "Decrease the cost of tower building and upgrading by 25%", "Decrease the cost of tower building and upgrading by 30%", "Decrease the cost of tower building and upgrading by 35%", "Decrease the cost of tower building and upgrading by 40%", "Decrease the cost of tower building and upgrading by 45%", "Decrease the cost of tower building and upgrading by 50%"); BUY_UPGRADE_DESC[3] = new Array("Get 10% more money for each enemy tank you destroy", "Get 20% more money for each enemy tank you destroy", "Get 30% more money for each enemy tank you destroy", "Get 40% more money for each enemy tank you destroy", "Get 50% more money for each enemy tank you destroy", "Get 60% more money for each enemy tank you destroy", "Get 70% more money for each enemy tank you destroy", "Get 80% more money for each enemy tank you destroy", "Get 90% more money for each enemy tank you destroy", "Get 100% times more money for each enemy tank you destroy"); BUY_UPGRADE_DESC[4] = new Array("Increase the damage of your towers by 10%", "Increase the damage of your towers by 20%", "Increase the damage of your towers by 30%", "Increase the damage of your towers by 40%", "Increase the damage of your towers by 50%", "Increase the damage of your towers by 60%", "Increase the damage of your towers by 70%", "Increase the damage of your towers by 80%", "Increase the damage of your towers by 90%", "Increase the damage of your towers by 100%"); BUY_UPGRADE_DESC[5] = new Array("The freeze tower will be 10% more efficient (the tanks hit will become even slower)", "The freeze tower will be 20% more efficient", "The freeze tower will be 30% more efficient", "The freeze tower will be 40% more efficient", "The freeze tower will be 50% more efficient"); BUY_UPGRADE_DESC[6] = new Array("Increase the freeze tower effect duration by 10%", "Increase the freeze tower effect duration by 10%", "Increase the freeze tower effect duration by 30%", "Increase the freeze tower effect duration by 40%", "Increase the freeze tower effect duration by 50%"); BUY_UPGRADE_DESC[7] = new Array("Increase the quality of the poison gas so the tanks get 10% more damage", "Increase the damage power of the poison gas by 20%", "Increase the damage power of the poison gas by 30%", "Increase the damage power of the poison gas by 40%"); BUY_UPGRADE_DESC[8] = new Array("Increase the effect radius of the small and big bombs by 10%", "Increase the effect radius of the bombs by 20%", "Increase the effect radius of the small and big bombs by 30%", "Increase the effect radius of the bombs by 40%", "Increase the effect radius of the small and big bombs by 50%"); BUY_UPGRADE_DESC[9] = new Array("Decrease the cost of both small and big bombs by 10%", "Decrease the cost of both small and big bombs by 20%", "Decrease the cost of both small and big bombs by 30%", "Decrease the cost of both small and big bombs by 40%", "Decrease the cost of both small and big bombs by 50%"); BUY_UPGRADE_DESC[10] = new Array("Increase the damage of both small and big bombs by 50%", "Increase the damage of both small and big bombs by 100%", "Increase the damage of both small and big bombs to 400%", "Increase the damage of both small and big bombs to 1000%"); map = new MapBg(); map.x = 5; map.y = 5; map.gotoAndStop(1); map.visible = false; addChild(map); enemies = new Sprite(); addChild(enemies); tower_bases = new Sprite(); addChild(tower_bases); bullets = new Sprite(); addChild(bullets); tower_turrets = new Sprite(); addChild(tower_turrets); highlight_tower = new highlightTower(); highlight_tower.gotoAndStop(1); highlight_tower.visible = false; addChild(highlight_tower); highlight_bomb = new highlightBomb(); highlight_bomb.gotoAndStop(1); highlight_bomb.visible = false; addChild(highlight_bomb); tower_range_circle = new towerRangeCircle(); tower_range_circle.gotoAndStop(1); tower_range_circle.visible = false; addChild(tower_range_circle); grid = new Grid(); grid.x = 5; grid.y = 5; grid.gotoAndStop(1); grid.visible = false; addChild(grid); destination = new Destination(); destination.gotoAndStop(1); destination.visible = false; addChild(destination); explosions = new Sprite(); addChild(explosions); interface_bg = new interfaceBg(); interface_bg.gotoAndStop(1); interface_bg.visible = false; addChild(interface_bg); lives_left = new livesLeft(); lives_left.x = 20; lives_left.y = 20; lives_left.gotoAndStop(1); lives_left.visible = false; addChild(lives_left); moneyText = new TextField(); moneyText.x = 455; moneyText.y = 10; moneyText.width = 50; moneyText.height = 20; addChild(moneyText); moneyText.defaultTextFormat = barFormat2; moneyText.embedFonts = true; moneyText.selectable = false; pause_btn = new PauseBtn(); pause_btn.x = 534; pause_btn.y = 17; pause_btn.gotoAndStop(1); pause_btn.visible = false; addChild(pause_btn); pause_btn_ha = new PauseBtnHitArea(); pause_btn_ha.x = pause_btn.x; pause_btn_ha.y = pause_btn.y; pause_btn_ha.alpha = 0; pause_btn_ha.buttonMode = true; pause_btn_ha.visible = false; addChild(pause_btn_ha); pause_btn_ha.addEventListener(MouseEvent.ROLL_OVER, pause_btn_mouse_over); pause_btn_ha.addEventListener(MouseEvent.ROLL_OUT, pause_btn_mouse_out); pause_btn_ha.addEventListener(MouseEvent.CLICK, pause_btn_click); sound_btn = new soundBtn(); sound_btn.x = SOUND_BTN_X; sound_btn.y = SOUND_BTN_Y; sound_btn.gotoAndStop(1); sound_btn.visible = false; addChild(sound_btn); sound_btn_ha = new soundBtnHitArea(); sound_btn_ha.x = sound_btn.x; sound_btn_ha.y = sound_btn.y; sound_btn_ha.alpha = 0; sound_btn_ha.buttonMode = true; sound_btn_ha.visible = false; addChild(sound_btn_ha); sound_btn_ha.addEventListener(MouseEvent.ROLL_OVER, sound_btn_mouse_over); sound_btn_ha.addEventListener(MouseEvent.ROLL_OUT, sound_btn_mouse_out); sound_btn_ha.addEventListener(MouseEvent.CLICK, sound_btn_click); music_btn = new musicBtn(); music_btn.x = MUSIC_BTN_X; music_btn.y = MUSIC_BTN_Y; music_btn.gotoAndStop(1); music_btn.visible = false; addChild(music_btn); music_btn_ha = new musicBtnHitArea(); music_btn_ha.x = music_btn.x; music_btn_ha.y = music_btn.y; music_btn_ha.alpha = 0; music_btn_ha.buttonMode = true; music_btn_ha.visible = false; addChild(music_btn_ha); music_btn_ha.addEventListener(MouseEvent.ROLL_OVER, music_btn_mouse_over); music_btn_ha.addEventListener(MouseEvent.ROLL_OUT, music_btn_mouse_out); music_btn_ha.addEventListener(MouseEvent.CLICK, music_btn_click); speed_buttons = new Sprite(); addChild(speed_buttons); speed_buttons_ha = new Sprite(); addChild(speed_buttons_ha); i = 1; while (i <= 3) { tmp_speed_btn = new speedBtn(); tmp_speed_btn.x = (503 + (15 * (i - 1))); tmp_speed_btn.y = 40; tmp_speed_btn.name = String(i); tmp_speed_btn.gotoAndStop(i); tmp_speed_btn.visible = false; speed_buttons.addChild(tmp_speed_btn); speedButtonA.push(tmp_speed_btn); tmp_speed_btn_ha = new speedBtnHitArea(); tmp_speed_btn_ha.x = tmp_speed_btn.x; tmp_speed_btn_ha.y = tmp_speed_btn.y; tmp_speed_btn_ha.name = String(i); tmp_speed_btn_ha.gotoAndStop(1); tmp_speed_btn_ha.alpha = 0; tmp_speed_btn_ha.buttonMode = true; tmp_speed_btn_ha.visible = false; speed_buttons_ha.addChild(tmp_speed_btn_ha); speedButtonHaA.push(tmp_speed_btn_ha); i++; }; i = 0; while (i < 3) { speedButtonHaA[i].addEventListener(MouseEvent.CLICK, clickSpeedButton); i++; }; score_titles = new scoreTitles(); score_titles.x = 490; score_titles.y = 90; score_titles.gotoAndStop(1); score_titles.visible = false; addChild(score_titles); levelScoreText = new TextField(); levelScoreText.x = 0x0200; levelScoreText.y = 65; levelScoreText.height = 20; addChild(levelScoreText); levelScoreText.defaultTextFormat = barFormatLevelScore; levelScoreText.sharpness = 200; levelScoreText.thickness = -100; levelScoreText.antiAliasType = "advanced"; levelScoreText.embedFonts = true; levelScoreText.selectable = false; levelScoreText.visible = false; expertScoreText = new TextField(); expertScoreText.x = 0x0200; expertScoreText.y = 75; expertScoreText.height = 20; addChild(expertScoreText); expertScoreText.defaultTextFormat = barFormatExpertScore; expertScoreText.sharpness = 200; expertScoreText.thickness = -100; expertScoreText.antiAliasType = "advanced"; expertScoreText.embedFonts = true; expertScoreText.selectable = false; expertScoreText.visible = false; totalScoreText = new TextField(); totalScoreText.x = 465; totalScoreText.y = 105; totalScoreText.width = 80; totalScoreText.height = 20; addChild(totalScoreText); totalScoreText.defaultTextFormat = barFormatTotalScore; totalScoreText.sharpness = 200; totalScoreText.thickness = -100; totalScoreText.antiAliasType = "advanced"; totalScoreText.embedFonts = true; totalScoreText.selectable = false; totalScoreText.visible = false; tower_details_icon = new towerBtn(); tower_details_icon.x = DETAILS_TOWER_ICON_X; tower_details_icon.y = DETAILS_TOWER_ICON_Y; tower_details_icon.gotoAndStop(1); tower_details_icon.visible = false; addChild(tower_details_icon); towerNameText = new TextField(); towerNameText.x = DETAILS_TOWER_ICON_X; towerNameText.y = (DETAILS_TOWER_ICON_Y - 20); towerNameText.height = 30; addChild(towerNameText); towerNameText.defaultTextFormat = barFormatTitle; towerNameText.sharpness = 200; towerNameText.thickness = -100; towerNameText.antiAliasType = "advanced"; towerNameText.embedFonts = true; towerNameText.selectable = false; towerNameText.visible = false; towerLevelText = new TextField(); towerLevelText.x = DETAILS_TOWER_ICON_X; towerLevelText.y = (DETAILS_TOWER_ICON_Y + 0); towerLevelText.height = 20; addChild(towerLevelText); towerLevelText.defaultTextFormat = barFormat; towerLevelText.embedFonts = true; towerLevelText.selectable = false; towerLevelText.visible = false; tower_upgrade_data = new TowerUpgradeData(); tower_upgrade_data.x = UPGRADE_DETAILS_TOWER_ICON_X; tower_upgrade_data.y = UPGRADE_DETAILS_TOWER_ICON_Y; tower_upgrade_data.gotoAndStop(1); tower_upgrade_data.visible = false; addChild(tower_upgrade_data); tower_current_price_text = new TextField(); tower_current_price_text.x = TD_TEXT1_X; tower_current_price_text.y = TD_TEXT1_Y; tower_current_price_text.width = 30; tower_current_price_text.height = 20; addChild(tower_current_price_text); tower_current_price_text.defaultTextFormat = barFormat2; tower_current_price_text.embedFonts = true; tower_current_price_text.selectable = false; tower_next_price_text = new TextField(); tower_next_price_text.x = TD_TEXT2_X; tower_next_price_text.y = TD_TEXT1_Y; tower_next_price_text.width = 40; tower_next_price_text.height = 20; addChild(tower_next_price_text); tower_next_price_text.defaultTextFormat = barFormat2; tower_next_price_text.embedFonts = true; tower_next_price_text.selectable = false; tower_current_damage_text = new TextField(); tower_current_damage_text.x = TD_TEXT1_X; tower_current_damage_text.y = (TD_TEXT1_Y + TD_TEXTS_V_DIST); tower_current_damage_text.width = 30; tower_current_damage_text.height = 20; addChild(tower_current_damage_text); tower_current_damage_text.defaultTextFormat = barFormat2; tower_current_damage_text.embedFonts = true; tower_current_damage_text.selectable = false; tower_next_damage_text = new TextField(); tower_next_damage_text.x = TD_TEXT2_X; tower_next_damage_text.y = (TD_TEXT1_Y + TD_TEXTS_V_DIST); tower_next_damage_text.width = 40; tower_next_damage_text.height = 20; addChild(tower_next_damage_text); tower_next_damage_text.defaultTextFormat = barFormat2; tower_next_damage_text.embedFonts = true; tower_next_damage_text.selectable = false; tower_current_rate_text = new TextField(); tower_current_rate_text.x = TD_TEXT1_X; tower_current_rate_text.y = (TD_TEXT1_Y + (TD_TEXTS_V_DIST * 2)); tower_current_rate_text.width = 30; tower_current_rate_text.height = 20; addChild(tower_current_rate_text); tower_current_rate_text.defaultTextFormat = barFormat2; tower_current_rate_text.embedFonts = true; tower_current_rate_text.selectable = false; tower_next_rate_text = new TextField(); tower_next_rate_text.x = TD_TEXT2_X; tower_next_rate_text.y = (TD_TEXT1_Y + (TD_TEXTS_V_DIST * 2)); tower_next_rate_text.width = 40; tower_next_rate_text.height = 20; addChild(tower_next_rate_text); tower_next_rate_text.defaultTextFormat = barFormat2; tower_next_rate_text.embedFonts = true; tower_next_rate_text.selectable = false; tower_current_range_text = new TextField(); tower_current_range_text.x = TD_TEXT1_X; tower_current_range_text.y = (TD_TEXT1_Y + (TD_TEXTS_V_DIST * 3)); tower_current_range_text.width = 30; tower_current_range_text.height = 20; addChild(tower_current_range_text); tower_current_range_text.defaultTextFormat = barFormat2; tower_current_range_text.embedFonts = true; tower_current_range_text.selectable = false; tower_next_range_text = new TextField(); tower_next_range_text.x = TD_TEXT2_X; tower_next_range_text.y = (TD_TEXT1_Y + (TD_TEXTS_V_DIST * 3)); tower_next_range_text.width = 40; tower_next_range_text.height = 20; addChild(tower_next_range_text); tower_next_range_text.defaultTextFormat = barFormat2; tower_next_range_text.embedFonts = true; tower_next_range_text.selectable = false; upgrade_btn = new UpgradeBtn(); upgrade_btn.x = UPGRADE_BTN_X; upgrade_btn.y = UPGRADE_BTN_Y; upgrade_btn.gotoAndStop(1); upgrade_btn.visible = false; addChild(upgrade_btn); upgrade_btn_ha = new UpgradeBtnHitArea(); upgrade_btn_ha.x = upgrade_btn.x; upgrade_btn_ha.y = upgrade_btn.y; upgrade_btn_ha.gotoAndStop(1); upgrade_btn_ha.alpha = 0; upgrade_btn_ha.buttonMode = true; upgrade_btn_ha.visible = false; addChild(upgrade_btn_ha); upgrade_btn_ha.addEventListener(MouseEvent.ROLL_OVER, upgrade_btn_mouse_over); upgrade_btn_ha.addEventListener(MouseEvent.ROLL_OUT, upgrade_btn_mouse_out); upgrade_btn_ha.addEventListener(MouseEvent.CLICK, clickUpgradeTower); sell_btn = new SellBtn(); sell_btn.x = SELL_BTN_X; sell_btn.y = UPGRADE_BTN_Y; sell_btn.gotoAndStop(1); sell_btn.visible = false; addChild(sell_btn); sell_btn_ha = new UpgradeBtnHitArea(); sell_btn_ha.x = sell_btn.x; sell_btn_ha.y = sell_btn.y; sell_btn_ha.gotoAndStop(1); sell_btn_ha.alpha = 0; sell_btn_ha.buttonMode = true; sell_btn_ha.visible = false; addChild(sell_btn_ha); sell_btn_ha.addEventListener(MouseEvent.ROLL_OVER, sell_btn_mouse_over); sell_btn_ha.addEventListener(MouseEvent.ROLL_OUT, sell_btn_mouse_out); sell_btn_ha.addEventListener(MouseEvent.CLICK, clickSellTower); enemy_icon = new EnemyIcon(); enemy_icon.x = (DETAILS_TOWER_ICON_X + 20); enemy_icon.y = DETAILS_TOWER_ICON_Y; enemy_icon.gotoAndStop(1); enemy_icon.visible = false; addChild(enemy_icon); enemySpeedText = new TextField(); enemySpeedText.x = (DETAILS_TOWER_ICON_X - 20); enemySpeedText.y = (DETAILS_TOWER_ICON_Y + 25); enemySpeedText.height = 20; addChild(enemySpeedText); enemySpeedText.defaultTextFormat = barFormat; enemySpeedText.embedFonts = true; enemySpeedText.selectable = false; enemySpeedText.visible = false; enemyHpText = new TextField(); enemyHpText.x = (DETAILS_TOWER_ICON_X - 20); enemyHpText.y = (DETAILS_TOWER_ICON_Y + 45); enemyHpText.height = 20; addChild(enemyHpText); enemyHpText.defaultTextFormat = barFormat; enemyHpText.embedFonts = true; enemyHpText.selectable = false; enemyHpText.visible = false; enemy_poisoned_icon = new EnemyPoisonedIcon(); enemy_poisoned_icon.x = (DETAILS_TOWER_ICON_X + 30); enemy_poisoned_icon.y = (DETAILS_TOWER_ICON_Y + 110); enemy_poisoned_icon.gotoAndStop(1); enemy_poisoned_icon.visible = false; addChild(enemy_poisoned_icon); enemy_slowed_down_icon = new EnemySlowedDownIcon(); enemy_slowed_down_icon.x = (DETAILS_TOWER_ICON_X + 30); enemy_slowed_down_icon.y = (DETAILS_TOWER_ICON_Y + 130); enemy_slowed_down_icon.gotoAndStop(1); enemy_slowed_down_icon.visible = false; addChild(enemy_slowed_down_icon); tower_icons = new Sprite(); addChild(tower_icons); tower_icons_ha2 = new Sprite(); addChild(tower_icons_ha2); tower_icons_ha = new Sprite(); addChild(tower_icons_ha); k = 0; i = 1; while (i <= 3) { j = 1; while (j <= 3) { k++; if (k <= TOTAL_TOWER_TYPES){ tmp_tower_icon = new towerBtn(); tmp_tower_icon.x = (FIRST_TOWER_ICON_X + (TOWER_ICONS_DIST_X * (j - 1))); tmp_tower_icon.y = (FIRST_TOWER_ICON_Y + (TOWER_ICONS_DIST_Y * (i - 1))); tmp_tower_icon.name = String(k); tmp_tower_icon.gotoAndStop((k + 10)); tmp_tower_icon.visible = false; tower_icons.addChild(tmp_tower_icon); towerIconA.push(tmp_tower_icon); tmp_tower_icon_ha2 = new towerBtnHitArea(); tmp_tower_icon_ha2.x = tmp_tower_icon.x; tmp_tower_icon_ha2.y = tmp_tower_icon.y; tmp_tower_icon_ha2.name = String(k); tmp_tower_icon_ha2.gotoAndStop(1); tmp_tower_icon_ha2.alpha = 0; tmp_tower_icon_ha2.buttonMode = false; tmp_tower_icon_ha2.visible = false; tower_icons_ha2.addChild(tmp_tower_icon_ha2); towerIconHa2A.push(tmp_tower_icon_ha2); tmp_tower_icon_ha = new towerBtnHitArea(); tmp_tower_icon_ha.x = tmp_tower_icon.x; tmp_tower_icon_ha.y = tmp_tower_icon.y; tmp_tower_icon_ha.name = String(k); tmp_tower_icon_ha.gotoAndStop(1); tmp_tower_icon_ha.alpha = 0; tmp_tower_icon_ha.buttonMode = true; tmp_tower_icon_ha.visible = false; tower_icons_ha.addChild(tmp_tower_icon_ha); towerIconHaA.push(tmp_tower_icon_ha); }; j++; }; i++; }; i = 1; while (i <= TOTAL_TOWER_TYPES) { towerIconHa2A[(i - 1)].addEventListener(MouseEvent.ROLL_OVER, tower_icon_ha2_mouse_over); towerIconHa2A[(i - 1)].addEventListener(MouseEvent.ROLL_OUT, tower_icon_ha2_mouse_out); towerIconHaA[(i - 1)].addEventListener(MouseEvent.ROLL_OVER, tower_icon_mouse_over); towerIconHaA[(i - 1)].addEventListener(MouseEvent.ROLL_OUT, tower_icon_mouse_out); towerIconHaA[(i - 1)].addEventListener(MouseEvent.CLICK, clickTowerIcon); i++; }; building_tower_desc = new BuildingTowerDesc(); building_tower_desc.x = BUILDING_TOWER_DESC_X; building_tower_desc.y = BUILDING_TOWER_DESC_Y; building_tower_desc.gotoAndStop(1); building_tower_desc.visible = false; addChild(building_tower_desc); not_enough_money_txt = new notEnoughMoneyTxt(); not_enough_money_txt.x = (BUILDING_TOWER_DESC_X + 28); not_enough_money_txt.y = (BUILDING_TOWER_DESC_Y + 45); not_enough_money_txt.gotoAndStop(1); not_enough_money_txt.visible = false; addChild(not_enough_money_txt); towerPriceText = new TextField(); towerPriceText.x = (building_tower_desc.x + 38); towerPriceText.y = (building_tower_desc.y - 38); towerPriceText.width = 50; towerPriceText.height = 20; addChild(towerPriceText); towerPriceText.defaultTextFormat = barFormatYellow; towerPriceText.sharpness = 200; towerPriceText.thickness = -100; towerPriceText.antiAliasType = "advanced"; towerPriceText.embedFonts = true; towerPriceText.selectable = false; towerPriceText.visible = false; building_single_tower_title = new BuildingTowerTitle(); building_single_tower_title.x = BUILDING_SINGLE_TOWER_TITLE_X; building_single_tower_title.y = BUILDING_SINGLE_TOWER_TITLE_Y; building_single_tower_title.gotoAndStop(1); building_single_tower_title.visible = false; addChild(building_single_tower_title); btn_cancel = new btnCancel(); btn_cancel.x = TOWER_CANCEL_X; btn_cancel.y = TOWER_CANCEL_Y; btn_cancel.gotoAndStop(1); btn_cancel.visible = false; addChild(btn_cancel); btn_cancel_ha = new btnCancelHitArea(); btn_cancel_ha.x = btn_cancel.x; btn_cancel_ha.y = btn_cancel.y; btn_cancel_ha.gotoAndStop(1); btn_cancel_ha.alpha = 0; btn_cancel_ha.buttonMode = true; btn_cancel_ha.visible = false; addChild(btn_cancel_ha); btn_cancel_ha.addEventListener(MouseEvent.ROLL_OVER, cancel_tower_icon_mouse_over); btn_cancel_ha.addEventListener(MouseEvent.ROLL_OUT, cancel_tower_icon_mouse_out); btn_cancel_ha.addEventListener(MouseEvent.CLICK, cancelBuildTowerClick); next_wave_title_text = new TextField(); next_wave_title_text.x = NW_TITLE_X; next_wave_title_text.y = NW_TITLE_Y; next_wave_title_text.width = 100; next_wave_title_text.height = 20; addChild(next_wave_title_text); next_wave_title_text.defaultTextFormat = barFormatTitle; next_wave_title_text.sharpness = 200; next_wave_title_text.thickness = -100; next_wave_title_text.antiAliasType = "advanced"; next_wave_title_text.embedFonts = true; next_wave_title_text.selectable = false; next_wave_enemy_count = new enemyCount(); next_wave_enemy_count.x = NW_ENEMY_COUNT_X; next_wave_enemy_count.y = NW_ENEMY_COUNT_Y; next_wave_enemy_count.gotoAndStop(1); next_wave_enemy_count.visible = false; addChild(next_wave_enemy_count); next_wave_enemy_icon = new EnemyBigIcon(); next_wave_enemy_icon.x = NW_ENEMY_ICON_X; next_wave_enemy_icon.y = NW_ENEMY_ICON_Y; next_wave_enemy_icon.gotoAndStop(1); next_wave_enemy_icon.visible = false; addChild(next_wave_enemy_icon); next_wave_enemies_hp_text = new TextField(); next_wave_enemies_hp_text.x = NW_ENEMIES_HP_X; next_wave_enemies_hp_text.y = NW_ENEMIES_HP_Y; next_wave_enemies_hp_text.width = 100; next_wave_enemies_hp_text.height = 20; addChild(next_wave_enemies_hp_text); next_wave_enemies_hp_text.defaultTextFormat = barFormat; next_wave_enemies_hp_text.sharpness = 200; next_wave_enemies_hp_text.thickness = -100; next_wave_enemies_hp_text.antiAliasType = "advanced"; next_wave_enemies_hp_text.embedFonts = true; next_wave_enemies_hp_text.selectable = false; next_wave_enemies_speed_text = new TextField(); next_wave_enemies_speed_text.x = (NW_ENEMIES_HP_X - 4); next_wave_enemies_speed_text.y = (NW_ENEMIES_HP_Y + 12); next_wave_enemies_speed_text.width = 100; next_wave_enemies_speed_text.height = 20; addChild(next_wave_enemies_speed_text); next_wave_enemies_speed_text.defaultTextFormat = barFormat; next_wave_enemies_speed_text.sharpness = 200; next_wave_enemies_speed_text.thickness = -100; next_wave_enemies_speed_text.antiAliasType = "advanced"; next_wave_enemies_speed_text.embedFonts = true; next_wave_enemies_speed_text.selectable = false; btn_next_wave = new sendBtn(); btn_next_wave.x = NW_SEND_BTN_X; btn_next_wave.y = NW_SEND_BTN_Y; btn_next_wave.gotoAndStop(1); btn_next_wave.visible = false; addChild(btn_next_wave); btn_next_wave_ha = new sendBtnHitArea(); btn_next_wave_ha.x = btn_next_wave.x; btn_next_wave_ha.y = btn_next_wave.y; btn_next_wave_ha.gotoAndStop(1); btn_next_wave_ha.alpha = 0; btn_next_wave_ha.buttonMode = true; btn_next_wave_ha.visible = false; addChild(btn_next_wave_ha); btn_next_wave_ha.addEventListener(MouseEvent.ROLL_OVER, next_wave_btn_mouse_over); btn_next_wave_ha.addEventListener(MouseEvent.ROLL_OUT, next_wave_btn_mouse_out); btn_next_wave_ha.addEventListener(MouseEvent.CLICK, click_send_next_wave); bonus_points_text = new TextField(); bonus_points_text.x = NW_BONUS_POINTS_X; bonus_points_text.y = NW_BONUS_POINTS_Y; bonus_points_text.width = 50; bonus_points_text.height = 20; addChild(bonus_points_text); bonus_points_text.defaultTextFormat = barFormatAlignLeft; bonus_points_text.embedFonts = true; bonus_points_text.selectable = false; tutorial_window = new tutorialWindow(); tutorial_window.gotoAndStop(1); tutorial_window.visible = false; addChild(tutorial_window); skip_btn = new skipBtn(); skip_btn.x = 346; skip_btn.y = 254; skip_btn.gotoAndStop(1); skip_btn.visible = false; addChild(skip_btn); skip_btn_ha = new skipBtnHitArea(); skip_btn_ha.x = skip_btn.x; skip_btn_ha.y = skip_btn.y; skip_btn_ha.alpha = 0; skip_btn_ha.buttonMode = true; skip_btn_ha.visible = false; addChild(skip_btn_ha); skip_btn_ha.addEventListener(MouseEvent.ROLL_OVER, skip_btn_mouse_over); skip_btn_ha.addEventListener(MouseEvent.ROLL_OUT, skip_btn_mouse_out); skip_btn_ha.addEventListener(MouseEvent.CLICK, skip_btn_click); map_window_bg = new mapWindowBg(); map_window_bg.gotoAndStop(1); map_window_bg.visible = false; addChild(map_window_bg); map_btn = new BtnMap(); map_btn.x = INIT_MAP_MAP_BTN_X; map_btn.y = INIT_MAP_TOP_BTN_Y; map_btn.visible = false; addChild(map_btn); map_btn.addEventListener(MouseEvent.CLICK, map_btn_click); upgrades_btn = new BtnUpgrades(); upgrades_btn.x = INIT_MAP_UPGRADES_BTN_X; upgrades_btn.y = INIT_MAP_TOP_BTN_Y; upgrades_btn.visible = false; addChild(upgrades_btn); upgrades_btn.addEventListener(MouseEvent.CLICK, upgrades_btn_click); achievements_anim = new achievementsAnim(); achievements_anim.x = INIT_MAP_AWARDS_BTN_X; achievements_anim.y = INIT_MAP_TOP_BTN_Y; achievements_anim.gotoAndStop(1); achievements_anim.visible = false; addChild(achievements_anim); awards_btn = new BtnAwards(); awards_btn.x = INIT_MAP_AWARDS_BTN_X; awards_btn.y = INIT_MAP_TOP_BTN_Y; awards_btn.visible = false; addChild(awards_btn); awards_btn.addEventListener(MouseEvent.CLICK, awards_btn_click); level_icon_selected = new levelIconSelected(); level_icon_selected.visible = false; addChild(level_icon_selected); level_icon_over = new levelIconOver(); level_icon_over.visible = false; addChild(level_icon_over); levels_icons = new Sprite(); addChild(levels_icons); levels_expert_icons = new Sprite(); addChild(levels_expert_icons); levels_icons_ha = new Sprite(); addChild(levels_icons_ha); k = 0; i = 1; while (i <= LEVEL_ICONS_ROWS) { j = 1; while (j <= (TOTAL_LEVELS / LEVEL_ICONS_ROWS)) { k++; tmp_level_icon = new levelIcon(); tmp_level_icon.x = (FISRT_LVL_ICON_X + ((i - 1) * LVL_ICON_DIST_X)); tmp_level_icon.y = (FISRT_LVL_ICON_Y + ((j - 1) * LVL_ICON_DIST_Y)); tmp_level_icon.name = String(k); tmp_level_icon.gotoAndStop(k); tmp_level_icon.visible = false; levels_icons.addChild(tmp_level_icon); levelIconA.push(tmp_level_icon); tmp_expert_mc = new expertMc(); tmp_expert_mc.x = (tmp_level_icon.x + 21); tmp_expert_mc.y = (tmp_level_icon.y + 5); tmp_expert_mc.name = String(k); tmp_expert_mc.gotoAndStop(1); tmp_expert_mc.visible = false; levels_expert_icons.addChild(tmp_expert_mc); levelIconExpertA.push(tmp_expert_mc); tmp_level_icon_ha = new levelIconHitArea(); tmp_level_icon_ha.x = tmp_level_icon.x; tmp_level_icon_ha.y = tmp_level_icon.y; tmp_level_icon_ha.name = String(k); tmp_level_icon_ha.gotoAndStop(1); tmp_level_icon_ha.alpha = 0; tmp_level_icon_ha.buttonMode = true; tmp_level_icon_ha.visible = false; levels_icons_ha.addChild(tmp_level_icon_ha); levelIconHaA.push(tmp_level_icon_ha); j++; }; i++; }; i = 1; while (i <= TOTAL_LEVELS) { levelIconHaA[(i - 1)].addEventListener(MouseEvent.ROLL_OVER, level_icon_mouse_over); levelIconHaA[(i - 1)].addEventListener(MouseEvent.ROLL_OUT, level_icon_mouse_out); levelIconHaA[(i - 1)].addEventListener(MouseEvent.CLICK, clicklevelIcon); i++; }; main_menu_btn = new BtnBackToMenu(); main_menu_btn.x = INIT_MAP_MAINMENU_BTN_X; main_menu_btn.y = INIT_MAP_MAINMENU_BTN_Y; main_menu_btn.stop(); main_menu_btn.visible = false; addChild(main_menu_btn); main_menu_btn_ha = new BtnBackToMenuHitArea(); main_menu_btn_ha.x = main_menu_btn.x; main_menu_btn_ha.y = main_menu_btn.y; main_menu_btn_ha.stop(); main_menu_btn_ha.alpha = 0; main_menu_btn_ha.visible = false; main_menu_btn_ha.buttonMode = true; addChild(main_menu_btn_ha); main_menu_btn_ha.addEventListener(MouseEvent.ROLL_OVER, main_menu_btn_mouse_over); main_menu_btn_ha.addEventListener(MouseEvent.ROLL_OUT, main_menu_btn_mouse_out); main_menu_btn_ha.addEventListener(MouseEvent.CLICK, main_menu_btn_click); play_map_btn = new playMapBtn(); play_map_btn.x = INIT_MAP_PLAY_BTN_X; play_map_btn.y = INIT_MAP_MAINMENU_BTN_Y; play_map_btn.stop(); play_map_btn.visible = false; addChild(play_map_btn); play_map_btn_ha = new playMapBtnHitArea(); play_map_btn_ha.x = play_map_btn.x; play_map_btn_ha.y = play_map_btn.y; play_map_btn_ha.stop(); play_map_btn_ha.alpha = 0; play_map_btn_ha.visible = false; play_map_btn_ha.buttonMode = true; addChild(play_map_btn_ha); play_map_btn_ha.addEventListener(MouseEvent.ROLL_OVER, play_map_btn_mouse_over); play_map_btn_ha.addEventListener(MouseEvent.ROLL_OUT, play_map_btn_mouse_out); play_map_btn_ha.addEventListener(MouseEvent.CLICK, play_map_btn_click); upgrade_names = new UpgradeNames(); upgrade_names.x = 137; upgrade_names.y = 108; upgrade_names.gotoAndStop(1); upgrade_names.visible = false; addChild(upgrade_names); legend = new Legend(); legend.x = 450; legend.y = 310; legend.gotoAndStop(1); legend.visible = false; addChild(legend); upgradePointsText = new TextField(); upgradePointsText.x = 350; upgradePointsText.y = 220; upgradePointsText.width = 200; upgradePointsText.height = 30; addChild(upgradePointsText); upgradePointsText.defaultTextFormat = barFormatTitle; upgradePointsText.sharpness = 200; upgradePointsText.thickness = -100; upgradePointsText.antiAliasType = "advanced"; upgradePointsText.embedFonts = true; upgradePointsText.selectable = false; upgradePointsText.visible = false; upgradePriceText = new TextField(); upgradePriceText.x = 35; upgradePriceText.y = 355; upgradePriceText.width = 150; upgradePriceText.height = 20; addChild(upgradePriceText); upgradePriceText.defaultTextFormat = upgradeWindowFormat; upgradePriceText.sharpness = 200; upgradePriceText.thickness = -100; upgradePriceText.antiAliasType = "advanced"; upgradePriceText.embedFonts = true; upgradePriceText.selectable = false; upgradePriceText.visible = false; upgradeDetailsText = new TextField(); upgradeDetailsText.x = 50; upgradeDetailsText.y = 370; upgradeDetailsText.width = 550; upgradeDetailsText.height = 20; addChild(upgradeDetailsText); upgradeDetailsText.defaultTextFormat = upgradeWindowFormat; upgradeDetailsText.sharpness = 200; upgradeDetailsText.thickness = -100; upgradeDetailsText.antiAliasType = "advanced"; upgradeDetailsText.embedFonts = true; upgradeDetailsText.selectable = false; upgradeDetailsText.visible = false; upgrade_boxes = new Sprite(); addChild(upgrade_boxes); upgrade_boxes_ha = new Sprite(); addChild(upgrade_boxes_ha); boxUpgradeA = new Array(); boxUpgradeHaA = new Array(); k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; tmp_upgrade_box = new UpgradeBox(); tmp_upgrade_box.x = (FISRT_UPGRADE_BOX_X[i] + (j * UPGRADE_BOX_DIST)); tmp_upgrade_box.y = FISRT_UPGRADE_BOX_Y[i]; tmp_upgrade_box.name = String(k); tmp_upgrade_box.gotoAndStop(1); tmp_upgrade_box.visible = false; upgrade_boxes.addChild(tmp_upgrade_box); boxUpgradeA.push(tmp_upgrade_box); tmp_upgrade_box_ha = new UpgradeBoxHitArea(); tmp_upgrade_box_ha.x = tmp_upgrade_box.x; tmp_upgrade_box_ha.y = tmp_upgrade_box.y; tmp_upgrade_box_ha.name = String(k); tmp_upgrade_box_ha.upgrade_type = i; tmp_upgrade_box_ha.upgrade_level = j; tmp_upgrade_box_ha.gotoAndStop(1); tmp_upgrade_box_ha.alpha = 0; tmp_upgrade_box_ha.buttonMode = false; tmp_upgrade_box_ha.visible = false; upgrade_boxes_ha.addChild(tmp_upgrade_box_ha); boxUpgradeHaA.push(tmp_upgrade_box_ha); j++; }; i++; }; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; boxUpgradeHaA[(k - 1)].addEventListener(MouseEvent.ROLL_OVER, upgrade_box_mouse_over); boxUpgradeHaA[(k - 1)].addEventListener(MouseEvent.ROLL_OUT, upgrade_box_mouse_out); boxUpgradeHaA[(k - 1)].addEventListener(MouseEvent.CLICK, clickUpgradeBox); j++; }; i++; }; achievementBoxBgA = new Array(); j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { tmp_achievement_bg = new AchievementBg(); tmp_achievement_bg.x = (INIT_ACHIEVEMENT_BOXES_X + ((i - 1) * ACHIEVEMENT_BOXES_DIST_X)); tmp_achievement_bg.y = (INIT_ACHIEVEMENT_BOXES_Y + ((j - 1) * ACHIEVEMENT_BOXES_DIST_Y)); tmp_achievement_bg.stop(); tmp_achievement_bg.alpha = 0.9; tmp_achievement_bg.visible = false; addChild(tmp_achievement_bg); achievementBoxBgA.push(tmp_achievement_bg); i++; }; j++; }; achievementBoxA = new Array(); k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; tmp_achievement_box = new AchievementBox(); tmp_achievement_box.x = (INIT_ACHIEVEMENT_BOXES_X + ((i - 1) * ACHIEVEMENT_BOXES_DIST_X)); tmp_achievement_box.y = (INIT_ACHIEVEMENT_BOXES_Y + ((j - 1) * ACHIEVEMENT_BOXES_DIST_Y)); tmp_achievement_box.gotoAndStop(61); tmp_achievement_box.visible = false; addChild(tmp_achievement_box); achievementBoxA.push(tmp_achievement_box); i++; }; j++; }; achievementBoxHaA = new Array(); k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; tmp_achievement_box_hit_area = new AchievementBoxHitArea(); tmp_achievement_box_hit_area.name = String(k); tmp_achievement_box_hit_area.x = (INIT_ACHIEVEMENT_BOXES_X + ((i - 1) * ACHIEVEMENT_BOXES_DIST_X)); tmp_achievement_box_hit_area.y = (INIT_ACHIEVEMENT_BOXES_Y + ((j - 1) * ACHIEVEMENT_BOXES_DIST_Y)); tmp_achievement_box_hit_area.stop(); tmp_achievement_box_hit_area.alpha = 0; tmp_achievement_box_hit_area.visible = false; addChild(tmp_achievement_box_hit_area); achievementBoxHaA.push(tmp_achievement_box_hit_area); tmp_achievement_box_hit_area.addEventListener(MouseEvent.ROLL_OVER, achievement_box_mouse_over); tmp_achievement_box_hit_area.addEventListener(MouseEvent.ROLL_OUT, achievement_box_mouse_out); i++; }; j++; }; achievementTextA = new Array(); k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; tmp_achievement_text = new TextField(); tmp_achievement_text.x = ((INIT_ACHIEVEMENT_BOXES_X + ((i - 1) * ACHIEVEMENT_BOXES_DIST_X)) - 60); if (tmp_achievement_text.x < 20){ tmp_achievement_text.x = 20; }; if (tmp_achievement_text.x > 417){ tmp_achievement_text.x = 417; }; tmp_achievement_text.y = ((INIT_ACHIEVEMENT_BOXES_Y + ((j - 1) * ACHIEVEMENT_BOXES_DIST_Y)) + DEV_ACHIEVEMENT_TEXT_Y); tmp_achievement_text.width = 120; tmp_achievement_text.height = 20; addChild(tmp_achievement_text); tmp_achievement_text.defaultTextFormat = achievementTitleFormat; tmp_achievement_text.sharpness = 200; tmp_achievement_text.thickness = -100; tmp_achievement_text.antiAliasType = "advanced"; tmp_achievement_text.embedFonts = true; tmp_achievement_text.selectable = false; tmp_achievement_text.visible = false; tmp_achievement_text.text = ACHIEVEMENT_NAME[(k - 1)]; achievementTextA.push(tmp_achievement_text); i++; }; j++; }; achievement_desc_text = new TextField(); achievement_desc_text.x = ACHIEVEMENT_DESC_TEXT_X; achievement_desc_text.y = ACHIEVEMENT_DESC_TEXT_Y; achievement_desc_text.width = 600; achievement_desc_text.height = 40; addChild(achievement_desc_text); achievement_desc_text.defaultTextFormat = achievementWindowDescriptionFormat; achievement_desc_text.sharpness = 200; achievement_desc_text.thickness = -100; achievement_desc_text.antiAliasType = "advanced"; achievement_desc_text.embedFonts = true; achievement_desc_text.selectable = false; achievement_desc_text.visible = false; black_screen_pause_window = new blackScreen(); black_screen_pause_window.gotoAndStop(1); black_screen_pause_window.visible = false; addChild(black_screen_pause_window); pause_window = new pauseWindow(); pause_window.x = 224; pause_window.y = 221; pause_window.stop(); pause_window.visible = false; addChild(pause_window); resume_btn = new resumeBtn(); resume_btn.x = pause_window.x; resume_btn.y = (pause_window.y - 5); resume_btn.gotoAndStop(1); resume_btn.visible = false; addChild(resume_btn); resume_btn_ha = new resumeBtnHitArea(); resume_btn_ha.x = resume_btn.x; resume_btn_ha.y = resume_btn.y; resume_btn_ha.alpha = 0; resume_btn_ha.buttonMode = true; resume_btn_ha.visible = false; addChild(resume_btn_ha); resume_btn_ha.addEventListener(MouseEvent.ROLL_OVER, resume_btn_mouse_over); resume_btn_ha.addEventListener(MouseEvent.ROLL_OUT, resume_btn_mouse_out); resume_btn_ha.addEventListener(MouseEvent.CLICK, resume_btn_click); restart_btn = new restartBtn(); restart_btn.x = pause_window.x; restart_btn.y = (pause_window.y + 40); restart_btn.gotoAndStop(1); restart_btn.visible = false; addChild(restart_btn); restart_btn_ha = new gotoMenuBtnHitArea(); restart_btn_ha.x = restart_btn.x; restart_btn_ha.y = restart_btn.y; restart_btn_ha.alpha = 0; restart_btn_ha.buttonMode = true; restart_btn_ha.visible = false; addChild(restart_btn_ha); restart_btn_ha.addEventListener(MouseEvent.ROLL_OVER, restart_btn_mouse_over); restart_btn_ha.addEventListener(MouseEvent.ROLL_OUT, restart_btn_mouse_out); restart_btn_ha.addEventListener(MouseEvent.CLICK, restart_btn_click); goto_menu_btn = new gotoMenuBtn(); goto_menu_btn.x = pause_window.x; goto_menu_btn.y = (pause_window.y + 85); goto_menu_btn.gotoAndStop(1); goto_menu_btn.visible = false; addChild(goto_menu_btn); goto_menu_btn_ha = new gotoMenuBtnHitArea(); goto_menu_btn_ha.x = goto_menu_btn.x; goto_menu_btn_ha.y = goto_menu_btn.y; goto_menu_btn_ha.alpha = 0; goto_menu_btn_ha.buttonMode = true; goto_menu_btn_ha.visible = false; addChild(goto_menu_btn_ha); goto_menu_btn_ha.addEventListener(MouseEvent.ROLL_OVER, quit_btn_mouse_over); goto_menu_btn_ha.addEventListener(MouseEvent.ROLL_OUT, quit_btn_mouse_out); goto_menu_btn_ha.addEventListener(MouseEvent.CLICK, goto_menu_from_pause_screen_btn_click); black_screen_finish_window = new blackScreen(); black_screen_finish_window.gotoAndStop(1); black_screen_finish_window.visible = false; addChild(black_screen_finish_window); finish_level_window_bg = new FinishLevelWindowBg(); finish_level_window_bg.x = 238; finish_level_window_bg.y = 221; finish_level_window_bg.gotoAndStop(1); finish_level_window_bg.visible = false; addChild(finish_level_window_bg); ad_img = new Ad(); ad_img.x = (finish_level_window_bg.x - 179); ad_img.y = (finish_level_window_bg.y - 25); ad_img.gotoAndStop(1); ad_img.visible = false; addChild(ad_img); ad_img_ha = new smallAdHitArea(); ad_img_ha.x = ad_img.x; ad_img_ha.y = ad_img.y; ad_img_ha.alpha = 0; ad_img_ha.buttonMode = true; ad_img_ha.visible = false; addChild(ad_img_ha); ad_img_ha.addEventListener(MouseEvent.CLICK, ad_click); levelScoreFWText = new TextField(); levelScoreFWText.x = (finish_level_window_bg.x + 60); levelScoreFWText.y = (finish_level_window_bg.y - 20); levelScoreFWText.height = 20; addChild(levelScoreFWText); levelScoreFWText.defaultTextFormat = FinishWindowFormatText; levelScoreFWText.sharpness = 200; levelScoreFWText.thickness = -100; levelScoreFWText.antiAliasType = "advanced"; levelScoreFWText.embedFonts = true; levelScoreFWText.selectable = false; levelScoreFWText.visible = false; expertScoreFWText = new TextField(); expertScoreFWText.x = (finish_level_window_bg.x + 60); expertScoreFWText.y = (finish_level_window_bg.y + 0); expertScoreFWText.height = 20; addChild(expertScoreFWText); expertScoreFWText.defaultTextFormat = FinishWindowFormatText; expertScoreFWText.sharpness = 200; expertScoreFWText.thickness = -100; expertScoreFWText.antiAliasType = "advanced"; expertScoreFWText.embedFonts = true; expertScoreFWText.selectable = false; expertScoreFWText.visible = false; totalScoreFWText = new TextField(); totalScoreFWText.x = (finish_level_window_bg.x + 60); totalScoreFWText.y = (finish_level_window_bg.y + 30); totalScoreFWText.height = 20; addChild(totalScoreFWText); totalScoreFWText.defaultTextFormat = FinishWindowFormatText; totalScoreFWText.sharpness = 200; totalScoreFWText.thickness = -100; totalScoreFWText.antiAliasType = "advanced"; totalScoreFWText.embedFonts = true; totalScoreFWText.selectable = false; totalScoreFWText.visible = false; pointsEarnedFWText = new TextField(); pointsEarnedFWText.x = (finish_level_window_bg.x + 60); pointsEarnedFWText.y = (finish_level_window_bg.y + 60); pointsEarnedFWText.height = 20; addChild(pointsEarnedFWText); pointsEarnedFWText.defaultTextFormat = FinishWindowFormatText; pointsEarnedFWText.sharpness = 200; pointsEarnedFWText.thickness = -100; pointsEarnedFWText.antiAliasType = "advanced"; pointsEarnedFWText.embedFonts = true; pointsEarnedFWText.selectable = false; pointsEarnedFWText.visible = false; back_to_menu_btn = new BtnMainMenu(); back_to_menu_btn.x = (finish_level_window_bg.x - 125); back_to_menu_btn.y = (finish_level_window_bg.y + 97); back_to_menu_btn.gotoAndStop(1); back_to_menu_btn.visible = false; addChild(back_to_menu_btn); back_to_menu_btn_ha = new BtnMainMenuHitArea(); back_to_menu_btn_ha.x = back_to_menu_btn.x; back_to_menu_btn_ha.y = back_to_menu_btn.y; back_to_menu_btn_ha.gotoAndStop(1); back_to_menu_btn_ha.alpha = 0; back_to_menu_btn_ha.visible = false; back_to_menu_btn_ha.buttonMode = true; addChild(back_to_menu_btn_ha); back_to_menu_btn_ha.addEventListener(MouseEvent.ROLL_OVER, goto_menu_btn_mouse_over); back_to_menu_btn_ha.addEventListener(MouseEvent.ROLL_OUT, goto_menu_btn_mouse_out); back_to_menu_btn_ha.addEventListener(MouseEvent.CLICK, goto_menu_btn_click); ok_btn = new OkBtn(); ok_btn.x = (finish_level_window_bg.x + 110); ok_btn.y = (finish_level_window_bg.y + 97); ok_btn.gotoAndStop(1); ok_btn.visible = false; addChild(ok_btn); ok_btn_ha = new OkBtnHitArea(); ok_btn_ha.x = ok_btn.x; ok_btn_ha.y = ok_btn.y; ok_btn_ha.gotoAndStop(1); ok_btn_ha.alpha = 0; ok_btn_ha.visible = false; ok_btn_ha.buttonMode = true; addChild(ok_btn_ha); ok_btn_ha.addEventListener(MouseEvent.ROLL_OVER, ok_btn_mouse_over); ok_btn_ha.addEventListener(MouseEvent.ROLL_OUT, ok_btn_mouse_out); ok_btn_ha.addEventListener(MouseEvent.CLICK, ok_btn_click); main_menu_bg = new mainMenuBg(); main_menu_bg.x = 0; main_menu_bg.y = 0; main_menu_bg.visible = false; addChild(main_menu_bg); main_menu_bg.cacheAsBitmap = true; play_btn = new playBtn(); play_btn.x = MENU_AREA_X; play_btn.y = PLAY_BTN_Y; play_btn.gotoAndStop(1); play_btn.visible = false; addChild(play_btn); play_btn_ha = new playBtnHitArea(); play_btn_ha.x = play_btn.x; play_btn_ha.y = play_btn.y; play_btn_ha.alpha = 0; play_btn_ha.buttonMode = true; play_btn_ha.visible = false; addChild(play_btn_ha); play_btn_ha.addEventListener(MouseEvent.ROLL_OVER, play_btn_mouse_over); play_btn_ha.addEventListener(MouseEvent.ROLL_OUT, play_btn_mouse_out); play_btn_ha.addEventListener(MouseEvent.CLICK, play_btn_click); instructions_btn = new instructionsBtn(); instructions_btn.x = MENU_AREA_X; instructions_btn.y = INSTRUCTIONS_BTN_Y; instructions_btn.gotoAndStop(1); instructions_btn.visible = false; addChild(instructions_btn); instructions_btn_ha = new instructionsBtnHitArea(); instructions_btn_ha.x = instructions_btn.x; instructions_btn_ha.y = instructions_btn.y; instructions_btn_ha.alpha = 0; instructions_btn_ha.buttonMode = true; instructions_btn_ha.visible = false; addChild(instructions_btn_ha); instructions_btn_ha.addEventListener(MouseEvent.ROLL_OVER, instructions_btn_mouse_over); instructions_btn_ha.addEventListener(MouseEvent.ROLL_OUT, instructions_btn_mouse_out); instructions_btn_ha.addEventListener(MouseEvent.CLICK, instructions_btn_click); options_btn = new optionsBtn(); options_btn.x = MENU_AREA_X; options_btn.y = OPTIONS_BTN_Y; options_btn.gotoAndStop(1); options_btn.visible = false; addChild(options_btn); options_btn_ha = new optionsBtnHitArea(); options_btn_ha.x = options_btn.x; options_btn_ha.y = options_btn.y; options_btn_ha.alpha = 0; options_btn_ha.buttonMode = true; options_btn_ha.visible = false; addChild(options_btn_ha); options_btn_ha.addEventListener(MouseEvent.ROLL_OVER, options_btn_mouse_over); options_btn_ha.addEventListener(MouseEvent.ROLL_OUT, options_btn_mouse_out); options_btn_ha.addEventListener(MouseEvent.CLICK, options_btn_click); credits_btn = new creditsBtn(); credits_btn.x = MENU_AREA_X; credits_btn.y = CREDITS_BTN_Y; credits_btn.gotoAndStop(1); credits_btn.visible = false; addChild(credits_btn); credits_btn_ha = new creditsBtnHitArea(); credits_btn_ha.x = credits_btn.x; credits_btn_ha.y = credits_btn.y; credits_btn_ha.alpha = 0; credits_btn_ha.buttonMode = true; credits_btn_ha.visible = false; addChild(credits_btn_ha); credits_btn_ha.addEventListener(MouseEvent.ROLL_OVER, credits_btn_mouse_over); credits_btn_ha.addEventListener(MouseEvent.ROLL_OUT, credits_btn_mouse_out); credits_btn_ha.addEventListener(MouseEvent.CLICK, credits_btn_click); go_home_btn = new goHomeBtn(); go_home_btn.x = LINK_MORE_GAMES_X; go_home_btn.y = LINK_MORE_GAMES_Y; go_home_btn.gotoAndStop(1); go_home_btn.visible = false; addChild(go_home_btn); go_home_btn_ha = new goHomeBtnHitArea(); go_home_btn_ha.x = go_home_btn.x; go_home_btn_ha.y = go_home_btn.y; go_home_btn_ha.alpha = 0; go_home_btn_ha.buttonMode = true; go_home_btn_ha.visible = false; addChild(go_home_btn_ha); go_home_btn_ha.addEventListener(MouseEvent.ROLL_OVER, go_home_btn_mouse_over); go_home_btn_ha.addEventListener(MouseEvent.ROLL_OUT, go_home_btn_mouse_out); go_home_btn_ha.addEventListener(MouseEvent.CLICK, go_home_btn_click); add_game_btn = new addGameBtn(); add_game_btn.x = LINK_ADD_GAME_X; add_game_btn.y = LINK_ADD_GAME_Y; add_game_btn.gotoAndStop(1); add_game_btn.visible = false; addChild(add_game_btn); add_game_btn_ha = new addGameBtnHitArea(); add_game_btn_ha.x = add_game_btn.x; add_game_btn_ha.y = add_game_btn.y; add_game_btn_ha.alpha = 0; add_game_btn_ha.buttonMode = true; add_game_btn_ha.visible = false; addChild(add_game_btn_ha); add_game_btn_ha.addEventListener(MouseEvent.ROLL_OVER, add_game_btn_mouse_over); add_game_btn_ha.addEventListener(MouseEvent.ROLL_OUT, add_game_btn_mouse_out); add_game_btn_ha.addEventListener(MouseEvent.CLICK, add_game_btn_click); bg_new_game_window = new bgNewGameWindow(); bg_new_game_window.x = NEW_GAME_WINDOW_X; bg_new_game_window.y = NEW_GAME_WINDOW_Y; bg_new_game_window.visible = false; addChild(bg_new_game_window); bg_new_game_window.cacheAsBitmap = true; new_game_btn = new newGameBtn(); new_game_btn.x = NEW_GAME_WINDOW_X; new_game_btn.y = NEW_GAME_BTN_Y; new_game_btn.gotoAndStop(1); new_game_btn.visible = false; addChild(new_game_btn); new_game_btn_ha = new newGameBtnHitArea(); new_game_btn_ha.x = new_game_btn.x; new_game_btn_ha.y = new_game_btn.y; new_game_btn_ha.alpha = 0; new_game_btn_ha.buttonMode = true; new_game_btn_ha.visible = false; addChild(new_game_btn_ha); new_game_btn_ha.addEventListener(MouseEvent.ROLL_OVER, new_game_btn_mouse_over); new_game_btn_ha.addEventListener(MouseEvent.ROLL_OUT, new_game_btn_mouse_out); new_game_btn_ha.addEventListener(MouseEvent.CLICK, new_game_btn_click); continue_game_btn = new continueGameBtn(); continue_game_btn.x = NEW_GAME_WINDOW_X; continue_game_btn.y = CONTINUE_GAME_BTN_Y; continue_game_btn.gotoAndStop(1); continue_game_btn.visible = false; addChild(continue_game_btn); continue_game_btn_ha = new newGameBtnHitArea(); continue_game_btn_ha.x = continue_game_btn.x; continue_game_btn_ha.y = continue_game_btn.y; continue_game_btn_ha.alpha = 0; continue_game_btn_ha.buttonMode = true; continue_game_btn_ha.visible = false; addChild(continue_game_btn_ha); continue_game_btn_ha.addEventListener(MouseEvent.ROLL_OVER, continue_game_btn_mouse_over); continue_game_btn_ha.addEventListener(MouseEvent.ROLL_OUT, continue_game_btn_mouse_out); continue_game_btn_ha.addEventListener(MouseEvent.CLICK, continue_game_btn_click); bg_confirm_delete_window = new bgConfirmDeleteWindow(); bg_confirm_delete_window.x = (NEW_GAME_WINDOW_X + 50); bg_confirm_delete_window.y = (NEW_GAME_WINDOW_Y + 50); bg_confirm_delete_window.visible = false; addChild(bg_confirm_delete_window); bg_confirm_delete_window.cacheAsBitmap = true; confirm_delete_no_btn = new NoBtn(); confirm_delete_no_btn.x = (NEW_GAME_WINDOW_X + 10); confirm_delete_no_btn.y = (NEW_GAME_WINDOW_Y + 80); confirm_delete_no_btn.gotoAndStop(1); confirm_delete_no_btn.visible = false; addChild(confirm_delete_no_btn); confirm_delete_no_btn_ha = new YesNoBtnHitArea(); confirm_delete_no_btn_ha.x = confirm_delete_no_btn.x; confirm_delete_no_btn_ha.y = confirm_delete_no_btn.y; confirm_delete_no_btn_ha.alpha = 0; confirm_delete_no_btn_ha.buttonMode = true; confirm_delete_no_btn_ha.visible = false; addChild(confirm_delete_no_btn_ha); confirm_delete_no_btn_ha.addEventListener(MouseEvent.ROLL_OVER, confirm_no_btn_mouse_over); confirm_delete_no_btn_ha.addEventListener(MouseEvent.ROLL_OUT, confirm_no_btn_mouse_out); confirm_delete_no_btn_ha.addEventListener(MouseEvent.CLICK, confirm_no_btn_click); confirm_delete_yes_btn = new YesBtn(); confirm_delete_yes_btn.x = (NEW_GAME_WINDOW_X + 100); confirm_delete_yes_btn.y = (NEW_GAME_WINDOW_Y + 80); confirm_delete_yes_btn.gotoAndStop(1); confirm_delete_yes_btn.visible = false; addChild(confirm_delete_yes_btn); confirm_delete_yes_btn_ha = new YesNoBtnHitArea(); confirm_delete_yes_btn_ha.x = confirm_delete_yes_btn.x; confirm_delete_yes_btn_ha.y = confirm_delete_yes_btn.y; confirm_delete_yes_btn_ha.alpha = 0; confirm_delete_yes_btn_ha.buttonMode = true; confirm_delete_yes_btn_ha.visible = false; addChild(confirm_delete_yes_btn_ha); confirm_delete_yes_btn_ha.addEventListener(MouseEvent.ROLL_OVER, confirm_yes_btn_mouse_over); confirm_delete_yes_btn_ha.addEventListener(MouseEvent.ROLL_OUT, confirm_yes_btn_mouse_out); confirm_delete_yes_btn_ha.addEventListener(MouseEvent.CLICK, confirm_yes_btn_click); instructions_bg = new instructionsWindow(); instructions_bg.x = (SCREEN_WIDTH / 2); instructions_bg.y = (SCREEN_HEIGHT / 2); instructions_bg.gotoAndStop(1); instructions_bg.visible = false; addChild(instructions_bg); instructions_close_btn = new closeBtn(); instructions_close_btn.x = (instructions_bg.x + 192); instructions_close_btn.y = (instructions_bg.y + 134); instructions_close_btn.gotoAndStop(1); instructions_close_btn.visible = false; addChild(instructions_close_btn); instructions_close_btn_ha = new closeBtnHitArea(); instructions_close_btn_ha.x = instructions_close_btn.x; instructions_close_btn_ha.y = instructions_close_btn.y; instructions_close_btn_ha.alpha = 0; instructions_close_btn_ha.buttonMode = true; instructions_close_btn_ha.visible = false; addChild(instructions_close_btn_ha); instructions_close_btn_ha.addEventListener(MouseEvent.ROLL_OVER, instructions_close_btn_mouse_over); instructions_close_btn_ha.addEventListener(MouseEvent.ROLL_OUT, instructions_close_btn_mouse_out); instructions_close_btn_ha.addEventListener(MouseEvent.CLICK, instructions_close_btn_click); options_bg = new optionsWindow(); options_bg.x = (SCREEN_WIDTH / 2); options_bg.y = (SCREEN_HEIGHT / 2); options_bg.gotoAndStop(1); options_bg.visible = false; addChild(options_bg); options_low_btn = new qualityLowBtn(); options_low_btn.x = (options_bg.x - 1); options_low_btn.y = (options_bg.y + 0); options_low_btn.gotoAndStop(1); options_low_btn.visible = false; addChild(options_low_btn); options_low_btn_ha = new qualityLowBtnHitArea(); options_low_btn_ha.x = options_low_btn.x; options_low_btn_ha.y = options_low_btn.y; options_low_btn_ha.alpha = 0; options_low_btn_ha.buttonMode = true; options_low_btn_ha.visible = false; addChild(options_low_btn_ha); options_low_btn_ha.addEventListener(MouseEvent.CLICK, options_low_btn_click); options_med_btn = new qualityMedBtn(); options_med_btn.x = (options_bg.x + 47); options_med_btn.y = (options_bg.y + 0); options_med_btn.gotoAndStop(1); options_med_btn.visible = false; addChild(options_med_btn); options_med_btn_ha = new qualityMedBtnHitArea(); options_med_btn_ha.x = options_med_btn.x; options_med_btn_ha.y = options_med_btn.y; options_med_btn_ha.alpha = 0; options_med_btn_ha.buttonMode = true; options_med_btn_ha.visible = false; addChild(options_med_btn_ha); options_med_btn_ha.addEventListener(MouseEvent.CLICK, options_med_btn_click); options_high_btn = new qualityHighBtn(); options_high_btn.x = (options_bg.x + 100); options_high_btn.y = (options_bg.y + 0); options_high_btn.gotoAndStop(1); options_high_btn.visible = false; addChild(options_high_btn); options_high_btn_ha = new qualityHighBtnHitArea(); options_high_btn_ha.x = options_high_btn.x; options_high_btn_ha.y = options_high_btn.y; options_high_btn_ha.alpha = 0; options_high_btn_ha.buttonMode = true; options_high_btn_ha.visible = false; addChild(options_high_btn_ha); options_high_btn_ha.addEventListener(MouseEvent.CLICK, options_high_btn_click); options_music_on_btn = new soundOnBtn(); options_music_on_btn.x = (options_bg.x - 7); options_music_on_btn.y = (options_bg.y + 40); options_music_on_btn.gotoAndStop(1); options_music_on_btn.visible = false; addChild(options_music_on_btn); options_music_on_btn_ha = new soundOnBtnHitArea(); options_music_on_btn_ha.x = options_music_on_btn.x; options_music_on_btn_ha.y = options_music_on_btn.y; options_music_on_btn_ha.alpha = 0; options_music_on_btn_ha.buttonMode = true; options_music_on_btn_ha.visible = false; addChild(options_music_on_btn_ha); options_music_on_btn_ha.addEventListener(MouseEvent.CLICK, options_music_on_btn_click); options_music_off_btn = new soundOffBtn(); options_music_off_btn.x = (options_bg.x + 35); options_music_off_btn.y = (options_bg.y + 40); options_music_off_btn.gotoAndStop(1); options_music_off_btn.visible = false; addChild(options_music_off_btn); options_music_off_btn_ha = new soundOffBtnHitArea(); options_music_off_btn_ha.x = options_music_off_btn.x; options_music_off_btn_ha.y = options_music_off_btn.y; options_music_off_btn_ha.alpha = 0; options_music_off_btn_ha.buttonMode = true; options_music_off_btn_ha.visible = false; addChild(options_music_off_btn_ha); options_music_off_btn_ha.addEventListener(MouseEvent.CLICK, options_music_off_btn_click); options_sound_on_btn = new soundOnBtn(); options_sound_on_btn.x = (options_bg.x - 7); options_sound_on_btn.y = (options_bg.y + 80); options_sound_on_btn.gotoAndStop(1); options_sound_on_btn.visible = false; addChild(options_sound_on_btn); options_sound_on_btn_ha = new soundOnBtnHitArea(); options_sound_on_btn_ha.x = options_sound_on_btn.x; options_sound_on_btn_ha.y = options_sound_on_btn.y; options_sound_on_btn_ha.alpha = 0; options_sound_on_btn_ha.buttonMode = true; options_sound_on_btn_ha.visible = false; addChild(options_sound_on_btn_ha); options_sound_on_btn_ha.addEventListener(MouseEvent.CLICK, options_sound_on_btn_click); options_sound_off_btn = new soundOffBtn(); options_sound_off_btn.x = (options_bg.x + 35); options_sound_off_btn.y = (options_bg.y + 80); options_sound_off_btn.gotoAndStop(1); options_sound_off_btn.visible = false; addChild(options_sound_off_btn); options_sound_off_btn_ha = new soundOffBtnHitArea(); options_sound_off_btn_ha.x = options_sound_off_btn.x; options_sound_off_btn_ha.y = options_sound_off_btn.y; options_sound_off_btn_ha.alpha = 0; options_sound_off_btn_ha.buttonMode = true; options_sound_off_btn_ha.visible = false; addChild(options_sound_off_btn_ha); options_sound_off_btn_ha.addEventListener(MouseEvent.CLICK, options_sound_off_btn_click); options_close_btn = new closeBtn(); options_close_btn.x = (options_bg.x + 192); options_close_btn.y = (options_bg.y + 134); options_close_btn.gotoAndStop(1); options_close_btn.visible = false; addChild(options_close_btn); options_close_btn_ha = new closeBtnHitArea(); options_close_btn_ha.x = options_close_btn.x; options_close_btn_ha.y = options_close_btn.y; options_close_btn_ha.alpha = 0; options_close_btn_ha.buttonMode = true; options_close_btn_ha.visible = false; addChild(options_close_btn_ha); options_close_btn_ha.addEventListener(MouseEvent.ROLL_OVER, options_close_btn_mouse_over); options_close_btn_ha.addEventListener(MouseEvent.ROLL_OUT, options_close_btn_mouse_out); options_close_btn_ha.addEventListener(MouseEvent.CLICK, options_close_btn_click); credits_bg = new creditsWindow(); credits_bg.x = (SCREEN_WIDTH / 2); credits_bg.y = (SCREEN_HEIGHT / 2); credits_bg.gotoAndStop(1); credits_bg.visible = false; addChild(credits_bg); credits_close_btn = new closeBtn(); credits_close_btn.x = (options_bg.x + 192); credits_close_btn.y = (options_bg.y + 134); credits_close_btn.gotoAndStop(1); credits_close_btn.visible = false; addChild(credits_close_btn); credits_close_btn_ha = new closeBtnHitArea(); credits_close_btn_ha.x = credits_close_btn.x; credits_close_btn_ha.y = credits_close_btn.y; credits_close_btn_ha.alpha = 0; credits_close_btn_ha.buttonMode = true; credits_close_btn_ha.visible = false; addChild(credits_close_btn_ha); credits_close_btn_ha.addEventListener(MouseEvent.ROLL_OVER, credits_close_btn_mouse_over); credits_close_btn_ha.addEventListener(MouseEvent.ROLL_OUT, credits_close_btn_mouse_out); credits_close_btn_ha.addEventListener(MouseEvent.CLICK, credits_close_btn_click); intro_anim = new introAnim(); intro_anim.x = (SCREEN_WIDTH / 2); intro_anim.y = ((SCREEN_HEIGHT / 2) - 15); intro_anim.gotoAndStop(1); intro_anim.visible = false; addChild(intro_anim); logo_over_text = new LogoOverText(); logo_over_text.x = (intro_anim.x + 135); logo_over_text.y = (intro_anim.y + 85); logo_over_text.gotoAndStop(1); logo_over_text.visible = false; addChild(logo_over_text); logo_ha = new logoHitArea(); logo_ha.x = intro_anim.x; logo_ha.y = intro_anim.y; logo_ha.alpha = 0; logo_ha.buttonMode = true; logo_ha.gotoAndStop(1); logo_ha.visible = false; addChild(logo_ha); logo_ha.addEventListener(MouseEvent.ROLL_OVER, logo_intro_mouse_over); logo_ha.addEventListener(MouseEvent.ROLL_OUT, logo_intro_mouse_out); logo_ha.addEventListener(MouseEvent.CLICK, logo_intro_click); achievement_box = new Sprite(); addChild(achievement_box); tmp_achievement_rectangle = new AchievementRectangle(); tmp_achievement_rectangle.x = ACHIEVEMENT_RECTANGLE_X; tmp_achievement_rectangle.y = ACHIEVEMENT_RECTANGLE_Y; tmp_achievement_rectangle.gotoAndStop(1); tmp_achievement_rectangle.visible = false; achievement_box.addChild(tmp_achievement_rectangle); achievementRectangleA.push(tmp_achievement_rectangle); tmp_achievement_rectangle_text = new TextField(); tmp_achievement_rectangle_text.x = (ACHIEVEMENT_RECTANGLE_X - 60); tmp_achievement_rectangle_text.y = (ACHIEVEMENT_RECTANGLE_Y - 30); tmp_achievement_rectangle_text.width = 120; tmp_achievement_rectangle_text.height = 20; achievement_box.addChild(tmp_achievement_rectangle_text); tmp_achievement_rectangle_text.defaultTextFormat = achievementRectangleFormat; tmp_achievement_rectangle_text.sharpness = 200; tmp_achievement_rectangle_text.thickness = -100; tmp_achievement_rectangle_text.antiAliasType = "advanced"; tmp_achievement_rectangle_text.embedFonts = true; tmp_achievement_rectangle_text.selectable = false; tmp_achievement_rectangle_text.visible = false; achievementRectangleTextA.push(tmp_achievement_rectangle_text); black_screen = new blackScreen(); black_screen.gotoAndStop(1); black_screen.visible = false; addChild(black_screen); } public function add_enemies():void{ var _local1:int; var _local2:Number; var _local3:Array; var _local4:Enemy; i = 1; while (i <= wave) { if (wave_status[i] == "started"){ _local2 = (level_frame_id - wave_start_time[i]); _local3 = wave_enemy_wait_data[i]; j = (wave_last_enemy[i] + 1); while (j <= total_wave_enemies[i]) { if (_local2 >= _local3[(j - 1)]){ _local1 = wave_enemies_type[i]; last_enemy_id++; _local4 = new Enemy(_local1, Math.round((enemies_speed[i] * 1000)), Math.round((enemies_hp[i] * 1000))); _local4.name = ("e_" + last_enemy_id); _local4.gotoAndStop(((wave_enemies_type[i] * 10) + 9)); _local4.cacheAsBitmap = true; enemies.addChild(_local4); enemy.push(_local4); active_enemies++; wave_last_enemy[i] = j; if (j == total_wave_enemies[i]){ wave_status[i] = "active"; }; }; j++; }; }; i++; }; } public function next_wave_btn_mouse_out(_arg1:MouseEvent):void{ btn_next_wave.gotoAndStop(1); } public function play_map_btn_mouse_out(_arg1:MouseEvent):void{ play_map_btn.gotoAndStop(1); } public function quit_btn_mouse_out(_arg1:MouseEvent):void{ goto_menu_btn.gotoAndStop(1); } public function options_close_btn_click(_arg1:MouseEvent):void{ options_bg.visible = false; options_low_btn.visible = false; options_low_btn_ha.visible = false; options_med_btn.visible = false; options_med_btn_ha.visible = false; options_high_btn.visible = false; options_high_btn_ha.visible = false; options_music_on_btn.visible = false; options_music_on_btn_ha.visible = false; options_music_off_btn.visible = false; options_music_off_btn_ha.visible = false; options_sound_on_btn.visible = false; options_sound_on_btn_ha.visible = false; options_sound_off_btn.visible = false; options_sound_off_btn_ha.visible = false; options_close_btn.visible = false; options_close_btn_ha.visible = false; playSound(s3); } public function new_game_btn_mouse_over(_arg1:MouseEvent):void{ new_game_btn.gotoAndStop(2); playSound(s1); } public function get_tower_id(_arg1:String):int{ var _local2:int; var _local3:int; _local3 = -1; _local2 = 0; while (_local2 < tower_turret.length) { if (tower_turret[_local2].name == _arg1){ _local3 = _local2; }; _local2++; }; return (_local3); } public function stage_click(_arg1:MouseEvent){ var _local2:*; var _local3:*; var _local4:int; var _local5:*; var _local6:Number; var _local7:int; var _local8:*; var _local9:int; var _local10:*; var _local11:int; var _local12:*; var _local13:*; var _local14:*; var _local15:int; var _local16:*; var _local17:*; var _local18:int; var _local19:TowerBase; var _local20:TowerTurret; if ((((game_status == "play")) || ((game_status == "tutorial")))){ mX = (mouseX - 5); mY = (mouseY - 5); if (build_tower > 0){ if (build_tower <= 6){ if ((((Cx >= 0)) && ((canBuildTower == true)))){ STAT_TURRETS_BUILT++; _local16 = Math.floor((TOWER_UPGRADE_PRICE[build_tower][0] * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]])); money = (money - _local16); moneyText.text = ("$" + String(int(money))); _local19 = new TowerBase(); _local19.x = (((Cx + 1) * D) + 5); _local19.y = (((Cy + 1) * D) + 5); _local19.gotoAndStop((1 + ((build_tower - 1) * 10))); _local19.cacheAsBitmap = true; tower_bases.addChild(_local19); tower_base.push(_local19); _local20 = new TowerTurret(TOWER_RANGE[build_tower][0], (TOWER_DAMAGE[build_tower][0] * TOWER_DAMAGE_MULTIPLIER[active_upgrade_level[4]]), TOWER_BULLET_SPEED[(build_tower - 1)], TOWER_RATE[build_tower][0]); _local20.x = (((Cx + 1) * D) + 5); _local20.y = (((Cy + 1) * D) + 5); _local20.gotoAndStop(build_tower); if (build_tower != 4){ _local20.rotation = 45; _local20.realRotation = 45; } else { _local20.rotation = 0; _local20.realRotation = 0; }; _local20.tower_type = build_tower; _local20.cx = Cx; _local20.cy = Cy; _local20.cacheAsBitmap = true; tower_turrets.addChild(_local20); tower_turret.push(_local20); a[Cx][Cy] = 0; a[(Cx + 1)][Cy] = 0; a[Cx][(Cy + 1)] = 0; a[(Cx + 1)][(Cy + 1)] = 0; if ((((shift_key_pressed == false)) || ((money < _local16)))){ build_tower = 0; grid.visible = false; Cx = -1; highlight_tower.visible = false; hide_interface_data(); show_default_interface(); interface_status = "towers"; } else { canBuildTower = false; }; playSound(s_40); if (show_tutorial == 1){ tutorial_page++; tutorial_window.gotoAndStop(tutorial_page); skip_btn.x = 346; skip_btn.y = 394; skip_btn_ha.x = skip_btn.x; skip_btn_ha.y = skip_btn.y; }; }; } else { if ((((((((mX >= 0)) && ((mX <= 440)))) && ((mY >= 0)))) && ((mY <= 440)))){ STAT_BOMBS_USED++; _local16 = Math.floor((TOWER_UPGRADE_PRICE[build_tower][0] * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]])); if (build_tower == 7){ _local17 = SMALL_BOMB_RADIUS[active_upgrade_level[8]]; } else { _local17 = BIG_BOMB_RADIUS[active_upgrade_level[8]]; }; _local18 = (TOWER_DAMAGE[build_tower][0] * BOMBS_DAMAGE_MULTIPLIER[active_upgrade_level[10]]); money = (money - _local16); moneyText.text = ("$" + String(int(money))); if (build_tower == 7){ add_big_explosion(mouseX, mouseY, (1.5 + (active_upgrade_level[8] / 5))); } else { _local12 = (_local17 - 20); _local13 = (7 + (active_upgrade_level[8] * 2)); _local9 = 0; while (_local9 < _local13) { _local14 = randRange(10, _local12); _local15 = ((randRange(0, 360) * Math.PI) / 180); add_big_explosion((mouseX + (Math.cos(_local15) * _local14)), (mouseY + (Math.sin(_local15) * _local14)), 2); _local9++; }; }; tmp_explosion_data = new Array(mouseX, mouseY, _local17, _local18); playSound(s_32); if ((((shift_key_pressed == false)) || ((money < _local16)))){ build_tower = 0; grid.visible = false; highlight_bomb.visible = false; hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; }; } else { if ((((((mX < 0)) || ((mX > (max_grid * D))))) || ((((mY < 0)) || ((mY > (max_grid * D))))))){ _local2 = -1; _local3 = -1; } else { _local2 = Math.floor(((mX - 0) / D)); _local3 = Math.floor(((mY - 0) / D)); if (_local2 <= 0){ _local2 = 0; }; if (_local3 <= 0){ _local3 = 0; }; if (_local2 >= (max_grid - 1)){ _local2 = (max_grid - 1); }; if (_local3 >= (max_grid - 1)){ _local3 = (max_grid - 1); }; }; _local4 = -1; _local8 = 0; while (_local8 < tower_turrets.numChildren) { if ((((tower_turret[_local8].cx == _local2)) && ((tower_turret[_local8].cy == _local3)))){ _local4 = _local8; }; if (((((tower_turret[_local8].cx + 1) == _local2)) && ((tower_turret[_local8].cy == _local3)))){ _local4 = _local8; }; if ((((tower_turret[_local8].cx == _local2)) && (((tower_turret[_local8].cy + 1) == _local3)))){ _local4 = _local8; }; if (((((tower_turret[_local8].cx + 1) == _local2)) && (((tower_turret[_local8].cy + 1) == _local3)))){ _local4 = _local8; }; _local8++; }; if (_local4 >= 0){ selected_tower = tower_turret[_local4].name; _local10 = tower_turret[_local4].tower_type; _local11 = tower_turret[_local4].tower_level; hide_interface_data(); tower_range_circle.x = tower_turret[_local4].x; tower_range_circle.y = tower_turret[_local4].y; tower_range_circle.gotoAndStop(tower_turret[_local4].range); tower_range_circle.visible = true; show_tower_data(tower_turret[_local4].tower_type, tower_turret[_local4].tower_level); upgrade_btn.visible = true; upgrade_btn_ha.visible = true; sell_btn.visible = true; sell_btn_ha.visible = true; interface_status = "tower_details"; } else { if (mouseX < 445){ selected_tower = ""; hide_interface_data(); show_default_interface(); interface_status = "towers"; }; }; _local6 = 50000; _local7 = -1; _local8 = 0; while (_local8 < enemy.length) { _local5 = get_3rd_lat(mouseX, mouseY, enemy[_local8].x, enemy[_local8].y); if (_local5 < _local6){ _local6 = _local5; _local7 = _local8; }; _local8++; }; if (_local7 >= 0){ if (_local6 > 6.25){ _local7 = -1; }; }; if (_local7 >= 0){ selected_enemy = enemy[_local7].name; hide_interface_data(); interface_status = "enemy_details"; enemy_icon.gotoAndStop(enemy[_local7].tip); enemy_icon.visible = true; enemySpeedText.text = ("Speed: " + formatNumber2Decimals((Math.round((enemy[_local7].speed * 100)) / 10))); enemyHpText.text = (formatNumber2Decimals(Math.round((enemy[_local7].health / 1000))) + " Hp"); enemySpeedText.visible = true; enemyHpText.visible = true; }; }; }; } public function showFinishLevelScreen():void{ var _local1:int; var _local2:String; status_frame++; if (status_frame == 1){ if (isKong == true){ updateKongStats(); }; }; if (status_frame == 1){ _local1 = 0; _local2 = "0"; if (lives > 0){ _local1 = Math.floor((level_score / 100)); if (_local1 < 1){ _local1 = 1; }; _local2 = formatNumber(_local1); if (level_score >= expert_score){ _local1 = (_local1 * 2); _local2 = (_local2 + " X 2"); if (level_status[level] < 3){ STAT_MISSIONS_COMPLETED_EXPERT_SCORE++; }; }; if (level_score >= expert_score){ level_status[level] = 3; } else { if (level_status[level] != 3){ level_status[level] = 2; }; }; if (level < TOTAL_LEVELS){ if (level_status[(level + 1)] == 0){ level_status[(level + 1)] = 1; }; }; }; upgrade_points = (upgrade_points + _local1); }; if (status_frame == 1){ STAT_FINISHED_GAMES_TOTAL_TIME = (STAT_FINISHED_GAMES_TOTAL_TIME + total_level_time); total_level_time = 0; }; if (status_frame == 1){ saved_data.data.totalscore = total_score; saved_data.data.upgradepoints = upgrade_points; saved_data.data.levels_status = level_status; saved_data.data.achievements_status = achievement_status; saved_data.data.active_upgrades_level = active_upgrade_level; saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME = STAT_FINISHED_GAMES_TOTAL_TIME; saved_data.data.SAVED_STAT_ENEMIES_KILLED = STAT_ENEMIES_KILLED; saved_data.data.SAVED_STAT_TURRETS_BUILT = STAT_TURRETS_BUILT; saved_data.data.SAVED_STAT_BOMBS_USED = STAT_BOMBS_USED; saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX = STAT_TURRETS_UPGRADED_TO_MAX; saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE = STAT_MISSIONS_COMPLETED_EXPERT_SCORE; saved_data.data.SAVED_STAT_OWNED_UPGRADES = STAT_OWNED_UPGRADES; saved_data.data.SAVED_STAT_VISITED_LINKS = STAT_VISITED_LINKS; saved_data.flush(); }; if (status_frame == 1){ game_music_vol = 90; ad_img.alpha = 0; ad_img.visible = false; ad_img_ha.visible = false; ad_id = randRange(1, 2); ad_img.gotoAndStop(ad_id); if (lives > 0){ if (level_score >= expert_score){ finish_level_window_bg.gotoAndStop(1); } else { finish_level_window_bg.gotoAndStop(3); ad_img.visible = true; ad_img_ha.visible = true; }; } else { finish_level_window_bg.gotoAndStop(4); ad_img.visible = true; ad_img_ha.visible = true; }; ad_img_ha.alpha = 0; finish_level_window_bg.alpha = 0; finish_level_window_bg.visible = true; black_screen_finish_window.alpha = 0; black_screen_finish_window.visible = true; levelScoreFWText.alpha = 0; expertScoreFWText.alpha = 0; totalScoreFWText.alpha = 0; pointsEarnedFWText.alpha = 0; levelScoreFWText.text = formatNumber(level_score); expertScoreFWText.text = formatNumber(expert_score); totalScoreFWText.text = formatNumber(total_score); pointsEarnedFWText.text = _local2; levelScoreFWText.visible = true; expertScoreFWText.visible = true; totalScoreFWText.visible = true; pointsEarnedFWText.visible = true; back_to_menu_btn.alpha = 0; back_to_menu_btn.visible = true; ok_btn.alpha = 0; ok_btn.visible = true; }; if (status_frame <= 10){ finish_level_window_bg.alpha = (finish_level_window_bg.alpha + 0.1); ad_img.alpha = (ad_img.alpha + 0.1); black_screen_finish_window.alpha = (black_screen_finish_window.alpha + 0.05); levelScoreFWText.alpha = (levelScoreFWText.alpha + 0.1); expertScoreFWText.alpha = (expertScoreFWText.alpha + 0.1); totalScoreFWText.alpha = (totalScoreFWText.alpha + 0.1); pointsEarnedFWText.alpha = (pointsEarnedFWText.alpha + 0.1); back_to_menu_btn.alpha = (back_to_menu_btn.alpha + 0.1); ok_btn.alpha = (ok_btn.alpha + 0.1); }; if (status_frame == 10){ finish_level_window_bg.alpha = 1; ad_img.alpha = 1; black_screen_finish_window.alpha = 0.5; levelScoreFWText.alpha = 1; expertScoreFWText.alpha = 1; totalScoreFWText.alpha = 1; pointsEarnedFWText.alpha = 1; back_to_menu_btn.alpha = 1; ok_btn.alpha = 1; back_to_menu_btn_ha.visible = true; ok_btn_ha.visible = true; }; if (status_frame > 5000){ status_frame = 5000; }; } public function cancel_tower_icon_mouse_out(_arg1:MouseEvent):void{ btn_cancel_ha.alpha = 0; } public function level_icon_mouse_over(_arg1:MouseEvent):void{ var _local2:*; var _local3:int; var _local4:levelIconHitArea; _local4 = (_arg1.currentTarget as levelIconHitArea); _local2 = int(_local4.name); level_icon_over.x = levelIconA[(_local2 - 1)].x; level_icon_over.y = levelIconA[(_local2 - 1)].y; level_icon_over.visible = true; } public function sound_btn_key_press():void{ if (sound == 1){ sound = 0; sound_btn.gotoAndStop(4); } else { if (sound == 0){ sound = 1; sound_btn.gotoAndStop(2); }; }; } public function keypress_send_next_wave():void{ if ((((wave > 0)) && ((wave < total_waves)))){ level_score = (level_score + bonus_points); total_score = (total_score + bonus_points); levelScoreText.text = formatNumber(level_score); totalScoreText.text = formatNumber(total_score); }; send_next_wave(); if (show_tutorial == 1){ show_tutorial = 0; saved_data.data.showtutorial = show_tutorial; saved_data.flush(); tutorial_window.visible = false; skip_btn.visible = false; skip_btn_ha.visible = false; start_level_time = getTimer(); total_level_time = 0; status_frame = 0; game_status = "play"; }; } public function showBombShadow():void{ var _local1:int; mX = mouseX; mY = mouseY; if ((((((((mX >= 5)) && ((mX <= 445)))) && ((mY >= 5)))) && ((mY <= 445)))){ _local1 = (active_upgrade_level[8] + 1); if (build_tower == 8){ _local1 = (_local1 + 10); }; highlight_bomb.x = mX; highlight_bomb.y = mY; highlight_bomb.gotoAndStop(_local1); highlight_bomb.visible = true; } else { highlight_bomb.visible = false; }; } public function options_close_btn_mouse_out(_arg1:MouseEvent):void{ options_close_btn.gotoAndStop(1); } public function add_game_btn_mouse_out(_arg1:MouseEvent):void{ add_game_btn.gotoAndStop(1); } public function instructions_close_btn_mouse_over(_arg1:MouseEvent):void{ instructions_close_btn.gotoAndStop(2); playSound(s1); } public function credits_close_btn_mouse_out(_arg1:MouseEvent):void{ credits_close_btn.gotoAndStop(1); } public function ok_btn_mouse_out(_arg1:MouseEvent):void{ ok_btn.gotoAndStop(1); } public function upgrades_btn_click(_arg1:MouseEvent):void{ game_status = "upgrades_window"; status_frame = 0; playSound(s3); } public function showTutorial():void{ status_frame++; just_clicked_upgrade_tower = false; if (status_frame == 1){ tutorial_page = 1; tutorial_window.alpha = 0; skip_btn.alpha = 0; tutorial_window.visible = true; skip_btn.visible = true; }; if ((((status_frame >= 1)) && ((status_frame < 5)))){ tutorial_window.alpha = (tutorial_window.alpha + 0.2); skip_btn.alpha = (skip_btn.alpha + 0.2); }; if (status_frame == 5){ tutorial_window.alpha = 1; skip_btn.alpha = 1; skip_btn_ha.visible = true; }; if (build_tower > 0){ if (build_tower <= 6){ showTowerShadow(); } else { showBombShadow(); }; }; updateInterface(); } public function options_btn_click(_arg1:MouseEvent):void{ if (quality == 1){ options_low_btn.gotoAndStop(1); } else { options_low_btn.gotoAndStop(2); }; if (quality == 2){ options_med_btn.gotoAndStop(1); } else { options_med_btn.gotoAndStop(2); }; if (quality == 3){ options_high_btn.gotoAndStop(1); } else { options_high_btn.gotoAndStop(2); }; if (music == 0){ options_music_on_btn.gotoAndStop(2); options_music_off_btn.gotoAndStop(1); }; if (music == 1){ options_music_on_btn.gotoAndStop(1); options_music_off_btn.gotoAndStop(2); }; if (sound == 0){ options_sound_on_btn.gotoAndStop(2); options_sound_off_btn.gotoAndStop(1); }; if (sound == 1){ options_sound_on_btn.gotoAndStop(1); options_sound_off_btn.gotoAndStop(2); }; options_bg.visible = true; options_low_btn.visible = true; options_low_btn_ha.visible = true; options_med_btn.visible = true; options_med_btn_ha.visible = true; options_high_btn.visible = true; options_high_btn_ha.visible = true; options_music_on_btn.visible = true; options_music_on_btn_ha.visible = true; options_music_off_btn.visible = true; options_music_off_btn_ha.visible = true; options_sound_on_btn.visible = true; options_sound_on_btn_ha.visible = true; options_sound_off_btn.visible = true; options_sound_off_btn_ha.visible = true; options_close_btn.visible = true; options_close_btn_ha.visible = true; playSound(s3); } public function options_btn_mouse_over(_arg1:MouseEvent):void{ options_btn.gotoAndStop(2); playSound(s1); } public function goto_menu_from_pause_screen_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "init_menu"; game_music_vol = 90; playSound(s3); } public function updateExplosions():void{ var _local1:Array; var _local2:int; _local1 = new Array(); i = 0; while (i < explosionA.length) { explosionA[i].frame_id++; if (explosionA[i].frame_id >= 20){ _local1.push(i); }; i++; }; _local1.sort((Array.DESCENDING | Array.NUMERIC)); if (_local1.length > 0){ i = 0; while (i < _local1.length) { _local2 = _local1[i]; explosions.removeChild(explosionA[_local2]); explosionA.splice(_local2, 1); i++; }; }; } public function updateKongStats():void{ var _local1:int; var _local2:int; _local2 = 0; _local1 = 1; while (_local1 <= TOTAL_ACHIEVEMENTS) { if (achievement_status[_local1] > 0){ _local2++; }; _local1++; }; kongregate.stats.submit("total_score", total_score); kongregate.stats.submit("missions_fisished_expert", STAT_MISSIONS_COMPLETED_EXPERT_SCORE); kongregate.stats.submit("total_achievements", _local2); kongregate.stats.submit("total_enemies_killed", STAT_ENEMIES_KILLED); kongregate.stats.submit("total_turrets_built", STAT_TURRETS_BUILT); kongregate.stats.submit("total_bombs_used", STAT_BOMBS_USED); kongregate.stats.submit("total_turrets_maxed_out", STAT_TURRETS_UPGRADED_TO_MAX); kongregate.stats.submit("total_upgrades_owned", STAT_OWNED_UPGRADES); } public function getEnemyInitialHp(_arg1:int, _arg2:int, _arg3:int):int{ var _local4:int; _local4 = enemy_starter_hp[(_arg1 - 1)]; _local4 = (_local4 * (1 + ((_arg2 - 1) * 0.1))); _local4 = (_local4 * (1 + ((_arg3 - 1) * 0.65))); _local4 = Math.round(_local4); return (_local4); } public function clickUpgradeBox(_arg1:MouseEvent):void{ var _local2:int; var _local3:UpgradeBoxHitArea; var _local4:*; var _local5:*; var _local6:int; var _local7:int; _local3 = (_arg1.currentTarget as UpgradeBoxHitArea); _local2 = int(_local3.name); _local4 = (int(_local3.upgrade_type) + 1); _local5 = int(_local3.upgrade_level); _local6 = BUY_UPGRADE_PRICE[_local4][_local5]; if ((((upgrade_points >= _local6)) && ((active_upgrade_level[_local4] < (_local5 + 1))))){ _local7 = active_upgrade_level[_local4]; upgrade_points = (upgrade_points - _local6); upgradePointsText.text = ("Upgrade Points: " + upgrade_points); active_upgrade_level[_local4] = (_local5 + 1); k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; _local6 = BUY_UPGRADE_PRICE[(i + 1)][j]; if (active_upgrade_level[(i + 1)] > (j + 0)){ boxUpgradeA[(k - 1)].gotoAndStop(3); boxUpgradeHaA[(k - 1)].buttonMode = false; } else { if (upgrade_points >= _local6){ boxUpgradeA[(k - 1)].gotoAndStop(2); boxUpgradeHaA[(k - 1)].buttonMode = true; } else { boxUpgradeA[(k - 1)].gotoAndStop(1); boxUpgradeHaA[(k - 1)].buttonMode = false; }; }; j++; }; i++; }; STAT_OWNED_UPGRADES = (STAT_OWNED_UPGRADES + (active_upgrade_level[_local4] - _local7)); saved_data.data.totalscore = total_score; saved_data.data.upgradepoints = upgrade_points; saved_data.data.levels_status = level_status; saved_data.data.achievements_status = achievement_status; saved_data.data.active_upgrades_level = active_upgrade_level; saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME = STAT_FINISHED_GAMES_TOTAL_TIME; saved_data.data.SAVED_STAT_ENEMIES_KILLED = STAT_ENEMIES_KILLED; saved_data.data.SAVED_STAT_TURRETS_BUILT = STAT_TURRETS_BUILT; saved_data.data.SAVED_STAT_BOMBS_USED = STAT_BOMBS_USED; saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX = STAT_TURRETS_UPGRADED_TO_MAX; saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE = STAT_MISSIONS_COMPLETED_EXPERT_SCORE; saved_data.data.SAVED_STAT_OWNED_UPGRADES = STAT_OWNED_UPGRADES; saved_data.data.SAVED_STAT_VISITED_LINKS = STAT_VISITED_LINKS; saved_data.flush(); }; } public function instructions_close_btn_click(_arg1:MouseEvent):void{ instructions_bg.visible = false; instructions_close_btn_ha.visible = false; instructions_close_btn.visible = false; playSound(s3); } public function clicklevelIcon(_arg1:MouseEvent):void{ var _local2:levelIconHitArea; _local2 = (_arg1.currentTarget as levelIconHitArea); selected_level = int(_local2.name); level_icon_selected.x = levelIconA[(selected_level - 1)].x; level_icon_selected.y = levelIconA[(selected_level - 1)].y; } public function calculateTotalTowerPrice(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:int; _local3 = 0; _local4 = 0; while (_local4 < _arg2) { _local3 = (_local3 + Math.floor((TOWER_UPGRADE_PRICE[_arg1][_local4] * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]))); _local4++; }; return (_local3); } public function resume_btn_mouse_out(_arg1:MouseEvent):void{ resume_btn.gotoAndStop(1); } public function new_game_btn_mouse_out(_arg1:MouseEvent):void{ new_game_btn.gotoAndStop(1); } public function restart_btn_mouse_over(_arg1:MouseEvent):void{ restart_btn.gotoAndStop(2); playSound(s1); } public function achievement_box_mouse_over(_arg1:MouseEvent){ var _local2:AchievementBoxHitArea; var _local3:int; _local2 = (_arg1.currentTarget as AchievementBoxHitArea); _local3 = (int(_local2.name) - 1); if (achievement_status[(_local3 + 1)] > 0){ achievementBoxA[_local3].alpha = 0.7; achievementTextA[_local3].visible = true; achievement_desc_text.text = ACHIEVEMENT_DESCRIPTION[_local3]; achievement_desc_text.visible = true; }; playSound(s1); } public function confirm_yes_btn_mouse_over(_arg1:MouseEvent):void{ confirm_delete_yes_btn.gotoAndStop(2); playSound(s1); } public function playSound(_arg1:Object):void{ var _local2:SoundChannel; if (sound == 1){ _local2 = _arg1.play(); }; } public function main_menu_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; game_status = "init_menu"; status_frame = 0; play_map_btn_ha.visible = false; main_menu_btn_ha.visible = false; playSound(s3); } public function continue_game_btn_mouse_over(_arg1:MouseEvent):void{ continue_game_btn.gotoAndStop(2); playSound(s1); } public function showTowerShadow():void{ var _local1:int; mX = (mouseX - 5); mY = (mouseY - 5); oldCx = Cx; oldCy = Cy; if ((((((mX < 0)) || ((mX > (max_grid * D))))) || ((((mY < 0)) || ((mY > (max_grid * D))))))){ Cx = -1; Cy = -1; } else { Cx = Math.floor(((mX - 10) / D)); Cy = Math.floor(((mY - 10) / D)); if (Cx <= 0){ Cx = 0; }; if (Cy <= 0){ Cy = 0; }; if (Cx >= (max_grid - 2)){ Cx = (max_grid - 2); }; if (Cy >= (max_grid - 2)){ Cy = (max_grid - 2); }; }; if (!(((Cx == oldCx)) && ((Cy == oldCy)))){ if (Cx >= 0){ canBuildTower = true; if (a[Cx][Cy] == 0){ canBuildTower = false; }; if (a[(Cx + 1)][Cy] == 0){ canBuildTower = false; }; if (a[Cx][(Cy + 1)] == 0){ canBuildTower = false; }; if (a[(Cx + 1)][(Cy + 1)] == 0){ canBuildTower = false; }; _local1 = build_tower; if (canBuildTower == false){ _local1 = (_local1 + 10); }; highlight_tower.x = (((Cx + 1) * D) + 5); highlight_tower.y = (((Cy + 1) * D) + 5); highlight_tower.gotoAndStop(_local1); highlight_tower.visible = true; } else { highlight_tower.visible = false; }; }; } public function ad_click(_arg1:MouseEvent):void{ var _local2:String; var _local3:URLRequest; if (ad_id == 1){ _local2 = "http://www.zupergames.net"; } else { _local2 = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BH6KGXAA2UVW"; }; _local3 = new URLRequest(_local2); navigateToURL(_local3); playSound(s3); } public function upgrade_btn_mouse_over(_arg1:MouseEvent):void{ upgrade_btn.gotoAndStop(2); playSound(s1); } public function updateInterface():void{ var _local1:*; var _local2:int; if (interface_status == "towers"){ show_default_interface(); }; if (interface_status == "enemy_details"){ _local1 = get_enemy_id(selected_enemy); enemySpeedText.text = ("Speed: " + formatNumber2Decimals((Math.round((enemy[_local1].speed * 100)) / 10))); enemyHpText.text = (formatNumber2Decimals(Math.round((enemy[_local1].health / 1000))) + " Hp"); if (enemy[_local1].slow_down_timer > 0){ enemy_slowed_down_icon.visible = true; } else { enemy_slowed_down_icon.visible = false; }; if (enemy[_local1].poison_damage > 0){ enemy_poisoned_icon.visible = true; } else { enemy_poisoned_icon.visible = false; }; }; if (interface_status == "tower_details"){ _local2 = get_tower_id(selected_tower); show_tower_data(tower_turret[_local2].tower_type, tower_turret[_local2].tower_level); }; if (wave > 0){ bonus_delay--; if (bonus_delay == 0){ bonus_delay = BONUS_DELAY; bonus_points = (bonus_points - 2); if (bonus_points >= 0){ if (wave < total_waves){ bonus_points_text.text = (("+ " + bonus_points) + " p"); }; } else { if (wave < total_waves){ send_next_wave(); }; }; }; }; last_frame_interface_status = interface_status; } public function tower_icon_mouse_over(_arg1:MouseEvent):void{ var _local2:towerBtnHitArea; var _local3:int; var _local4:Array; var _local5:int; _local2 = (_arg1.currentTarget as towerBtnHitArea); _local3 = int(_local2.name); towerIconA[(_local3 - 1)].gotoAndStop((_local3 + 10)); mouse_over_btn_id = _local3; building_tower_desc.gotoAndStop(_local3); building_tower_desc.visible = true; _local4 = TOWER_UPGRADE_PRICE[_local3]; _local5 = _local4[0]; if (_local3 <= 6){ _local5 = (_local5 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); } else { _local5 = (_local5 * BOMBS_COST_MULTIPLIER[active_upgrade_level[9]]); }; _local5 = Math.floor(_local5); towerPriceText.text = String(_local5); towerPriceText.visible = true; playSound(s1); } public function cancel_tower_icon_mouse_over(_arg1:MouseEvent):void{ btn_cancel_ha.alpha = 0.2; playSound(s1); } public function clickSellTower(_arg1:MouseEvent):void{ var _local2:*; var _local3:int; var _local4:*; var _local5:int; _local2 = get_tower_id(selected_tower); _local3 = TOWER_UPGRADE_PRICE[tower_turret[_local2].tower_type][(tower_turret[_local2].tower_level - 1)]; if (tower_turret[_local2].tower_type <= 6){ _local3 = (_local3 * FIRST_6_TOWERS_COST_MULTIPLIER[active_upgrade_level[2]]); }; _local3 = Math.floor(_local3); money = (money + int((0.75 * _local3))); moneyText.text = ("$" + String(int(money))); _local4 = tower_turret[_local2].cx; _local5 = tower_turret[_local2].cy; a[_local4][_local5] = 1; a[(_local4 + 1)][_local5] = 1; a[_local4][(_local5 + 1)] = 1; a[(_local4 + 1)][(_local5 + 1)] = 1; tower_bases.removeChild(tower_base[_local2]); tower_base.splice(_local2, 1); tower_turrets.removeChild(tower_turret[_local2]); tower_turret.splice(_local2, 1); selected_tower = ""; hide_interface_data(); show_default_interface(); interface_status = "towers"; } public function sell_btn_mouse_over(_arg1:MouseEvent):void{ sell_btn.gotoAndStop(2); playSound(s1); } public function level_icon_mouse_out(_arg1:MouseEvent):void{ level_icon_over.visible = false; } public function clickTowerIcon(_arg1:MouseEvent):void{ var _local2:towerBtnHitArea; _local2 = (_arg1.currentTarget as towerBtnHitArea); build_tower = int(_local2.name); if (build_tower <= 6){ grid.visible = true; }; hide_interface_data(); building_single_tower_title.gotoAndStop(build_tower); building_single_tower_title.visible = true; btn_cancel.visible = true; btn_cancel_ha.visible = true; interface_status = "build_tower"; if (show_tutorial == 1){ tutorial_page++; tutorial_window.gotoAndStop(tutorial_page); skip_btn.x = 346; skip_btn.y = 324; skip_btn_ha.x = skip_btn.x; skip_btn_ha.y = skip_btn.y; }; } public function options_music_on_btn_click(_arg1:MouseEvent):void{ if (music == 0){ music = 1; music_channel = m1.play(0, 200); }; options_music_on_btn.gotoAndStop(1); options_music_off_btn.gotoAndStop(2); } public function play_btn_click(_arg1:MouseEvent):void{ play_btn_ha.visible = false; instructions_btn_ha.visible = false; options_btn_ha.visible = false; credits_btn_ha.visible = false; bg_new_game_window.visible = true; new_game_btn.gotoAndStop(1); new_game_btn.visible = true; new_game_btn_ha.visible = true; if (saved_data.data.levels_status != null){ continue_game_btn.gotoAndStop(1); continue_game_btn.visible = true; continue_game_btn_ha.visible = true; } else { continue_game_btn.gotoAndStop(3); continue_game_btn.visible = true; continue_game_btn_ha.visible = false; }; playSound(s3); } public function showMenu():void{ status_frame++; if (status_frame == 1){ black_screen.alpha = 0; black_screen.visible = true; }; if ((((status_frame >= 1)) && ((status_frame < 5)))){ black_screen.alpha = (black_screen.alpha + 0.2); }; if (status_frame == 5){ black_screen.alpha = 1; if (old_game_status == "intro_screen"){ intro_anim.visible = false; intro_play_btn.visible = false; }; if (old_game_status == "paused"){ clearGameGraphics(); black_screen_pause_window.visible = false; pause_window.visible = false; resume_btn.visible = false; resume_btn_ha.visible = false; restart_btn.visible = false; restart_btn_ha.visible = false; goto_menu_btn.visible = false; goto_menu_btn_ha.visible = false; }; if ((((old_game_status == "level_select")) || ((old_game_status == "level_select_window")))){ hideLevelSelectWindow(); }; map_window_bg.visible = false; map_btn.visible = false; upgrades_btn.visible = false; achievements_anim.visible = false; awards_btn.visible = false; main_menu_btn.visible = false; play_map_btn.visible = false; main_menu_btn_ha.visible = false; play_map_btn_ha.visible = false; upgrade_names.visible = false; legend.visible = false; upgradeDetailsText.text = ""; upgradeDetailsText.visible = false; upgradePriceText.text = ""; upgradePriceText.visible = false; upgradePointsText.text = ""; upgradePointsText.visible = false; k = 0; i = 0; while (i < TOTAL_UPGRADE_TYPES) { j = 0; while (j < TOTAL_UPGRADES[i]) { k++; boxUpgradeA[(k - 1)].visible = false; boxUpgradeHaA[(k - 1)].visible = false; j++; }; i++; }; k = 0; j = 1; while (j <= TOTAL_V_ACHIEVEMENT_BOXES) { i = 1; while (i <= TOTAL_H_ACHIEVEMENT_BOXES) { k++; achievementBoxBgA[(k - 1)].visible = false; achievementBoxA[(k - 1)].visible = false; achievementBoxHaA[(k - 1)].visible = false; i++; }; j++; }; grid.visible = false; if (old_game_status == "end_level"){ clearGameGraphics(); finish_level_window_bg.visible = false; ad_img.visible = false; ad_img_ha.visible = false; black_screen_finish_window.visible = false; levelScoreFWText.visible = false; expertScoreFWText.visible = false; totalScoreFWText.visible = false; pointsEarnedFWText.visible = false; back_to_menu_btn.visible = false; back_to_menu_btn_ha.visible = false; ok_btn.visible = false; ok_btn_ha.visible = false; }; main_menu_bg.visible = true; play_btn.visible = true; play_btn_ha.visible = true; instructions_btn.visible = true; instructions_btn_ha.visible = true; options_btn.visible = true; options_btn_ha.visible = true; credits_btn.visible = true; credits_btn_ha.visible = true; go_home_btn.visible = true; go_home_btn_ha.visible = true; add_game_btn.visible = true; add_game_btn_ha.visible = true; if (old_game_status == "intro_screen"){ if (music == 1){ music_channel = m1.play(0, 200); }; }; }; if ((((status_frame >= 6)) && ((status_frame < 10)))){ black_screen.alpha = (black_screen.alpha - 0.2); }; if (status_frame == 10){ black_screen.alpha = 0; black_screen.visible = false; }; } public function map_btn_click(_arg1:MouseEvent):void{ game_status = "level_select_window"; status_frame = 0; playSound(s3); } public function sound_btn_click(_arg1:MouseEvent):void{ if (sound == 1){ sound = 0; sound_btn.gotoAndStop(4); } else { if (sound == 0){ sound = 1; sound_btn.gotoAndStop(2); }; }; playSound(s3); } public function showIntroScreen():void{ var _local1:ag_intro_mc; status_frame++; if (status_frame == 1){ intro_play_btn.visible = false; intro_play_btn_ha.visible = false; _local1 = new ag_intro_mc(); _local1.x = 280; _local1.y = 225; addChild(_local1); tmp_display_object_list.push(_local1); }; if (status_frame == 219){ removeChild(tmp_display_object_list[0]); }; if (status_frame == 220){ intro_anim.gotoAndPlay(2); intro_anim.visible = true; logo_ha.visible = true; }; if (status_frame == 395){ logo_ha.visible = false; logo_over_text.visible = false; }; if (status_frame == 400){ logo_ha.visible = false; logo_over_text.visible = false; old_game_status = "intro_screen"; status_frame = 0; game_status = "init_menu"; }; } public function pause_btn_click(_arg1:MouseEvent):void{ if (game_status == "play"){ pause_frame = 0; game_status = "paused"; black_screen_pause_window.alpha = 0.5; black_screen_pause_window.visible = true; }; playSound(s3); } public function hide_next_wave_box():void{ next_wave_title_text.text = ""; next_wave_title_text.visible = false; next_wave_enemy_count.visible = false; next_wave_enemy_icon.visible = false; next_wave_enemies_hp_text.text = ""; next_wave_enemies_hp_text.visible = false; next_wave_enemies_speed_text.text = ""; next_wave_enemies_speed_text.visible = false; btn_next_wave.visible = false; btn_next_wave_ha.visible = false; bonus_points_text.text = ""; bonus_points_text.visible = false; } public function skip_btn_click(_arg1:MouseEvent):void{ tutorial_window.visible = false; skip_btn.visible = false; skip_btn_ha.visible = false; show_tutorial = 0; saved_data.data.showtutorial = show_tutorial; saved_data.flush(); start_level_time = getTimer(); total_level_time = 0; status_frame = 0; game_status = "play"; playSound(s3); } public function music_btn_mouse_over(_arg1:MouseEvent):void{ if (music == 1){ music_btn.gotoAndStop(2); } else { music_btn.gotoAndStop(4); }; playSound(s1); } public function options_med_btn_click(_arg1:MouseEvent):void{ quality = 2; stage.quality = StageQuality.MEDIUM; options_low_btn.gotoAndStop(2); options_med_btn.gotoAndStop(1); options_high_btn.gotoAndStop(2); } public function ok_btn_click(_arg1:MouseEvent):void{ old_game_status = game_status; status_frame = 0; game_status = "init_upgrades_window"; game_music_vol = 90; playSound(s3); } public function options_music_off_btn_click(_arg1:MouseEvent):void{ music = 0; music_channel.stop(); options_music_on_btn.gotoAndStop(2); options_music_off_btn.gotoAndStop(1); } public function options_high_btn_click(_arg1:MouseEvent):void{ quality = 3; stage.quality = StageQuality.HIGH; options_low_btn.gotoAndStop(2); options_med_btn.gotoAndStop(2); options_high_btn.gotoAndStop(1); } public function cancelBuildTower():void{ build_tower = 0; grid.visible = false; Cx = -1; highlight_bomb.visible = false; highlight_tower.visible = false; building_single_tower_title.visible = false; btn_cancel.visible = false; btn_cancel_ha.visible = false; show_default_interface(); interface_status = "towers"; } public function add_big_explosion(_arg1:int, _arg2:int, _arg3:Number):void{ var _local4:ExplosionBig; _local4 = new ExplosionBig(); _local4.x = _arg1; _local4.y = _arg2; _local4.scaleX = _arg3; _local4.scaleY = _arg3; _local4.frame_id = 0; _local4.gotoAndPlay(1); explosions.addChild(_local4); explosionA.push(_local4); } public function loadStoredData():void{ total_score = saved_data.data.totalscore; upgrade_points = saved_data.data.upgradepoints; show_tutorial = saved_data.data.showtutorial; level_status = saved_data.data.levels_status; achievement_status = saved_data.data.achievements_status; active_upgrade_level = saved_data.data.active_upgrades_level; STAT_FINISHED_GAMES_TOTAL_TIME = saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME; STAT_ENEMIES_KILLED = saved_data.data.SAVED_STAT_ENEMIES_KILLED; STAT_TURRETS_BUILT = saved_data.data.SAVED_STAT_TURRETS_BUILT; STAT_BOMBS_USED = saved_data.data.SAVED_STAT_BOMBS_USED; STAT_TURRETS_UPGRADED_TO_MAX = saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX; STAT_MISSIONS_COMPLETED_EXPERT_SCORE = saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE; STAT_OWNED_UPGRADES = saved_data.data.SAVED_STAT_OWNED_UPGRADES; STAT_VISITED_LINKS = saved_data.data.SAVED_STAT_VISITED_LINKS; } public function clearGameGraphics():void{ var _local1:int; map.visible = false; lives_left.visible = false; destination.visible = false; interface_bg.visible = false; hide_interface_data(); moneyText.visible = false; score_titles.visible = false; levelScoreText.visible = false; expertScoreText.visible = false; totalScoreText.visible = false; pause_btn.visible = false; pause_btn_ha.visible = false; sound_btn.visible = false; sound_btn_ha.visible = false; music_btn.visible = false; music_btn_ha.visible = false; _local1 = 0; while (_local1 < 3) { speedButtonA[_local1].visible = false; speedButtonHaA[_local1].visible = false; _local1++; }; next_wave_title_text.visible = false; next_wave_enemy_count.visible = false; next_wave_enemy_icon.visible = false; next_wave_enemies_hp_text.text = ""; next_wave_enemies_hp_text.visible = false; next_wave_enemies_speed_text.text = ""; next_wave_enemies_speed_text.visible = false; btn_next_wave.visible = false; btn_next_wave_ha.visible = false; bonus_points_text.text = ""; bonus_points_text.visible = false; while (tower_bases.numChildren) { tower_bases.removeChildAt(0); }; while (tower_turrets.numChildren) { tower_turrets.removeChildAt(0); }; tower_base = new Array(); tower_turret = new Array(); while (bullets.numChildren) { bullets.removeChildAt(0); }; bullet = new Array(); while (enemies.numChildren) { enemies.removeChildAt(0); }; enemy = new Array(); while (explosions.numChildren) { explosions.removeChildAt(0); }; explosionA = new Array(); highlight_tower.visible = false; grid.visible = false; highlight_bomb.visible = false; } public function continue_game_btn_mouse_out(_arg1:MouseEvent):void{ continue_game_btn.gotoAndStop(1); } public function initOnce():void{ old_game_status = "none"; status_frame = 0; game_status = "intro_screen"; old_page = ""; current_page = ""; explosionA = new Array(); max_grid = 22; music_frame = -1; shift_key_pressed = false; mouse_over_btn_id = -1; achievementList = new Array(); tutorial_page = 1; frame_id = 0; total_score = 0; show_tutorial = 1; upgrade_points = -1; level_status = saved_data.data.levels_status; if (level_status == null){ STAT_FINISHED_GAMES_TOTAL_TIME = 0; STAT_ENEMIES_KILLED = 0; STAT_TURRETS_BUILT = 0; STAT_BOMBS_USED = 0; STAT_TURRETS_UPGRADED_TO_MAX = 0; STAT_MISSIONS_COMPLETED_EXPERT_SCORE = 0; STAT_OWNED_UPGRADES = 0; STAT_VISITED_LINKS = 0; } else { STAT_FINISHED_GAMES_TOTAL_TIME = saved_data.data.SAVED_STAT_FINISHED_GAMES_TOTAL_TIME; STAT_ENEMIES_KILLED = saved_data.data.SAVED_STAT_ENEMIES_KILLED; STAT_TURRETS_BUILT = saved_data.data.SAVED_STAT_TURRETS_BUILT; STAT_BOMBS_USED = saved_data.data.SAVED_STAT_BOMBS_USED; STAT_TURRETS_UPGRADED_TO_MAX = saved_data.data.SAVED_STAT_TURRETS_UPGRADED_TO_MAX; STAT_MISSIONS_COMPLETED_EXPERT_SCORE = saved_data.data.SAVED_STAT_MISSIONS_COMPLETED_EXPERT_SCORE; STAT_OWNED_UPGRADES = saved_data.data.SAVED_STAT_OWNED_UPGRADES; STAT_VISITED_LINKS = saved_data.data.SAVED_STAT_VISITED_LINKS; }; activeAchievementRectangle = false; achievement_status = new Array(); i = 1; while (i <= TOTAL_ACHIEVEMENTS) { achievement_status[i] = 0; i++; }; active_upgrade_level = new Array(); i = 1; while (i <= TOTAL_UPGRADE_TYPES) { active_upgrade_level[i] = 0; i++; }; level_status = new Array(); i = 1; while (i <= TOTAL_LEVELS) { level_status[i] = 0; i++; }; level_status[1] = 1; last_enemy_id = 100; last_bullet_id = 100; music = 1; sound = 1; quality = 3; if (isKong == true){ updateKongStats(); }; } public function instructions_btn_mouse_over(_arg1:MouseEvent):void{ instructions_btn.gotoAndStop(2); playSound(s1); } public function credits_btn_mouse_out(_arg1:MouseEvent):void{ credits_btn.gotoAndStop(1); } public function instructions_btn_click(_arg1:MouseEvent):void{ instructions_bg.visible = true; instructions_close_btn_ha.visible = true; instructions_close_btn.visible = true; playSound(s3); } public function addAchievement(_arg1:int):void{ achievement_status[_arg1] = 2; achievementList.push(_arg1); } } }//package miniTowerDefencearmor1_flaSection 2//AchievementBg (AchievementBg) package { import flash.display.*; public dynamic class AchievementBg extends MovieClip { } }//packageSection 3//AchievementBox (AchievementBox) package { import flash.display.*; public dynamic class AchievementBox extends MovieClip { } }//packageSection 4//AchievementBoxHitArea (AchievementBoxHitArea) package { import flash.display.*; public dynamic class AchievementBoxHitArea extends MovieClip { } }//packageSection 5//AchievementRectangle (AchievementRectangle) package { import flash.display.*; public class AchievementRectangle extends MovieClip { public var frame_id:int; public var speed:Number; public function AchievementRectangle():void{ } } }//packageSection 6//achievementsAnim (achievementsAnim) package { import flash.display.*; public dynamic class achievementsAnim extends MovieClip { } }//packageSection 7//Ad (Ad) package { import flash.display.*; public dynamic class Ad extends MovieClip { } }//packageSection 8//addGameBtn (addGameBtn) package { import flash.display.*; public dynamic class addGameBtn extends MovieClip { } }//packageSection 9//addGameBtnHitArea (addGameBtnHitArea) package { import flash.display.*; public dynamic class addGameBtnHitArea extends MovieClip { } }//packageSection 10//ag_intro_mc (ag_intro_mc) package { import flash.display.*; public dynamic class ag_intro_mc extends MovieClip { public function ag_intro_mc(){ addFrameScript(0, frame1, 217, frame218); } function frame218(){ stop(); } function frame1(){ } } }//packageSection 11//bgConfirmDeleteWindow (bgConfirmDeleteWindow) package { import flash.display.*; public dynamic class bgConfirmDeleteWindow extends MovieClip { } }//packageSection 12//bgNewGameWindow (bgNewGameWindow) package { import flash.display.*; public dynamic class bgNewGameWindow extends MovieClip { } }//packageSection 13//blackScreen (blackScreen) package { import flash.display.*; public dynamic class blackScreen extends MovieClip { } }//packageSection 14//borderLoadBar (borderLoadBar) package { import flash.display.*; public dynamic class borderLoadBar extends MovieClip { } }//packageSection 15//BtnAwards (BtnAwards) package { import flash.display.*; public dynamic class BtnAwards extends SimpleButton { } }//packageSection 16//BtnBackToMenu (BtnBackToMenu) package { import flash.display.*; public dynamic class BtnBackToMenu extends MovieClip { } }//packageSection 17//BtnBackToMenuHitArea (BtnBackToMenuHitArea) package { import flash.display.*; public dynamic class BtnBackToMenuHitArea extends MovieClip { } }//packageSection 18//btnCancel (btnCancel) package { import flash.display.*; public dynamic class btnCancel extends MovieClip { } }//packageSection 19//btnCancelHitArea (btnCancelHitArea) package { import flash.display.*; public dynamic class btnCancelHitArea extends MovieClip { } }//packageSection 20//BtnMainMenu (BtnMainMenu) package { import flash.display.*; public dynamic class BtnMainMenu extends MovieClip { } }//packageSection 21//BtnMainMenuHitArea (BtnMainMenuHitArea) package { import flash.display.*; public dynamic class BtnMainMenuHitArea extends MovieClip { } }//packageSection 22//BtnMap (BtnMap) package { import flash.display.*; public dynamic class BtnMap extends SimpleButton { } }//packageSection 23//BtnUpgrades (BtnUpgrades) package { import flash.display.*; public dynamic class BtnUpgrades extends SimpleButton { } }//packageSection 24//BuildingTowerDesc (BuildingTowerDesc) package { import flash.display.*; public dynamic class BuildingTowerDesc extends MovieClip { } }//packageSection 25//BuildingTowerTitle (BuildingTowerTitle) package { import flash.display.*; public dynamic class BuildingTowerTitle extends MovieClip { } }//packageSection 26//Bullet (Bullet) package { import flash.display.*; public class Bullet extends MovieClip { public var startX:int; public var bullet_type:int; public var speed:int; public var startY:int; public var damage:int; public var realY:int; public var e_target_name:String; public var realX:int; public var angle_rad:int; public var total_dist:int; public var endX:int; public var endY:int; public function Bullet(_arg1:String, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):void{ this.e_target_name = _arg1; this.damage = _arg2; this.speed = _arg3; this.startX = _arg4; this.startY = _arg5; this.endX = _arg6; this.endY = _arg7; this.angle_rad = Math.round((Math.atan2((_arg7 - _arg5), (_arg6 - _arg4)) * 1000)); this.total_dist = Math.round((Math.sqrt((((_arg6 - _arg4) * (_arg6 - _arg4)) + ((_arg7 - _arg5) * (_arg7 - _arg5)))) * 1000)); } } }//packageSection 27//Circle (Circle) package { import flash.display.*; public dynamic class Circle extends MovieClip { } }//packageSection 28//closeBtn (closeBtn) package { import flash.display.*; public dynamic class closeBtn extends MovieClip { } }//packageSection 29//closeBtnHitArea (closeBtnHitArea) package { import flash.display.*; public dynamic class closeBtnHitArea extends MovieClip { } }//packageSection 30//continueGameBtn (continueGameBtn) package { import flash.display.*; public dynamic class continueGameBtn extends MovieClip { } }//packageSection 31//creditsBtn (creditsBtn) package { import flash.display.*; public dynamic class creditsBtn extends MovieClip { } }//packageSection 32//creditsBtnHitArea (creditsBtnHitArea) package { import flash.display.*; public dynamic class creditsBtnHitArea extends MovieClip { } }//packageSection 33//creditsWindow (creditsWindow) package { import flash.display.*; public dynamic class creditsWindow extends MovieClip { } }//packageSection 34//Destination (Destination) package { import flash.display.*; public dynamic class Destination extends MovieClip { } }//packageSection 35//Enemy (Enemy) package { import flash.display.*; public class Enemy extends MovieClip { public var dev:int; public var pos:int; public var speed:int; public var old_realY:int; public var slow_down_timer:int; public var old_realX:int; public var health:int; public var init_speed:int; public var realY:int; public var realX:int; public var tip:int; public var poison_damage:int; public function Enemy(_arg1:int, _arg2:int, _arg3:int):void{ addFrameScript(18, frame19, 28, frame29, 38, frame39, 48, frame49, 58, frame59, 68, frame69, 78, frame79, 88, frame89, 98, frame99, 118, frame119, 128, frame129, 138, frame139, 148, frame149, 158, frame159, 168, frame169, 178, frame179, 188, frame189, 198, frame199, 218, frame219, 228, frame229, 238, frame239, 248, frame249, 258, frame259, 268, frame269, 278, frame279, 288, frame289, 298, frame299); this.pos = 0; this.tip = _arg1; this.speed = _arg2; this.init_speed = _arg2; this.health = _arg3; this.dev = ((Math.round((((Math.random() * 10) - 5) * 100)) / 100) * 1000); this.poison_damage = 0; this.slow_down_timer = 0; } function frame159(){ stop(); } function frame279(){ stop(); } function frame79(){ stop(); } function frame89(){ stop(); } function frame219(){ stop(); } function frame289(){ stop(); } function frame169(){ stop(); } function frame299(){ stop(); } function frame19(){ stop(); } function frame179(){ stop(); } function frame29(){ stop(); } function frame199(){ stop(); } function frame189(){ stop(); } function frame229(){ stop(); } function frame39(){ stop(); } function frame99(){ stop(); } function frame239(){ stop(); } function frame249(){ stop(); } function frame49(){ stop(); } function frame129(){ stop(); } function frame119(){ stop(); } function frame259(){ stop(); } function frame139(){ stop(); } function frame59(){ stop(); } function frame269(){ stop(); } function frame149(){ stop(); } function frame69(){ stop(); } } }//packageSection 36//EnemyBigIcon (EnemyBigIcon) package { import flash.display.*; public dynamic class EnemyBigIcon extends MovieClip { } }//packageSection 37//enemyCount (enemyCount) package { import flash.display.*; public dynamic class enemyCount extends MovieClip { } }//packageSection 38//EnemyIcon (EnemyIcon) package { import flash.display.*; public dynamic class EnemyIcon extends MovieClip { } }//packageSection 39//EnemyItem (EnemyItem) package { public class EnemyItem { public var pos:int; public var id:int; public function EnemyItem(_arg1:int, _arg2:int){ this.id = _arg1; this.pos = _arg2; } } }//packageSection 40//EnemyPoisonedIcon (EnemyPoisonedIcon) package { import flash.display.*; public dynamic class EnemyPoisonedIcon extends MovieClip { } }//packageSection 41//EnemySlowedDownIcon (EnemySlowedDownIcon) package { import flash.display.*; public dynamic class EnemySlowedDownIcon extends MovieClip { } }//packageSection 42//expertMc (expertMc) package { import flash.display.*; public dynamic class expertMc extends MovieClip { } }//packageSection 43//Explosion (Explosion) package { import flash.display.*; public dynamic class Explosion extends MovieClip { public function Explosion(){ addFrameScript(9, frame10); } function frame10(){ stop(); } } }//packageSection 44//ExplosionBig (ExplosionBig) package { import flash.display.*; public dynamic class ExplosionBig extends MovieClip { public function ExplosionBig(){ addFrameScript(13, frame14); } function frame14(){ stop(); } } }//packageSection 45//FinishLevelWindowBg (FinishLevelWindowBg) package { import flash.display.*; public dynamic class FinishLevelWindowBg extends MovieClip { } }//packageSection 46//Font1 (Font1) package { import flash.text.*; public dynamic class Font1 extends Font { } }//packageSection 47//Font2 (Font2) package { import flash.text.*; public dynamic class Font2 extends Font { } }//packageSection 48//goHomeBtn (goHomeBtn) package { import flash.display.*; public dynamic class goHomeBtn extends MovieClip { } }//packageSection 49//goHomeBtnHitArea (goHomeBtnHitArea) package { import flash.display.*; public dynamic class goHomeBtnHitArea extends MovieClip { } }//packageSection 50//gotoMenuBtn (gotoMenuBtn) package { import flash.display.*; public dynamic class gotoMenuBtn extends MovieClip { } }//packageSection 51//gotoMenuBtnHitArea (gotoMenuBtnHitArea) package { import flash.display.*; public dynamic class gotoMenuBtnHitArea extends MovieClip { } }//packageSection 52//Grid (Grid) package { import flash.display.*; public dynamic class Grid extends MovieClip { } }//packageSection 53//highlightBomb (highlightBomb) package { import flash.display.*; public dynamic class highlightBomb extends MovieClip { } }//packageSection 54//highlightTower (highlightTower) package { import flash.display.*; public dynamic class highlightTower extends MovieClip { } }//packageSection 55//instructionsBtn (instructionsBtn) package { import flash.display.*; public dynamic class instructionsBtn extends MovieClip { } }//packageSection 56//instructionsBtnHitArea (instructionsBtnHitArea) package { import flash.display.*; public dynamic class instructionsBtnHitArea extends MovieClip { } }//packageSection 57//instructionsWindow (instructionsWindow) package { import flash.display.*; public dynamic class instructionsWindow extends MovieClip { } }//packageSection 58//interfaceBg (interfaceBg) package { import flash.display.*; public dynamic class interfaceBg extends MovieClip { } }//packageSection 59//introAnim (introAnim) package { import flash.display.*; public dynamic class introAnim extends MovieClip { public function introAnim(){ addFrameScript(0, frame1, 179, frame180); } function frame180(){ stop(); } function frame1(){ stop(); } } }//packageSection 60//introPlayBtn (introPlayBtn) package { import flash.display.*; public dynamic class introPlayBtn extends MovieClip { } }//packageSection 61//introPlayBtnHitArea (introPlayBtnHitArea) package { import flash.display.*; public dynamic class introPlayBtnHitArea extends MovieClip { } }//packageSection 62//Legend (Legend) package { import flash.display.*; public dynamic class Legend extends MovieClip { } }//packageSection 63//levelIcon (levelIcon) package { import flash.display.*; public dynamic class levelIcon extends MovieClip { } }//packageSection 64//levelIconHitArea (levelIconHitArea) package { import flash.display.*; public dynamic class levelIconHitArea extends MovieClip { } }//packageSection 65//levelIconOver (levelIconOver) package { import flash.display.*; public dynamic class levelIconOver extends MovieClip { } }//packageSection 66//levelIconSelected (levelIconSelected) package { import flash.display.*; public dynamic class levelIconSelected extends MovieClip { } }//packageSection 67//livesLeft (livesLeft) package { import flash.display.*; public dynamic class livesLeft extends MovieClip { } }//packageSection 68//loadBar (loadBar) package { import flash.display.*; public dynamic class loadBar extends MovieClip { } }//packageSection 69//logoHitArea (logoHitArea) package { import flash.display.*; public dynamic class logoHitArea extends MovieClip { } }//packageSection 70//LogoOverText (LogoOverText) package { import flash.display.*; public dynamic class LogoOverText extends MovieClip { } }//packageSection 71//mainMenuBg (mainMenuBg) package { import flash.display.*; public dynamic class mainMenuBg extends MovieClip { } }//packageSection 72//MapBg (MapBg) package { import flash.display.*; public dynamic class MapBg extends MovieClip { } }//packageSection 73//mapWindowBg (mapWindowBg) package { import flash.display.*; public dynamic class mapWindowBg extends MovieClip { } }//packageSection 74//mm01 (mm01) package { import flash.media.*; public dynamic class mm01 extends Sound { } }//packageSection 75//mm02 (mm02) package { import flash.media.*; public dynamic class mm02 extends Sound { } }//packageSection 76//mm03 (mm03) package { import flash.media.*; public dynamic class mm03 extends Sound { } }//packageSection 77//musicBtn (musicBtn) package { import flash.display.*; public dynamic class musicBtn extends MovieClip { } }//packageSection 78//musicBtnHitArea (musicBtnHitArea) package { import flash.display.*; public dynamic class musicBtnHitArea extends MovieClip { } }//packageSection 79//newGameBtn (newGameBtn) package { import flash.display.*; public dynamic class newGameBtn extends MovieClip { } }//packageSection 80//newGameBtnHitArea (newGameBtnHitArea) package { import flash.display.*; public dynamic class newGameBtnHitArea extends MovieClip { } }//packageSection 81//NoBtn (NoBtn) package { import flash.display.*; public dynamic class NoBtn extends MovieClip { } }//packageSection 82//notEnoughMoneyTxt (notEnoughMoneyTxt) package { import flash.display.*; public dynamic class notEnoughMoneyTxt extends MovieClip { } }//packageSection 83//notOK (notOK) package { import flash.display.*; public dynamic class notOK extends MovieClip { } }//packageSection 84//OkBtn (OkBtn) package { import flash.display.*; public dynamic class OkBtn extends MovieClip { } }//packageSection 85//OkBtnHitArea (OkBtnHitArea) package { import flash.display.*; public dynamic class OkBtnHitArea extends MovieClip { } }//packageSection 86//optionsBtn (optionsBtn) package { import flash.display.*; public dynamic class optionsBtn extends MovieClip { } }//packageSection 87//optionsBtnHitArea (optionsBtnHitArea) package { import flash.display.*; public dynamic class optionsBtnHitArea extends MovieClip { } }//packageSection 88//optionsWindow (optionsWindow) package { import flash.display.*; public dynamic class optionsWindow extends MovieClip { } }//packageSection 89//PauseBtn (PauseBtn) package { import flash.display.*; public dynamic class PauseBtn extends MovieClip { } }//packageSection 90//PauseBtnHitArea (PauseBtnHitArea) package { import flash.display.*; public dynamic class PauseBtnHitArea extends MovieClip { } }//packageSection 91//pauseWindow (pauseWindow) package { import flash.display.*; public dynamic class pauseWindow extends MovieClip { } }//packageSection 92//playBtn (playBtn) package { import flash.display.*; public dynamic class playBtn extends MovieClip { } }//packageSection 93//playBtnHitArea (playBtnHitArea) package { import flash.display.*; public dynamic class playBtnHitArea extends MovieClip { } }//packageSection 94//playMapBtn (playMapBtn) package { import flash.display.*; public dynamic class playMapBtn extends MovieClip { } }//packageSection 95//playMapBtnHitArea (playMapBtnHitArea) package { import flash.display.*; public dynamic class playMapBtnHitArea extends MovieClip { } }//packageSection 96//qualityHighBtn (qualityHighBtn) package { import flash.display.*; public dynamic class qualityHighBtn extends MovieClip { } }//packageSection 97//qualityHighBtnHitArea (qualityHighBtnHitArea) package { import flash.display.*; public dynamic class qualityHighBtnHitArea extends MovieClip { } }//packageSection 98//qualityLowBtn (qualityLowBtn) package { import flash.display.*; public dynamic class qualityLowBtn extends MovieClip { } }//packageSection 99//qualityLowBtnHitArea (qualityLowBtnHitArea) package { import flash.display.*; public dynamic class qualityLowBtnHitArea extends MovieClip { } }//packageSection 100//qualityMedBtn (qualityMedBtn) package { import flash.display.*; public dynamic class qualityMedBtn extends MovieClip { } }//packageSection 101//qualityMedBtnHitArea (qualityMedBtnHitArea) package { import flash.display.*; public dynamic class qualityMedBtnHitArea extends MovieClip { } }//packageSection 102//restartBtn (restartBtn) package { import flash.display.*; public dynamic class restartBtn extends MovieClip { } }//packageSection 103//resumeBtn (resumeBtn) package { import flash.display.*; public dynamic class resumeBtn extends MovieClip { } }//packageSection 104//resumeBtnHitArea (resumeBtnHitArea) package { import flash.display.*; public dynamic class resumeBtnHitArea extends MovieClip { } }//packageSection 105//s01 (s01) package { import flash.media.*; public dynamic class s01 extends Sound { } }//packageSection 106//s03 (s03) package { import flash.media.*; public dynamic class s03 extends Sound { } }//packageSection 107//s21 (s21) package { import flash.media.*; public dynamic class s21 extends Sound { } }//packageSection 108//s22 (s22) package { import flash.media.*; public dynamic class s22 extends Sound { } }//packageSection 109//s23 (s23) package { import flash.media.*; public dynamic class s23 extends Sound { } }//packageSection 110//s30 (s30) package { import flash.media.*; public dynamic class s30 extends Sound { } }//packageSection 111//s31 (s31) package { import flash.media.*; public dynamic class s31 extends Sound { } }//packageSection 112//s32 (s32) package { import flash.media.*; public dynamic class s32 extends Sound { } }//packageSection 113//s40 (s40) package { import flash.media.*; public dynamic class s40 extends Sound { } }//packageSection 114//s41 (s41) package { import flash.media.*; public dynamic class s41 extends Sound { } }//packageSection 115//s42 (s42) package { import flash.media.*; public dynamic class s42 extends Sound { } }//packageSection 116//s43 (s43) package { import flash.media.*; public dynamic class s43 extends Sound { } }//packageSection 117//scoreTitles (scoreTitles) package { import flash.display.*; public dynamic class scoreTitles extends MovieClip { } }//packageSection 118//Segment (Segment) package { import flash.display.*; public class Segment extends Sprite { protected const D:int = 20; public var len_pos:int; public var a_len:int; public var startY:Number; public var startX:Number; public var Ax:int; public var Ay:int; public var tip:int; public var endX:Number; public var endY:Number; public function Segment(_arg1:int, _arg2:int, _arg3:int, _arg4:int):void{ this.Ax = _arg1; this.Ay = _arg2; this.tip = _arg3; this.a_len = _arg4; if (_arg3 < 10){ this.len_pos = (a_len * D); if (_arg3 == 1){ this.startX = ((_arg1 * D) - (D / 2)); this.startY = (_arg2 * D); this.endX = (this.startX + (_arg4 * D)); this.endY = this.startY; }; if (_arg3 == 2){ this.startX = (_arg1 * D); this.startY = ((_arg2 * D) - (D / 2)); this.endX = this.startX; this.endY = (this.startY + (_arg4 * D)); }; if (_arg3 == 3){ this.startX = ((_arg1 * D) + (D / 2)); this.startY = (_arg2 * D); this.endX = (this.startX - (_arg4 * D)); this.endY = this.startY; }; if (_arg3 == 4){ this.startX = (_arg1 * D); this.startY = ((_arg2 * D) + (D / 2)); this.endX = this.startX; this.endY = (this.startY - (_arg4 * D)); }; } else { this.len_pos = ((2 * Math.PI) * (D / 2)); if (_arg3 == 11){ this.startX = ((_arg1 * D) - (D / 2)); this.startY = ((_arg2 * D) + (D / 2)); this.startY = (this.startY + D); }; if (_arg3 == 12){ this.startX = ((_arg1 * D) - (D / 2)); this.startY = ((_arg2 * D) - (D / 2)); this.startX = (this.startX - D); }; if (_arg3 == 13){ this.startX = ((_arg1 * D) + (D / 2)); this.startY = ((_arg2 * D) - (D / 2)); this.startY = (this.startY - D); }; if (_arg3 == 14){ this.startX = (_arg1 * D); this.startY = ((_arg2 * D) + (D / 2)); this.startX = (this.startX + (1.5 * D)); }; if (_arg3 == 15){ this.startX = ((_arg1 * D) - (D / 2)); this.startY = ((_arg2 * D) + (D / 2)); this.startX = (this.startX - (1 * D)); }; if (_arg3 == 16){ this.startX = ((_arg1 * D) - (D / 2)); this.startY = (_arg2 * D); this.startY = (this.startY - (1.5 * D)); }; if (_arg3 == 17){ this.startX = (_arg1 * D); this.startY = ((_arg2 * D) - (D / 2)); this.startX = (this.startX + (1.5 * D)); }; if (_arg3 == 18){ this.startX = ((_arg1 * D) + (D / 2)); this.startY = ((_arg2 * D) + (D / 2)); this.startY = (this.startY + D); }; this.endX = this.startX; this.endY = this.startY; }; this.startX = (this.startX + 5); this.startY = (this.startY + 5); this.endX = (this.endX + 5); this.endY = (this.endY + 5); } } }//packageSection 119//SellBtn (SellBtn) package { import flash.display.*; public dynamic class SellBtn extends MovieClip { } }//packageSection 120//sendBtn (sendBtn) package { import flash.display.*; public dynamic class sendBtn extends MovieClip { } }//packageSection 121//sendBtnHitArea (sendBtnHitArea) package { import flash.display.*; public dynamic class sendBtnHitArea extends MovieClip { } }//packageSection 122//skipBtn (skipBtn) package { import flash.display.*; public dynamic class skipBtn extends MovieClip { } }//packageSection 123//skipBtnHitArea (skipBtnHitArea) package { import flash.display.*; public dynamic class skipBtnHitArea extends MovieClip { } }//packageSection 124//smallAdHitArea (smallAdHitArea) package { import flash.display.*; public dynamic class smallAdHitArea extends MovieClip { } }//packageSection 125//soundBtn (soundBtn) package { import flash.display.*; public dynamic class soundBtn extends MovieClip { } }//packageSection 126//soundBtnHitArea (soundBtnHitArea) package { import flash.display.*; public dynamic class soundBtnHitArea extends MovieClip { } }//packageSection 127//soundOffBtn (soundOffBtn) package { import flash.display.*; public dynamic class soundOffBtn extends MovieClip { } }//packageSection 128//soundOffBtnHitArea (soundOffBtnHitArea) package { import flash.display.*; public dynamic class soundOffBtnHitArea extends MovieClip { } }//packageSection 129//soundOnBtn (soundOnBtn) package { import flash.display.*; public dynamic class soundOnBtn extends MovieClip { } }//packageSection 130//soundOnBtnHitArea (soundOnBtnHitArea) package { import flash.display.*; public dynamic class soundOnBtnHitArea extends MovieClip { } }//packageSection 131//speedBtn (speedBtn) package { import flash.display.*; public dynamic class speedBtn extends MovieClip { } }//packageSection 132//speedBtnHitArea (speedBtnHitArea) package { import flash.display.*; public dynamic class speedBtnHitArea extends MovieClip { } }//packageSection 133//TowerBase (TowerBase) package { import flash.display.*; public dynamic class TowerBase extends MovieClip { } }//packageSection 134//towerBtn (towerBtn) package { import flash.display.*; public dynamic class towerBtn extends MovieClip { } }//packageSection 135//towerBtnHitArea (towerBtnHitArea) package { import flash.display.*; public dynamic class towerBtnHitArea extends MovieClip { } }//packageSection 136//towerRangeCircle (towerRangeCircle) package { import flash.display.*; public dynamic class towerRangeCircle extends MovieClip { } }//packageSection 137//TowerTurret (TowerTurret) package { import flash.display.*; public class TowerTurret extends MovieClip { public var realRotation:Number; public var range:Number; public var speed:Number; public var wait:int; public var damage:Number; public var cx:int; public var cy:int; public var tower_type:int; public var tower_level:int; public var rate:Number; public function TowerTurret(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{ this.range = _arg1; this.damage = _arg2; this.speed = _arg3; this.rate = _arg4; this.wait = 0; this.tower_level = 1; } } }//packageSection 138//TowerUpgradeData (TowerUpgradeData) package { import flash.display.*; public dynamic class TowerUpgradeData extends MovieClip { } }//packageSection 139//tutorialWindow (tutorialWindow) package { import flash.display.*; public dynamic class tutorialWindow extends MovieClip { } }//packageSection 140//UpgradeBox (UpgradeBox) package { import flash.display.*; public dynamic class UpgradeBox extends MovieClip { } }//packageSection 141//UpgradeBoxHitArea (UpgradeBoxHitArea) package { import flash.display.*; public dynamic class UpgradeBoxHitArea extends MovieClip { } }//packageSection 142//UpgradeBtn (UpgradeBtn) package { import flash.display.*; public dynamic class UpgradeBtn extends MovieClip { } }//packageSection 143//UpgradeBtnHitArea (UpgradeBtnHitArea) package { import flash.display.*; public dynamic class UpgradeBtnHitArea extends MovieClip { } }//packageSection 144//UpgradeNames (UpgradeNames) package { import flash.display.*; public dynamic class UpgradeNames extends MovieClip { } }//packageSection 145//YesBtn (YesBtn) package { import flash.display.*; public dynamic class YesBtn extends MovieClip { } }//packageSection 146//YesNoBtnHitArea (YesNoBtnHitArea) package { import flash.display.*; public dynamic class YesNoBtnHitArea extends MovieClip { } }//package
Library Items
| Symbol 1 Font {Font1} | ||
| Symbol 2 Font {Font2} | Used by:167 521 522 523 524 | |
| Symbol 3 Graphic | Used by:18 | |
| Symbol 4 Sound | Used by:18 | |
| Symbol 5 Sound | Used by:18 | |
| Symbol 6 Graphic | Used by:18 | |
| Symbol 7 Graphic | Used by:8 | |
| Symbol 8 MovieClip | Uses:7 | Used by:18 |
| Symbol 9 Sound | Used by:18 | |
| Symbol 10 Sound | Used by:18 | |
| Symbol 11 Sound | Used by:18 | |
| Symbol 12 Graphic | Used by:18 | |
| Symbol 13 Graphic | Used by:14 | |
| Symbol 14 Button | Uses:13 | Used by:18 |
| Symbol 15 Graphic | Used by:18 | |
| Symbol 16 Sound | Used by:18 | |
| Symbol 17 Sound | Used by:18 | |
| Symbol 18 MovieClip {ag_intro_mc} | Uses:3 4 5 6 8 9 10 11 12 14 15 16 17 | |
| Symbol 19 Graphic | Used by:20 68 | |
| Symbol 20 MovieClip | Uses:19 | Used by:21 |
| Symbol 21 MovieClip {achievementsAnim} | Uses:20 | |
| Symbol 22 Bitmap | Used by:23 | |
| Symbol 23 Graphic | Uses:22 | Used by:26 |
| Symbol 24 Bitmap | Used by:25 | |
| Symbol 25 Graphic | Uses:24 | Used by:26 |
| Symbol 26 MovieClip {restartBtn} | Uses:23 25 | |
| Symbol 27 Graphic | Used by:28 124 397 502 542 545 711 | |
| Symbol 28 MovieClip {loadBar} | Uses:27 | |
| Symbol 29 Graphic | Used by:30 | |
| Symbol 30 MovieClip {introPlayBtnHitArea} | Uses:29 | |
| Symbol 31 Graphic | Used by:36 | |
| Symbol 32 Bitmap | Used by:33 | |
| Symbol 33 Graphic | Uses:32 | Used by:36 |
| Symbol 34 Bitmap | Used by:35 | |
| Symbol 35 Graphic | Uses:34 | Used by:36 |
| Symbol 36 MovieClip {introPlayBtn} | Uses:31 33 35 | |
| Symbol 37 Font | Used by:38 39 40 | |
| Symbol 38 Text | Uses:37 | Used by:41 |
| Symbol 39 Text | Uses:37 | Used by:41 |
| Symbol 40 Text | Uses:37 | Used by:41 |
| Symbol 41 MovieClip {notOK} | Uses:38 39 40 | |
| Symbol 42 Graphic | Used by:43 | |
| Symbol 43 MovieClip {logoHitArea} | Uses:42 | |
| Symbol 44 Graphic | Used by:46 | |
| Symbol 45 Graphic | Used by:46 | |
| Symbol 46 MovieClip {soundOffBtn} | Uses:44 45 | |
| Symbol 47 Graphic | Used by:49 | |
| Symbol 48 Graphic | Used by:49 | |
| Symbol 49 MovieClip {soundOnBtn} | Uses:47 48 | |
| Symbol 50 Graphic | Used by:51 52 62 63 64 68 71 74 510 520 539 | |
| Symbol 51 MovieClip {soundOffBtnHitArea} | Uses:50 | |
| Symbol 52 MovieClip {soundOnBtnHitArea} | Uses:50 | |
| Symbol 53 Graphic | Used by:55 | |
| Symbol 54 Graphic | Used by:55 | |
| Symbol 55 MovieClip {qualityMedBtn} | Uses:53 54 | |
| Symbol 56 Graphic | Used by:58 | |
| Symbol 57 Graphic | Used by:58 | |
| Symbol 58 MovieClip {qualityHighBtn} | Uses:56 57 | |
| Symbol 59 Graphic | Used by:61 | |
| Symbol 60 Graphic | Used by:61 | |
| Symbol 61 MovieClip {qualityLowBtn} | Uses:59 60 | |
| Symbol 62 MovieClip {qualityHighBtnHitArea} | Uses:50 | |
| Symbol 63 MovieClip {qualityMedBtnHitArea} | Uses:50 | |
| Symbol 64 MovieClip {qualityLowBtnHitArea} | Uses:50 | |
| Symbol 65 Graphic | Used by:66 355 | |
| Symbol 66 MovieClip {blackScreen} | Uses:65 | |
| Symbol 67 Graphic | Used by:68 | |
| Symbol 68 Button {BtnAwards} | Uses:19 67 50 | |
| Symbol 69 Graphic | Used by:71 | |
| Symbol 70 Graphic | Used by:71 | |
| Symbol 71 Button {BtnUpgrades} | Uses:69 70 50 | |
| Symbol 72 Graphic | Used by:74 | |
| Symbol 73 Graphic | Used by:74 | |
| Symbol 74 Button {BtnMap} | Uses:72 73 50 | |
| Symbol 75 Graphic | Used by:76 | |
| Symbol 76 MovieClip | Uses:75 | Used by:77 |
| Symbol 77 MovieClip {Bullet} | Uses:76 | |
| Symbol 78 Graphic | Used by:79 | |
| Symbol 79 MovieClip | Uses:78 | Used by:90 663 |
| Symbol 80 Graphic | Used by:81 | |
| Symbol 81 MovieClip | Uses:80 | Used by:90 667 |
| Symbol 82 Graphic | Used by:83 | |
| Symbol 83 MovieClip | Uses:82 | Used by:90 671 |
| Symbol 84 Graphic | Used by:85 | |
| Symbol 85 MovieClip | Uses:84 | Used by:90 675 |
| Symbol 86 Graphic | Used by:87 | |
| Symbol 87 MovieClip | Uses:86 | Used by:90 679 |
| Symbol 88 Graphic | Used by:89 | |
| Symbol 89 MovieClip | Uses:88 | Used by:90 683 |
| Symbol 90 MovieClip {TowerTurret} | Uses:79 81 83 85 87 89 | |
| Symbol 91 Graphic | Used by:92 | |
| Symbol 92 MovieClip | Uses:91 | Used by:109 434 467 |
| Symbol 93 Graphic | Used by:94 | |
| Symbol 94 MovieClip | Uses:93 | Used by:109 434 467 |
| Symbol 95 Graphic | Used by:96 | |
| Symbol 96 MovieClip | Uses:95 | Used by:109 434 467 |
| Symbol 97 Graphic | Used by:98 | |
| Symbol 98 MovieClip | Uses:97 | Used by:109 434 467 |
| Symbol 99 Graphic | Used by:100 | |
| Symbol 100 MovieClip | Uses:99 | Used by:109 434 467 |
| Symbol 101 Graphic | Used by:102 | |
| Symbol 102 MovieClip | Uses:101 | Used by:109 434 467 |
| Symbol 103 Graphic | Used by:104 | |
| Symbol 104 MovieClip | Uses:103 | Used by:109 434 467 |
| Symbol 105 Graphic | Used by:106 | |
| Symbol 106 MovieClip | Uses:105 | Used by:109 434 467 |
| Symbol 107 Graphic | Used by:108 | |
| Symbol 108 MovieClip | Uses:107 | Used by:109 434 467 |
| Symbol 109 MovieClip {Enemy} | Uses:92 94 96 98 100 102 104 106 108 | |
| Symbol 110 Graphic | Used by:111 | |
| Symbol 111 MovieClip {Circle} | Uses:110 | |
| Symbol 112 Graphic | Used by:113 | |
| Symbol 113 MovieClip {YesNoBtnHitArea} | Uses:112 | |
| Symbol 114 Bitmap | Used by:115 119 325 | |
| Symbol 115 Graphic | Uses:114 | Used by:118 |
| Symbol 116 Bitmap | Used by:117 120 326 | |
| Symbol 117 Graphic | Uses:116 | Used by:118 |
| Symbol 118 MovieClip {NoBtn} | Uses:115 117 | |
| Symbol 119 Graphic | Uses:114 | Used by:121 |
| Symbol 120 Graphic | Uses:116 | Used by:121 |
| Symbol 121 MovieClip {YesBtn} | Uses:119 120 | |
| Symbol 122 Graphic | Used by:123 | |
| Symbol 123 MovieClip {LogoOverText} | Uses:122 | |
| Symbol 124 MovieClip {PauseBtnHitArea} | Uses:27 | |
| Symbol 125 Graphic | Used by:127 | |
| Symbol 126 Graphic | Used by:127 | |
| Symbol 127 MovieClip {PauseBtn} | Uses:125 126 | |
| Symbol 128 Bitmap | Used by:129 226 | |
| Symbol 129 Graphic | Uses:128 | Used by:130 |
| Symbol 130 MovieClip {bgConfirmDeleteWindow} | Uses:129 | |
| Symbol 131 Graphic | Used by:132 | |
| Symbol 132 MovieClip {borderLoadBar} | Uses:131 | |
| Symbol 133 Graphic | Used by:134 | |
| Symbol 134 MovieClip {smallAdHitArea} | Uses:133 | |
| Symbol 135 Bitmap | Used by:136 | |
| Symbol 136 Graphic | Uses:135 | Used by:137 |
| Symbol 137 MovieClip | Uses:136 | Used by:141 |
| Symbol 138 Bitmap | Used by:139 | |
| Symbol 139 Graphic | Uses:138 | Used by:140 |
| Symbol 140 MovieClip | Uses:139 | Used by:141 |
| Symbol 141 MovieClip {Ad} | Uses:137 140 | |
| Symbol 142 Graphic | Used by:154 | |
| Symbol 143 Bitmap | Used by:144 | |
| Symbol 144 Graphic | Uses:143 | Used by:145 |
| Symbol 145 MovieClip | Uses:144 | Used by:154 |
| Symbol 146 Graphic | Used by:154 | |
| Symbol 147 Bitmap | Used by:148 | |
| Symbol 148 Graphic | Uses:147 | Used by:149 |
| Symbol 149 MovieClip | Uses:148 | Used by:154 |
| Symbol 150 Graphic | Used by:154 | |
| Symbol 151 Bitmap | Used by:152 | |
| Symbol 152 Graphic | Uses:151 | Used by:153 |
| Symbol 153 MovieClip | Uses:152 | Used by:154 |
| Symbol 154 MovieClip {tutorialWindow} | Uses:142 145 146 149 150 153 | Used by:Timeline |
| Symbol 155 Graphic | Used by:156 | |
| Symbol 156 MovieClip | Uses:155 | Used by:Timeline |
| Symbol 157 Graphic | Used by:158 | |
| Symbol 158 MovieClip | Uses:157 | Used by:164 |
| Symbol 159 Sound | Used by:164 | |
| Symbol 160 Graphic | Used by:161 | |
| Symbol 161 MovieClip | Uses:160 | Used by:164 |
| Symbol 162 Graphic | Used by:163 | |
| Symbol 163 MovieClip | Uses:162 | Used by:164 |
| Symbol 164 MovieClip {introAnim} | Uses:158 159 161 163 | Used by:Timeline |
| Symbol 165 Bitmap | Used by:166 | |
| Symbol 166 Graphic | Uses:165 | Used by:169 |
| Symbol 167 EditableText | Uses:2 | Used by:169 |
| Symbol 168 Graphic | Used by:169 | |
| Symbol 169 MovieClip {mainMenuBg} | Uses:166 167 168 | Used by:Timeline |
| Symbol 170 Bitmap | Used by:171 | |
| Symbol 171 Graphic | Uses:170 | Used by:174 |
| Symbol 172 Bitmap | Used by:173 | |
| Symbol 173 Graphic | Uses:172 | Used by:174 |
| Symbol 174 MovieClip {creditsBtn} | Uses:171 173 | Used by:Timeline |
| Symbol 175 Bitmap | Used by:176 | |
| Symbol 176 Graphic | Uses:175 | Used by:179 |
| Symbol 177 Bitmap | Used by:178 | |
| Symbol 178 Graphic | Uses:177 | Used by:179 |
| Symbol 179 MovieClip {instructionsBtn} | Uses:176 178 | Used by:Timeline |
| Symbol 180 Bitmap | Used by:181 | |
| Symbol 181 Graphic | Uses:180 | Used by:184 |
| Symbol 182 Bitmap | Used by:183 | |
| Symbol 183 Graphic | Uses:182 | Used by:184 |
| Symbol 184 MovieClip {optionsBtn} | Uses:181 183 | Used by:Timeline |
| Symbol 185 Bitmap | Used by:186 | |
| Symbol 186 Graphic | Uses:185 | Used by:189 343 |
| Symbol 187 Bitmap | Used by:188 | |
| Symbol 188 Graphic | Uses:187 | Used by:189 343 |
| Symbol 189 MovieClip {playBtn} | Uses:186 188 | Used by:Timeline |
| Symbol 190 Graphic | Used by:191 192 193 194 228 249 342 344 | |
| Symbol 191 MovieClip {creditsBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 192 MovieClip {instructionsBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 193 MovieClip {optionsBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 194 MovieClip {playBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 195 Bitmap | Used by:196 | |
| Symbol 196 Graphic | Uses:195 | Used by:199 |
| Symbol 197 Bitmap | Used by:198 | |
| Symbol 198 Graphic | Uses:197 | Used by:199 |
| Symbol 199 MovieClip {closeBtn} | Uses:196 198 | Used by:Timeline |
| Symbol 200 Graphic | Used by:201 | |
| Symbol 201 MovieClip {closeBtnHitArea} | Uses:200 | Used by:Timeline |
| Symbol 202 Bitmap | Used by:205 | |
| Symbol 203 Bitmap | Used by:205 208 210 329 | |
| Symbol 204 Bitmap | Used by:205 208 210 329 | |
| Symbol 205 Graphic | Uses:202 203 204 | Used by:206 |
| Symbol 206 MovieClip {creditsWindow} | Uses:205 | Used by:Timeline |
| Symbol 207 Bitmap | Used by:208 | |
| Symbol 208 Graphic | Uses:207 203 204 | Used by:209 |
| Symbol 209 MovieClip {instructionsWindow} | Uses:208 | Used by:Timeline |
| Symbol 210 Graphic | Uses:203 204 | Used by:211 |
| Symbol 211 MovieClip {optionsWindow} | Uses:210 | Used by:Timeline |
| Symbol 212 Bitmap | Used by:213 | |
| Symbol 213 Graphic | Uses:212 | Used by:216 |
| Symbol 214 Bitmap | Used by:215 | |
| Symbol 215 Graphic | Uses:214 | Used by:216 |
| Symbol 216 MovieClip {addGameBtn} | Uses:213 215 | Used by:Timeline |
| Symbol 217 Graphic | Used by:218 | |
| Symbol 218 MovieClip {addGameBtnHitArea} | Uses:217 | Used by:Timeline |
| Symbol 219 Bitmap | Used by:220 | |
| Symbol 220 Graphic | Uses:219 | Used by:223 |
| Symbol 221 Bitmap | Used by:222 | |
| Symbol 222 Graphic | Uses:221 | Used by:223 |
| Symbol 223 MovieClip {goHomeBtn} | Uses:220 222 | Used by:Timeline |
| Symbol 224 Graphic | Used by:225 | |
| Symbol 225 MovieClip {goHomeBtnHitArea} | Uses:224 | Used by:Timeline |
| Symbol 226 Graphic | Uses:128 | Used by:227 |
| Symbol 227 MovieClip {bgNewGameWindow} | Uses:226 | Used by:Timeline |
| Symbol 228 MovieClip {newGameBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 229 Bitmap | Used by:230 | |
| Symbol 230 Graphic | Uses:229 | Used by:235 |
| Symbol 231 Bitmap | Used by:232 | |
| Symbol 232 Graphic | Uses:231 | Used by:235 |
| Symbol 233 Bitmap | Used by:234 | |
| Symbol 234 Graphic | Uses:233 | Used by:235 |
| Symbol 235 MovieClip {continueGameBtn} | Uses:230 232 234 | Used by:Timeline |
| Symbol 236 Bitmap | Used by:237 | |
| Symbol 237 Graphic | Uses:236 | Used by:240 |
| Symbol 238 Bitmap | Used by:239 | |
| Symbol 239 Graphic | Uses:238 | Used by:240 |
| Symbol 240 MovieClip {newGameBtn} | Uses:237 239 | Used by:Timeline |
| Symbol 241 Bitmap | Used by:242 306 | |
| Symbol 242 Graphic | Uses:241 | Used by:243 |
| Symbol 243 MovieClip {pauseWindow} | Uses:242 | Used by:Timeline |
| Symbol 244 Bitmap | Used by:245 | |
| Symbol 245 Graphic | Uses:244 | Used by:248 |
| Symbol 246 Bitmap | Used by:247 | |
| Symbol 247 Graphic | Uses:246 | Used by:248 |
| Symbol 248 MovieClip {gotoMenuBtn} | Uses:245 247 | Used by:Timeline |
| Symbol 249 MovieClip {gotoMenuBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 250 Bitmap | Used by:251 | |
| Symbol 251 Graphic | Uses:250 | Used by:254 |
| Symbol 252 Bitmap | Used by:253 | |
| Symbol 253 Graphic | Uses:252 | Used by:254 |
| Symbol 254 MovieClip {resumeBtn} | Uses:251 253 | Used by:Timeline |
| Symbol 255 Graphic | Used by:256 | |
| Symbol 256 MovieClip {resumeBtnHitArea} | Uses:255 | Used by:Timeline |
| Symbol 257 Bitmap | Used by:258 | |
| Symbol 258 Graphic | Uses:257 | Used by:261 |
| Symbol 259 Bitmap | Used by:260 | |
| Symbol 260 Graphic | Uses:259 | Used by:261 |
| Symbol 261 MovieClip {skipBtn} | Uses:258 260 | Used by:Timeline |
| Symbol 262 Graphic | Used by:263 | |
| Symbol 263 MovieClip {skipBtnHitArea} | Uses:262 | Used by:Timeline |
| Symbol 264 Bitmap | Used by:265 274 | |
| Symbol 265 Graphic | Uses:264 | Used by:270 |
| Symbol 266 Bitmap | Used by:267 274 | |
| Symbol 267 Graphic | Uses:266 | Used by:270 |
| Symbol 268 Bitmap | Used by:269 274 | |
| Symbol 269 Graphic | Uses:268 | Used by:270 |
| Symbol 270 MovieClip {UpgradeBox} | Uses:265 267 269 | Used by:Timeline |
| Symbol 271 Graphic | Used by:272 | |
| Symbol 272 MovieClip {UpgradeBoxHitArea} | Uses:271 | Used by:Timeline |
| Symbol 273 Bitmap | Used by:274 | |
| Symbol 274 Graphic | Uses:264 266 268 273 | Used by:275 |
| Symbol 275 MovieClip {Legend} | Uses:274 | Used by:Timeline |
| Symbol 276 Graphic | Used by:277 | |
| Symbol 277 MovieClip {UpgradeNames} | Uses:276 | Used by:Timeline |
| Symbol 278 Graphic | Used by:279 | |
| Symbol 279 MovieClip | Uses:278 | Used by:280 |
| Symbol 280 MovieClip {AchievementBg} | Uses:279 | Used by:Timeline |
| Symbol 281 Bitmap | Used by:282 | |
| Symbol 282 Graphic | Uses:281 | Used by:303 695 |
| Symbol 283 Bitmap | Used by:284 | |
| Symbol 284 Graphic | Uses:283 | Used by:303 695 |
| Symbol 285 Bitmap | Used by:286 | |
| Symbol 286 Graphic | Uses:285 | Used by:303 695 |
| Symbol 287 Bitmap | Used by:288 | |
| Symbol 288 Graphic | Uses:287 | Used by:303 695 |
| Symbol 289 Bitmap | Used by:290 | |
| Symbol 290 Graphic | Uses:289 | Used by:303 695 |
| Symbol 291 Bitmap | Used by:292 | |
| Symbol 292 Graphic | Uses:291 | Used by:303 695 |
| Symbol 293 Bitmap | Used by:294 | |
| Symbol 294 Graphic | Uses:293 | Used by:303 695 |
| Symbol 295 Bitmap | Used by:296 | |
| Symbol 296 Graphic | Uses:295 | Used by:303 695 |
| Symbol 297 Bitmap | Used by:298 | |
| Symbol 298 Graphic | Uses:297 | Used by:303 695 |
| Symbol 299 Bitmap | Used by:300 | |
| Symbol 300 Graphic | Uses:299 | Used by:303 695 |
| Symbol 301 Bitmap | Used by:302 | |
| Symbol 302 Graphic | Uses:301 | Used by:303 |
| Symbol 303 MovieClip {AchievementBox} | Uses:282 284 286 288 290 292 294 296 298 300 302 | Used by:Timeline |
| Symbol 304 Graphic | Used by:305 | |
| Symbol 305 MovieClip {AchievementBoxHitArea} | Uses:304 | Used by:Timeline |
| Symbol 306 Graphic | Uses:241 | Used by:317 |
| Symbol 307 Graphic | Used by:317 | |
| Symbol 308 Bitmap | Used by:309 | |
| Symbol 309 Graphic | Uses:308 | Used by:310 |
| Symbol 310 MovieClip | Uses:309 | Used by:317 |
| Symbol 311 Bitmap | Used by:312 | |
| Symbol 312 Graphic | Uses:311 | Used by:317 |
| Symbol 313 Bitmap | Used by:314 | |
| Symbol 314 Graphic | Uses:313 | Used by:317 |
| Symbol 315 Bitmap | Used by:316 | |
| Symbol 316 Graphic | Uses:315 | Used by:317 |
| Symbol 317 MovieClip {FinishLevelWindowBg} | Uses:306 307 310 312 314 316 | Used by:Timeline |
| Symbol 318 Bitmap | Used by:319 | |
| Symbol 319 Graphic | Uses:318 | Used by:322 |
| Symbol 320 Bitmap | Used by:321 | |
| Symbol 321 Graphic | Uses:320 | Used by:322 |
| Symbol 322 MovieClip {BtnMainMenu} | Uses:319 321 | Used by:Timeline |
| Symbol 323 Graphic | Used by:324 328 | |
| Symbol 324 MovieClip {BtnMainMenuHitArea} | Uses:323 | Used by:Timeline |
| Symbol 325 Graphic | Uses:114 | Used by:327 |
| Symbol 326 Graphic | Uses:116 | Used by:327 |
| Symbol 327 MovieClip {OkBtn} | Uses:325 326 | Used by:Timeline |
| Symbol 328 MovieClip {OkBtnHitArea} | Uses:323 | Used by:Timeline |
| Symbol 329 Graphic | Uses:203 204 | Used by:336 |
| Symbol 330 Bitmap | Used by:331 | |
| Symbol 331 Graphic | Uses:330 | Used by:336 |
| Symbol 332 Bitmap | Used by:333 | |
| Symbol 333 Graphic | Uses:332 | Used by:336 |
| Symbol 334 Bitmap | Used by:335 | |
| Symbol 335 Graphic | Uses:334 | Used by:336 |
| Symbol 336 MovieClip {mapWindowBg} | Uses:329 331 333 335 | Used by:Timeline |
| Symbol 337 Bitmap | Used by:338 | |
| Symbol 338 Graphic | Uses:337 | Used by:341 |
| Symbol 339 Bitmap | Used by:340 | |
| Symbol 340 Graphic | Uses:339 | Used by:341 |
| Symbol 341 MovieClip {BtnBackToMenu} | Uses:338 340 | Used by:Timeline |
| Symbol 342 MovieClip {BtnBackToMenuHitArea} | Uses:190 | Used by:Timeline |
| Symbol 343 MovieClip {playMapBtn} | Uses:186 188 | Used by:Timeline |
| Symbol 344 MovieClip {playMapBtnHitArea} | Uses:190 | Used by:Timeline |
| Symbol 345 Graphic | Used by:346 | |
| Symbol 346 MovieClip {expertMc} | Uses:345 | Used by:Timeline |
| Symbol 347 Bitmap | Used by:348 | |
| Symbol 348 Graphic | Uses:347 | Used by:355 |
| Symbol 349 Bitmap | Used by:350 | |
| Symbol 350 Graphic | Uses:349 | Used by:355 |
| Symbol 351 Bitmap | Used by:352 | |
| Symbol 352 Graphic | Uses:351 | Used by:355 |
| Symbol 353 Bitmap | Used by:354 | |
| Symbol 354 Graphic | Uses:353 | Used by:355 |
| Symbol 355 MovieClip {levelIcon} | Uses:65 348 350 352 354 | Used by:Timeline |
| Symbol 356 Graphic | Used by:357 | |
| Symbol 357 MovieClip | Uses:356 | Used by:358 361 |
| Symbol 358 MovieClip {levelIconHitArea} | Uses:357 | Used by:Timeline |
| Symbol 359 Graphic | Used by:360 | |
| Symbol 360 MovieClip {levelIconOver} | Uses:359 | Used by:Timeline |
| Symbol 361 MovieClip {levelIconSelected} | Uses:357 | Used by:Timeline |
| Symbol 362 Bitmap | Used by:363 | |
| Symbol 363 Graphic | Uses:362 | Used by:366 |
| Symbol 364 Graphic | Used by:365 | |
| Symbol 365 MovieClip | Uses:364 | Used by:366 501 |
| Symbol 366 MovieClip {interfaceBg} | Uses:363 365 | Used by:Timeline |
| Symbol 367 Graphic | Used by:368 | |
| Symbol 368 MovieClip {scoreTitles} | Uses:367 | Used by:Timeline |
| Symbol 369 Graphic | Used by:370 | |
| Symbol 370 MovieClip {notEnoughMoneyTxt} | Uses:369 | Used by:Timeline |
| Symbol 371 Bitmap | Used by:372 | |
| Symbol 372 Graphic | Uses:371 | Used by:373 396 |
| Symbol 373 MovieClip | Uses:372 | Used by:396 432 |
| Symbol 374 Bitmap | Used by:375 | |
| Symbol 375 Graphic | Uses:374 | Used by:376 396 |
| Symbol 376 MovieClip | Uses:375 | Used by:396 432 |
| Symbol 377 Bitmap | Used by:378 | |
| Symbol 378 Graphic | Uses:377 | Used by:379 396 |
| Symbol 379 MovieClip | Uses:378 | Used by:396 432 |
| Symbol 380 Bitmap | Used by:381 | |
| Symbol 381 Graphic | Uses:380 | Used by:382 396 |
| Symbol 382 MovieClip | Uses:381 | Used by:396 432 |
| Symbol 383 Bitmap | Used by:384 | |
| Symbol 384 Graphic | Uses:383 | Used by:385 396 |
| Symbol 385 MovieClip | Uses:384 | Used by:396 432 |
| Symbol 386 Bitmap | Used by:387 | |
| Symbol 387 Graphic | Uses:386 | Used by:388 396 |
| Symbol 388 MovieClip | Uses:387 | Used by:396 432 |
| Symbol 389 Bitmap | Used by:390 | |
| Symbol 390 Graphic | Uses:389 | Used by:391 396 |
| Symbol 391 MovieClip | Uses:390 | Used by:396 432 |
| Symbol 392 Bitmap | Used by:393 | |
| Symbol 393 Graphic | Uses:392 | Used by:394 396 |
| Symbol 394 MovieClip | Uses:393 | Used by:396 432 |
| Symbol 395 Graphic | Used by:396 | |
| Symbol 396 MovieClip {towerBtn} | Uses:373 376 379 382 385 388 391 394 372 395 375 378 381 384 387 390 393 | Used by:Timeline |
| Symbol 397 MovieClip {towerBtnHitArea} | Uses:27 | Used by:Timeline |
| Symbol 398 Bitmap | Used by:399 423 | |
| Symbol 399 Graphic | Uses:398 | Used by:416 |
| Symbol 400 Graphic | Used by:401 | |
| Symbol 401 MovieClip | Uses:400 | Used by:416 |
| Symbol 402 Bitmap | Used by:403 424 | |
| Symbol 403 Graphic | Uses:402 | Used by:416 |
| Symbol 404 Bitmap | Used by:405 425 | |
| Symbol 405 Graphic | Uses:404 | Used by:416 |
| Symbol 406 Bitmap | Used by:407 426 | |
| Symbol 407 Graphic | Uses:406 | Used by:416 |
| Symbol 408 Bitmap | Used by:409 427 | |
| Symbol 409 Graphic | Uses:408 | Used by:416 |
| Symbol 410 Bitmap | Used by:411 428 | |
| Symbol 411 Graphic | Uses:410 | Used by:416 |
| Symbol 412 Bitmap | Used by:413 430 | |
| Symbol 413 Graphic | Uses:412 | Used by:416 |
| Symbol 414 Bitmap | Used by:415 431 | |
| Symbol 415 Graphic | Uses:414 | Used by:416 |
| Symbol 416 MovieClip {BuildingTowerDesc} | Uses:399 401 403 405 407 409 411 413 415 | Used by:Timeline |
| Symbol 417 Bitmap | Used by:418 | |
| Symbol 418 Graphic | Uses:417 | Used by:419 |
| Symbol 419 MovieClip {btnCancel} | Uses:418 | Used by:Timeline |
| Symbol 420 Graphic | Used by:421 | |
| Symbol 421 MovieClip {btnCancelHitArea} | Uses:420 | Used by:Timeline |
| Symbol 422 Graphic | Used by:432 | |
| Symbol 423 Graphic | Uses:398 | Used by:432 |
| Symbol 424 Graphic | Uses:402 | Used by:432 |
| Symbol 425 Graphic | Uses:404 | Used by:432 |
| Symbol 426 Graphic | Uses:406 | Used by:432 |
| Symbol 427 Graphic | Uses:408 | Used by:432 |
| Symbol 428 Graphic | Uses:410 | Used by:432 |
| Symbol 429 Graphic | Used by:432 | |
| Symbol 430 Graphic | Uses:412 | Used by:432 |
| Symbol 431 Graphic | Uses:414 | Used by:432 |
| Symbol 432 MovieClip {BuildingTowerTitle} | Uses:422 373 423 376 424 379 425 382 426 385 427 388 428 429 391 430 394 431 | Used by:Timeline |
| Symbol 433 Graphic | Used by:434 | |
| Symbol 434 MovieClip {EnemyIcon} | Uses:92 94 96 98 100 102 104 106 108 433 | Used by:Timeline |
| Symbol 435 Graphic | Used by:436 | |
| Symbol 436 MovieClip | Uses:435 | Used by:437 |
| Symbol 437 MovieClip {EnemyPoisonedIcon} | Uses:436 | Used by:Timeline |
| Symbol 438 Graphic | Used by:439 | |
| Symbol 439 MovieClip | Uses:438 | Used by:440 |
| Symbol 440 MovieClip {EnemySlowedDownIcon} | Uses:439 | Used by:Timeline |
| Symbol 441 Bitmap | Used by:442 | |
| Symbol 442 Graphic | Uses:441 | Used by:465 |
| Symbol 443 Bitmap | Used by:444 | |
| Symbol 444 Graphic | Uses:443 | Used by:465 |
| Symbol 445 Bitmap | Used by:446 | |
| Symbol 446 Graphic | Uses:445 | Used by:465 |
| Symbol 447 Bitmap | Used by:448 | |
| Symbol 448 Graphic | Uses:447 | Used by:465 |
| Symbol 449 Bitmap | Used by:450 | |
| Symbol 450 Graphic | Uses:449 | Used by:465 |
| Symbol 451 Bitmap | Used by:452 | |
| Symbol 452 Graphic | Uses:451 | Used by:465 |
| Symbol 453 Bitmap | Used by:454 | |
| Symbol 454 Graphic | Uses:453 | Used by:465 |
| Symbol 455 Bitmap | Used by:456 | |
| Symbol 456 Graphic | Uses:455 | Used by:465 |
| Symbol 457 Bitmap | Used by:458 | |
| Symbol 458 Graphic | Uses:457 | Used by:465 |
| Symbol 459 Bitmap | Used by:460 | |
| Symbol 460 Graphic | Uses:459 | Used by:465 |
| Symbol 461 Bitmap | Used by:462 | |
| Symbol 462 Graphic | Uses:461 | Used by:465 |
| Symbol 463 Bitmap | Used by:464 | |
| Symbol 464 Graphic | Uses:463 | Used by:465 |
| Symbol 465 MovieClip {livesLeft} | Uses:442 444 446 448 450 452 454 456 458 460 462 464 | Used by:Timeline |
| Symbol 466 Graphic | Used by:467 | |
| Symbol 467 MovieClip {EnemyBigIcon} | Uses:92 94 96 98 100 102 104 106 108 466 | Used by:Timeline |
| Symbol 468 Graphic | Used by:489 | |
| Symbol 469 Graphic | Used by:489 | |
| Symbol 470 Graphic | Used by:489 | |
| Symbol 471 Graphic | Used by:489 | |
| Symbol 472 Graphic | Used by:489 | |
| Symbol 473 Graphic | Used by:489 | |
| Symbol 474 Graphic | Used by:489 | |
| Symbol 475 Graphic | Used by:489 | |
| Symbol 476 Graphic | Used by:489 | |
| Symbol 477 Graphic | Used by:489 | |
| Symbol 478 Graphic | Used by:489 | |
| Symbol 479 Graphic | Used by:489 | |
| Symbol 480 Graphic | Used by:489 | |
| Symbol 481 Graphic | Used by:489 | |
| Symbol 482 Graphic | Used by:489 | |
| Symbol 483 Graphic | Used by:489 | |
| Symbol 484 Graphic | Used by:489 | |
| Symbol 485 Graphic | Used by:489 | |
| Symbol 486 Graphic | Used by:489 | |
| Symbol 487 Graphic | Used by:489 | |
| Symbol 488 Graphic | Used by:489 | |
| Symbol 489 MovieClip {enemyCount} | Uses:468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 | Used by:Timeline |
| Symbol 490 Bitmap | Used by:491 | |
| Symbol 491 Graphic | Uses:490 | Used by:494 |
| Symbol 492 Bitmap | Used by:493 | |
| Symbol 493 Graphic | Uses:492 | Used by:494 |
| Symbol 494 MovieClip {sendBtn} | Uses:491 493 | Used by:Timeline |
| Symbol 495 Graphic | Used by:496 | |
| Symbol 496 MovieClip {sendBtnHitArea} | Uses:495 | Used by:Timeline |
| Symbol 497 Graphic | Used by:498 | |
| Symbol 498 MovieClip | Uses:497 | Used by:501 |
| Symbol 499 Graphic | Used by:500 | |
| Symbol 500 MovieClip | Uses:499 | Used by:501 |
| Symbol 501 MovieClip {speedBtn} | Uses:365 498 500 | Used by:Timeline |
| Symbol 502 MovieClip {speedBtnHitArea} | Uses:27 | Used by:Timeline |
| Symbol 503 Graphic | Used by:504 | |
| Symbol 504 MovieClip | Uses:503 | Used by:509 |
| Symbol 505 Graphic | Used by:506 | |
| Symbol 506 MovieClip | Uses:505 | Used by:509 |
| Symbol 507 Graphic | Used by:508 | |
| Symbol 508 MovieClip | Uses:507 | Used by:509 |
| Symbol 509 MovieClip {musicBtn} | Uses:504 506 508 | Used by:Timeline |
| Symbol 510 MovieClip {musicBtnHitArea} | Uses:50 | Used by:Timeline |
| Symbol 511 Graphic | Used by:512 | |
| Symbol 512 MovieClip | Uses:511 | Used by:519 |
| Symbol 513 Graphic | Used by:514 | |
| Symbol 514 MovieClip | Uses:513 | Used by:519 |
| Symbol 515 Graphic | Used by:516 | |
| Symbol 516 MovieClip | Uses:515 | Used by:519 |
| Symbol 517 Graphic | Used by:518 | |
| Symbol 518 MovieClip | Uses:517 | Used by:519 |
| Symbol 519 MovieClip {soundBtn} | Uses:512 514 516 518 | Used by:Timeline |
| Symbol 520 MovieClip {soundBtnHitArea} | Uses:50 | Used by:Timeline |
| Symbol 521 Text | Uses:2 | Used by:527 |
| Symbol 522 Text | Uses:2 | Used by:527 |
| Symbol 523 Text | Uses:2 | Used by:527 |
| Symbol 524 Text | Uses:2 | Used by:527 |
| Symbol 525 Bitmap | Used by:526 | |
| Symbol 526 Graphic | Uses:525 | Used by:527 |
| Symbol 527 MovieClip {TowerUpgradeData} | Uses:521 522 523 524 526 | Used by:Timeline |
| Symbol 528 Bitmap | Used by:529 | |
| Symbol 529 Graphic | Uses:528 | Used by:532 |
| Symbol 530 Bitmap | Used by:531 | |
| Symbol 531 Graphic | Uses:530 | Used by:532 |
| Symbol 532 MovieClip {SellBtn} | Uses:529 531 | Used by:Timeline |
| Symbol 533 Bitmap | Used by:534 | |
| Symbol 534 Graphic | Uses:533 | Used by:537 538 |
| Symbol 535 Bitmap | Used by:536 | |
| Symbol 536 Graphic | Uses:535 | Used by:538 |
| Symbol 537 MovieClip | Uses:534 | Used by:538 |
| Symbol 538 MovieClip {UpgradeBtn} | Uses:534 536 537 | Used by:Timeline |
| Symbol 539 MovieClip {UpgradeBtnHitArea} | Uses:50 | Used by:Timeline |
| Symbol 540 Bitmap | Used by:541 | |
| Symbol 541 Graphic | Uses:540 | Used by:542 |
| Symbol 542 MovieClip {Explosion} | Uses:27 541 | Used by:Timeline |
| Symbol 543 Bitmap | Used by:544 | |
| Symbol 544 Graphic | Uses:543 | Used by:545 |
| Symbol 545 MovieClip {ExplosionBig} | Uses:27 544 | Used by:Timeline |
| Symbol 546 Bitmap | Used by:547 | |
| Symbol 547 Graphic | Uses:546 | Used by:548 |
| Symbol 548 MovieClip {Destination} | Uses:547 | Used by:Timeline |
| Symbol 549 Graphic | Used by:550 | |
| Symbol 550 MovieClip {Grid} | Uses:549 | Used by:Timeline |
| Symbol 551 Bitmap | Used by:552 | |
| Symbol 552 Graphic | Uses:551 | Used by:631 |
| Symbol 553 Bitmap | Used by:554 | |
| Symbol 554 Graphic | Uses:553 | Used by:631 |
| Symbol 555 Bitmap | Used by:556 | |
| Symbol 556 Graphic | Uses:555 | Used by:631 |
| Symbol 557 Bitmap | Used by:558 | |
| Symbol 558 Graphic | Uses:557 | Used by:631 |
| Symbol 559 Bitmap | Used by:560 | |
| Symbol 560 Graphic | Uses:559 | Used by:631 |
| Symbol 561 Bitmap | Used by:562 | |
| Symbol 562 Graphic | Uses:561 | Used by:631 |
| Symbol 563 Bitmap | Used by:564 | |
| Symbol 564 Graphic | Uses:563 | Used by:631 |
| Symbol 565 Bitmap | Used by:566 | |
| Symbol 566 Graphic | Uses:565 | Used by:631 |
| Symbol 567 Bitmap | Used by:568 | |
| Symbol 568 Graphic | Uses:567 | Used by:631 |
| Symbol 569 Bitmap | Used by:570 | |
| Symbol 570 Graphic | Uses:569 | Used by:631 |
| Symbol 571 Bitmap | Used by:572 | |
| Symbol 572 Graphic | Uses:571 | Used by:631 |
| Symbol 573 Bitmap | Used by:574 | |
| Symbol 574 Graphic | Uses:573 | Used by:631 |
| Symbol 575 Bitmap | Used by:576 | |
| Symbol 576 Graphic | Uses:575 | Used by:631 |
| Symbol 577 Bitmap | Used by:578 | |
| Symbol 578 Graphic | Uses:577 | Used by:631 |
| Symbol 579 Bitmap | Used by:580 | |
| Symbol 580 Graphic | Uses:579 | Used by:631 |
| Symbol 581 Bitmap | Used by:582 | |
| Symbol 582 Graphic | Uses:581 | Used by:631 |
| Symbol 583 Bitmap | Used by:584 | |
| Symbol 584 Graphic | Uses:583 | Used by:631 |
| Symbol 585 Bitmap | Used by:586 | |
| Symbol 586 Graphic | Uses:585 | Used by:631 |
| Symbol 587 Bitmap | Used by:588 | |
| Symbol 588 Graphic | Uses:587 | Used by:631 |
| Symbol 589 Bitmap | Used by:590 | |
| Symbol 590 Graphic | Uses:589 | Used by:631 |
| Symbol 591 Bitmap | Used by:592 | |
| Symbol 592 Graphic | Uses:591 | Used by:631 |
| Symbol 593 Bitmap | Used by:594 | |
| Symbol 594 Graphic | Uses:593 | Used by:631 |
| Symbol 595 Bitmap | Used by:596 | |
| Symbol 596 Graphic | Uses:595 | Used by:631 |
| Symbol 597 Bitmap | Used by:598 | |
| Symbol 598 Graphic | Uses:597 | Used by:631 |
| Symbol 599 Bitmap | Used by:600 | |
| Symbol 600 Graphic | Uses:599 | Used by:631 |
| Symbol 601 Bitmap | Used by:602 | |
| Symbol 602 Graphic | Uses:601 | Used by:631 |
| Symbol 603 Bitmap | Used by:604 | |
| Symbol 604 Graphic | Uses:603 | Used by:631 |
| Symbol 605 Bitmap | Used by:606 | |
| Symbol 606 Graphic | Uses:605 | Used by:631 |
| Symbol 607 Bitmap | Used by:608 | |
| Symbol 608 Graphic | Uses:607 | Used by:631 |
| Symbol 609 Bitmap | Used by:610 | |
| Symbol 610 Graphic | Uses:609 | Used by:631 |
| Symbol 611 Bitmap | Used by:612 | |
| Symbol 612 Graphic | Uses:611 | Used by:631 |
| Symbol 613 Bitmap | Used by:614 | |
| Symbol 614 Graphic | Uses:613 | Used by:631 |
| Symbol 615 Bitmap | Used by:616 | |
| Symbol 616 Graphic | Uses:615 | Used by:631 |
| Symbol 617 Bitmap | Used by:618 | |
| Symbol 618 Graphic | Uses:617 | Used by:631 |
| Symbol 619 Bitmap | Used by:620 | |
| Symbol 620 Graphic | Uses:619 | Used by:631 |
| Symbol 621 Bitmap | Used by:622 | |
| Symbol 622 Graphic | Uses:621 | Used by:631 |
| Symbol 623 Bitmap | Used by:624 | |
| Symbol 624 Graphic | Uses:623 | Used by:631 |
| Symbol 625 Bitmap | Used by:626 | |
| Symbol 626 Graphic | Uses:625 | Used by:631 |
| Symbol 627 Bitmap | Used by:628 | |
| Symbol 628 Graphic | Uses:627 | Used by:631 |
| Symbol 629 Bitmap | Used by:630 | |
| Symbol 630 Graphic | Uses:629 | Used by:631 |
| Symbol 631 MovieClip {MapBg} | Uses:552 554 556 558 560 562 564 566 568 570 572 574 576 578 580 582 584 586 588 590 592 594 596 598 600 602 604 606 608 610 612 614 616 618 620 622 624 626 628 630 | Used by:Timeline |
| Symbol 632 Graphic | Used by:633 659 | |
| Symbol 633 MovieClip | Uses:632 | Used by:634 636 638 640 642 644 646 648 650 652 654 656 |
| Symbol 634 MovieClip | Uses:633 | Used by:658 |
| Symbol 635 Graphic | Used by:658 | |
| Symbol 636 MovieClip | Uses:633 | Used by:658 |
| Symbol 637 Graphic | Used by:658 | |
| Symbol 638 MovieClip | Uses:633 | Used by:658 |
| Symbol 639 Graphic | Used by:658 | |
| Symbol 640 MovieClip | Uses:633 | Used by:658 |
| Symbol 641 Graphic | Used by:658 | |
| Symbol 642 MovieClip | Uses:633 | Used by:658 |
| Symbol 643 Graphic | Used by:658 | |
| Symbol 644 MovieClip | Uses:633 | Used by:658 |
| Symbol 645 Graphic | Used by:658 | |
| Symbol 646 MovieClip | Uses:633 | Used by:658 |
| Symbol 647 Graphic | Used by:658 | |
| Symbol 648 MovieClip | Uses:633 | Used by:658 |
| Symbol 649 Graphic | Used by:658 | |
| Symbol 650 MovieClip | Uses:633 | Used by:658 |
| Symbol 651 Graphic | Used by:658 | |
| Symbol 652 MovieClip | Uses:633 | Used by:658 |
| Symbol 653 Graphic | Used by:658 | |
| Symbol 654 MovieClip | Uses:633 | Used by:658 |
| Symbol 655 Graphic | Used by:658 | |
| Symbol 656 MovieClip | Uses:633 | Used by:658 |
| Symbol 657 Graphic | Used by:658 | |
| Symbol 658 MovieClip {highlightBomb} | Uses:634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 | Used by:Timeline |
| Symbol 659 MovieClip | Uses:632 | Used by:684 685 |
| Symbol 660 Bitmap | Used by:661 | |
| Symbol 661 Graphic | Uses:660 | Used by:662 692 |
| Symbol 662 MovieClip | Uses:661 | Used by:663 |
| Symbol 663 MovieClip | Uses:662 79 | Used by:684 |
| Symbol 664 Bitmap | Used by:665 | |
| Symbol 665 Graphic | Uses:664 | Used by:666 692 |
| Symbol 666 MovieClip | Uses:665 | Used by:667 |
| Symbol 667 MovieClip | Uses:666 81 | Used by:684 |
| Symbol 668 Bitmap | Used by:669 | |
| Symbol 669 Graphic | Uses:668 | Used by:670 692 |
| Symbol 670 MovieClip | Uses:669 | Used by:671 |
| Symbol 671 MovieClip | Uses:670 83 | Used by:684 |
| Symbol 672 Bitmap | Used by:673 | |
| Symbol 673 Graphic | Uses:672 | Used by:674 692 |
| Symbol 674 MovieClip | Uses:673 | Used by:675 |
| Symbol 675 MovieClip | Uses:674 85 | Used by:684 |
| Symbol 676 Bitmap | Used by:677 | |
| Symbol 677 Graphic | Uses:676 | Used by:678 692 |
| Symbol 678 MovieClip | Uses:677 | Used by:679 |
| Symbol 679 MovieClip | Uses:678 87 | Used by:684 |
| Symbol 680 Bitmap | Used by:681 | |
| Symbol 681 Graphic | Uses:680 | Used by:682 692 |
| Symbol 682 MovieClip | Uses:681 | Used by:683 |
| Symbol 683 MovieClip | Uses:682 89 | Used by:684 |
| Symbol 684 MovieClip {highlightTower} | Uses:659 663 667 671 675 679 683 | Used by:Timeline |
| Symbol 685 MovieClip {towerRangeCircle} | Uses:659 | Used by:Timeline |
| Symbol 686 Graphic | Used by:687 | |
| Symbol 687 MovieClip | Uses:686 | Used by:688 689 690 691 692 |
| Symbol 688 MovieClip | Uses:687 | Used by:692 |
| Symbol 689 MovieClip | Uses:687 | Used by:692 |
| Symbol 690 MovieClip | Uses:687 | Used by:692 |
| Symbol 691 MovieClip | Uses:687 | Used by:692 |
| Symbol 692 MovieClip {TowerBase} | Uses:661 687 688 689 690 691 665 669 673 677 681 | Used by:Timeline |
| Symbol 693 Bitmap | Used by:694 | |
| Symbol 694 Graphic | Uses:693 | Used by:695 |
| Symbol 695 MovieClip {AchievementRectangle} | Uses:694 282 284 286 288 290 292 294 296 298 300 | Used by:Timeline |
| Symbol 696 Sound {s01} | Used by:711 | |
| Symbol 697 Sound {s03} | Used by:711 | |
| Symbol 698 Sound {mm03} | Used by:711 | |
| Symbol 699 Sound {mm01} | Used by:711 | |
| Symbol 700 Sound {mm02} | Used by:711 | |
| Symbol 701 Sound {s32} | Used by:711 | |
| Symbol 702 Sound {s30} | Used by:711 | |
| Symbol 703 Sound {s22} | Used by:711 | |
| Symbol 704 Sound {s21} | Used by:711 | |
| Symbol 705 Sound {s23} | Used by:711 | |
| Symbol 706 Sound {s31} | Used by:711 | |
| Symbol 707 Sound {s43} | Used by:711 | |
| Symbol 708 Sound {s42} | Used by:711 | |
| Symbol 709 Sound {s41} | Used by:711 | |
| Symbol 710 Sound {s40} | Used by:711 | |
| Symbol 711 MovieClip | Uses:27 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 | Used by:Timeline |
Special Tags
| FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS3. |
|
|