Frame 1
stop();
MochiAd.showPreloaderAd({id:"be8510a8b21769af", res:"600x500"});
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
fscommand ("showmenu", "fasle");
Instance of Symbol 60 MovieClip in Frame 12
//component parameters
onClipEvent (construct) {
_game_name = "ant_move";
score_var = "_root.scores";
}
Frame 119
music_state = true;
sound_state = true;
_quality = "MEDIUM";
scores_step = 20;
game_difficulty = "normal";
Frame 120
function init_music() {
if (!main_music_holder) {
var _local3 = _root.getNextHighestDepth();
this.createEmptyMovieClip("main_music_holder", _local3);
this.createEmptyMovieClip("game_over_sound_holder", _local3 + 1);
main_music_mc = new Sound(main_music_holder);
main_music_mc.attachSound("main_music");
game_over_sound_mc = new Sound(game_over_sound_holder);
game_over_sound_mc.attachSound("game_over_sound");
}
game_over_sound_mc.stop();
main_music_mc.stop();
main_music_mc.start(0, 999);
main_music_mc.setVolume(100);
}
function music_control() {
if (!music_state) {
main_music_mc.setVolume(0);
} else {
main_music_mc.setVolume(100);
}
}
function init_sound() {
if (!sound_holder) {
var _local3 = _root.getNextHighestDepth();
this.createEmptyMovieClip("sound_holder", _local3);
this.createEmptyMovieClip("pat_sound_holder", _local3 + 1);
this.createEmptyMovieClip("wasp_sound_holder", _local3 + 2);
pat_sound_mc = new Sound(pat_sound_holder);
pat_sound_mc.attachSound("pat_sound");
kill_sound_mc = new Sound(sound_holder);
kill_sound_mc.attachSound("kill_sound");
shot_sound_mc = new Sound(sound_holder);
shot_sound_mc.attachSound("shot_sound");
wasp_sound_mc = new Sound(wasp_sound_holder);
wasp_sound_mc.attachSound("wasp_sound");
spider_sound_mc = new Sound(sound_holder);
spider_sound_mc.attachSound("spider_sound");
}
}
function sound_global_control() {
if (!sound_state) {
pat_sound_mc.setVolume(0);
kill_sound_mc.setVolume(0);
shot_sound_mc.setVolume(0);
wasp_sound_mc.setVolume(0);
spider_sound_mc.setVolume(0);
} else {
pat_sound_mc.setVolume(30);
kill_sound_mc.setVolume(100);
shot_sound_mc.setVolume(100);
wasp_sound_mc.setVolume(40);
spider_sound_mc.setVolume(100);
}
}
stop();
_root.scene_pause_FG = true;
clear_base();
clear_stage();
removeMovieClip(level);
delete this.onEnterFrame;
var scores = 0;
go_bt.onPress = function () {
current_game_level = Number(game_level_text.text) - 1;
game_level = game_level_Array[current_game_level];
gotoAndStop ("game_scene");
};
game_level_Array = new Array("level1", "level2", "level3", "bonuslevel1", "level4", "level5", "level6", "bonuslevel2", "level7", "level8", "level9", "bonuslevel3", "level10", "level11", "level12", "bonuslevel4", "level13", "level14", "level15");
game_level_txt_Array = new Array("Level 1", "Level 2", "Level 3", "Bonus Level", "Level 4", "Level 5", "Level 6", "Bonus Level", "Level 7", "Level 8", "Level 9", "Bonus Level", "Level 10", "Level 11", "Level 12", "Bonus Level", "Level 13", "Level 14", "Level 15");
current_game_level = 0;
game_level = game_level_Array[current_game_level];
init_music();
init_sound();
play_bt.onPress = function () {
gotoAndPlay ("game_scene");
};
more_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
download_bt.onPress = function () {
getURL ("http://www.ifungames.com", "_blank");
};
setting_bt.onPress = function () {
};
add_game_bt.onPress = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
view_highscores.onPress = function () {
viewHighscore();
};
Instance of Symbol 21 MovieClip in Frame 120
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Frame 138
function clear_base() {
removeMovieClip(level.base1);
removeMovieClip(level.base2);
removeMovieClip(level.base3);
removeMovieClip(level.base4);
removeMovieClip(level.wasp_loader);
removeMovieClip(level.spider_loader);
removeMovieClip(level.eat_ant_loader);
removeMovieClip(level.enemy_control);
}
function clear_stage() {
game_start = false;
clearInterval(_root.ant_load_interval1);
clearInterval(_root.ant_load_interval2);
clearInterval(_root.ant_load_interval3);
clearInterval(_root.ant_load_interval4);
clearInterval(_root.power_add_interval1);
clearInterval(_root.power_add_interval2);
clearInterval(_root.power_add_interval3);
clearInterval(_root.power_add_interval4);
delete _root.ant_load_interval1;
delete _root.ant_load_interval2;
delete _root.ant_load_interval3;
delete _root.ant_load_interval4;
delete _root.power_add_interval1;
delete _root.power_add_interval2;
delete _root.power_add_interval3;
delete _root.power_add_interval4;
removeMovieClip(powerup);
removeMovieClip(sound_control);
removeMovieClip(game_pass_layout);
removeMovieClip(game_menu_layout);
removeMovieClip(game_pass_note);
removeMovieClip(flash_bg_start);
removeMovieClip(flash_bg_end);
removeMovieClip(note_loader);
removeMovieClip(pause_MC);
removeMovieClip(pause_menu);
removeMovieClip(kill);
removeMovieClip(pat);
removeMovieClip(slingshot);
removeMovieClip(shotpost);
removeMovieClip(ball);
removeMovieClip(brush);
Mouse.removeListener(mouse_listener);
Mouse.show();
}
function load_level() {
depth = _root.getNextHighestDepth();
_root.attachMovie(game_level, "level", depth);
if (((((game_level == "level1") || (game_level == "bonuslevel1")) || (game_level == "bonuslevel2")) || (game_level == "bonuslevel3")) || (game_level == "bonuslevel4")) {
_root.attachMovie("powerup1", "powerup", depth + 1, {_x:-10, _y:436});
} else if (game_level == "level2") {
_root.attachMovie("powerup2", "powerup", depth + 1, {_x:-10, _y:436});
} else {
_root.attachMovie("powerup", "powerup", depth + 1, {_x:-10, _y:436});
}
_root.attachMovie("sound_control", "sound_control", depth + 2, {_x:460, _y:480});
_root.attachMovie("note_loader", "note_loader", depth + 3);
}
function scores_note(score_note, x0, y0) {
var _local2 = _root.note_loader.getNextHighestDepth();
_root.note_loader.attachMovie(score_note, score_note + _local2, _local2, {_x:x0, _y:y0 - 30});
}
function wasp_load() {
var _local1 = level.wasp_loader.getNextHighestDepth();
if (level.level_type == "bonus") {
level.wasp_loader.attachMovie("wasp_bonus", "wasp" + _local1, _local1, {_x:20, _y:100});
} else {
level.wasp_loader.attachMovie("wasp", "wasp" + _local1, _local1, {_x:20, _y:100});
}
}
function spider_load() {
var _local1 = level.spider_loader.getNextHighestDepth();
level.spider_loader.attachMovie("spider", "spider" + _local1, _local1, {_x:20, _y:-80});
}
function web_load() {
var _local1 = level.web_loader.getNextHighestDepth();
level.web_loader.attachMovie("web", "web" + _local1, _local1, {_xscale:20, _yscale:20});
web_name = level.web_loader["web" + _local1];
return(web_name);
}
function eat_ant_load() {
var _local1 = level.eat_ant_loader.getNextHighestDepth();
level.eat_ant_loader.attachMovie("eat_ant", "eat_ant" + _local1, _local1, {_x:70, _y:470});
}
function dis_scores() {
game_pass_layout.insect_die_num_text.text = insect_die_num;
game_pass_layout.mollusc_die_num_text.text = mollusc_die_num;
game_pass_layout.white_ant_die_num_text.text = white_ant_die_num;
game_pass_layout.wasp_die_num_text.text = wasp_die_num;
game_pass_layout.spider_die_num_text.text = spider_die_num;
game_pass_layout.eat_ant_die_num_text.text = eat_ant_die_num;
game_pass_layout.insect_score_text.text = insect_die_num * 30;
game_pass_layout.mollusc_score_text.text = mollusc_die_num * 20;
game_pass_layout.white_ant_score_text.text = white_ant_die_num * 40;
game_pass_layout.wasp_score_text.text = wasp_die_num * 50;
game_pass_layout.spider_score_text.text = spider_die_num * 50;
game_pass_layout.eat_ant_score_text.text = eat_ant_die_num * 100;
game_pass_layout.egg_save_num_text.text = egg_save_num;
game_pass_layout.add_score_text.text = egg_save_num * 20;
game_pass_layout.egg_loss_num_text.text = egg_loss_num;
game_pass_layout.loss_score_text.text = egg_loss_num * 10;
game_pass_layout.level_score_text.text = level_score;
game_pass_layout.total_scores_text.text = scores;
}
function unload_mc(mc) {
if ((mc._x <= _root.left) || (mc._x >= _root.right)) {
removeMovieClip(mc);
}
if ((mc._y >= _root.bottom) || (mc._y <= _root.top)) {
removeMovieClip(mc);
}
}
function clear_powerup() {
removeMovieClip(_root.kill);
removeMovieClip(_root.pat);
removeMovieClip(_root.ball);
removeMovieClip(_root.slingshot);
removeMovieClip(_root.shotpost);
removeMovieClip(_root.brush);
}
function choose_pat() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (!level.pat_locked) {
clear_powerup();
depth = _root.getNextHighestDepth();
_root.attachMovie("pat", "pat", depth, {_x:_xmouse, _y:_ymouse});
Mouse.hide();
power_type = "pat";
startDrag (pat, true);
}
}
function choose_kill() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (!level.kill_locked) {
clear_powerup();
depth = _root.getNextHighestDepth();
_root.attachMovie("kill", "kill", depth, {_x:_xmouse, _y:_ymouse});
Mouse.hide();
startDrag (kill, true);
if ((level.kill_num > 0) && (power_type != "kill")) {
power_type = "kill";
}
}
}
function choose_shot() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (!level.shot_locked) {
clear_powerup();
depth = _root.getNextHighestDepth();
_root.attachMovie("slingshot", "slingshot", depth, {_x:slingshot_x, _y:slingshot_y});
_root.attachMovie("shotpost", "shotpost", depth + 1, {_x:_xmouse, _y:_ymouse});
_root.attachMovie("ball", "ball", depth + 2, {_x:shot_start_x, _y:shot_start_y});
ball.hited = false;
Mouse.hide();
power_type = "shot";
startDrag (shotpost, true);
}
}
function choose_glue() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (!level.glue_locked) {
clear_powerup();
depth = _root.getNextHighestDepth();
_root.attachMovie("brush", "brush", depth, {_x:_xmouse, _y:_ymouse});
Mouse.hide();
startDrag (brush, true);
if (level.glue_num > 0) {
power_type = "brush";
start_draw = true;
}
}
}
function slingshot_rotate() {
var _local2 = _xmouse - slingshot_x;
var _local1 = _ymouse - slingshot_y;
shot_angel = ExtMath.atan2D(_local1, _local2);
slingshot._rotation = shot_angel;
}
function shoting() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (shot_start) {
if (!ball.hited) {
shot_speed = shot_speed + shot_a;
ball._x = ball._x + (shot_speed * ExtMath.cosD(start_angle));
ball._y = ball._y + (shot_speed * ExtMath.sinD(start_angle));
}
unload_mc(ball);
if ((!ball) && (power_type == "shot")) {
hit_aim = false;
shot_start = false;
shot_speed = normal_speed;
depth = _root.getNextHighestDepth();
_root.attachMovie("ball", "ball", depth, {_x:shot_start_x, _y:shot_start_y});
ball.hited = false;
}
}
}
function check_kill(obj) {
var _local3 = obj.hitTest(_root.kill.hit_area);
if (_local3 && (!power_lock)) {
if (use_allow && (kill_used == false)) {
if ((obj.life_num > 0) && (!obj.die_state)) {
obj.life_num = obj.life_num - 3;
}
if (obj.life_num <= 0) {
obj.die = true;
}
use_allow = false;
}
}
}
function check_pat(obj) {
var _local3 = obj.hitTest(_root.pat.hit_area);
if (_local3 && (!power_lock)) {
if (use_allow && (pat_used == false)) {
if ((obj.life_num > 0) && (!obj.die_state)) {
obj.life_num = obj.life_num - 1;
obj.blood.play();
}
if (obj.life_num <= 0) {
obj.die = true;
}
use_allow = false;
}
}
}
function brush_rotate() {
var _local2 = 50;
var _local1 = 550;
if (_xmouse < _local2) {
brush_angle = 90;
} else if (_xmouse > _local1) {
brush_angle = -90;
} else {
brush_angle = 0;
}
brush._rotation = brush_angle;
}
function add_glue() {
var _local1 = level.tree.hitTest(_xmouse, _ymouse, true);
var _local2 = level.floor_loader.hitTest(_xmouse, _ymouse, true);
if (level.glue_num != 0) {
if (_local1 || (_local2)) {
depth = level.glue_loader.getNextHighestDepth();
level.glue_loader.attachMovie("glue", "glue" + depth, depth, {_x:_xmouse, _y:_ymouse, _xscale:25, _yscale:25, _rotation:brush_angle});
}
}
}
function check_power_num() {
if (scores <= 0) {
scores = 0;
}
if (level_score <= 0) {
level_score = 0;
}
_root.powerup.num1.text = level.pat_num;
_root.powerup.num2.text = level.kill_num;
_root.powerup.num3.text = level.shot_num;
_root.powerup.num4.text = level.glue_num;
level.scores_loader.achieved_num_text.text = level.arrive_nit_num;
need_num = level.aim_num - level.arrive_nit_num;
if (need_num < 0) {
need_num = 0;
}
leave_ant_num = level.total_num - ant_num;
level.scores_loader.total_num_text.text = leave_ant_num;
level.scores_loader.need_num_text.text = need_num;
level.scores_loader.scores_text.text = scores;
level.scores_loader.game_level_text.text = game_level_txt_Array[_root.current_game_level];
egg_save_num = level.arrive_nit_num;
egg_loss_num = level.total_num - level.arrive_nit_num;
}
function check_game_over() {
if (_root.scene_pause_FG) {
return(undefined);
}
if ((leave_ant_num == 0) && (ant_num != 0)) {
if (need_num == 0) {
if (game_level != "level15") {
gotoAndStop ("game_pass");
return(undefined);
}
gotoAndStop ("game_end");
return(undefined);
}
gotoAndStop ("game_over");
return(undefined);
}
if ((leave_ant_num < need_num) && (ant_num != 0)) {
gotoAndStop ("game_over");
return(undefined);
}
if (((need_num == 0) && (!pass_note_add)) && (ant_num != 0)) {
depth = _root.getNextHighestDepth();
_root.attachMovie("game_pass_note", "game_pass_note", depth, {_x:240, _y:400});
pass_note_add = true;
}
}
function update_ant_num() {
var _local1 = level.ant_control;
_local1.num1.text = level.ant_2_num;
_local1.num2.text = level.ant_3_num;
}
function mouse_change() {
var _local2 = _root.level.ant_control;
var _local4 = _local2.hitTest(pat.mouse_dot);
var _local10 = _local2.hitTest(kill.mouse_dot);
var _local7 = _local2.hitTest(shotpost);
var _local14 = _local2.hitTest(brush.mouse_dot);
var _local8 = powerup.hitTest(pat.mouse_dot);
var _local6 = powerup.hitTest(kill.mouse_dot);
var _local5 = powerup.hitTest(shotpost);
var _local3 = powerup.hitTest(brush.mouse_dot);
var _local9 = sound_control.hitTest(pat.mouse_dot);
var _local11 = sound_control.hitTest(kill.mouse_dot);
var _local12 = sound_control.hitTest(shotpost);
var _local13 = sound_control.hitTest(brush.mouse_dot);
if (((((((((((((_local9 || (_local11)) || (_local12)) || (_local13)) || (_local4)) || (_local10)) || (_local7)) || (_local14)) || (_local8)) || (_local6)) || (_local5)) || (_local3)) || (power_type == undefined)) || (scene_pause_FG)) {
hit_this = true;
} else {
hit_this = false;
}
if (hit_this) {
Mouse.show();
pat._alpha = 0;
kill._alpha = 0;
shotpost._alpha = 0;
brush._alpha = 0;
power_lock = true;
this_hited = true;
power_lock = true;
}
if ((!hit_this) && (this_hited)) {
Mouse.hide();
pat._alpha = 100;
kill._alpha = 100;
shotpost._alpha = 100;
brush._alpha = 100;
power_lock = false;
this_hited = false;
power_lock = false;
}
}
function onEnterFrame() {
update_ant_num();
mouse_change();
check_game_over();
shoting();
check_power_num();
slingshot_rotate();
if (!game_start) {
Mouse.show();
}
}
stop();
var scene_pause_FG = false;
clear_base();
removeMovieClip(level);
clear_stage();
game_over_sound_mc.stop();
var game_level;
var ant_vx;
var scores;
var scores_step;
var ant_num;
var arrive_ant_id;
var power_type;
var right = 600;
var left = 0;
var top = 0;
var bottom = 500;
var ant_contorl_x = 180;
var ant_contorl_y = 440;
var game_start = false;
music_control();
main_music_mc.stop();
main_music_mc.start(0, 999);
sound_global_control();
load_level();
var insect_die_num = 0;
var mollusc_die_num = 0;
var white_ant_die_num = 0;
var wasp_die_num = 0;
var spider_die_num = 0;
var eat_ant_die_num = 0;
var ant_num = 0;
var level_score = 0;
power_lock = false;
powerup.b01.onPress = function () {
choose_pat();
};
powerup.b02.onPress = function () {
choose_kill();
};
var slingshot_x = 300;
var slingshot_y = 490;
var shot_start_x = slingshot_x;
var shot_start_y = slingshot_y;
var shot_use_num = 0;
var shot_start = false;
var normal_speed = 5;
var shot_speed = normal_speed;
var shot_a = 10;
var start_angle;
hit_aim = false;
powerup.b03.onPress = function () {
choose_shot();
};
powerup.b04.onPress = function () {
choose_glue();
};
var use_allow = true;
mouse_listener = new Object();
mouse_up = true;
mouse_listener.onMouseDown = function () {
if (mouse_up) {
if ((power_type == "pat") && (!power_lock)) {
pat.anim.play();
pat_used = false;
}
if ((power_type == "kill") && (!power_lock)) {
kill.anim.play();
kill_used = false;
}
if ((power_type == "shot") && (!power_lock)) {
shot = false;
}
if ((power_type == "brush") && (!power_lock)) {
brush_use = false;
brush.anim.play();
add_glue();
}
mouse_up = false;
}
};
mouse_listener.onMouseUp = function () {
power_up = true;
mouse_up = true;
use_allow = true;
if (pat_used == false) {
if ((power_type == "pat") && (!power_lock)) {
pat_used = true;
}
}
if (kill_used == false) {
if ((power_type == "kill") && (!power_lock)) {
if (level.kill_num == 0) {
power_type = undefined;
kill_used = true;
} else {
level.kill_num = level.kill_num - 1;
}
}
}
if (shot == false) {
if ((power_type == "shot") && (!power_lock)) {
start_angle = shot_angel;
shot_sound_mc.start(0.4, 1);
shot_start = true;
shot = true;
}
}
if (brush_use == false) {
if ((power_type == "brush") && (!power_lock)) {
if (level.glue_num == 0) {
brush_use = true;
} else {
level.glue_num = level.glue_num - 1;
}
}
}
};
Mouse.addListener(mouse_listener);
var brush_angle = 0;
ant_2_add_FG = false;
ant_3_add_FG = false;
key_down = false;
delete key_listener;
key_listener = new Object();
key_listener.onKeyDown = function () {
if ((Key.getCode() == 80) && (!key_down)) {
if (!game_start) {
return(undefined);
}
if (!pause_menu) {
_root.scene_pause_FG = !_root.scene_pause_FG;
}
if (_root.scene_pause_FG && (!pause_menu)) {
_root.pause_MC.removeMovieClip();
_root.attachMovie("pause_MC", "pause_MC", _root.getNextHighestDepth());
} else {
_root.pause_MC.removeMovieClip();
}
key_down = true;
}
if (_root.scene_pause_FG) {
return(undefined);
}
if (game_start) {
if (Key.getCode() == 49) {
choose_pat();
}
if (Key.getCode() == 50) {
choose_kill();
}
if (Key.getCode() == 51) {
choose_shot();
}
if (Key.getCode() == 52) {
if (!ant_2_add_FG) {
level.ant_2_add();
ant_2_add_FG = true;
}
}
if (Key.getCode() == 53) {
if (!ant_3_add_FG) {
level.ant_3_add();
ant_3_add_FG = true;
}
}
}
};
key_listener.onKeyUp = function () {
key_down = false;
if (Key.getCode() == 52) {
if (ant_2_add_FG) {
ant_2_add_FG = false;
}
}
if (Key.getCode() == 53) {
if (ant_3_add_FG) {
ant_3_add_FG = false;
}
}
};
Key.addListener(key_listener);
game_menu_state = false;
pass_note_add = false;
hit_this = false;
this_hited = false;
Frame 139
prevFrame();
Frame 155
stop();
_root.scene_pause_FG = true;
clear_base();
clear_stage();
delete this.onEnterFrame;
depth = _root.getNextHighestDepth();
if (game_level == "level1") {
_root.attachMovie("game_pass_layout1", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "level2") {
_root.attachMovie("game_pass_layout2", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "level3") {
_root.attachMovie("game_pass_layout3", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "bonuslevel1") {
_root.attachMovie("game_pass_layout_bonus", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "bonuslevel2") {
_root.attachMovie("game_pass_layout_bonus", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "bonuslevel3") {
_root.attachMovie("game_pass_layout_bonus", "game_pass_layout", depth, {_x:78, _y:30});
} else if (game_level == "game_pass_layout_bonus") {
_root.attachMovie("game_pass_layout_bonus", "game_pass_layout", depth, {_x:78, _y:30});
} else {
_root.attachMovie("game_pass_layout", "game_pass_layout", depth, {_x:78, _y:30});
}
dis_scores();
game_pass_layout.next_level_bt.onPress = function () {
clear_stage();
gotoAndStop ("game_scene");
_root.current_game_level = _root.current_game_level + 1;
_root.game_level = _root.game_level_Array[current_game_level];
};
game_pass_layout.main_menu_bt.onPress = function () {
gotoAndStop ("game_menu");
};
Frame 170
stop();
_root.scene_pause_FG = true;
clear_base();
clear_stage();
removeMovieClip(level);
delete this.onEnterFrame;
dis_scores();
over_score_txt.text = _root.scores;
main_music_mc.stop();
game_over_sound_mc.stop();
game_over_sound_mc.start(0, 999);
if (game_menu_state) {
game_over_text._visible = false;
}
retry_bt.onPress = function () {
gotoAndStop ("game_scene");
_root.scores = Math.floor(_root.scores * 0.7);
};
main_menu.onPress = function () {
gotoAndStop ("game_menu");
};
view_highscores.onPress = function () {
viewHighscore();
};
onEnterFrame = function () {
Mouse.show();
};
Instance of Symbol 60 MovieClip in Frame 170
//component parameters
onClipEvent (construct) {
_game_name = "ant_move";
score_var = "_root.scores";
}
Frame 184
stop();
_root.scene_pause_FG = true;
clear_base();
clear_stage();
removeMovieClip(level);
delete this.onEnterFrame;
dis_scores();
main_music_mc.stop();
game_over_sound_mc.stop();
game_over_sound_mc.start(0, 999);
depth = _root.getNextHighestDepth();
_root.attachMovie("flash_bg_start", "flash_bg_start", depth, {_x:-140, _y:-200});
retry_bt.onPress = function () {
gotoAndStop (120);
};
main_menu.onPress = function () {
gotoAndStop (120);
};
view_highscores.onPress = function () {
viewHighscore();
};
Instance of Symbol 60 MovieClip in Frame 184
//component parameters
onClipEvent (construct) {
_game_name = "ant_move";
score_var = "_root.scores";
}
Instance of Symbol 60 MovieClip in Frame 184
//component parameters
onClipEvent (construct) {
_game_name = "ant_move";
score_var = "_root.scores";
}
Frame 203
stop();
Symbol 7 MovieClip [game_pass] Frame 1
stop();
Symbol 7 MovieClip [game_pass] Frame 2
stop();
Symbol 12 MovieClip [game_pass_note] Frame 63
removeMovieClip(this);
Symbol 1085 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function showPreloaderAd(options) {
var _local29 = {clip:_root, ad_msec:11000, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812};
options = _parseOptions(options, _local29);
var _local15 = options.clip;
var _local25 = options.ad_msec;
delete options.ad_msec;
var _local28 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local15.stop();
var mc = _local15._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local16 = _getRes(options);
var _local5 = _local16[0];
var _local14 = _local16[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local8 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local8._x = 10;
_local8._y = _local14 - 20;
var _local24 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local26 = options.outline;
delete options.outline;
var _local6 = _local8.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local8.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local24);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local7 = _local8.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local26, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local5 - 20, 0);
_local7.lineTo(_local5 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local25;
chk.ad_timeout = _local28;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local15 = {clip:_root, ad_msec:11000, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd"};
options = _parseOptions(options, _local15);
var _local6 = options.clip;
var _local12 = options.ad_msec;
delete options.ad_msec;
var _local14 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
return(null);
}
_local6.stop();
var mc = _local6._mochiad;
mc.onUnload = function () {
this._parent.play();
};
var _local7 = _getRes(options);
var _local16 = _local7[0];
var _local13 = _local7[1];
mc._x = _local16 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local12;
chk.ad_timeout = _local14;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function load(options) {
var _local14 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local14);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = "1.3";
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(false);
}
if (_local7._mochiad_loaded) {
return(false);
}
var _local13 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local13);
var _local12 = _getRes(options);
options.res = (_local12[0] + "x") + _local12[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local11 = _local4.server;
delete _local4.server;
var _local10 = _local11.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local10);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local10);
}
}
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local10;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local11 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 1086 MovieClip [__Packages.ExtMath] Frame 0
class ExtMath extends Math
{
function ExtMath () {
super();
}
static function distance(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return(Math.sqrt((_local2 * _local2) + (_local1 * _local1)));
}
static function distance2(x1, y1, x2, y2) {
var _local2 = x2 - x1;
var _local1 = y2 - y1;
return((_local2 * _local2) + (_local1 * _local1));
}
static function degreesToRadians(angle) {
return(angle * 0.017453);
}
static function radiansToDegrees(radian) {
return(radian * 57.29578);
}
static function sinD(angle) {
return(Math.sin((angle * 3.141593) / 180));
}
static function asinD(ratio) {
return(Math.asin(ratio) * 57.29578);
}
static function cosD(angle) {
return(Math.cos((angle * 3.141593) / 180));
}
static function acosD(ratio) {
return(Math.acos(ratio) * 57.29578);
}
static function tanD(angle) {
return(Math.tan((angle * 3.141593) / 180));
}
static function atan2D(y, x) {
return(Math.atan2(y, x) * 57.29578);
}
static function angleOfLine(x1, y1, x2, y2) {
return(atan2D(y2 - y1, x2 - x1));
}
static function fixAngle(angle) {
var _local1 = angle % 360;
return((((_local1 % 360) < 0) ? (_local1 + 360) : (_local1)));
}
static function to_global(target, target_x, target_y, global_coord) {
global_coord = {x:target_x, y:target_y};
target.localToGlobal(global_coord);
return(global_coord);
}
static function to_local(target, target_x, target_y, local_coord) {
local_coord = {x:target_x, y:target_y};
target.globalToLocal(local_coord);
return(local_coord);
}
}
Symbol 1087 MovieClip [__Packages.ant_class.Nit] Frame 0
class ant_class.Nit extends MovieClip
{
var base_url, _parent, ant_time, aim, nit_id, num_add, nit_type, aim_obj, x0, y0, global_coord, local_coord, _x, _y, hitTest, removeMovieClip;
function Nit () {
super();
base_url = _parent._parent;
ant_time = base_url.ant_interval_time;
aim = "ant";
nit_id = base_url.nit_num;
num_add = false;
}
function onEnterFrame() {
nit_move();
check_goal();
}
function init(this_type) {
nit_type = this_type;
}
function set_aim(aim_type, aim_name) {
aim = aim_type;
aim_obj = aim_name;
}
function change_coord(aim_obj, offset_x, offset_y) {
x0 = aim_obj._x;
y0 = aim_obj._y;
global_coord = ExtMath.to_global(aim_obj._parent, x0, y0);
x0 = global_coord.x;
y0 = global_coord.y;
local_coord = ExtMath.to_local(_parent, x0, y0);
_x = local_coord.x + offset_x;
_y = local_coord.y + offset_y;
updateAfterEvent();
}
function nit_move() {
if (aim == "ant") {
change_coord(base_url.ant_loader["ant_1_" + nit_id], 0, -20);
}
if (aim == "wasp") {
change_coord(aim_obj.hit_area, 0, 10);
}
if (aim == "insect") {
change_coord(base_url.insect_loader);
}
unload_mc();
}
function check_goal() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local3 = hitTest(_root.level.floor_loader["floor" + base_url.base_id].house.goal);
if (_local3 && (!num_add)) {
base_url._parent.arrive_nit_num = base_url._parent.arrive_nit_num + 1;
_root.level_score = _root.level_score + _root.scores_step;
_root.scores = _root.scores + _root.scores_step;
if (nit_type == "kill_add") {
_root.level.kill_num = _root.level.kill_num + 1;
}
if (nit_type == "glue_add") {
_root.level.glue_num = _root.level.glue_num + 1;
}
num_add = true;
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
}
if (!base_url.ant_loader["ant_1_" + nit_id]) {
(removeMovieClip());// not popped
}
}
}
Symbol 1088 MovieClip [__Packages.ant_class.Leaf] Frame 0
class ant_class.Leaf extends MovieClip
{
var base_url, _parent, ant_time, hit_hole, id, hitTest, new_x, _x, older_x, removeMovieClip, x0, y0, global_coord, local_coord, _y, aim, prev_x, _name, leaf_fix_hole;
function Leaf () {
super();
base_url = _parent._parent;
ant_time = base_url.ant_interval_time;
hit_hole = false;
id = base_url._parent.ant_2_num;
}
function onEnterFrame() {
leaf_move();
check_house();
}
function check_house() {
var _local3 = hitTest(_root.level.floor_loader["floor" + base_url.base_id].house.goal);
new_x = _x;
if (_local3 && (new_x == older_x)) {
removeMovieClip();
}
older_x = _x;
}
function change_coord(aim_obj, offset_x, offset_y) {
x0 = aim_obj._x;
y0 = aim_obj._y;
global_coord = ExtMath.to_global(aim_obj._parent, x0, y0);
x0 = global_coord.x;
y0 = global_coord.y;
local_coord = ExtMath.to_local(_parent, x0, y0);
_x = local_coord.x + offset_x;
_y = local_coord.y + offset_y;
updateAfterEvent();
}
function leaf_move() {
aim = base_url.ant_2_loader["ant_2_" + id];
change_coord(aim, 0, 0);
leaf_pause();
unload_mc();
}
function leaf_pause() {
if (_x == prev_x) {
onEnterFrame = null;
hit_hole = true;
fix_hole();
}
prev_x = _x;
}
function fix_hole() {
for (var _local4 in base_url.hole_loader) {
var _local3 = _parent[_name].hit_area;
var _local2 = _local3.hitTest(base_url.hole_loader[_local4]);
if (_local2) {
base_url.hole_loader[_local4].hole_fixed = true;
leaf_fix_hole = true;
}
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
}
if ((!aim) && (!leaf_fix_hole)) {
(removeMovieClip());// not popped
}
}
function bited() {
}
}
Symbol 1089 MovieClip [__Packages.ant_class.Ant] Frame 0
class ant_class.Ant extends MovieClip
{
var base_url, _parent, ant_time, id, g, vy, drop_start, rotate_finished, dropping, loss_score_FG, die_bo, vx, add_score_FG, _x, _y, note_offset_x, _xscale, global_coord, _name, hitTest, gotoAndPlay;
function Ant () {
super();
base_url = _parent._parent;
ant_time = base_url.ant_interval_time;
id = base_url.ant_num;
g = 0;
vy = 0;
drop_start = false;
rotate_finished = false;
dropping = false;
loss_score_FG = false;
die_bo = false;
}
function init(init_vx) {
vx = init_vx;
}
function add_scores() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
if (!add_score_FG) {
if (base_url.arrive_ant_id < id) {
base_url.arrive_ant_id = id;
base_url._parent.arrive_ant_id = base_url._parent.arrive_ant_id + 1;
var _local3 = ExtMath.to_global(_parent, _x, _y);
if (base_url.way == 1) {
note_offset_x = -80;
} else {
note_offset_x = 30;
}
_root.scores_note("add10", _local3.x + note_offset_x, _local3.y);
}
add_score_FG = true;
}
}
function decrease_scores() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
if (!loss_score_FG) {
if (_root.scores > 0) {
_root.level_score = _root.level_score - 10;
_root.scores = _root.scores - 10;
if (base_url.arrive_ant_id < id) {
base_url.arrive_ant_id = id;
}
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("loss10", _local3.x, _local3.y);
}
loss_score_FG = true;
}
}
function ant_move() {
_x = _x - vx;
vy = vy + g;
_y = _y + vy;
check_hole();
updateAfterEvent();
}
function ant_pause() {
vx = 0;
g = 0;
vy = 0;
}
function ant_return() {
vx = vx * -1;
_xscale = -100;
}
function check_hole() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
global_coord = ExtMath.to_global(_parent, _x, _y);
var _local6 = _parent[_name].hit_area;
var _local8 = base_url.hole_loader.hitTest(_local6);
if (_local8) {
for (var _local7 in base_url.hole_loader) {
var _local4 = base_url.hole_loader[_local7].hit_area.hitTest(_local6);
var _local3 = base_url.hole_loader[_local7].hole_fixed;
var _local5 = base_url.hole_loader[_local7].hole_finished;
if ((_local4 && (!_local3)) && (_local5)) {
ant_drop(6, 15);
}
}
}
}
function ant_drop(init_g, init_vy) {
var _local2 = base_url.nit_loader["nit" + id];
var _local3 = hitTest(_local2);
if (rotate_finished) {
g = init_g;
vy = init_vy;
dropping = true;
} else if (!drop_start) {
vx = 0;
gotoAndPlay("drop");
if (_local3) {
decrease_scores();
}
drop_start = true;
}
}
}
Symbol 1090 MovieClip [__Packages.ant_class.Ant_2] Frame 0
class ant_class.Ant_2 extends ant_class.Ant
{
var base_url, _parent, life_num, puase_time, hole_exist, hole_fixed, ant_move, _name, hit_web, vx, gotoAndPlay, ant_pause, fix, init, ant_return, global_coord, _x, _y, removeMovieClip;
function Ant_2 () {
super();
base_url = _parent._parent;
life_num = base_url.ant_2_life_num;
puase_time = 10;
hole_exist = false;
hole_fixed = false;
life_num = 2;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
ant_move();
check_web();
check_hit();
unload_mc();
}
function add_scores() {
}
function decrease_scores() {
}
function check_web() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local3 = _root.level.web_loader;
var _local4 = _parent[_name].web_hit;
var _local6 = _local4.hitTest(_local3);
if (_local6) {
for (var _local5 in _local3) {
hit_web = _local4.hitTest(_local3[_local5]);
if (hit_web) {
vx = 0;
gotoAndPlay("stick");
break;
}
}
}
}
function check_hit() {
var _local4 = _parent[_name].hit_area;
var _local6 = _local4.hitTest(base_url.hole_loader);
if (_local6) {
for (var _local5 in base_url.hole_loader) {
var _local2 = _local4.hitTest(base_url.hole_loader[_local5]);
var _local3 = base_url.hole_loader[_local5].hole_finished;
if (_local2 && (_local3)) {
hole_exist = true;
}
if (_local2 && (base_url.hole_loader[_local5].hole_fixed)) {
hole_fixed = true;
} else if (_local2) {
hole_fixed = false;
}
}
}
if ((_local6 && (!hole_fixed)) && (hole_exist)) {
ant_pause();
fix = true;
}
if (fix) {
puase_time = puase_time - 1;
}
if (puase_time <= 0) {
init(8);
ant_return();
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
return(undefined);
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
return(undefined);
}
}
}
Symbol 1091 MovieClip [__Packages.ant_class.Ant_3] Frame 0
class ant_class.Ant_3 extends ant_class.Ant
{
var this_hit_area, _name, _parent, base_url, life_num, puase_time, puase_back_time, kill, back, init, ant_move, hit_web, vx, gotoAndPlay, hitTest, hole_fixed, _xscale, global_coord, _x, _y, removeMovieClip;
function Ant_3 () {
super();
this_hit_area = _parent[_name].hit_area;
base_url = _parent._parent;
life_num = base_url.ant_3_life_num;
puase_time = 50;
puase_back_time = 50;
kill = false;
back = false;
init(8);
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
ant_move();
check_web();
check_mollusc();
check_insect();
check_white_ant();
go_back();
unload_mc();
}
function add_scores() {
}
function decrease_scores() {
}
function check_web() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local3 = _root.level.web_loader;
var _local4 = _parent[_name].web_hit;
var _local6 = _local4.hitTest(_local3);
if (_local6) {
for (var _local5 in _local3) {
hit_web = _local4.hitTest(_local3[_local5]);
if (hit_web) {
vx = 0;
gotoAndPlay("stick");
break;
}
}
}
}
function check_mollusc() {
var _local4 = this_hit_area.hitTest(base_url.mollusc_loader);
if (_local4) {
vx = 0;
kill = true;
for (var _local3 in base_url.mollusc_loader) {
var _local2 = this_hit_area.hitTest(base_url.mollusc_loader[_local3]);
if (_local2) {
base_url.mollusc_loader[_local3].vx = 0;
base_url.mollusc_loader[_local3].attacked = true;
_parent[_name].anim.gotoAndStop("front");
}
}
}
}
function check_insect() {
var _local4 = this_hit_area.hitTest(base_url.insect_loader);
if (_local4) {
vx = 0;
kill = true;
for (var _local3 in base_url.insect_loader) {
var _local2 = this_hit_area.hitTest(base_url.insect_loader[_local3]);
if (_local2) {
base_url.insect_loader[_local3].vx = 0;
base_url.insect_loader[_local3].attacked = true;
_parent[_name].anim.gotoAndStop("down");
}
}
}
}
function check_white_ant() {
var _local4 = this_hit_area.hitTest(base_url.white_ant_loader);
if (_local4) {
vx = 0;
kill = true;
for (var _local3 in base_url.white_ant_loader) {
var _local2 = this_hit_area.hitTest(base_url.white_ant_loader[_local3]);
if (_local2) {
base_url.white_ant_loader[_local3].vx = 0;
base_url.white_ant_loader[_local3].attacked = true;
_parent[_name].anim.gotoAndStop("front");
}
}
}
}
function check_hole() {
var _local4 = hitTest(base_url.hole_loader);
for (var _local3 in base_url.hole_loader) {
var _local2 = hitTest(base_url.hole_loader[_local3]);
if (_local2 && (base_url.hole_loader[_local3].hole_fixed)) {
hole_fixed = true;
} else if (_local2) {
hole_fixed = false;
}
}
if (_local4 && (!hole_fixed)) {
vx = 0;
back = true;
go_back1();
}
}
function go_back() {
if (kill) {
puase_time = puase_time - 1;
}
if (puase_time <= 0) {
init(8);
_parent[_name].anim.gotoAndStop("move");
vx = vx * -1;
_xscale = -100;
}
}
function go_back1() {
if (back) {
puase_back_time = puase_back_time - 1;
}
if ((puase_back_time <= 0) && (!kill)) {
init(8);
_parent[_name].anim.gotoAndStop("move");
vx = vx * -1;
_xscale = -100;
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
return(undefined);
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
return(undefined);
}
}
}
Symbol 1092 MovieClip [__Packages.ant_class.Base_enemy_control] Frame 0
class ant_class.Base_enemy_control extends MovieClip
{
var base_url, _parent, mollusc_active, insect_active, white_ant_active, mollusc_time, insect_time, white_ant_time, mollusc_random_time, insect_random_time, white_ant_random_time, mollusc_appear_time, insect_appear_time, white_ant_appear_time, i, j, k, insect_num;
function Base_enemy_control () {
super();
base_url = _parent;
mollusc_active = base_url.mollusc_active;
insect_active = base_url.insect_active;
white_ant_active = base_url.white_ant_active;
mollusc_time = base_url.mollusc_time;
insect_time = base_url.insect_time;
white_ant_time = base_url.white_ant_time;
mollusc_random_time = base_url.mollusc_random_time;
insect_random_time = base_url.insect_random_time;
white_ant_random_time = base_url.white_ant_random_time;
mollusc_appear_time = mollusc_time + Math.floor(Math.random() * mollusc_random_time);
insect_appear_time = insect_time + Math.floor(Math.random() * insect_random_time);
white_ant_appear_time = white_ant_time + Math.floor(Math.random() * white_ant_random_time);
i = 0;
j = 0;
k = 0;
base_url.insect_num = 1;
base_url.white_ant_num = 1;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (_root.game_start) {
if (insect_active) {
insect_appear();
}
if (mollusc_active) {
mollusc_appear();
}
if (white_ant_active) {
white_appear();
}
}
}
function white_appear() {
if (base_url.white_ant_num <= 3) {
if (i == white_ant_appear_time) {
base_url.white_ant_load();
base_url.white_ant_num = base_url.white_ant_num + 1;
white_ant_appear_time = white_ant_time + Math.floor(Math.random() * white_ant_random_time);
i = 0;
}
}
i = i + 1;
}
function mollusc_appear() {
if (j == mollusc_appear_time) {
var _local3 = 0;
for (var _local4 in base_url.hole_loader) {
if (base_url.hole_loader[_local4].hole_fixed) {
_local3 = _local3 + 1;
}
}
if ((_local3 >= 1) || (_root.level.level_type == "bonus")) {
base_url.mollusc_load();
mollusc_appear_time = mollusc_time + Math.floor(Math.random() * mollusc_random_time);
}
j = 0;
}
j = j + 1;
}
function insect_appear() {
var _local3 = base_url.hole_Array.length;
if ((_local3 > 0) || (_root.level.level_type == "bonus")) {
if (k == insect_appear_time) {
base_url.insect_load();
insect_num = insect_num + 1;
k = 0;
insect_appear_time = insect_time + Math.floor(Math.random() * insect_random_time);
}
k = k + 1;
}
}
}
Symbol 1093 MovieClip [__Packages.ant_class.Enemy] Frame 0
class ant_class.Enemy extends MovieClip
{
function Enemy () {
super();
}
function attacked() {
}
}
Symbol 1094 MovieClip [__Packages.ant_class.Eat_ant] Frame 0
class ant_class.Eat_ant extends ant_class.Enemy
{
var base_url, _parent, life_num, aim_coord, pause_time, hit_ball, hit_start, this_scores, scores_added, this_pause, tongue_palyed, stop, play, this_direction, _y, _xscale, _x, hit_y, hit_x, _name, hitTest, _alpha, removeMovieClip, global_coord;
function Eat_ant () {
super();
base_url = _parent._parent;
life_num = base_url.eat_ant_life_num;
aim_coord = base_url.spider_aim_coord;
pause_time = 120;
sel_direction();
appear_coord();
hit_coord();
hit_ball = false;
hit_start = false;
this_scores = 100;
scores_added = false;
this_pause = false;
tongue_palyed = false;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
this_hit();
check_ball();
disappear();
}
function check_root_pause() {
if (_root.scene_pause_FG) {
stop();
this_pause = true;
} else if (this_pause) {
play();
this_pause = false;
}
}
function sel_direction() {
this_direction = random(2) + 1;
}
function appear_coord() {
_y = _y - random(120);
if (this_direction == 2) {
_xscale = -100;
_x = _x + 450;
}
}
function hit_coord() {
var _local3 = aim_coord.length;
var _local2 = random(_local3);
hit_y = aim_coord[_local2] + 80;
hit_x = 100 + (random(7) * 50);
}
function this_hit() {
if (pause_time == 0) {
hit_start = true;
_x = hit_x;
_y = hit_y;
var _local2 = _parent[_name].anim;
_local2.gotoAndPlay("hit");
}
pause_time = pause_time - 1;
}
function check_ball() {
var _local3 = hitTest(_root.ball);
if (_local3) {
_root.ball.play();
_root.pat_sound_mc.start();
hit_ball = true;
_root.ball.hited = true;
add_scores();
stop();
if (!tongue_palyed) {
tongue_palyed = true;
}
}
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _root.ball._x, _root.ball._y);
_root.scores_note("add100", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.eat_ant_die_num = _root.eat_ant_die_num + 1;
scores_added = true;
}
}
function disappear() {
if (tongue_palyed) {
_alpha = _alpha - 5;
}
if (_alpha <= 10) {
removeMovieClip();
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
}
}
}
Symbol 1095 MovieClip [__Packages.ant_class.Enemy_control] Frame 0
class ant_class.Enemy_control extends MovieClip
{
var base_url, _parent, wasp_active, spider_active, eat_ant_active, wasp_time, spider_time, eat_ant_time, wasp_random_time, spider_random_time, eat_ant_random_time, wasp_appear_time, spider_appear_time, eat_ant_appear_time, i, j, k;
function Enemy_control () {
super();
base_url = _parent;
wasp_active = base_url.wasp_active;
spider_active = base_url.spider_active;
eat_ant_active = base_url.eat_ant_active;
wasp_time = base_url.wasp_time;
spider_time = base_url.spider_time;
eat_ant_time = base_url.eat_ant_time;
wasp_random_time = base_url.wasp_random_time;
spider_random_time = base_url.spider_random_time;
eat_ant_random_time = base_url.eat_ant_random_time;
wasp_appear_time = wasp_time + Math.floor(Math.random() * wasp_random_time);
spider_appear_time = spider_time + Math.floor(Math.random() * spider_random_time);
eat_ant_appear_time = eat_ant_time + Math.floor(Math.random() * eat_ant_random_time);
i = 0;
j = 0;
k = 0;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (wasp_active) {
wasp_appear();
}
if (spider_active || (_root.current_game_level == 0)) {
spider_appear();
}
if (eat_ant_active) {
eat_ant_appear();
}
}
function wasp_appear() {
if (!_root.game_start) {
return(undefined);
}
if (i == wasp_appear_time) {
_root.wasp_load();
i = 0;
wasp_appear_time = wasp_time + Math.floor(Math.random() * wasp_random_time);
}
i = i + 1;
}
function spider_appear() {
if (_root.game_start && (_root.current_game_level == 0)) {
return(undefined);
}
if ((!_root.game_start) && (_root.current_game_level != 0)) {
return(undefined);
}
if (j == spider_appear_time) {
_root.spider_load();
j = 0;
spider_appear_time = spider_time + Math.floor(Math.random() * spider_random_time);
}
j = j + 1;
}
function eat_ant_appear() {
if (!_root.game_start) {
return(undefined);
}
if (k == eat_ant_appear_time) {
_root.eat_ant_load();
k = 0;
eat_ant_appear_time = eat_ant_time + Math.floor(Math.random() * eat_ant_random_time);
}
k = k + 1;
}
}
Symbol 1096 MovieClip [__Packages.ant_class.Insect] Frame 0
class ant_class.Insect extends ant_class.Enemy
{
var this_scores, scores_added, base_url, _parent, vx, vy, g, life_num, die, aim_fixed, hole_deleted, pause_time, leave_time, hole_add, bite_end, sticked, attacked_time, attacked, _x, _y, select_id, aim_x, _name, this_hole, hole_exist, gotoAndStop, global_coord, _rotation, removeMovieClip;
function Insect () {
super();
this_scores = 30;
scores_added = false;
base_url = _parent._parent;
vx = base_url.insect_vx;
vy = 5;
g = 3;
life_num = base_url.insect_life_num;
die = false;
aim_fixed = false;
hole_deleted = false;
get_random_x();
pause_time = 75;
leave_time = 45;
hole_add = false;
bite_end = false;
sticked = false;
attacked_time = 50;
attacked = false;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
_root.check_pat(this);
_root.check_kill(this);
if (die != true) {
insect_move();
} else {
drop();
add_scores();
}
unload_mc();
check_attack();
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("add30", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.insect_die_num = _root.insect_die_num + 1;
scores_added = true;
}
}
function init(this_vx) {
vx = this_vx;
}
function get_random_x() {
select_id = base_url.select_hole_x();
aim_x = 60 + (base_url.hole_Array[select_id] * base_url.hole_width);
}
function insect_move() {
_x = _x + vx;
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local5 = _parent[_name].hit_area;
var _local3 = base_url.hole_loader;
var _local8 = ExtMath.to_global(_parent, _x, _y);
var _local7 = _local5.hitTest(_local3);
if (_local7) {
for (var _local6 in _local3) {
var _local4 = _local5.hitTest(_local3[_local6]);
if (_local4 && (!_local3[_local6].hole_finished)) {
this_hole = _local3[_local6];
hole_exist = true;
}
}
}
if ((_local8.x == aim_x) && (!bite_end)) {
vx = 0;
gotoAndStop("bite");
pause_time = pause_time - 1;
}
if (pause_time == 45) {
if ((!hole_add) && (!hole_exist)) {
add_hole(_x, _y);
hole_add = true;
}
}
if ((pause_time == 30) && (!this_hole.hole_finished)) {
this_hole.anim.nextFrame();
}
if ((pause_time == 15) && (!this_hole.hole_finished)) {
this_hole.anim.nextFrame();
}
if ((pause_time == 0) && (!this_hole.hole_finished)) {
this_hole.anim.nextFrame();
}
if (this_hole.hole_finished) {
if (!hole_deleted) {
bite_end = true;
this_hole.nextFrame();
vx = base_url.insect_vx;
gotoAndStop("move");
base_url.del_hole(select_id);
hole_deleted = true;
}
}
}
function add_hole(x, y) {
global_coord = ExtMath.to_global(_parent, _x, _y);
x = global_coord.x;
y = global_coord.y;
this_hole = base_url.hole_load(x, y);
}
function drop() {
vy = vy + g;
_y = _y + vy;
_rotation = -30;
}
function check_attack() {
if (attacked) {
attacked_time = attacked_time - 1;
}
if (attacked_time <= 0) {
die = true;
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
}
}
}
Symbol 1097 MovieClip [__Packages.ant_class.Mollusc] Frame 0
class ant_class.Mollusc extends ant_class.Enemy
{
var this_scores, scores_added, base_url, _parent, vx, life_num, die, eat, eat_end, attacked_time, attacked, _x, _y, this_hit_area, _name, removeMovieClip, global_coord;
function Mollusc () {
super();
this_scores = 20;
scores_added = false;
base_url = _parent._parent;
vx = base_url.mollusc_vx;
life_num = base_url.mollusc_life_num;
die = false;
eat = false;
eat_end = false;
attacked_time = 50;
attacked = false;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
_root.check_pat(this);
_root.check_kill(this);
if (die != true) {
mollusc_move();
} else {
add_scores();
mollusc_disapear();
}
mollusc_hit();
unload_mc();
check_attack();
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("add10", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.mollusc_die_num = _root.mollusc_die_num + 1;
scores_added = true;
}
}
function init(this_vx) {
vx = this_vx;
}
function mollusc_move() {
_x = _x + vx;
}
function mollusc_hit() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
this_hit_area = _parent[_name].hit_area;
var _local3 = this_hit_area.hitTest(base_url.leaf_loader);
unload_leaf();
if (_local3) {
eat = true;
}
}
function unload_leaf() {
for (var _local4 in base_url.leaf_loader) {
var _local2 = base_url.leaf_loader[_local4];
var _local3 = this_hit_area.hitTest(_local2);
if (_local3 && (_local2.hit_hole)) {
_local2.removeMovieClip(_local2);
}
}
}
function change_color() {
}
function mollusc_disapear() {
(removeMovieClip());// not popped
}
function check_attack() {
if (attacked) {
attacked_time = attacked_time - 1;
}
if (attacked_time <= 0) {
die = true;
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
}
}
}
Symbol 1098 MovieClip [__Packages.ant_class.Spider] Frame 0
class ant_class.Spider extends ant_class.Enemy
{
var this_scores, scores_added, base_url, _parent, base_direction, life_num, vy, speed, x1, x2, aim_y_Array, pause_time, turn_back, web_add, exist_checked, die, _name, glue_disapper, _x, _y, random_coord, aim_y, aim_x_direction, aim_x, end_x, end_y, _xscale, _yscale, gotoAndStop, hitTest, removeMovieClip, g, _rotation;
function Spider () {
super();
this_scores = 50;
scores_added = false;
base_url = _parent._parent;
base_direction = base_url.base_direction;
life_num = base_url.spider_life_num;
vy = 5;
speed = base_url.spider_vx;
x1 = base_url.spider_coord.x1;
x2 = base_url.spider_coord.x2;
aim_y_Array = base_url.spider_aim_coord;
init_coord();
init_aim();
init_end_aim();
pause_time = 40;
turn_back = false;
web_add = false;
exist_checked = false;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
if (_root.current_game_level != 0) {
_root.check_pat(this);
_root.check_kill(this);
}
if (die != true) {
this_trace();
} else {
add_scores();
this_drop();
}
}
function check_glue() {
var _local3 = _parent[_name].glue_area;
var _local4 = _local3.hitTest(_root.level.glue_loader);
if (_local4) {
speed = 0;
glue_disapper = true;
} else if (glue_disapper) {
die = true;
glue_disapper = false;
}
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("add50", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.spider_die_num = _root.spider_die_num + 1;
scores_added = true;
}
}
function init_coord() {
random_coord = {x1:x1, y1:-80, x2:x2, y2:-80, x3:x1, y3:580, x4:x2, y4:580};
var _local2 = random(4) + 1;
_x = random_coord["x" + _local2];
_y = random_coord["y" + _local2];
}
function init_aim() {
var _local3 = aim_y_Array.length;
var _local2 = random(_local3);
aim_y = aim_y_Array[_local2];
aim_x_direction = base_direction[_local2];
if (aim_x_direction == 1) {
aim_x = x2;
} else {
aim_x = x1;
}
}
function init_end_aim() {
var _local2 = random(4) + 1;
end_x = random_coord["x" + _local2];
end_y = random_coord["y" + _local2];
}
function this_trace() {
if (!turn_back) {
this_move(aim_x, aim_y);
} else {
this_back(end_x, end_y);
}
}
function this_move(x0, y0) {
if (_y > y0) {
_y = _y - speed;
_xscale = 100;
_yscale = 100;
gotoAndStop("move_y");
}
if (_y < y0) {
_y = _y + speed;
_xscale = 100;
_yscale = -100;
gotoAndStop("move_y");
}
if (_y == y0) {
if (_x > x0) {
_x = _x - speed;
_xscale = -100;
_yscale = 100;
gotoAndStop("move_x");
}
if (_x < x0) {
_x = _x + speed;
_xscale = 100;
_yscale = 100;
gotoAndStop("move_x");
}
if (_x == x0) {
if (!exist_checked) {
var _local3 = hitTest(base_url.web_loader);
exist_checked = true;
}
if (_local3) {
turn_back = true;
}
if ((pause_time == 0) || (_root.current_game_level == 0)) {
turn_back = true;
}
if (((!web_add) && (!_local3)) && (_root.current_game_level != 0)) {
var _local4 = _root.web_load();
var _local5 = 20;
var _local8 = -40;
if (aim_x_direction == 1) {
_local5 = -120;
}
_local4._x = _x + _local5;
_local4._y = _y + _local8;
web_add = true;
}
pause_time = pause_time - 1;
gotoAndStop("move_y");
}
}
}
function this_back(x0, y0) {
if (_x > x0) {
_x = _x - speed;
_xscale = -100;
_yscale = 100;
gotoAndStop("move_x");
}
if (_x < x0) {
_x = _x + speed;
_xscale = 100;
_yscale = 100;
gotoAndStop("move_x");
}
if (_x == x0) {
if (_y > y0) {
_y = _y - speed;
_xscale = 100;
_yscale = 100;
gotoAndStop("move_y");
}
if (_y < y0) {
_y = _y + speed;
_xscale = 100;
_yscale = -100;
gotoAndStop("move_y");
}
if (_y == y0) {
(removeMovieClip());// not popped
}
}
}
function this_drop() {
g = 10;
vy = vy + g;
_y = _y + vy;
_parent[_name].move1.stop();
_parent[_name].move2.stop();
_rotation = -60;
}
function this_disappear() {
}
function change_color() {
}
}
Symbol 1099 MovieClip [__Packages.ant_class.Wasp] Frame 0
class ant_class.Wasp extends ant_class.Enemy
{
var this_scores, scores_added, base_url, _parent, life_num, base_num, die, leave, hit_start, started, this_pause, _x, _y, L, vx, vy, drop_speed, speed, g, aim_choosed, fly_state, hit_nit, angle_flag, direction_flag, offset_angle, finish_x, finish_y, _xscale, base_id, aim_base, choose_id, aim_obj, x1, y1, offset_rate, init_angle, _name, loss_score, _rotation, global_coord, removeMovieClip;
function Wasp () {
super();
this_scores = 50;
scores_added = false;
base_url = _parent._parent;
life_num = base_url.wasp_life_num;
base_num = base_url.base_num;
die = false;
init();
leave = false;
hit_start = false;
started = false;
this_pause = false;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
_root.check_pat(this);
_root.check_kill(this);
if (die != true) {
if (hit_start) {
check_start();
fly();
}
} else {
add_scores();
drop();
}
unload_mc();
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("add50", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.wasp_die_num = _root.wasp_die_num + 1;
scores_added = true;
}
}
function check_start() {
if (!started) {
choose_obj();
L = get_distance();
started = true;
}
}
function init() {
random_coord();
vx = 0;
vy = 0;
drop_speed = 5;
speed = base_url.wasp_vx;
g = 3;
aim_choosed = false;
fly_state = false;
hit_nit = false;
angle_flag = false;
}
function random_coord() {
var _local2 = random(2);
direction_flag = 1;
if (_local2 == 0) {
offset_angle = (Math.random() * 40) + 20;
_x = 40 + random(40);
_y = 80 + random(200);
finish_x = 700;
finish_y = 100 - random(400);
} else {
offset_angle = (Math.random() * 10) + 0;
direction_flag = -1;
_xscale = -100;
_x = 560 - random(40);
_y = 80 + random(20);
finish_x = -100;
finish_y = 100 - random(400);
}
}
function choose_obj() {
base_id = random(base_num) + 1;
aim_base = base_url["base" + base_id];
choose_id = aim_base.ant_num - 1;
aim_obj = aim_base.ant_loader["ant_1_" + choose_id];
fly_state = true;
if (!aim_obj) {
leave = true;
}
}
function fly() {
check_hit(aim_obj);
if (hit_nit) {
leave = true;
}
if (aim_obj.dropping || (!aim_obj)) {
leave = true;
}
if (!leave) {
if (fly_state) {
var _local6 = ExtMath.to_global(_parent, _x, _y);
var _local4 = _local6.x;
var _local3 = _local6.y;
x1 = aim_obj._x;
y1 = aim_obj._y;
_local6 = ExtMath.to_global(aim_obj._parent, x1, y1);
x1 = _local6.x;
y1 = _local6.y - 50;
var _local5 = get_distance();
offset_rate = _local5 / L;
if (offset_rate > 1) {
offset_rate = 0.6;
}
offset_angle = offset_angle * offset_rate;
offset_angle = ExtMath.fixAngle(offset_angle);
init_angle = ExtMath.angleOfLine(_local4, _local3, x1, y1);
init_angle = ExtMath.fixAngle(init_angle);
if (direction_flag == 1) {
init_angle = init_angle + offset_angle;
} else {
init_angle = init_angle - offset_angle;
}
vx = ExtMath.cosD(init_angle) * speed;
vy = ExtMath.sinD(init_angle) * speed;
_x = _x + vx;
_y = _y + vy;
speed = speed + 0.2;
}
} else if (leave) {
var _local6 = ExtMath.to_global(_parent, _x, _y);
var _local4 = _local6.x;
var _local3 = _local6.y;
x1 = finish_x;
y1 = finish_y;
var _local5 = ExtMath.distance(_local4, _local3, x1, y1);
init_angle = ExtMath.angleOfLine(_local4, _local3, x1, y1);
if (direction_flag == -1) {
init_angle = ExtMath.fixAngle(init_angle);
}
if (!angle_flag) {
var _local2 = ExtMath.atan2D(vy, vx);
if (!_local2) {
}
if (direction_flag == 1) {
offset_angle = _local2 - init_angle;
} else {
offset_angle = init_angle - _local2;
}
L = _local5;
angle_flag = true;
}
offset_rate = _local5 / L;
if (offset_rate > 1) {
offset_rate = 0.6;
}
offset_angle = offset_angle * offset_rate;
if (direction_flag == 1) {
init_angle = init_angle + offset_angle;
} else {
init_angle = init_angle - offset_angle;
}
vx = ExtMath.cosD(init_angle) * speed;
vy = ExtMath.sinD(init_angle) * speed;
_x = _x + vx;
_y = _y + vy;
speed = speed + 0.1;
}
}
function check_hit(aim_obj) {
var _local3 = _parent[_name].hit_area;
var _local4 = _local3.hitTest(aim_obj);
if (_local4) {
var _local6 = aim_base.nit_loader["nit" + choose_id];
_local6.set_aim("wasp", _parent[_name]);
hit_nit = true;
leave = true;
if (((!loss_score) && (_root.level.level_type != "bonus")) && (!aim_obj.loss_score_FG)) {
_root.level_score = _root.level_score - 10;
_root.scores = _root.scores - 10;
loss_score = true;
aim_obj.loss_score_FG = true;
}
}
}
function get_distance() {
var _local2 = ExtMath.to_global(_parent, _x, _y);
var _local4 = _local2.x;
var _local3 = _local2.y;
x1 = aim_obj._x;
y1 = aim_obj._y;
_local2 = ExtMath.to_global(aim_obj._parent, x1, y1);
x1 = _local2.x;
y1 = _local2.y - 50;
var _local5 = ExtMath.distance(_local4, _local3, x1, y1);
return(_local5);
}
function drop() {
drop_speed = drop_speed + g;
_y = _y + drop_speed;
_rotation = -30 * direction_flag;
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= (_root.left - 100)) || (global_coord.x >= (_root.right + 100))) {
(removeMovieClip());// not popped
}
if ((global_coord.y >= (_root.bottom + 100)) || (global_coord.y <= (_root.top - 100))) {
(removeMovieClip());// not popped
}
}
var coord_0 = new Array();
var coord_1 = new Array();
var all_ant = new Array();
}
Symbol 1100 MovieClip [__Packages.ant_class.Web] Frame 0
class ant_class.Web extends MovieClip
{
var base_url, _parent, life_num, bad_num_1, bad_num_2, die, gotoAndStop, removeMovieClip;
function Web () {
super();
base_url = _parent._parent;
life_num = base_url.web_life_num;
bad_num_1 = Math.floor(life_num / 1.5);
bad_num_2 = Math.floor(life_num / 3);
die = false;
}
function onEnterFrame() {
_root.check_pat(this);
if (!die) {
check_state();
} else {
this_die();
}
}
function check_state() {
if (life_num == bad_num_1) {
gotoAndStop("bad1");
}
if (life_num == bad_num_2) {
gotoAndStop("bad2");
}
}
function this_die() {
(removeMovieClip());// not popped
}
}
Symbol 1101 MovieClip [__Packages.ant_class.White_ant] Frame 0
class ant_class.White_ant extends ant_class.Enemy
{
var this_scores, scores_added, base_url, _parent, life_num, pause_time, bited, die, turn_back, hit_start, attacked_time, attacked, eat_ant, pause_hit_time, _name, vx, gotoAndPlay, _x, _y, hitTest, loss_score, ant_hited, gotoAndStop, _xscale, removeMovieClip, global_coord;
function White_ant () {
super();
this_scores = 40;
scores_added = false;
base_url = _parent._parent;
life_num = base_url.white_ant_life_num;
pause_time = 50;
bited = false;
die = false;
turn_back = false;
hit_start = false;
attacked_time = 50;
attacked = false;
eat_ant = false;
pause_hit_time = 20 + random(30);
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
_root.check_pat(this);
_root.check_kill(this);
if (die != true) {
white_ant_move();
if ((_root.level.level_type != "bonus") && (hit_start)) {
check_hit_ant();
}
check_hole();
unload_mc();
} else {
add_scores();
this_disappear();
}
check_attack();
pause_hit();
}
function pause_hit() {
pause_hit_time = pause_hit_time - 1;
if (pause_hit_time <= 0) {
hit_start = true;
}
}
function check_glue() {
var _local5 = _parent[_name].glue_area;
var _local4 = _root.level.glue_loader;
var _local7 = _local5.hitTest(_local4);
if (_local7) {
for (var _local6 in _local4) {
var _local3 = _local5.hitTest(_local4[_local6]);
if (_local3) {
vx = 0;
gotoAndPlay("stick");
break;
}
}
}
}
function add_scores() {
if (!scores_added) {
var _local3 = ExtMath.to_global(_parent, _x, _y);
_root.scores_note("add40", _local3.x, _local3.y);
_root.level_score = _root.level_score + this_scores;
_root.scores = _root.scores + this_scores;
_root.white_ant_die_num = _root.white_ant_die_num + 1;
scores_added = true;
}
}
function init(this_vx) {
vx = this_vx;
}
function white_ant_move() {
_x = _x + vx;
}
function check_hit_ant() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local8 = hitTest(base_url.ant_loader);
if (_local8 && (!eat_ant)) {
for (var _local7 in base_url.ant_loader) {
var _local3 = base_url.ant_loader[_local7];
var _local5 = hitTest(_local3);
if (_local5) {
var _local4 = base_url.nit_loader["nit" + _local3.id];
var _local6 = _local3.hitTest(_local4);
if (!_local3.die_bo) {
_root.ant_num = _root.ant_num + 1;
_local3.die_bo = true;
}
if ((!loss_score) && (!_local3.loss_score_FG)) {
if (_local6) {
_root.level_score = _root.level_score - 10;
_root.scores = _root.scores - 10;
}
loss_score = true;
_local3.loss_score_FG = true;
}
_local3.removeMovieClip(_local3);
ant_hited = true;
eat_ant = true;
break;
}
}
}
if (ant_hited) {
this_pause();
}
if (ant_hited && (!bited)) {
gotoAndStop("bite");
bited = true;
}
}
function this_pause() {
pause_time = pause_time - 1;
if (pause_time <= 0) {
go_back();
} else {
vx = 0;
}
}
function check_hole() {
var _local6 = hitTest(base_url.hole_loader);
if (_local6) {
for (var _local5 in base_url.hole_loader) {
var _local3 = base_url.hole_loader[_local5].hit_area.hitTest(this);
var _local2 = base_url.hole_loader[_local5].hole_fixed;
var _local4 = base_url.hole_loader[_local5].hole_finished;
if ((_local3 && (!_local2)) && (_local4)) {
go_back();
}
}
}
}
function go_back() {
vx = base_url.white_ant_vx * -1;
if (!turn_back) {
gotoAndStop("move");
_xscale = -100;
turn_back = true;
}
}
function this_disappear() {
(removeMovieClip());// not popped
base_url.white_ant_num = base_url.white_ant_num - 1;
}
function check_attack() {
if (attacked) {
attacked_time = attacked_time - 1;
}
if (attacked_time <= 0) {
die = true;
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
(removeMovieClip());// not popped
this_disappear();
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
(removeMovieClip());// not popped
this_disappear();
}
}
}
Symbol 1102 MovieClip [__Packages.ant_class.Ant_1] Frame 0
class ant_class.Ant_1 extends ant_class.Ant
{
var life_num, base_url, level_url, ant_move, id, hitTest, _name, _parent, hit_web, vx, gotoAndPlay, loss_score_FG, die_bo, removeMovieClip, global_coord, _x, _y, add_scores;
function Ant_1 () {
super();
life_num = base_url.ant_1_life_num;
level_url = base_url._parent;
}
function onEnterFrame() {
if (_root.scene_pause_FG) {
return(undefined);
}
ant_move();
check_web();
check_eat_ant();
unload_mc();
}
function check_web() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local7 = base_url.nit_loader["nit" + id];
var _local5 = hitTest(_local7);
var _local3 = _root.level.web_loader;
var _local4 = _parent[_name].web_hit;
var _local8 = _local4.hitTest(_local3);
if (_local8) {
for (var _local6 in _local3) {
hit_web = _local4.hitTest(_local3[_local6]);
if (hit_web) {
vx = 0;
gotoAndPlay("stick");
if (!loss_score_FG) {
if (_local5) {
_root.level_score = _root.level_score - 10;
_root.scores = _root.scores - 10;
}
loss_score_FG = true;
}
if (!die_bo) {
_root.ant_num = _root.ant_num + 1;
die_bo = true;
}
break;
}
}
}
}
function check_eat_ant() {
if (_root.level.level_type == "bonus") {
return(undefined);
}
var _local8 = base_url.nit_loader["nit" + id];
var _local6 = hitTest(_local8);
var _local5 = _root.level.eat_ant_loader;
for (var _local7 in _local5) {
var _local3 = _local5[_local7].anim.hit.hit_area;
var _local4 = hitTest(_local3);
if (_local4) {
if (!loss_score_FG) {
if (_local6) {
_root.level_score = _root.level_score - 10;
_root.scores = _root.scores - 10;
}
loss_score_FG = true;
}
if (!die_bo) {
_root.ant_num = _root.ant_num + 1;
die_bo = true;
}
(removeMovieClip());// not popped
}
}
}
function unload_mc() {
global_coord = ExtMath.to_global(_parent, _x, _y);
if ((global_coord.x <= _root.left) || (global_coord.x >= _root.right)) {
add_scores();
if (!die_bo) {
_root.ant_num = _root.ant_num + 1;
die_bo = true;
}
(removeMovieClip());// not popped
return(undefined);
}
if ((global_coord.y >= _root.bottom) || (global_coord.y <= _root.top)) {
if (!die_bo) {
_root.ant_num = _root.ant_num + 1;
die_bo = true;
}
(removeMovieClip());// not popped
return(undefined);
}
}
}
Symbol 24 MovieClip Frame 1
onEnterFrame = function () {
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local3 = int((_local5 / _local4) * 100);
num_txt.text = _local3 + "%";
if (_root._mochiad instanceof MovieClip) {
this._visible = false;
}
if (_local3 == 100) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 28 MovieClip Frame 1
this._visible = false;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.play();
} else {
_root.stop();
}
Symbol 28 MovieClip Frame 2
this._visible = true;
Symbol 28 MovieClip Frame 39
stop();
Instance of Symbol 21 MovieClip in Symbol 28 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 34 MovieClip Frame 26
stop();
Symbol 40 Button
on (release) {
gotoAndStop ("submit");
}
Symbol 45 Button
on (release) {
gotoAndStop (1);
}
Symbol 54 Button
on (release) {
gotoAndStop ("submited");
}
Symbol 59 Button
on (release) {
viewHighscore();
}
Symbol 60 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore <= 0) {
this._visible = false;
}
Symbol 60 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 42 MovieClip in Symbol 60 MovieClip Frame 3
on (release) {
}
Symbol 68 MovieClip Frame 1
_visible = false;
Symbol 69 MovieClip Frame 1
_visible = false;
Symbol 100 MovieClip [web_hit] Frame 1
_visible = false;
Symbol 106 MovieClip Frame 6
stop();
Symbol 107 MovieClip [ant_1] Frame 1
#initclip 35
Object.registerClass("ant_1", ant_class.Ant_1);
#endinitclip
stop();
Symbol 107 MovieClip [ant_1] Frame 8
stop();
rotate_finished = true;
Symbol 107 MovieClip [ant_1] Frame 60
removeMovieClip(this);
Symbol 107 MovieClip [ant_1] Frame 70
stop();
Symbol 112 MovieClip [nit] Frame 1
#initclip 19
Object.registerClass("nit", ant_class.Nit);
#endinitclip
Symbol 118 MovieClip [leaf] Frame 1
#initclip 20
Object.registerClass("leaf", ant_class.Leaf);
#endinitclip
stop();
Symbol 118 MovieClip [leaf] Frame 63
stop();
removeMovieClip(this);
Symbol 161 MovieClip [ant_2] Frame 1
#initclip 21
Object.registerClass("ant_2", ant_class.Ant_2);
#endinitclip
stop();
Symbol 161 MovieClip [ant_2] Frame 55
stop();
removeMovieClip(this);
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 10
stop();
Symbol 230 MovieClip Frame 19
stop();
Symbol 230 MovieClip Frame 30
stop();
Symbol 244 MovieClip Frame 5
stop();
Symbol 245 MovieClip [ant_3] Frame 1
#initclip 22
Object.registerClass("ant_3", ant_class.Ant_3);
#endinitclip
stop();
Symbol 245 MovieClip [ant_3] Frame 55
stop();
removeMovieClip(this);
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 3
stop();
Symbol 257 MovieClip Frame 4
stop();
hole_finished = true;
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
_parent.hole_finished = true;
Symbol 284 MovieClip [hole] Frame 1
stop();
Symbol 284 MovieClip [hole] Frame 2
stop();
hole_started = true;
Symbol 307 MovieClip Frame 1
_visible = false;
Symbol 309 MovieClip Frame 1
_visible = false;
Symbol 321 MovieClip [base_enemy_control] Frame 1
#initclip 23
Object.registerClass("base_enemy_control", ant_class.Base_enemy_control);
#endinitclip
Symbol 324 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 8
stop();
Symbol 328 MovieClip Frame 18
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 40
stop();
removeMovieClip(this);
Symbol 330 MovieClip [eat_ant] Frame 1
#initclip 24
Object.registerClass("eat_ant", ant_class.Eat_ant);
#endinitclip
stop();
if (!this_appear) {
gotoAndPlay ("appear");
}
this_appear = true;
Symbol 330 MovieClip [eat_ant] Frame 90
if (this.hit_ball) {
removeMovieClip(this);
}
Symbol 332 MovieClip [enemy_control] Frame 1
#initclip 25
Object.registerClass("enemy_control", ant_class.Enemy_control);
#endinitclip
Symbol 396 MovieClip Frame 1
stop();
Symbol 408 MovieClip [insect] Frame 1
#initclip 26
Object.registerClass("insect", ant_class.Insect);
#endinitclip
stop();
Symbol 408 MovieClip [insect] Frame 5
stop();
Symbol 443 MovieClip Frame 1
stop();
Symbol 444 MovieClip [mollusc] Frame 1
#initclip 27
Object.registerClass("mollusc", ant_class.Mollusc);
#endinitclip
Symbol 444 MovieClip [mollusc] Frame 15
gotoAndPlay (1);
Symbol 444 MovieClip [mollusc] Frame 75
die = true;
Symbol 482 MovieClip [spider] Frame 1
#initclip 28
Object.registerClass("spider", ant_class.Spider);
#endinitclip
_root.spider_sound_mc.start();
Symbol 482 MovieClip [spider] Frame 2
stop();
Symbol 482 MovieClip [spider] Frame 10
stop();
Symbol 494 MovieClip [wasp] Frame 1
#initclip 29
Object.registerClass("wasp", ant_class.Wasp);
#endinitclip
_root.wasp_sound_mc.start();
Symbol 494 MovieClip [wasp] Frame 80
stop();
hit_start = true;
Symbol 495 MovieClip [wasp_bonus] Frame 1
#initclip 30
Object.registerClass("wasp_bonus", ant_class.Wasp);
#endinitclip
stop();
hit_start = true;
Symbol 500 MovieClip [web] Frame 1
#initclip 31
Object.registerClass("web", ant_class.Web);
#endinitclip
Symbol 500 MovieClip [web] Frame 8
stop();
Symbol 500 MovieClip [web] Frame 16
stop();
Symbol 500 MovieClip [web] Frame 25
stop();
Symbol 522 MovieClip [white_ant] Frame 1
#initclip 32
Object.registerClass("white_ant", ant_class.White_ant);
#endinitclip
Symbol 522 MovieClip [white_ant] Frame 85
stop();
Symbol 522 MovieClip [white_ant] Frame 95
stop();
Symbol 522 MovieClip [white_ant] Frame 105
stop();
Symbol 522 MovieClip [white_ant] Frame 160
die = true;
Symbol 523 MovieClip [white_ant_bonus] Frame 1
#initclip 33
Object.registerClass("white_ant_bonus", ant_class.White_ant);
#endinitclip
Symbol 527 MovieClip [kill_add] Frame 1
#initclip 34
Object.registerClass("kill_add", ant_class.Nit);
#endinitclip
Symbol 534 MovieClip Frame 10
stop();
Symbol 535 MovieClip [ball] Frame 1
stop();
Symbol 535 MovieClip [ball] Frame 2
blood.play();
Symbol 535 MovieClip [ball] Frame 5
stop();
removeMovieClip(this);
Symbol 541 MovieClip [brush_anim] Frame 1
stop();
Symbol 549 MovieClip [glue_anim] Frame 14
stop();
Symbol 550 MovieClip [glue] Frame 95
removeMovieClip(this);
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 3
_root.kill_sound_mc.start();
Symbol 566 MovieClip [kill] Frame 1
stop();
Symbol 571 MovieClip Frame 1
stop();
_root.use_allow = true;
_root.pat_used = true;
if (!_root.mouse_up) {
play();
}
Symbol 571 MovieClip Frame 2
_root.pat_used = false;
Symbol 571 MovieClip Frame 4
_root.pat_sound_mc.start();
Symbol 571 MovieClip Frame 5
Symbol 573 MovieClip [pat] Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 612 MovieClip [base] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("hole_loader", "hole_loader", _local3 + 2, {_x:0, _y:0});
this.attachMovie("leaf_loader", "leaf_loader", _local3 + 3, {_x:580, _y:265});
this.attachMovie("ant_2_loader", "ant_2_loader", _local3 + 4, {_x:580, _y:265});
this.attachMovie("nit_loader", "nit_loader", _local3 + 5, {_x:580, _y:245});
this.attachMovie("ant_loader", "ant_loader", _local3 + 6, {_x:580, _y:265});
this.attachMovie("insect_loader", "insect_loader", _local3 + 7, {_x:0, _y:292});
this.attachMovie("mollusc_loader", "mollusc_loader", _local3 + 8, {_x:0, _y:215, _xscale:40, _yscale:40});
this.attachMovie("white_ant_loader", "white_ant_loader", _local3 + 9, {_x:0, _y:245});
this.attachMovie("ant_3_loader", "ant_3_loader", _local3 + 10, {_x:580, _y:265});
this.attachMovie("base_enemy_control", "base_enemy_control", _local3 + 11);
this.attachMovie("floor_mask", "hole_mask", _local3 + 12, {_x:0, _y:260});
this.attachMovie("ant_mask", "ant_mask", _local3 + 13, {_x:0, _y:260});
this.attachMovie("ant_mask", "nit_mask", _local3 + 14, {_x:0, _y:260});
this.attachMovie("ant_mask", "ant2_mask", _local3 + 15, {_x:0, _y:280});
this.attachMovie("ant_mask", "ant3_mask", _local3 + 16, {_x:0, _y:280});
this.attachMovie("ant_mask", "leaf_mask", _local3 + 17, {_x:0, _y:280});
base_depth = this.getNextHighestDepth();
this.attachMovie("white_ant_mask", "white_ant_mask", base_depth, {_x:33, _y:70});
this.attachMovie("white_ant_mask", "mollusc_mask", base_depth + 1, {_x:33, _y:70});
hole_loader.setMask(hole_mask);
nit_loader.setMask(nit_mask);
ant_loader.setMask(ant_mask);
ant_2_loader.setMask(ant2_mask);
ant_3_loader.setMask(ant3_mask);
leaf_loader.setMask(leaf_mask);
white_ant_loader.setMask(white_ant_mask);
mollusc_loader.setMask(mollusc_mask);
if (way == 1) {
_root.level.floor_loader["floor" + base_id].house._xscale = -100;
_root.level.floor_loader["floor" + base_id].house._x = _root.level.floor_loader["floor" + base_id].house._x + 620;
}
}
function hole_load(x, y) {
local_coord = ExtMath.to_local(this.hole_loader, x, y);
x = local_coord.x + 5;
y = local_coord.y - 10;
var _local2 = hole_loader.getNextHighestDepth();
hole_loader.attachMovie("hole", "hole" + _local2, _local2, {_x:x, _y:y});
hole_name = hole_loader["hole" + _local2];
return(hole_name);
}
function mollusc_load() {
var _local1 = mollusc_loader.getNextHighestDepth();
mollusc_loader.attachMovie("mollusc", "mollusc" + _local1, _local1);
mollusc_loader["mollusc" + _local1].init(mollusc_vx);
}
function insect_load() {
var _local1 = insect_loader.getNextHighestDepth();
insect_loader.attachMovie("insect", "insect" + _local1, _local1);
insect_loader["insect" + _local1].init(insect_vx);
}
function white_ant_load() {
var _local1 = white_ant_loader.getNextHighestDepth();
white_ant_loader.attachMovie("white_ant", "white_ant" + _local1, _local1);
white_ant_loader["white_ant" + _local1].init(white_ant_vx);
}
function ant_load() {
if (_root.scene_pause_FG || (_root.level.total_num < _root.level.ant_num)) {
return(undefined);
}
clearInterval(_root["ant_load_interval" + base_id]);
if (_root.game_start) {
var _local3 = ant_loader.getNextHighestDepth();
ant_loader.attachMovie("ant_1", "ant_1_" + ant_num, _local3);
ant_loader["ant_1_" + ant_num].init(ant_1_vx);
if (!power_nit) {
nit_loader.attachMovie("nit", "nit" + nit_num, _local3);
nit_loader["nit" + nit_num].init("nit");
} else {
random_power_add();
power_nit = false;
}
ant_num = ant_num + 1;
nit_num = nit_num + 1;
_parent.ant_num = _parent.ant_num + 1;
_parent.nit_num = _parent.nit_num + 1;
_parent.arrive_ant_num = _parent.arrive_ant_num + 1;
_parent.current_num = _parent.current_num + 1;
}
var _local4 = ant_load_time + random(random_time1);
_root["ant_load_interval" + base_id] = setInterval(ant_load, _local4);
}
function random_power_time() {
if (_root.scene_pause_FG) {
return(undefined);
}
clearInterval(_root["power_add_interval" + base_id]);
power_nit = true;
var _local2 = power_dis_time + random(power_random_time2);
_root["power_add_interval" + base_id] = setInterval(random_power_time, _local2);
}
function random_power_add() {
var _local1 = random(2);
var _local2 = nit_loader.getNextHighestDepth();
add_power = nit_loader.attachMovie(power_add_Array[_local1], "nit" + nit_num, _local2);
nit_loader["nit" + nit_num].init(power_add_Array[_local1]);
}
function ant_2_load() {
if (_root.scene_pause_FG) {
return(undefined);
}
if ((_parent.ant_2_num > 0) && (_root.game_start)) {
var _local3 = ant_2_loader.getNextHighestDepth();
var _local4 = leaf_loader.getNextHighestDepth();
ant_2_loader.attachMovie("ant_2", "ant_2_" + _parent.ant_2_num, _local3);
ant_2_loader["ant_2_" + _parent.ant_2_num].init(ant_2_vx);
leaf_loader.attachMovie("leaf", "leaf" + _parent.ant_2_num, _local4);
_parent.ant_2_num = _parent.ant_2_num - 1;
}
}
function ant_3_load() {
if (_root.scene_pause_FG) {
return(undefined);
}
if ((_parent.ant_3_num > 0) && (_root.game_start)) {
var _local3 = ant_3_loader.getNextHighestDepth();
ant_3_loader.attachMovie("ant_3", "ant_3_" + _parent.ant_3_num, _local3);
ant_3_loader["ant_3_" + _parent.ant_3_num].init(ant_3_vx);
_parent.ant_3_num = _parent.ant_3_num - 1;
}
}
function select_hole_x() {
var _local2 = this.hole_Array.length;
var _local3 = Math.floor(Math.random() * _local2);
return(_local3);
}
function del_hole(select_id) {
var _local1 = 0;
while (_local1 < hole_Array.length) {
if (_local1 == select_id) {
hole_Array.splice(_local1, 1);
}
_local1++;
}
}
function check_hole() {
for (var _local2 in hole_loader) {
var _local1 = leaf_loader.hitTest(hole_loader[_local2]);
if (!_local1) {
hole_loader[_local2].hole_fixed = false;
}
}
}
function onEnterFrame() {
check_hole();
}
var floor_coord = _parent.floor_coord;
var ant_load_time = _parent.ant_load_time;
var nit_num = _parent.nit_num;
var ant_num = _parent.ant_num;
var insect_num;
var white_ant_num;
var arrive_ant_id = _parent.arrive_ant_id;
var arrive_nit_num = _parent.arrive_nit_num;
var ant_1_vx = (_parent.ant_1_vx + random(3));
var ant_2_vx = _parent.ant_2_vx;
var ant_3_vx = _parent.ant_3_vx;
var insect_vx = _parent.insect_vx;
var mollusc_vx = _parent.mollusc_vx;
var white_ant_vx = _parent.white_ant_vx;
var ant_1_life_num = _parent.ant_1_life_num;
var ant_2_life_num = _parent.ant_2_life_num;
var ant_3_life_num = _parent.ant_3_life_num;
var wasp_life_num = _parent.wasp_life_num;
var spider_life_num = _parent.spider_life_num;
var eat_ant_life_num = _parent.eat_ant_life_num;
var insect_life_num = _parent.insect_life_num;
var mollusc_life_num = _parent.mollusc_life_num;
var white_ant_life_num = _parent.white_ant_life_num;
var web_life_num = _parent.web_life_num;
var hole_Array = _parent.hole_Array;
var hole_width = _parent.hole_width;
var spider_coord = _parent.spider_coord;
var spider_aim_coord = _parent.spider_aim_coord;
var mollusc_active = _parent.mollusc_active;
var insect_active = _parent.insect_active;
var white_ant_active = _parent.white_ant_active;
var wasp_active = _parent.wasp_active;
var spider_active = _parent.spider_active;
var eat_ant_active = _parent.eat_ant_active;
mollusc_time = _parent.mollusc_time;
insect_time = _parent.insect_time;
white_ant_time = _parent.white_ant_time;
mollusc_random_time = _parent.mollusc_random_time;
insect_random_time = _parent.insect_random_time;
white_ant_random_time = _parent.white_ant_random_time;
wasp_time = _parent.wasp_time;
spider_time = _parent.spider_time;
eat_ant_time = _parent.eat_ant_time;
wasp_random_time = _parent.wasp_random_time;
spider_random_time = _parent.spider_random_time;
eat_ant_random_time = _parent.eat_ant_random_time;
load_init();
power_nit = false;
power_add_Array = _parent.power_add_Array;
power_base_time = _parent.power_base_time;
power_random_time1 = _parent.power_random_time1;
power_random_time2 = _parent.power_random_time2;
power_dis_time = power_base_time + random(power_random_time1);
if (_root.current_game_level == 0) {
random_time1 = 4000;
}
if ((_root.current_game_level < 3) && (_root.current_game_level >= 1)) {
random_time1 = 6000;
}
if ((_root.current_game_level < 10) && (_root.current_game_level >= 3)) {
random_time1 = 8000;
}
if (_root.current_game_level >= 10) {
random_time1 = 10000;
}
ant_load();
_root["power_add_interval" + base_id] = setInterval(random_power_time, power_dis_time);
if (_parent.level_type == "bonus") {
ant_loader._visible = 0;
nit_loader._visible = 0;
}
Symbol 613 MovieClip [bonuslevel1] Frame 1
function check_time() {
if (_root.game_start) {
if (!get_old_time) {
old_time = getTimer();
get_old_time = true;
}
new_time = getTimer();
if (_root.scene_pause_FG && (!update_old_time)) {
total_time = total_time - pass_time;
leave_time = Math.floor(total_time / 1000);
update_old_time = true;
}
if ((!_root.scene_pause_FG) && (update_old_time)) {
old_time = getTimer();
update_old_time = false;
}
if (!_root.scene_pause_FG) {
pass_time = new_time - old_time;
leave_time = Math.floor((total_time - pass_time) / 1000);
}
if (pass_time >= total_time) {
leave_time = 0;
_root.gotoAndStop("game_pass");
}
} else {
leave_time = Math.floor(total_time / 1000);
}
}
function onEnterFrame() {
check_time();
scores_loader.bonus_time_text.text = leave_time;
}
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene2", "scene2", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader_bonus", "scores_loader", _local3, {_x:120, _y:5});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local4 = this["base" + id].leaf_loader.getNextHighestDepth();
if (_local3 > _local4) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
level_type = "bonus";
total_time = 30000;
get_old_time = false;
update_old_time = false;
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "glue_add";
power_base_time = 10000;
power_random_time1 = 30000;
power_random_time2 = 30000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 1;
base_direction[1] = 0;
base_direction[2] = 0;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (30 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 65;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 100;
mollusc_random_time = 200;
insect_time = 50;
insect_random_time = 200;
white_ant_time = 30;
white_ant_random_time = 100;
wasp_time = 20;
wasp_random_time = 80;
spider_time = 50;
spider_random_time = 100;
eat_ant_time = 60;
eat_ant_random_time = 200;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 18;
var shot_num = 999;
var glue_num = 20;
var pat_locked = false;
var kill_locked = true;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 614 MovieClip [bonuslevel2] Frame 1
function check_time() {
if (_root.game_start) {
if (!get_old_time) {
old_time = getTimer();
get_old_time = true;
}
new_time = getTimer();
if (_root.scene_pause_FG && (!update_old_time)) {
total_time = total_time - pass_time;
leave_time = Math.floor(total_time / 1000);
update_old_time = true;
}
if ((!_root.scene_pause_FG) && (update_old_time)) {
old_time = getTimer();
update_old_time = false;
}
if (!_root.scene_pause_FG) {
pass_time = new_time - old_time;
leave_time = Math.floor((total_time - pass_time) / 1000);
}
if (pass_time >= total_time) {
leave_time = 0;
_root.gotoAndStop("game_pass");
}
} else {
leave_time = Math.floor(total_time / 1000);
}
}
function onEnterFrame() {
check_time();
scores_loader.bonus_time_text.text = leave_time;
}
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene3", "scene3", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader_bonus", "scores_loader", _local3, {_x:120, _y:5});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local4 = this["base" + id].leaf_loader.getNextHighestDepth();
if (_local3 > _local4) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
level_type = "bonus";
total_time = 30000;
get_old_time = false;
update_old_time = false;
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "glue_add";
power_base_time = 10000;
power_random_time1 = 40000;
power_random_time2 = 40000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (30 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 60;
}
if (_root.game_difficulty == "normal") {
aim_num = 65;
}
if (_root.game_difficulty == "hard") {
aim_num = 70;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 100;
mollusc_random_time = 200;
insect_time = 50;
insect_random_time = 200;
white_ant_time = 30;
white_ant_random_time = 100;
wasp_time = 20;
wasp_random_time = 80;
spider_time = 50;
spider_random_time = 100;
eat_ant_time = 60;
eat_ant_random_time = 200;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 16;
var shot_num = 999;
var glue_num = 16;
var pat_locked = false;
var kill_locked = true;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 615 MovieClip [bonuslevel3] Frame 1
function check_time() {
if (_root.game_start) {
if (!get_old_time) {
old_time = getTimer();
get_old_time = true;
}
new_time = getTimer();
if (_root.scene_pause_FG && (!update_old_time)) {
total_time = total_time - pass_time;
leave_time = Math.floor(total_time / 1000);
update_old_time = true;
}
if ((!_root.scene_pause_FG) && (update_old_time)) {
old_time = getTimer();
update_old_time = false;
}
if (!_root.scene_pause_FG) {
pass_time = new_time - old_time;
leave_time = Math.floor((total_time - pass_time) / 1000);
}
if (pass_time >= total_time) {
leave_time = 0;
_root.gotoAndStop("game_pass");
}
} else {
leave_time = Math.floor(total_time / 1000);
}
}
function onEnterFrame() {
check_time();
scores_loader.bonus_time_text.text = leave_time;
}
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene4", "scene4", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader_bonus", "scores_loader", _local3, {_x:120, _y:5});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local4 = this["base" + id].leaf_loader.getNextHighestDepth();
if (_local3 > _local4) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
level_type = "bonus";
total_time = 30000;
get_old_time = false;
update_old_time = false;
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "glue_add";
power_base_time = 10000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 0;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (30 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 80;
}
if (_root.game_difficulty == "normal") {
aim_num = 85;
}
if (_root.game_difficulty == "hard") {
aim_num = 90;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 100;
mollusc_random_time = 200;
insect_time = 50;
insect_random_time = 200;
white_ant_time = 30;
white_ant_random_time = 100;
wasp_time = 20;
wasp_random_time = 80;
spider_time = 50;
spider_random_time = 100;
eat_ant_time = 60;
eat_ant_random_time = 200;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = true;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 616 MovieClip [bonuslevel4] Frame 1
function check_time() {
if (_root.game_start) {
if (!get_old_time) {
old_time = getTimer();
get_old_time = true;
}
new_time = getTimer();
if (_root.scene_pause_FG && (!update_old_time)) {
total_time = total_time - pass_time;
leave_time = Math.floor(total_time / 1000);
update_old_time = true;
}
if ((!_root.scene_pause_FG) && (update_old_time)) {
old_time = getTimer();
update_old_time = false;
}
if (!_root.scene_pause_FG) {
pass_time = new_time - old_time;
leave_time = Math.floor((total_time - pass_time) / 1000);
}
if (pass_time >= total_time) {
leave_time = 0;
_root.gotoAndStop("game_pass");
}
} else {
leave_time = Math.floor(total_time / 1000);
}
}
function onEnterFrame() {
check_time();
scores_loader.bonus_time_text.text = leave_time;
}
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene6", "scene6", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader_bonus", "scores_loader", _local3, {_x:120, _y:5});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local4 = this["base" + id].leaf_loader.getNextHighestDepth();
if (_local3 > _local4) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
level_type = "bonus";
total_time = 30000;
get_old_time = false;
update_old_time = false;
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "glue_add";
power_base_time = 10000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 1;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (30 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 80;
}
if (_root.game_difficulty == "normal") {
aim_num = 85;
}
if (_root.game_difficulty == "hard") {
aim_num = 90;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 6;
var spider_life_num = 6;
var eat_ant_life_num = 0;
var insect_life_num = 5;
var mollusc_life_num = 5;
var white_ant_life_num = 4;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 100;
mollusc_random_time = 200;
insect_time = 50;
insect_random_time = 200;
white_ant_time = 30;
white_ant_random_time = 100;
wasp_time = 20;
wasp_random_time = 80;
spider_time = 50;
spider_random_time = 100;
eat_ant_time = 60;
eat_ant_random_time = 200;
var ant_2_num = (7 * base_num);
var ant_3_num = (7 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = true;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 617 MovieClip [level1] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene1", "scene1", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader;
var _local4 = _local3.getNextHighestDepth();
var _local6 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local5 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local4 > _local6) {
if (_local5 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "nit";
power_add_Array[1] = "nit";
power_base_time = 10000;
power_random_time1 = 20000;
power_random_time2 = 20000;
var base_num = 1;
var base_direction = new Array();
base_direction[0] = 0;
var floor_coord = new Array();
floor_coord[0] = 0;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (15 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 8;
}
if (_root.game_difficulty == "normal") {
aim_num = 10;
}
if (_root.game_difficulty == "hard") {
aim_num = 12;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 6;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array();
spider_aim_coord[0] = 240;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 4;
var spider_life_num = 0;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 0;
var white_ant_life_num = 3;
var web_life_num = 0;
var mollusc_active = false;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = false;
var eat_ant_active = false;
mollusc_time = 0;
mollusc_random_time = 400;
insect_time = 100;
insect_random_time = 200;
white_ant_time = 200;
white_ant_random_time = 300;
wasp_time = 60;
wasp_random_time = 100;
spider_time = 100;
spider_random_time = 200;
eat_ant_time = 0;
eat_ant_random_time = 0;
var ant_2_num = (15 * base_num);
var ant_3_num = (15 * base_num);
var pat_num = 999;
var kill_num = 0;
var shot_num = 999;
var glue_num = 0;
var pat_locked = false;
var kill_locked = true;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 618 MovieClip [level2] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene1", "scene1", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 25000;
power_random_time2 = 25000;
var base_num = 2;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 0;
var floor_coord = new Array();
floor_coord[0] = -80;
floor_coord[1] = 80;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (10 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 10;
}
if (_root.game_difficulty == "normal") {
aim_num = 15;
}
if (_root.game_difficulty == "hard") {
aim_num = 18;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(120, 240, 360);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 0;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 3;
var white_ant_life_num = 3;
var web_life_num = 10;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = false;
var eat_ant_active = false;
mollusc_time = 200;
mollusc_random_time = 300;
insect_time = 100;
insect_random_time = 200;
white_ant_time = 200;
white_ant_random_time = 200;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 0;
spider_random_time = 0;
eat_ant_time = 0;
eat_ant_random_time = 0;
var ant_2_num = (10 * base_num);
var ant_3_num = (10 * base_num);
var pat_num = 999;
var kill_num = 30;
var shot_num = 999;
var glue_num = 0;
var pat_locked = false;
var kill_locked = false;
var shot_locked = true;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 619 MovieClip [level3] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene1", "scene1", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 25000;
power_random_time2 = 25000;
var base_num = 2;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 0;
var floor_coord = new Array();
floor_coord[0] = -80;
floor_coord[1] = 80;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (15 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 15;
}
if (_root.game_difficulty == "normal") {
aim_num = 20;
}
if (_root.game_difficulty == "hard") {
aim_num = 25;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(120, 240, 360);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 3;
var white_ant_life_num = 3;
var web_life_num = 10;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = false;
var eat_ant_active = true;
mollusc_time = 300;
mollusc_random_time = 300;
insect_time = 200;
insect_random_time = 150;
white_ant_time = 200;
white_ant_random_time = 300;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 0;
spider_random_time = 0;
eat_ant_time = 150;
eat_ant_random_time = 300;
var ant_2_num = (10 * base_num);
var ant_3_num = (10 * base_num);
var pat_num = 999;
var kill_num = 20;
var shot_num = 999;
var glue_num = 0;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = true;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 620 MovieClip [level4] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene2", "scene2", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 30000;
power_random_time2 = 30000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 0;
base_direction[2] = 0;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 35;
}
if (_root.game_difficulty == "normal") {
aim_num = 40;
}
if (_root.game_difficulty == "hard") {
aim_num = 45;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 300;
mollusc_random_time = 300;
insect_time = 250;
insect_random_time = 300;
white_ant_time = 200;
white_ant_random_time = 300;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (10 * base_num);
var ant_3_num = (10 * base_num);
var pat_num = 999;
var kill_num = 20;
var shot_num = 999;
var glue_num = 20;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 621 MovieClip [level5] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene2", "scene2", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 30000;
power_random_time2 = 30000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 1;
base_direction[1] = 0;
base_direction[2] = 0;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 40;
}
if (_root.game_difficulty == "normal") {
aim_num = 45;
}
if (_root.game_difficulty == "hard") {
aim_num = 50;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 300;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 300;
white_ant_time = 200;
white_ant_random_time = 250;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 18;
var shot_num = 999;
var glue_num = 20;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 622 MovieClip [level6] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene3", "scene3", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 40000;
power_random_time2 = 40000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 40;
}
if (_root.game_difficulty == "normal") {
aim_num = 45;
}
if (_root.game_difficulty == "hard") {
aim_num = 50;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 300;
mollusc_random_time = 200;
insect_time = 250;
insect_random_time = 300;
white_ant_time = 200;
white_ant_random_time = 250;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 16;
var shot_num = 999;
var glue_num = 16;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 623 MovieClip [level7] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene3", "scene3", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 40000;
power_random_time2 = 40000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 1;
base_direction[1] = 0;
base_direction[2] = 1;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 40;
}
if (_root.game_difficulty == "normal") {
aim_num = 45;
}
if (_root.game_difficulty == "hard") {
aim_num = 50;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 300;
mollusc_random_time = 200;
insect_time = 220;
insect_random_time = 300;
white_ant_time = 200;
white_ant_random_time = 200;
wasp_time = 80;
wasp_random_time = 80;
spider_time = 250;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 16;
var shot_num = 999;
var glue_num = 16;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 624 MovieClip [level8] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene4", "scene4", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 3;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 1;
var floor_coord = new Array();
floor_coord[0] = -140;
floor_coord[1] = -20;
floor_coord[2] = 100;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 40;
}
if (_root.game_difficulty == "normal") {
aim_num = 45;
}
if (_root.game_difficulty == "hard") {
aim_num = 50;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(100, 220, 340);
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 250;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 300;
white_ant_time = 200;
white_ant_random_time = 200;
wasp_time = 60;
wasp_random_time = 80;
spider_time = 220;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 15;
var shot_num = 999;
var glue_num = 16;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 625 MovieClip [level9] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene5", "scene5", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 0;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 65;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 200;
mollusc_random_time = 200;
insect_time = 220;
insect_random_time = 300;
white_ant_time = 250;
white_ant_random_time = 400;
wasp_time = 60;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (8 * base_num);
var ant_3_num = (8 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 626 MovieClip [level10] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene5", "scene5", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 1;
base_direction[3] = 0;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 65;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 6;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 200;
mollusc_random_time = 200;
insect_time = 220;
insect_random_time = 300;
white_ant_time = 250;
white_ant_random_time = 400;
wasp_time = 60;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (7 * base_num);
var ant_3_num = (7 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 627 MovieClip [level11] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene5", "scene5", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 0;
base_direction[2] = 1;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 65;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 5;
var spider_life_num = 5;
var eat_ant_life_num = 0;
var insect_life_num = 4;
var mollusc_life_num = 4;
var white_ant_life_num = 3;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 200;
mollusc_random_time = 200;
insect_time = 220;
insect_random_time = 300;
white_ant_time = 250;
white_ant_random_time = 400;
wasp_time = 60;
wasp_random_time = 80;
spider_time = 300;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (7 * base_num);
var ant_3_num = (7 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 628 MovieClip [level12] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene6", "scene6", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 1;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 65;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 6;
var spider_life_num = 6;
var eat_ant_life_num = 0;
var insect_life_num = 5;
var mollusc_life_num = 5;
var white_ant_life_num = 4;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 160;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 300;
white_ant_time = 250;
white_ant_random_time = 400;
wasp_time = 60;
wasp_random_time = 70;
spider_time = 200;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (7 * base_num);
var ant_3_num = (7 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 629 MovieClip [level13] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene6", "scene6", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 55;
}
if (_root.game_difficulty == "normal") {
aim_num = 60;
}
if (_root.game_difficulty == "hard") {
aim_num = 70;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 6;
var spider_life_num = 6;
var eat_ant_life_num = 0;
var insect_life_num = 5;
var mollusc_life_num = 5;
var white_ant_life_num = 4;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 160;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 300;
white_ant_time = 250;
white_ant_random_time = 400;
wasp_time = 60;
wasp_random_time = 70;
spider_time = 200;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 300;
var ant_2_num = (6 * base_num);
var ant_3_num = (6 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 630 MovieClip [level14] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene7", "scene7", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 1;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 60;
}
if (_root.game_difficulty == "normal") {
aim_num = 65;
}
if (_root.game_difficulty == "hard") {
aim_num = 70;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 6;
var spider_life_num = 6;
var eat_ant_life_num = 0;
var insect_life_num = 5;
var mollusc_life_num = 5;
var white_ant_life_num = 4;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 160;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 200;
white_ant_time = 250;
white_ant_random_time = 300;
wasp_time = 50;
wasp_random_time = 60;
spider_time = 200;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 250;
var ant_2_num = (6 * base_num);
var ant_3_num = (6 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 631 MovieClip [level15] Frame 1
function load_init() {
var _local3 = this.getNextHighestDepth();
this.attachMovie("scene7", "scene7", _local3, {_x:0, _y:0});
_local3 = this.getNextHighestDepth();
this.attachMovie("tree", "tree", _local3, {_x:-80, _y:-100});
this.attachMovie("web_loader", "web_loader", _local3 + 1);
this.attachMovie("floor_loader", "floor_loader", _local3 + 2, {_x:0, _y:260});
this.attachMovie("glue_loader", "glue_loader", _local3 + 3);
this.attachMovie("glue_mask", "glue_mask", _local3 + 4);
var _local2 = 1;
while (_local2 <= base_num) {
_local3 = this.getNextHighestDepth();
this.attachMovie("base", "base" + _local2, _local3);
this["base" + _local2]._y = this["base" + _local2]._y + floor_coord[_local2 - 1];
this["base" + _local2].base_id = _local2;
if (base_direction[_local2 - 1] == 1) {
this["base" + _local2].way = 1;
this["base" + _local2]._xscale = -100;
this["base" + _local2]._x = 596;
}
var _local5 = floor_loader.getNextHighestDepth();
floor_loader.attachMovie("floor", "floor" + _local2, _local5);
floor_loader["floor" + _local2]._y = floor_loader["floor" + _local2]._y + floor_coord[_local2 - 1];
var _local4 = glue_mask.getNextHighestDepth();
glue_mask.attachMovie("tree_mask", "tree_mask", _local4, {_x:-80, _y:-100});
glue_mask.attachMovie("floor_mask", "floor_mask" + _local2, _local4 + 1);
glue_mask["floor_mask" + _local2]._y = 260 + floor_coord[_local2 - 1];
_local2++;
}
_local3 = this.getNextHighestDepth();
this.attachMovie("wasp_loader", "wasp_loader", _local3 + 1);
this.attachMovie("spider_loader", "spider_loader", _local3 + 2);
this.attachMovie("eat_ant_loader", "eat_ant_loader", _local3 + 3);
this.attachMovie("enemy_control", "enemy_control", _local3 + 4);
_local3 = this.getNextHighestDepth();
this.attachMovie("scores_loader", "scores_loader", _local3, {_x:120, _y:5});
this.attachMovie("ant_control", "ant_control", _local3 + 1, {_x:ant_contorl_x, _y:ant_contorl_y});
glue_loader.setMask(glue_mask);
}
function check_hole_state(id) {
var _local3 = this["base" + id].hole_loader.getNextHighestDepth();
var _local5 = this["base" + id].leaf_loader.getNextHighestDepth();
var _local4 = this["base" + id].ant_2_loader.getNextHighestDepth();
if (_local3 > _local5) {
if (_local4 == 0) {
sel_base_id_2 = id;
base_selected_2 = true;
}
}
}
function check_enemy_state(id) {
var _local4 = this["base" + id].insect_loader.getNextHighestDepth();
var _local5 = this["base" + id].mollusc_loader.getNextHighestDepth();
var _local3 = this["base" + id].white_ant_loader.getNextHighestDepth();
var _local6 = this["base" + id].ant_3_loader.getNextHighestDepth();
if (((_local4 > 0) || (_local5 > 0)) || (_local3 > 0)) {
if (_local6 == 0) {
sel_base_id_3 = id;
base_selected_3 = true;
}
}
}
function ant_2_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_hole_state(_local2);
if (base_selected_2) {
break;
}
_local2++;
}
if (!base_selected_2) {
sel_base_id_2 = random(base_num) + 1;
}
if (ant_2_num > 0) {
_root.level["base" + sel_base_id_2].ant_2_load();
base_selected_2 = false;
}
}
function ant_3_add() {
var _local2 = 1;
while (_local2 <= base_num) {
check_enemy_state(_local2);
if (base_selected_3) {
break;
}
_local2++;
}
if (!base_selected_3) {
sel_base_id_3 = random(base_num) + 1;
}
if (ant_3_num > 0) {
_root.level["base" + sel_base_id_3].ant_3_load();
base_selected_3 = false;
}
}
power_add_Array = new Array();
power_add_Array[0] = "kill_add";
power_add_Array[1] = "kill_add";
power_base_time = 20000;
power_random_time1 = 50000;
power_random_time2 = 50000;
var base_num = 4;
var base_direction = new Array();
base_direction[0] = 0;
base_direction[1] = 1;
base_direction[2] = 0;
base_direction[3] = 1;
var floor_coord = new Array();
floor_coord[0] = -150;
floor_coord[1] = -60;
floor_coord[2] = 30;
floor_coord[3] = 120;
var ant_contorl_x = _parent.ant_contorl_x;
var ant_contorl_y = _parent.ant_contorl_y;
var hole_Array = new Array(1, 2, 3, 4);
var hole_width = 80;
var spider_coord = {x1:15, x2:585};
var spider_aim_coord = new Array(90, 180, 270, 360);
var total_num = (20 * base_num);
if (_root.game_difficulty == "easy") {
aim_num = 60;
}
if (_root.game_difficulty == "normal") {
aim_num = 65;
}
if (_root.game_difficulty == "hard") {
aim_num = 70;
}
var ant_load_time = 2000;
var nit_num = 1;
var ant_num = 1;
var arrive_ant_id = 0;
var arrive_ant_num = 0;
var arrive_nit_num = 0;
var ant_1_vx = 2;
var ant_2_vx = 6;
var ant_3_vx = 6;
var insect_vx = 2;
var mollusc_vx = 3;
var white_ant_vx = 7;
var wasp_vx = 8;
var spider_vx = 10;
var eat_ant_vx = 3;
var ant_1_life_num = 1;
var ant_2_life_num = 1;
var ant_3_life_num = 1;
var wasp_life_num = 6;
var spider_life_num = 6;
var eat_ant_life_num = 0;
var insect_life_num = 5;
var mollusc_life_num = 5;
var white_ant_life_num = 4;
var web_life_num = 7;
var mollusc_active = true;
var insect_active = true;
var white_ant_active = true;
var wasp_active = true;
var spider_active = true;
var eat_ant_active = true;
mollusc_time = 160;
mollusc_random_time = 200;
insect_time = 200;
insect_random_time = 200;
white_ant_time = 250;
white_ant_random_time = 300;
wasp_time = 50;
wasp_random_time = 60;
spider_time = 200;
spider_random_time = 300;
eat_ant_time = 100;
eat_ant_random_time = 250;
var ant_2_num = (6 * base_num);
var ant_3_num = (6 * base_num);
var pat_num = 999;
var kill_num = 12;
var shot_num = 999;
var glue_num = 15;
var pat_locked = false;
var kill_locked = false;
var shot_locked = false;
var glue_locked = false;
load_init();
var sel_base_id_2 = (random(base_num) + 1);
var sel_base_id_3 = (random(base_num) + 1);
var base_selected_2 = false;
var base_selected_3 = false;
ant_control.ant_2_bt.onPress = function () {
ant_2_add();
};
ant_control.ant_3_bt.onPress = function () {
ant_3_add();
};
Symbol 690 MovieClip [add10] Frame 12
stop();
removeMovieClip(this);
Symbol 693 MovieClip [add30] Frame 12
stop();
removeMovieClip(this);
Symbol 696 MovieClip [add50] Frame 12
stop();
removeMovieClip(this);
Symbol 699 MovieClip [add100] Frame 12
stop();
removeMovieClip(this);
Symbol 702 MovieClip [loss10] Frame 12
stop();
removeMovieClip(this);
Symbol 705 MovieClip Frame 5
stop();
Symbol 839 Button
on (release) {
gotoAndPlay ("diffficulty");
}
Symbol 843 MovieClip Frame 1
stop();
Symbol 843 MovieClip Frame 2
stop();
Symbol 846 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 2
stop();
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 2
stop();
Symbol 870 MovieClip [game_start_menu1] Frame 1
if (_root.game_level == "level1") {
gotoAndStop ("note");
} else if (_root.game_level == "level2") {
gotoAndStop ("note_kill");
} else if (_root.game_level == "level3") {
gotoAndStop ("note_shot");
} else if (_root.game_level == "bonuslevel1") {
gotoAndStop ("start_bonus");
} else if (_root.game_level == "bonuslevel2") {
gotoAndStop ("start_bonus");
} else if (_root.game_level == "bonuslevel3") {
gotoAndStop ("start_bonus");
} else if (_root.game_level == "bonuslevel4") {
gotoAndStop ("start_bonus");
} else {
gotoAndStop ("start");
}
Symbol 870 MovieClip [game_start_menu1] Frame 2
stop();
next_bt.onPress = function () {
gotoAndStop ("control");
};
Symbol 870 MovieClip [game_start_menu1] Frame 11
stop();
next_bt.onPress = function () {
gotoAndStop ("difficulty");
};
Symbol 870 MovieClip [game_start_menu1] Frame 24
function init_difficulty_bt() {
easy_bt.gotoAndStop(1);
normal_bt.gotoAndStop(1);
hard_bt.gotoAndStop(1);
}
function set_difficulty() {
if (_root.game_difficulty == "easy") {
easy_bt.gotoAndStop(2);
}
if (_root.game_difficulty == "normal") {
normal_bt.gotoAndStop(2);
}
if (_root.game_difficulty == "hard") {
hard_bt.gotoAndStop(2);
}
}
stop();
next_bt.onPress = function () {
gotoAndStop ("start");
};
game_difficulty = _root.game_difficulty;
init_difficulty_bt();
set_difficulty();
easy_bt.onPress = function () {
init_difficulty_bt();
_root.game_difficulty = "easy";
easy_bt.gotoAndStop(2);
_root.level.aim_num = 8;
};
normal_bt.onPress = function () {
init_difficulty_bt();
_root.game_difficulty = "normal";
normal_bt.gotoAndStop(2);
_root.level.aim_num = 10;
};
hard_bt.onPress = function () {
init_difficulty_bt();
_root.game_difficulty = "hard";
hard_bt.gotoAndStop(3);
_root.level.aim_num = 12;
};
Symbol 870 MovieClip [game_start_menu1] Frame 34
next_bt.onPress = function () {
gotoAndStop ("start");
};
Symbol 870 MovieClip [game_start_menu1] Frame 51
next_bt.onPress = function () {
gotoAndStop ("start");
};
Symbol 870 MovieClip [game_start_menu1] Frame 73
stop();
start_bt.onPress = function () {
_root.game_start = true;
_parent.start_menu.gotoAndStop("clear");
_root.choose_pat();
};
game_level_text.text = _root.game_level_txt_Array[_root.current_game_level];
Symbol 870 MovieClip [game_start_menu1] Frame 83
stop();
start_bt.onPress = function () {
_root.game_start = true;
_parent.start_menu.gotoAndStop("clear");
_root.choose_pat();
};
game_level_text.text = _root.game_level_txt_Array[_root.current_game_level];
Symbol 870 MovieClip [game_start_menu1] Frame 95
stop();
Symbol 892 MovieClip Frame 1
stop();
Symbol 892 MovieClip Frame 2
stop();
Symbol 895 Button
on (press) {
play();
}
Symbol 896 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 2
stop();
Symbol 898 MovieClip Frame 1
stop();
Symbol 898 MovieClip Frame 2
stop();
Symbol 900 MovieClip Frame 1
if (!_parent.flash_start) {
gotoAndStop (10);
}
Symbol 900 MovieClip Frame 10
stop();
Symbol 901 MovieClip Frame 9
stop();
_parent.flash_start = true;
Symbol 904 MovieClip Frame 1
stop();
Symbol 904 MovieClip Frame 2
stop();
Symbol 906 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 2
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 2
stop();
Symbol 910 MovieClip Frame 1
stop();
Symbol 910 MovieClip Frame 2
stop();
Symbol 911 MovieClip Frame 1
stop();
Symbol 911 MovieClip Frame 10
function quality_init() {
switch (_quality) {
case "LOW" :
bt4.gotoAndStop(2);
return;
case "MEDIUM" :
bt3.gotoAndStop(2);
return;
case "HIGH" :
bt2.gotoAndStop(2);
return;
case "BEST" :
bt1.gotoAndStop(2);
}
}
function bt_init() {
bt1.gotoAndStop(1);
bt2.gotoAndStop(1);
bt3.gotoAndStop(1);
bt4.gotoAndStop(1);
}
stop();
quality_init();
bt1.bt.onPress = function () {
bt_init();
_quality = "BEST";
quality_init();
bt1.gotoAndStop(2);
};
bt2.bt.onPress = function () {
bt_init();
_quality = "HIGH";
quality_init();
bt2.gotoAndStop(2);
};
bt3.bt.onPress = function () {
bt_init();
_quality = "MEDIUM";
quality_init();
bt3.gotoAndStop(2);
};
bt4.bt.onPress = function () {
bt_init();
_quality = "LOW";
quality_init();
bt4.gotoAndStop(2);
};
Symbol 915 MovieClip [sound_control] Frame 1
hit = false;
opend = false;
onEnterFrame = function () {
check_hit_menu();
check_menu();
};
check_hit_menu = function () {
var _local2 = quality_bt.hitTest(_root._xmouse, _root._ymouse, false);
if (_local2) {
hit = true;
} else {
hit = false;
}
};
check_menu = function () {
if (hit && (!opend)) {
quality_menu.gotoAndPlay(1);
quality_bt.gotoAndStop(2);
opend = true;
}
if (!hit) {
if (opend) {
quality_menu.gotoAndPlay(11);
opend = false;
}
quality_bt.gotoAndStop(1);
}
};
if (!_root.music_state) {
music_bt.gotoAndStop(2);
}
music_bt.onPress = function () {
music_bt.play();
_root.music_state = !_root.music_state;
_root.music_control();
};
if (!_root.sound_state) {
sound_bt.gotoAndStop(2);
}
sound_bt.onPress = function () {
sound_bt.play();
_root.sound_state = !_root.sound_state;
_root.sound_global_control();
};
game_menu.onPress = function () {
if (_root.scene_pause_FG) {
return(undefined);
}
_root.scene_pause_FG = true;
_root.attachMovie("pause_menu", "pause_menu", _root.getNextHighestDepth());
};
Instance of Symbol 892 MovieClip "music_bt" in Symbol 915 MovieClip [sound_control] Frame 1
on (release) {
_root.setMusic(this);
}
Instance of Symbol 896 MovieClip "sound_bt" in Symbol 915 MovieClip [sound_control] Frame 1
on (release) {
_root.setSound(this);
}
Symbol 920 Button
on (release) {
_root.gotoAndStop("retry");
}
Symbol 923 Button
on (release) {
_root.gotoAndStop("game_menu");
}
Symbol 927 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 931 Button
on (release) {
getURL ("http://www.ifungames.com", _blank);
}
Symbol 935 Button
on (release) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 938 Button
on (release) {
viewHighscore();
}
Symbol 942 MovieClip [pause_menu] Frame 1
return_to_game.onPress = function () {
_root.scene_pause_FG = false;
_root.pause_menu.removeMovieClip();
};
Symbol 945 MovieClip [add40] Frame 12
stop();
removeMovieClip(this);
Symbol 953 MovieClip Frame 1
stop();
Symbol 954 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1045 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", _blank);
}
Symbol 1050 Button
on (release) {
gotoAndPlay ("credits_frame");
}
Symbol 1084 Button
on (release) {
_root.gotoAndPlay("game_menu");
}