Section 1
//a_fish_caught_ride_120 (AnikasOdyssey_fla.a_fish_caught_ride_120)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_fish_caught_ride_120 extends MovieClip {
public var camera_target:MovieClip;
public function a_fish_caught_ride_120(){
addFrameScript(1, frame2, 160, frame161, 585, frame586, 640, frame641);
}
function frame161(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame586(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame641(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 2
//a_game_ending_223 (AnikasOdyssey_fla.a_game_ending_223)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_game_ending_223 extends MovieClip {
public var camera_target:MovieClip;
public function a_game_ending_223(){
addFrameScript(1, frame2, 568, frame569, 585, frame586, 1662, frame1663, 1669, frame1670);
}
function frame569(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame586(){
stage.quality = StageQuality.HIGH;
}
function frame2(){
stop();
}
function frame1663(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame1670(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 3
//a_game_intro_109 (AnikasOdyssey_fla.a_game_intro_109)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_game_intro_109 extends MovieClip {
public var camera_target:MovieClip;
public function a_game_intro_109(){
addFrameScript(1, frame2, 4, frame5, 132, frame133, 358, frame359, 542, frame543);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame359(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame133(){
stage.quality = StageQuality.LOW;
}
function frame543(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 4
//a_generic_105 (AnikasOdyssey_fla.a_generic_105)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_generic_105 extends MovieClip {
public var camera_target:MovieClip;
public function a_generic_105(){
addFrameScript(1, frame2, 55, frame56);
}
function frame2(){
stop();
}
function frame56(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 5
//a_inv_house_toy_112 (AnikasOdyssey_fla.a_inv_house_toy_112)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_inv_house_toy_112 extends MovieClip {
public function a_inv_house_toy_112(){
addFrameScript(1, frame2, 37, frame38);
}
function frame2(){
stop();
}
function frame38(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 6
//a_inv_pump_toy_113 (AnikasOdyssey_fla.a_inv_pump_toy_113)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class a_inv_pump_toy_113 extends MovieClip {
public function a_inv_pump_toy_113(){
addFrameScript(1, frame2, 37, frame38);
}
function frame2(){
stop();
}
function frame38(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 7
//a_pump_to_house_106 (AnikasOdyssey_fla.a_pump_to_house_106)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class a_pump_to_house_106 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_bucket_and_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public var girl_bucket_mc:MovieClip;
public var girl_bucket_full_and_toy_mc:MovieClip;
public function a_pump_to_house_106(){
addFrameScript(1, frame2, 4, frame5, 54, frame55);
}
function frame5(){
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
function frame2(){
stop();
}
function frame55(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
}
}//package AnikasOdyssey_fla
Section 8
//a_walk_to_pump_96 (AnikasOdyssey_fla.a_walk_to_pump_96)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class a_walk_to_pump_96 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_bucket_and_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public var girl_bucket_mc:MovieClip;
public var girl_bucket_full_and_toy_mc:MovieClip;
public function a_walk_to_pump_96(){
addFrameScript(1, frame2, 4, frame5, 55, frame56);
}
function frame5(){
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
function frame2(){
stop();
}
function frame56(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
}
}//package AnikasOdyssey_fla
Section 9
//anim_95 (AnikasOdyssey_fla.anim_95)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class anim_95 extends MovieClip {
public var obj_hollow_goblins_stuck:MovieClip;
public var game_ending:MovieClip;
public var obj_feathers_pickup:MovieClip;
public var obj_lever_pull:MovieClip;
public var loc_lookout_to_cliff:MovieClip;
public var loc_treehouse_to_fisherman:MovieClip;
public var loc_treehole_to_forest:MovieClip;
public var obj_fence_bucket_on_ground_pickup:MovieClip;
public var obj_lever_pull_action_long:MovieClip;
public var obj_pump_bucket:MovieClip;
public var pump_to_house:MovieClip;
public var obj_house_door_no_water:MovieClip;
public var obj_fence_bucket_on_ground:MovieClip;
public var inv_bush_berries:MovieClip;
public var loc_hollow_to_swamp:MovieClip;
public var loc_cliff_to_path_start:MovieClip;
public var loc_nest_to_clifftop:MovieClip;
public var loc_bank_to_log:MovieClip;
public var obj_pump_with_bucket:MovieClip;
public var loc_swamp_to_log:MovieClip;
public var obj_cart_on_cliff:MovieClip;
public var loc_cliff_lower_to_cliff:MovieClip;
public var loc_hollow_to_treehole_w_goblin:MovieClip;
public var loc_treehole_to_log:MovieClip;
public var obj_hatch_no_goat:MovieClip;
public var loc_cliff_to_lower:MovieClip;
public var loc_pump_to_fence:MovieClip;
public var obj_nest_rabbit:MovieClip;
public var loc_hollow_to_treehole:MovieClip;
public var loc_path_goat:MovieClip;
public var loc_treehole_to_forest_w_goblin:MovieClip;
public var obj_pull_vine_1_final:MovieClip;
public var inv_bank_berries:MovieClip;
public var obj_toy_pickup:MovieClip;
public var loc_path_to_clifftop:MovieClip;
public var obj_pull_vine_1:MovieClip;
public var obj_kiss_giant:MovieClip;
public var obj_pull_vine_3:MovieClip;
public var inv_fishspot_berries:MovieClip;
public var obj_pull_vine_2:MovieClip;
public var loc_cliff_lower_to_machine:MovieClip;
public var loc_fence_to_pump:MovieClip;
public var obj_fisherman:MovieClip;
public var inv_house_toy:MovieClip;
public var obj_lever_pull_action:MovieClip;
public var obj_fence_bucket_knocked_over:MovieClip;
public var obj_fence:MovieClip;
public var loc_log_to_bank:MovieClip;
public var obj_treehole_goblin_in_hole:MovieClip;
public var loc_cliff_lower_blocked:MovieClip;
public var loc_steps_to_swamp:MovieClip;
public var obj_hollow_goblins_out:MovieClip;
public var inv_giant_toy:MovieClip;
public var loc_fisherman_to_treehouse:MovieClip;
public var obj_bucket_pickup:MovieClip;
public var obj_pump_bucket_put_down:MovieClip;
public var loc_path_goat_appear:MovieClip;
public var loc_forest_to_tree_w_goblin:MovieClip;
public var inv_fence_bucket:MovieClip;
public var inv_log_berries:MovieClip;
public var obj_tongue:MovieClip;
public var loc_bank_to_berries:MovieClip;
public var loc_log_to_swamp:MovieClip;
public var obj_treehole_goblin_out:MovieClip;
public var obj_midpath_push_ram:MovieClip;
public var obj_forest_fence_zap_w_goblin:MovieClip;
public var loc_pathstart_to_cliff_lower:MovieClip;
public var obj_treehole_goblin_push:MovieClip;
public var loc_levers_to_clifflower:MovieClip;
public var loc_cliff_to_lookout:MovieClip;
public var obj_pump_no_bucket:MovieClip;
public var loc_lever_to_treehouse:MovieClip;
public var loc_levers_to_cliff:MovieClip;
public var loc_berries_to_bank:MovieClip;
public var loc_fly_home:MovieClip;
public var loc_treehouse_to_lever:MovieClip;
public var loc_hollow_to_swamp_goblins_goodbye:MovieClip;
public var obj_hatch_goat_scare:MovieClip;
public var loc_nest_to_mountain:MovieClip;
public var loc_cliff_to_machine:MovieClip;
public var obj_pump_bucket_pick_up:MovieClip;
public var loc_swamp_to_hollow:MovieClip;
public var inv_nest_toy:MovieClip;
public var obj_machine_kick:MovieClip;
public var loc_forest_to_tree:MovieClip;
public var obj_treehole:MovieClip;
public var house_to_pump:MovieClip;
public var inv_pump_toy:MovieClip;
public var obj_berry_bush:MovieClip;
public var loc_treehole_to_log_w_goblin:MovieClip;
public var loc_swamp_to_steps:MovieClip;
public var loc_clifftop_to_path:MovieClip;
public var obj_forest_fence_zap:MovieClip;
public var loc_hollow_to_swamp_goblins_appear:MovieClip;
public var obj_cart_on_bridge:MovieClip;
public var loc_midpath_to_bottom:MovieClip;
public var obj_swampy:MovieClip;
public var loc_spot_to_bank:MovieClip;
public var game_intro:MovieClip;
public var loc_bank_to_spot:MovieClip;
public var loc_clifftop_to_nest:MovieClip;
}
}//package AnikasOdyssey_fla
Section 10
//background_together_26 (AnikasOdyssey_fla.background_together_26)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class background_together_26 extends MovieClip {
public var bg_3:MovieClip;
public var bg_4:MovieClip;
public var bg_5:MovieClip;
public var bg_7:MovieClip;
public var bg_8:MovieClip;
public var bg_6:MovieClip;
public var bg_9:MovieClip;
public var bg_1:MovieClip;
public var bg_2:MovieClip;
}
}//package AnikasOdyssey_fla
Section 11
//backgrounds_mc_25 (AnikasOdyssey_fla.backgrounds_mc_25)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class backgrounds_mc_25 extends MovieClip {
public var swampy_mc:MovieClip;
public var obj_start_btn_mc:MovieClip;
public var obj_hatch_mc:MovieClip;
public var pieces:MovieClip;
public var giant_mc:MovieClip;
public var ram_mc:MovieClip;
public var obj_toy_mc:MovieClip;
public var branch_mc:MovieClip;
public var falling_leaves_mc:MovieClip;
public var levers_mc:MovieClip;
public var eagle_mc:MovieClip;
public var vines_mc:MovieClip;
public var obj_feathers_mc:MovieClip;
public var hollow_log_mc:MovieClip;
public var obj_bucket_mc:MovieClip;
public var obj_goblin_mc:MovieClip;
public var log_ripple_mc:MovieClip;
public var pump_mc:MovieClip;
public var drips_mc:MovieClip;
public var obj_bridge_mc:MovieClip;
public var obj_cart_mc:MovieClip;
public var obj_machine_mc:MovieClip;
public var fisherman_mc:MovieClip;
public var lizard_mc:MovieClip;
}
}//package AnikasOdyssey_fla
Section 12
//berries_splash_and_fish_frenzy_121 (AnikasOdyssey_fla.berries_splash_and_fish_frenzy_121)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class berries_splash_and_fish_frenzy_121 extends MovieClip {
public function berries_splash_and_fish_frenzy_121(){
addFrameScript(109, frame110);
}
function frame110(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 13
//black_bar_240 (AnikasOdyssey_fla.black_bar_240)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class black_bar_240 extends MovieClip {
public var tricky_btn:SimpleButton;
public var tricky_logo_mc:MovieClip;
public function black_bar_240(){
addFrameScript(0, frame1);
}
public function rollIN(_arg1:Event){
tricky_logo_mc.gotoAndStop("on");
}
function frame1(){
tricky_btn.addEventListener(MouseEvent.CLICK, this.gotoLink);
tricky_btn.addEventListener(MouseEvent.MOUSE_OVER, this.rollIN);
tricky_btn.addEventListener(MouseEvent.MOUSE_OUT, this.rollOUT);
}
public function rollOUT(_arg1:Event){
tricky_logo_mc.gotoAndStop("off");
}
public function gotoLink(_arg1:Event){
var _local2:URLRequest;
if (_arg1.target.name == "tricky_btn"){
_local2 = new URLRequest("http://trickysheep.co.nz/");
} else {
_local2 = new URLRequest("http://www.google.com/");
};
navigateToURL(_local2, "_blank");
}
}
}//package AnikasOdyssey_fla
Section 14
//branch_mc_37 (AnikasOdyssey_fla.branch_mc_37)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class branch_mc_37 extends MovieClip {
public function branch_mc_37(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 15
//char_mc_93 (AnikasOdyssey_fla.char_mc_93)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class char_mc_93 extends MovieClip {
public var inv:MovieClip;
public function char_mc_93(){
addFrameScript(0, frame1, 3, frame4, 6, frame7, 9, frame10, 12, frame13);
}
function frame10(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 16
//char_positions_92 (AnikasOdyssey_fla.char_positions_92)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class char_positions_92 extends MovieClip {
public var log_left:MovieClip;
public var cliff_path:MovieClip;
public var forest:MovieClip;
public var steps:MovieClip;
public var fence:MovieClip;
public var fisherman:MovieClip;
public var swamp_bank:MovieClip;
public var nest:MovieClip;
public var treecity_lower:MovieClip;
public var treehole:MovieClip;
public var log_right:MovieClip;
public var berry_bush:MovieClip;
public var clifftop:MovieClip;
public var cliff_lower_right:MovieClip;
public var hollow_log_left:MovieClip;
public var fish_spot:MovieClip;
public var cliff_top_lookout:MovieClip;
public var house_pos:MovieClip;
public var giant:MovieClip;
public var treecity_lever:MovieClip;
public var cliff_bridge:MovieClip;
public var swamp:MovieClip;
public var game_intro:MovieClip;
public var cliff_lower:MovieClip;
public var pump_pos:MovieClip;
}
}//package AnikasOdyssey_fla
Section 17
//click_target_238 (AnikasOdyssey_fla.click_target_238)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class click_target_238 extends MovieClip {
public var obj_fence_bucket:MovieClip;
public var obj_bridge_broken:MovieClip;
public var inv_bank_berries_click:MovieClip;
public var loc_swamp_rock_click:MovieClip;
public var inv_pump_click:MovieClip;
public var cliff_ledge_click:MovieClip;
public var cart_bridge_click:MovieClip;
public var loc_bank_click:MovieClip;
public var loc_fishing_spot_click:MovieClip;
public var intro_start_click:MovieClip;
public var loc_path_4_click:MovieClip;
public var obj_bridge_down:MovieClip;
public var loc_swamp_steps_click:MovieClip;
public var obj_pump_bucket:MovieClip;
public var inv_house_click:MovieClip;
public var inv_nest_toy_click:MovieClip;
public var obj_nest_rabbit_click:MovieClip;
public var vine_1_click:MovieClip;
public var obj_swamp_monster_click:MovieClip;
public var loc_path_1_click:MovieClip;
public var gear_3b_click:MovieClip;
public var obj_giant_cheek_click:MovieClip;
public var loc_treehouse_lower_click:MovieClip;
public var lever_click:MovieClip;
public var obj_knocked_over_bucket:MovieClip;
public var tongue_click:MovieClip;
public var obj_treehouse_steps_click:MovieClip;
public var gear_2_click:MovieClip;
public var obj_cliff_broken_steps:MovieClip;
public var loc_sky_click:MovieClip;
public var inv_bush_berries_click:MovieClip;
public var obj_mountain_top_path_click:MovieClip;
public var hatch_click:MovieClip;
public var gear_1b_click:MovieClip;
public var loc_upper_tunnel_click:MovieClip;
public var lets_go:MovieClip;
public var loc_machine_click:MovieClip;
public var loc_lower_tunnel_click:MovieClip;
public var forest_fence_click:MovieClip;
public var obj_bush_click:MovieClip;
public var forest_click:MovieClip;
public var vine_3_click:MovieClip;
public var loc_swamp_click:MovieClip;
public var obj_ram_click:MovieClip;
public var pump_click:MovieClip;
public var bucket_click:MovieClip;
public var loc_berries_click:MovieClip;
public var obj_feathers_click:MovieClip;
public var loc_path_3_click:MovieClip;
public var gear_4_click:MovieClip;
public var loc_path_2b_click:MovieClip;
public var inv_giant_toy_click:MovieClip;
public var inv_log_berries_click:MovieClip;
public var loc_nest_click:MovieClip;
public var obj_cliff_lower_steps:MovieClip;
public var inv_fence_bucket:MovieClip;
public var loc_pump_click:MovieClip;
public var obj_mushroom_steps_click:MovieClip;
public var gear_1_click:MovieClip;
public var loc_stairs_to_treehouse_click:MovieClip;
public var gear_4b_click:MovieClip;
public var loc_path_start_click:MovieClip;
public var treehole_click:MovieClip;
public var loc_left_log_click:MovieClip;
public var hollow_log_click:MovieClip;
public var toy_click:MovieClip;
public var loc_fence_click:MovieClip;
public var inv_fishspot_berries_click:MovieClip;
public var tree_click:MovieClip;
public var gear_2b_click:MovieClip;
public var vine_2_click:MovieClip;
public var house_click:MovieClip;
public var loc_cliff_lower_click:MovieClip;
public var obj_fisherman_click:MovieClip;
public var loc_path_2_click:MovieClip;
public var cart_cliff_click:MovieClip;
public var loc_next_to_log:MovieClip;
public var gear_3_click:MovieClip;
public var obj_bush_slide_click:MovieClip;
public var loc_cliff_click:MovieClip;
public var fence_click:MovieClip;
public var obj_door_click:MovieClip;
}
}//package AnikasOdyssey_fla
Section 18
//eagle_mc_69 (AnikasOdyssey_fla.eagle_mc_69)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class eagle_mc_69 extends MovieClip {
public function eagle_mc_69(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 19
//falling_leaves_mc_59 (AnikasOdyssey_fla.falling_leaves_mc_59)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class falling_leaves_mc_59 extends MovieClip {
public function falling_leaves_mc_59(){
addFrameScript(1, frame2, 105, frame106);
}
function frame106(){
stop();
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 20
//feather_fall_170 (AnikasOdyssey_fla.feather_fall_170)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class feather_fall_170 extends MovieClip {
public function feather_fall_170(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 21
//feather_fall_2_172 (AnikasOdyssey_fla.feather_fall_2_172)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class feather_fall_2_172 extends MovieClip {
public function feather_fall_2_172(){
addFrameScript(86, frame87);
}
function frame87(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 22
//feather_fall_3_171 (AnikasOdyssey_fla.feather_fall_3_171)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class feather_fall_3_171 extends MovieClip {
public function feather_fall_3_171(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 23
//fisherman_mc_87 (AnikasOdyssey_fla.fisherman_mc_87)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class fisherman_mc_87 extends MovieClip {
public var fisherman_mc:MovieClip;
public function fisherman_mc_87(){
addFrameScript(2, frame3);
}
function frame3(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 24
//giant_eyes_mc_85 (AnikasOdyssey_fla.giant_eyes_mc_85)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class giant_eyes_mc_85 extends MovieClip {
public function giant_eyes_mc_85(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 25
//goblin_rescue_freedom_197 (AnikasOdyssey_fla.goblin_rescue_freedom_197)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class goblin_rescue_freedom_197 extends MovieClip {
public function goblin_rescue_freedom_197(){
addFrameScript(237, frame238);
}
function frame238(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 26
//goblin_stand_mc_72 (AnikasOdyssey_fla.goblin_stand_mc_72)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class goblin_stand_mc_72 extends MovieClip {
public function goblin_stand_mc_72(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 27
//hollow_log_mc_47 (AnikasOdyssey_fla.hollow_log_mc_47)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class hollow_log_mc_47 extends MovieClip {
public function hollow_log_mc_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 28
//inv_bank_berries_204 (AnikasOdyssey_fla.inv_bank_berries_204)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_bank_berries_204 extends MovieClip {
public function inv_bank_berries_204(){
addFrameScript(1, frame2, 18, frame19, 160, frame161);
}
function frame161(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame19(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 29
//inv_bush_berries_205 (AnikasOdyssey_fla.inv_bush_berries_205)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_bush_berries_205 extends MovieClip {
public var camera_target:MovieClip;
public function inv_bush_berries_205(){
addFrameScript(1, frame2, 53, frame54, 188, frame189);
}
function frame2(){
stop();
}
function frame189(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame54(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 30
//inv_fence_bucket_127 (AnikasOdyssey_fla.inv_fence_bucket_127)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_fence_bucket_127 extends MovieClip {
public function inv_fence_bucket_127(){
addFrameScript(1, frame2, 14, frame15, 21, frame22);
}
function frame15(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame22(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 31
//inv_giant_toy_174 (AnikasOdyssey_fla.inv_giant_toy_174)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_giant_toy_174 extends MovieClip {
public function inv_giant_toy_174(){
addFrameScript(1, frame2, 37, frame38);
}
function frame2(){
stop();
}
function frame38(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 32
//inv_items_94 (AnikasOdyssey_fla.inv_items_94)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class inv_items_94 extends MovieClip {
public function inv_items_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 33
//inv_log_berries_206 (AnikasOdyssey_fla.inv_log_berries_206)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_log_berries_206 extends MovieClip {
public var camera_target:MovieClip;
public function inv_log_berries_206(){
addFrameScript(1, frame2, 53, frame54, 188, frame189);
}
function frame2(){
stop();
}
function frame189(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame54(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 34
//inv_nest_toy_175 (AnikasOdyssey_fla.inv_nest_toy_175)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class inv_nest_toy_175 extends MovieClip {
public function inv_nest_toy_175(){
addFrameScript(1, frame2, 37, frame38);
}
function frame2(){
stop();
}
function frame38(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 35
//Kongintro30fps_4 (AnikasOdyssey_fla.Kongintro30fps_4)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class Kongintro30fps_4 extends MovieClip {
public function Kongintro30fps_4(){
addFrameScript(179, frame180);
}
function frame180(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 36
//Kongregate_mc_241 (AnikasOdyssey_fla.Kongregate_mc_241)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Kongregate_mc_241 extends MovieClip {
public var on_start;
public var len;
public var out_start;
public var kong_btn:SimpleButton;
public var in_start;
public var end;
public function Kongregate_mc_241(){
addFrameScript(0, frame1, 1, frame2, 19, frame20, 37, frame38);
}
function frame1(){
in_start = 6;
on_start = 20;
out_start = 24;
end = 38;
len = (end - out_start);
kong_btn.addEventListener(MouseEvent.CLICK, this.gotoLink);
kong_btn.addEventListener(MouseEvent.MOUSE_OVER, this.rollIN);
kong_btn.addEventListener(MouseEvent.MOUSE_OUT, this.rollOUT);
}
public function rollIN(_arg1:Event){
gotoAndPlay("in");
}
function frame20(){
stop();
}
function frame2(){
stop();
}
public function rollOUT(_arg1:Event){
var _local2:*;
var _local3:*;
_local2 = _arg1.target.parent.currentFrame;
trace(("now " + _local2));
trace(("in_start " + _arg1.target.parent.in_start));
trace(("len " + _arg1.target.parent.len));
if (_local2 < _arg1.target.parent.in_start){
gotoAndStop("off");
} else {
_local3 = (((_arg1.target.parent.in_start + _arg1.target.parent.len) - _local2) + _arg1.target.parent.out_start);
_arg1.target.parent.gotoAndPlay(_local3);
trace(("play " + _local3));
};
}
function frame38(){
gotoAndStop("off");
}
public function gotoLink(_arg1:Event){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kongregate.com/?gamereferrer=anikasodyssey");
navigateToURL(_local2, "_blank");
}
}
}//package AnikasOdyssey_fla
Section 37
//leaves_fall_187 (AnikasOdyssey_fla.leaves_fall_187)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class leaves_fall_187 extends MovieClip {
public function leaves_fall_187(){
addFrameScript(74, frame75);
}
function frame75(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 38
//levers_mc_83 (AnikasOdyssey_fla.levers_mc_83)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class levers_mc_83 extends MovieClip {
public function levers_mc_83(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 39
//lizard_mc_49 (AnikasOdyssey_fla.lizard_mc_49)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class lizard_mc_49 extends MovieClip {
public function lizard_mc_49(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 40
//loc_bank_to_berries_194 (AnikasOdyssey_fla.loc_bank_to_berries_194)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_bank_to_berries_194 extends MovieClip {
public var camera_target:MovieClip;
public function loc_bank_to_berries_194(){
addFrameScript(1, frame2, 80, frame81);
}
function frame81(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 41
//loc_bank_to_log_191 (AnikasOdyssey_fla.loc_bank_to_log_191)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_bank_to_log_191 extends MovieClip {
public var camera_target:MovieClip;
public function loc_bank_to_log_191(){
addFrameScript(1, frame2, 81, frame82, 132, frame133);
}
function frame82(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame133(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 42
//loc_bank_to_spot_192 (AnikasOdyssey_fla.loc_bank_to_spot_192)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_bank_to_spot_192 extends MovieClip {
public function loc_bank_to_spot_192(){
addFrameScript(1, frame2, 124, frame125);
}
function frame2(){
stop();
}
function frame125(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 43
//loc_berries_to_bank_195 (AnikasOdyssey_fla.loc_berries_to_bank_195)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_berries_to_bank_195 extends MovieClip {
public var camera_target:MovieClip;
public function loc_berries_to_bank_195(){
addFrameScript(1, frame2, 81, frame82);
}
function frame82(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 44
//loc_cliff_lower_blocked_216 (AnikasOdyssey_fla.loc_cliff_lower_blocked_216)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_lower_blocked_216 extends MovieClip {
public function loc_cliff_lower_blocked_216(){
addFrameScript(1, frame2, 111, frame112);
}
function frame2(){
stop();
}
function frame112(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 45
//loc_cliff_lower_to_cliff_156 (AnikasOdyssey_fla.loc_cliff_lower_to_cliff_156)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_lower_to_cliff_156 extends MovieClip {
public function loc_cliff_lower_to_cliff_156(){
addFrameScript(1, frame2, 92, frame93);
}
function frame93(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 46
//loc_cliff_lower_to_machine_154 (AnikasOdyssey_fla.loc_cliff_lower_to_machine_154)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_lower_to_machine_154 extends MovieClip {
public var camera_target:MovieClip;
public function loc_cliff_lower_to_machine_154(){
addFrameScript(1, frame2, 112, frame113);
}
function frame2(){
stop();
}
function frame113(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 47
//loc_cliff_to_lookout_145 (AnikasOdyssey_fla.loc_cliff_to_lookout_145)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_to_lookout_145 extends MovieClip {
public var camera_target:MovieClip;
public function loc_cliff_to_lookout_145(){
addFrameScript(1, frame2, 227, frame228);
}
function frame228(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 48
//loc_cliff_to_lower_144 (AnikasOdyssey_fla.loc_cliff_to_lower_144)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_to_lower_144 extends MovieClip {
public var camera_target:MovieClip;
public function loc_cliff_to_lower_144(){
addFrameScript(1, frame2, 96, frame97);
}
function frame97(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 49
//loc_cliff_to_machine_143 (AnikasOdyssey_fla.loc_cliff_to_machine_143)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_to_machine_143 extends MovieClip {
public var camera_target:MovieClip;
public function loc_cliff_to_machine_143(){
addFrameScript(1, frame2, 115, frame116);
}
function frame2(){
stop();
}
function frame116(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 50
//loc_cliff_to_path_start_157 (AnikasOdyssey_fla.loc_cliff_to_path_start_157)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_cliff_to_path_start_157 extends MovieClip {
public var camera_target:MovieClip;
public function loc_cliff_to_path_start_157(){
addFrameScript(1, frame2, 106, frame107);
}
function frame107(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 51
//loc_clifftop_to_nest_165 (AnikasOdyssey_fla.loc_clifftop_to_nest_165)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_clifftop_to_nest_165 extends MovieClip {
public function loc_clifftop_to_nest_165(){
addFrameScript(1, frame2, 118, frame119);
}
function frame2(){
stop();
}
function frame119(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 52
//loc_clifftop_to_path_164 (AnikasOdyssey_fla.loc_clifftop_to_path_164)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_clifftop_to_path_164 extends MovieClip {
public var camera_target:MovieClip;
public function loc_clifftop_to_path_164(){
addFrameScript(1, frame2, 396, frame397);
}
function frame397(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 53
//loc_fence_to_pump_225 (AnikasOdyssey_fla.loc_fence_to_pump_225)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class loc_fence_to_pump_225 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_bucket_and_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public var girl_bucket_mc:MovieClip;
public var girl_bucket_full_and_toy_mc:MovieClip;
public function loc_fence_to_pump_225(){
addFrameScript(1, frame2, 4, frame5, 54, frame55);
}
function frame5(){
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
function frame2(){
stop();
}
function frame55(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
}
}//package AnikasOdyssey_fla
Section 54
//loc_fence_to_tree_128 (AnikasOdyssey_fla.loc_fence_to_tree_128)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_fence_to_tree_128 extends MovieClip {
public var camera_target:MovieClip;
public function loc_fence_to_tree_128(){
addFrameScript(1, frame2, 138, frame139);
}
function frame2(){
stop();
}
function frame139(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 55
//loc_fence_to_tree_w_golbin_129 (AnikasOdyssey_fla.loc_fence_to_tree_w_golbin_129)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_fence_to_tree_w_golbin_129 extends MovieClip {
public var camera_target:MovieClip;
public function loc_fence_to_tree_w_golbin_129(){
addFrameScript(1, frame2, 43, frame44, 149, frame150);
}
function frame2(){
stop();
}
function frame44(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame150(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 56
//loc_fisherman_to_treehouse_176 (AnikasOdyssey_fla.loc_fisherman_to_treehouse_176)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_fisherman_to_treehouse_176 extends MovieClip {
public var camera_target:MovieClip;
public function loc_fisherman_to_treehouse_176(){
addFrameScript(1, frame2, 4, frame5, 175, frame176);
}
function frame176(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 57
//loc_fly_home_212 (AnikasOdyssey_fla.loc_fly_home_212)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_fly_home_212 extends MovieClip {
public var camera_target:MovieClip;
public function loc_fly_home_212(){
addFrameScript(1, frame2, 4, frame5, 818, frame819);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame819(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 58
//loc_hollow_to_swamp_237 (AnikasOdyssey_fla.loc_hollow_to_swamp_237)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_hollow_to_swamp_237 extends MovieClip {
public var camera_target:MovieClip;
public function loc_hollow_to_swamp_237(){
addFrameScript(1, frame2, 138, frame139);
}
function frame2(){
stop();
}
function frame139(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 59
//loc_hollow_to_swamp_goblins_appear_217 (AnikasOdyssey_fla.loc_hollow_to_swamp_goblins_appear_217)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_hollow_to_swamp_goblins_appear_217 extends MovieClip {
public var camera_target:MovieClip;
public function loc_hollow_to_swamp_goblins_appear_217(){
addFrameScript(1, frame2, 15, frame16, 544, frame545);
}
function frame16(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame545(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 60
//loc_hollow_to_swamp_goblins_goodbye_196 (AnikasOdyssey_fla.loc_hollow_to_swamp_goblins_goodbye_196)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_hollow_to_swamp_goblins_goodbye_196 extends MovieClip {
public var camera_target:MovieClip;
public function loc_hollow_to_swamp_goblins_goodbye_196(){
addFrameScript(1, frame2, 4, frame5, 286, frame287);
}
function frame287(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 61
//loc_hollow_to_treehole_198 (AnikasOdyssey_fla.loc_hollow_to_treehole_198)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_hollow_to_treehole_198 extends MovieClip {
public var camera_target:MovieClip;
public function loc_hollow_to_treehole_198(){
addFrameScript(1, frame2, 45, frame46);
}
function frame2(){
stop();
}
function frame46(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 62
//loc_hollow_to_treehole_w_goblin_231 (AnikasOdyssey_fla.loc_hollow_to_treehole_w_goblin_231)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_hollow_to_treehole_w_goblin_231 extends MovieClip {
public var camera_target:MovieClip;
public function loc_hollow_to_treehole_w_goblin_231(){
addFrameScript(1, frame2, 24, frame25, 56, frame57);
}
function frame25(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame57(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 63
//loc_lever_to_treehouse_207 (AnikasOdyssey_fla.loc_lever_to_treehouse_207)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_lever_to_treehouse_207 extends MovieClip {
public var camera_target:MovieClip;
public function loc_lever_to_treehouse_207(){
addFrameScript(1, frame2, 88, frame89);
}
function frame89(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 64
//loc_levers_to_cliff_200 (AnikasOdyssey_fla.loc_levers_to_cliff_200)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_levers_to_cliff_200 extends MovieClip {
public var camera_target:MovieClip;
public function loc_levers_to_cliff_200(){
addFrameScript(1, frame2, 149, frame150);
}
function frame2(){
stop();
}
function frame150(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 65
//loc_levers_to_clifflower_201 (AnikasOdyssey_fla.loc_levers_to_clifflower_201)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_levers_to_clifflower_201 extends MovieClip {
public var camera_target:MovieClip;
public function loc_levers_to_clifflower_201(){
addFrameScript(1, frame2, 150, frame151);
}
function frame151(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 66
//loc_log_to_bank_190 (AnikasOdyssey_fla.loc_log_to_bank_190)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_log_to_bank_190 extends MovieClip {
public var camera_target:MovieClip;
public function loc_log_to_bank_190(){
addFrameScript(1, frame2, 135, frame136);
}
function frame2(){
stop();
}
function frame136(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 67
//loc_log_to_swamp_183 (AnikasOdyssey_fla.loc_log_to_swamp_183)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_log_to_swamp_183 extends MovieClip {
public var camera_target:MovieClip;
public function loc_log_to_swamp_183(){
addFrameScript(1, frame2, 42, frame43);
}
function frame2(){
stop();
}
function frame43(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 68
//loc_lookout_to_cliff_148 (AnikasOdyssey_fla.loc_lookout_to_cliff_148)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_lookout_to_cliff_148 extends MovieClip {
public var camera_target:MovieClip;
public function loc_lookout_to_cliff_148(){
addFrameScript(1, frame2, 223, frame224);
}
function frame224(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 69
//loc_midpath_to_bottom_162 (AnikasOdyssey_fla.loc_midpath_to_bottom_162)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_midpath_to_bottom_162 extends MovieClip {
public var camera_target:MovieClip;
public function loc_midpath_to_bottom_162(){
addFrameScript(1, frame2, 162, frame163);
}
function frame163(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 70
//loc_nest_to_clifftop_168 (AnikasOdyssey_fla.loc_nest_to_clifftop_168)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_nest_to_clifftop_168 extends MovieClip {
public function loc_nest_to_clifftop_168(){
addFrameScript(1, frame2, 122, frame123);
}
function frame2(){
stop();
}
function frame123(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 71
//loc_nest_to_mountain_169 (AnikasOdyssey_fla.loc_nest_to_mountain_169)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_nest_to_mountain_169 extends MovieClip {
public var camera_target:MovieClip;
public function loc_nest_to_mountain_169(){
addFrameScript(1, frame2, 522, frame523, 550, frame551);
}
function frame551(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame523(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 72
//loc_path_goat_160 (AnikasOdyssey_fla.loc_path_goat_160)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_path_goat_160 extends MovieClip {
public var camera_target:MovieClip;
public function loc_path_goat_160(){
addFrameScript(1, frame2, 172, frame173);
}
function frame173(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 73
//loc_path_goat_appear_159 (AnikasOdyssey_fla.loc_path_goat_appear_159)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_path_goat_appear_159 extends MovieClip {
public var camera_target:MovieClip;
public function loc_path_goat_appear_159(){
addFrameScript(1, frame2, 288, frame289);
}
function frame289(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 74
//loc_path_to_clifftop_161 (AnikasOdyssey_fla.loc_path_to_clifftop_161)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_path_to_clifftop_161 extends MovieClip {
public var camera_target:MovieClip;
public function loc_path_to_clifftop_161(){
addFrameScript(1, frame2, 400, frame401);
}
function frame2(){
stop();
}
function frame401(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 75
//loc_pathstart_to_cliff_lower_158 (AnikasOdyssey_fla.loc_pathstart_to_cliff_lower_158)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_pathstart_to_cliff_lower_158 extends MovieClip {
public var camera_target:MovieClip;
public function loc_pathstart_to_cliff_lower_158(){
addFrameScript(1, frame2, 100, frame101);
}
function frame2(){
stop();
}
function frame101(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 76
//loc_pump_to_fence_224 (AnikasOdyssey_fla.loc_pump_to_fence_224)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class loc_pump_to_fence_224 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_bucket_and_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public var girl_bucket_mc:MovieClip;
public var girl_bucket_full_and_toy_mc:MovieClip;
public function loc_pump_to_fence_224(){
addFrameScript(1, frame2, 4, frame5, 54, frame55);
}
function frame5(){
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
function frame2(){
stop();
}
function frame55(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
if (((((this.HoldingBucket_bool) && (this.HoldingToy_bool))) && (this.GotWater_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
if (((this.HoldingBucket_bool) && (this.HoldingToy_bool))){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingBucket_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = true;
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
if (this.HoldingToy_bool){
this.girl_mc.visible = false;
this.girl_mc.gotoAndStop(1);
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = true;
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
} else {
this.girl_mc.visible = true;
this.girl_bucket_mc.visible = false;
this.girl_bucket_mc.gotoAndStop(1);
this.girl_toy_mc.visible = false;
this.girl_toy_mc.gotoAndStop(1);
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
};
};
};
}
}
}//package AnikasOdyssey_fla
Section 77
//loc_spot_to_bank_193 (AnikasOdyssey_fla.loc_spot_to_bank_193)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_spot_to_bank_193 extends MovieClip {
public function loc_spot_to_bank_193(){
addFrameScript(1, frame2, 128, frame129);
}
function frame2(){
stop();
}
function frame129(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 78
//loc_steps_to_swap_181 (AnikasOdyssey_fla.loc_steps_to_swap_181)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_steps_to_swap_181 extends MovieClip {
public var camera_target:MovieClip;
public function loc_steps_to_swap_181(){
addFrameScript(1, frame2, 91, frame92);
}
function frame92(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 79
//loc_swamp_to_hollow_184 (AnikasOdyssey_fla.loc_swamp_to_hollow_184)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_swamp_to_hollow_184 extends MovieClip {
public var camera_target:MovieClip;
public function loc_swamp_to_hollow_184(){
addFrameScript(1, frame2, 153, frame154);
}
function frame154(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 80
//loc_swamp_to_log_182 (AnikasOdyssey_fla.loc_swamp_to_log_182)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_swamp_to_log_182 extends MovieClip {
public var camera_target:MovieClip;
public function loc_swamp_to_log_182(){
addFrameScript(1, frame2, 36, frame37, 50, frame51);
}
function frame2(){
stop();
}
function frame37(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame51(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 81
//loc_swamp_to_steps_180 (AnikasOdyssey_fla.loc_swamp_to_steps_180)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_swamp_to_steps_180 extends MovieClip {
public var camera_target:MovieClip;
public function loc_swamp_to_steps_180(){
addFrameScript(1, frame2, 85, frame86);
}
function frame86(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 82
//loc_treehole_to_forest_131 (AnikasOdyssey_fla.loc_treehole_to_forest_131)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehole_to_forest_131 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehole_to_forest_131(){
addFrameScript(1, frame2, 129, frame130);
}
function frame2(){
stop();
}
function frame130(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 83
//loc_treehole_to_forest_w_golbincopy_132 (AnikasOdyssey_fla.loc_treehole_to_forest_w_golbincopy_132)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehole_to_forest_w_golbincopy_132 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehole_to_forest_w_golbincopy_132(){
addFrameScript(1, frame2, 23, frame24, 125, frame126);
}
function frame24(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame126(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 84
//loc_treehole_to_log_133 (AnikasOdyssey_fla.loc_treehole_to_log_133)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehole_to_log_133 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehole_to_log_133(){
addFrameScript(1, frame2, 45, frame46);
}
function frame2(){
stop();
}
function frame46(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 85
//loc_treehole_to_log_w_goblin_134 (AnikasOdyssey_fla.loc_treehole_to_log_w_goblin_134)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehole_to_log_w_goblin_134 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehole_to_log_w_goblin_134(){
addFrameScript(1, frame2, 26, frame27, 52, frame53);
}
function frame2(){
stop();
}
function frame27(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame53(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 86
//loc_treehouse_to_fisherman_208 (AnikasOdyssey_fla.loc_treehouse_to_fisherman_208)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehouse_to_fisherman_208 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehouse_to_fisherman_208(){
addFrameScript(1, frame2, 4, frame5, 168, frame169);
}
function frame169(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 87
//loc_treehouse_to_lever_199 (AnikasOdyssey_fla.loc_treehouse_to_lever_199)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class loc_treehouse_to_lever_199 extends MovieClip {
public var camera_target:MovieClip;
public function loc_treehouse_to_lever_199(){
addFrameScript(1, frame2, 95, frame96);
}
function frame96(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 88
//log_ripple_mc_63 (AnikasOdyssey_fla.log_ripple_mc_63)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class log_ripple_mc_63 extends MovieClip {
public function log_ripple_mc_63(){
addFrameScript(1, frame2, 24, frame25, 46, frame47);
}
function frame25(){
stop();
}
function frame2(){
stop();
}
function frame47(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 89
//machine_mc_67 (AnikasOdyssey_fla.machine_mc_67)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class machine_mc_67 extends MovieClip {
public function machine_mc_67(){
addFrameScript(1, frame2, 73, frame74, 74, frame75, 119, frame120, 193, frame194, 235, frame236, 314, frame315, 354, frame355, 432, frame433, 473, frame474, 564, frame565);
}
function frame75(){
stop();
}
function frame433(){
gotoAndStop("state_3");
}
function frame74(){
gotoAndStop("state_0");
}
function frame315(){
gotoAndStop("state_2");
}
function frame565(){
gotoAndPlay("working");
}
function frame194(){
gotoAndStop("state_1");
}
function frame474(){
stop();
}
function frame2(){
stop();
}
function frame355(){
stop();
}
function frame236(){
stop();
}
function frame120(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 90
//MainTimeline (AnikasOdyssey_fla.MainTimeline)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var tricky_btn:SimpleButton;
public var world_mc:MovieClip;
public var parallax_far_mc:MovieClip;
public var parallax_near_mc:MovieClip;
public var black_bar_mc:MovieClip;
public var kong_btn:SimpleButton;
public var bytes_txt:TextField;
public var myGame:Game;
public var preloader_mc:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 4, frame5, 31, frame32, 46, frame47, 47, frame48, 64, frame65, 146, frame147, 159, frame160, 320, frame321, 324, frame325);
}
function frame65(){
tricky_btn.addEventListener(MouseEvent.CLICK, this.gotoLink);
}
function frame160(){
kong_btn.addEventListener(MouseEvent.CLICK, this.gotoLink);
}
function frame321(){
kong_btn.removeEventListener(MouseEvent.CLICK, this.gotoLink);
}
function frame325(){
stage.quality = StageQuality.LOW;
myGame = new Game(stage);
myGame.setWorldMC(world_mc);
myGame.setParallaxMCs(parallax_near_mc, parallax_far_mc);
myGame.Start();
stop();
}
function frame1(){
stage.quality = StageQuality.HIGH;
stop();
this.addEventListener("enterFrame", onEnterFrame);
}
function frame5(){
gotoAndPlay(1);
}
function frame47(){
nextScene();
}
function frame48(){
stage.quality = StageQuality.HIGH;
}
function frame32(){
}
public function onEnterFrame(_arg1:Event){
var _local2:Number;
_local2 = Math.round(((this.loaderInfo.bytesLoaded / this.loaderInfo.bytesTotal) * 100));
preloader_mc.gotoAndStop(_local2);
bytes_txt.text = (((Math.round((this.loaderInfo.bytesLoaded / 0x0400)) + " / ") + Math.round((this.loaderInfo.bytesTotal / 0x0400))) + "K");
if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal){
gotoAndPlay("done");
this.removeEventListener("enterFrame", onEnterFrame);
};
}
function frame147(){
tricky_btn.removeEventListener(MouseEvent.CLICK, this.gotoLink);
}
public function gotoLink(_arg1:Event){
var _local2:URLRequest;
if (_arg1.target.name == "tricky_btn"){
_local2 = new URLRequest("http://trickysheep.co.nz/");
} else {
_local2 = new URLRequest("http://kongregate.com/?gamereferrer=anikasodyssey");
};
navigateToURL(_local2, "_blank");
}
}
}//package AnikasOdyssey_fla
Section 91
//music_for_export_246 (AnikasOdyssey_fla.music_for_export_246)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class music_for_export_246 extends MovieClip {
public function music_for_export_246(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 92
//obj_berry_bush_203 (AnikasOdyssey_fla.obj_berry_bush_203)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_berry_bush_203 extends MovieClip {
public function obj_berry_bush_203(){
addFrameScript(1, frame2, 41, frame42, 82, frame83);
}
function frame83(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame42(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 93
//obj_bridge_mc_68 (AnikasOdyssey_fla.obj_bridge_mc_68)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_bridge_mc_68 extends MovieClip {
public function obj_bridge_mc_68(){
addFrameScript(1, frame2, 195, frame196, 254, frame255, 429, frame430, 612, frame613);
}
function frame430(){
stop();
}
function frame613(){
stop();
}
function frame2(){
stop();
}
function frame196(){
stop();
}
function frame255(){
gotoAndStop("bridge_down");
}
}
}//package AnikasOdyssey_fla
Section 94
//obj_bucket_1_107 (AnikasOdyssey_fla.obj_bucket_1_107)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_bucket_1_107 extends MovieClip {
public function obj_bucket_1_107(){
addFrameScript(1, frame2, 18, frame19, 49, frame50, 66, frame67);
}
function frame19(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame50(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame67(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 95
//obj_bucket_mc_64 (AnikasOdyssey_fla.obj_bucket_mc_64)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_bucket_mc_64 extends MovieClip {
public function obj_bucket_mc_64(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 96
//obj_cart_141 (AnikasOdyssey_fla.obj_cart_141)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_cart_141 extends MovieClip {
public function obj_cart_141(){
addFrameScript(1, frame2, 27, frame28, 61, frame62);
}
function frame2(){
stop();
}
function frame28(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame62(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 97
//obj_cart_mc_66 (AnikasOdyssey_fla.obj_cart_mc_66)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_cart_mc_66 extends MovieClip {
public function obj_cart_mc_66(){
addFrameScript(1, frame2, 31, frame32, 66, frame67);
}
function frame2(){
stop();
}
function frame32(){
stop();
}
function frame67(){
gotoAndStop("cliff");
}
}
}//package AnikasOdyssey_fla
Section 98
//obj_cart_on_bridge_142 (AnikasOdyssey_fla.obj_cart_on_bridge_142)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_cart_on_bridge_142 extends MovieClip {
public function obj_cart_on_bridge_142(){
addFrameScript(1, frame2, 37, frame38, 82, frame83);
}
function frame83(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame38(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 99
//obj_feathers_mc_82 (AnikasOdyssey_fla.obj_feathers_mc_82)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_feathers_mc_82 extends MovieClip {
public function obj_feathers_mc_82(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 100
//obj_feathers_pickup_173 (AnikasOdyssey_fla.obj_feathers_pickup_173)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_feathers_pickup_173 extends MovieClip {
public function obj_feathers_pickup_173(){
addFrameScript(1, frame2, 75, frame76, 245, frame246);
}
function frame76(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame246(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 101
//obj_fence_bucket_in_hand_124 (AnikasOdyssey_fla.obj_fence_bucket_in_hand_124)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_fence_bucket_in_hand_124 extends MovieClip {
public function obj_fence_bucket_in_hand_124(){
addFrameScript(1, frame2, 45, frame46);
}
function frame2(){
stop();
}
function frame46(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 102
//obj_fence_bucket_knocked_over_226 (AnikasOdyssey_fla.obj_fence_bucket_knocked_over_226)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_fence_bucket_knocked_over_226 extends MovieClip {
public function obj_fence_bucket_knocked_over_226(){
addFrameScript(1, frame2, 22, frame23, 40, frame41);
}
function frame23(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame41(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 103
//obj_fence_bucket_on_ground_126 (AnikasOdyssey_fla.obj_fence_bucket_on_ground_126)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_fence_bucket_on_ground_126 extends MovieClip {
public var camera_target:MovieClip;
public function obj_fence_bucket_on_ground_126(){
addFrameScript(1, frame2, 108, frame109);
}
function frame109(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 104
//obj_fence_bucket_on_ground_pickup_166 (AnikasOdyssey_fla.obj_fence_bucket_on_ground_pickup_166)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_fence_bucket_on_ground_pickup_166 extends MovieClip {
public function obj_fence_bucket_on_ground_pickup_166(){
addFrameScript(1, frame2, 15, frame16, 26, frame27);
}
function frame16(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame27(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 105
//obj_fisherman_232 (AnikasOdyssey_fla.obj_fisherman_232)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_fisherman_232 extends MovieClip {
public function obj_fisherman_232(){
addFrameScript(1, frame2, 4, frame5, 149, frame150);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame150(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 106
//obj_forest_fence_zap_236 (AnikasOdyssey_fla.obj_forest_fence_zap_236)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_forest_fence_zap_236 extends MovieClip {
public function obj_forest_fence_zap_236(){
addFrameScript(1, frame2, 121, frame122);
}
function frame2(){
stop();
}
function frame122(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 107
//obj_forest_fence_zap_w_goblin_235 (AnikasOdyssey_fla.obj_forest_fence_zap_w_goblin_235)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_forest_fence_zap_w_goblin_235 extends MovieClip {
public function obj_forest_fence_zap_w_goblin_235(){
addFrameScript(1, frame2, 4, frame5, 174, frame175);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame175(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 108
//obj_goblin_mc_71 (AnikasOdyssey_fla.obj_goblin_mc_71)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_goblin_mc_71 extends MovieClip {
public var goblin_mc:MovieClip;
public function obj_goblin_mc_71(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 109
//obj_hatch_goat_scare_151 (AnikasOdyssey_fla.obj_hatch_goat_scare_151)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_hatch_goat_scare_151 extends MovieClip {
public var camera_target:MovieClip;
public function obj_hatch_goat_scare_151(){
addFrameScript(1, frame2, 20, frame21, 389, frame390);
}
function frame21(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame390(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 110
//obj_hatch_mc_81 (AnikasOdyssey_fla.obj_hatch_mc_81)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_hatch_mc_81 extends MovieClip {
public function obj_hatch_mc_81(){
addFrameScript(1, frame2, 68, frame69);
}
function frame2(){
stop();
}
function frame69(){
gotoAndStop("closed");
}
}
}//package AnikasOdyssey_fla
Section 111
//obj_hatch_no_goat_149 (AnikasOdyssey_fla.obj_hatch_no_goat_149)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_hatch_no_goat_149 extends MovieClip {
public var camera_target:MovieClip;
public function obj_hatch_no_goat_149(){
addFrameScript(1, frame2, 20, frame21, 323, frame324);
}
function frame21(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame324(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 112
//obj_hollow_goblins_out_233 (AnikasOdyssey_fla.obj_hollow_goblins_out_233)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_hollow_goblins_out_233 extends MovieClip {
public var camera_target:MovieClip;
public function obj_hollow_goblins_out_233(){
addFrameScript(1, frame2, 4, frame5, 317, frame318);
}
function frame318(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 113
//obj_hollow_goblins_stuck_234 (AnikasOdyssey_fla.obj_hollow_goblins_stuck_234)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_hollow_goblins_stuck_234 extends MovieClip {
public var camera_target:MovieClip;
public function obj_hollow_goblins_stuck_234(){
addFrameScript(1, frame2, 4, frame5, 361, frame362);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame362(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 114
//obj_house_door_no_water_227 (AnikasOdyssey_fla.obj_house_door_no_water_227)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class obj_house_door_no_water_227 extends MovieClip {
public var camera_target:MovieClip;
public var girl_mc:MovieClip;
public function obj_house_door_no_water_227(){
addFrameScript(1, frame2, 4, frame5, 98, frame99, 173, frame174, 243, frame244);
}
function frame174(){
this.girl_mc.gotoAndStop("left");
if (((this.HoldingToy_bool) && (this.HoldingBucket_bool))){
this.girl_mc.inv.gotoAndStop("bucket_and_toy");
} else {
if (this.HoldingBucket_bool){
this.girl_mc.inv.gotoAndStop("bucket");
} else {
if (this.HoldingToy_bool){
this.girl_mc.inv.gotoAndStop("toy");
};
};
};
}
function frame5(){
this.girl_mc.gotoAndStop("left");
if (((this.HoldingToy_bool) && (this.HoldingBucket_bool))){
this.girl_mc.inv.gotoAndStop("bucket_and_toy");
} else {
if (this.HoldingBucket_bool){
this.girl_mc.inv.gotoAndStop("bucket");
} else {
if (this.HoldingToy_bool){
this.girl_mc.inv.gotoAndStop("toy");
};
};
};
}
function frame2(){
stop();
}
function frame99(){
this.girl_mc.gotoAndStop("right");
if (((this.HoldingToy_bool) && (this.HoldingBucket_bool))){
this.girl_mc.inv.gotoAndStop("bucket_and_toy");
} else {
if (this.HoldingBucket_bool){
this.girl_mc.inv.gotoAndStop("bucket");
} else {
if (this.HoldingToy_bool){
this.girl_mc.inv.gotoAndStop("toy");
};
};
};
}
function frame244(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 115
//obj_kiss_giant_222 (AnikasOdyssey_fla.obj_kiss_giant_222)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_kiss_giant_222 extends MovieClip {
public var camera_target:MovieClip;
public function obj_kiss_giant_222(){
addFrameScript(1, frame2, 4, frame5, 201, frame202);
}
function frame202(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 116
//obj_lever_pull_189 (AnikasOdyssey_fla.obj_lever_pull_189)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_lever_pull_189 extends MovieClip {
public var camera_target:MovieClip;
public function obj_lever_pull_189(){
addFrameScript(1, frame2, 22, frame23, 45, frame46, 62, frame63);
}
function frame23(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame46(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame63(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 117
//obj_lever_pull_action_209 (AnikasOdyssey_fla.obj_lever_pull_action_209)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_lever_pull_action_209 extends MovieClip {
public var camera_target:MovieClip;
public function obj_lever_pull_action_209(){
addFrameScript(1, frame2, 27, frame28, 93, frame94, 192, frame193);
}
function frame94(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame28(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame193(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 118
//obj_lever_pull_action_long_210 (AnikasOdyssey_fla.obj_lever_pull_action_long_210)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_lever_pull_action_long_210 extends MovieClip {
public var camera_target:MovieClip;
public function obj_lever_pull_action_long_210(){
addFrameScript(1, frame2, 27, frame28, 52, frame53, 238, frame239);
}
function frame2(){
stop();
}
function frame28(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame239(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame53(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 119
//obj_machine_kick_211 (AnikasOdyssey_fla.obj_machine_kick_211)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_machine_kick_211 extends MovieClip {
public var camera_target:MovieClip;
public function obj_machine_kick_211(){
addFrameScript(1, frame2, 50, frame51, 91, frame92);
}
function frame92(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame51(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 120
//obj_midpath_push_ram_163 (AnikasOdyssey_fla.obj_midpath_push_ram_163)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_midpath_push_ram_163 extends MovieClip {
public function obj_midpath_push_ram_163(){
addFrameScript(1, frame2, 35, frame36, 47, frame48, 104, frame105);
}
function frame105(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame36(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame48(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 121
//obj_nest_rabbit_167 (AnikasOdyssey_fla.obj_nest_rabbit_167)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_nest_rabbit_167 extends MovieClip {
public function obj_nest_rabbit_167(){
addFrameScript(1, frame2, 23, frame24, 79, frame80);
}
function frame80(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame24(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 122
//obj_pull_vine_1_177 (AnikasOdyssey_fla.obj_pull_vine_1_177)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pull_vine_1_177 extends MovieClip {
public function obj_pull_vine_1_177(){
addFrameScript(1, frame2, 56, frame57, 83, frame84, 131, frame132);
}
function frame84(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame132(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame57(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 123
//obj_pull_vine_2_178 (AnikasOdyssey_fla.obj_pull_vine_2_178)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pull_vine_2_178 extends MovieClip {
public function obj_pull_vine_2_178(){
addFrameScript(1, frame2, 52, frame53, 79, frame80, 125, frame126);
}
function frame80(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame126(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame53(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 124
//obj_pull_vine_3_179 (AnikasOdyssey_fla.obj_pull_vine_3_179)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pull_vine_3_179 extends MovieClip {
public function obj_pull_vine_3_179(){
addFrameScript(1, frame2, 45, frame46, 72, frame73, 108, frame109);
}
function frame73(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame109(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame46(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 125
//obj_pull_vine_3_final_215 (AnikasOdyssey_fla.obj_pull_vine_3_final_215)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pull_vine_3_final_215 extends MovieClip {
public var camera_target:MovieClip;
public function obj_pull_vine_3_final_215(){
addFrameScript(1, frame2, 50, frame51, 77, frame78, 203, frame204);
}
function frame78(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame204(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame51(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 126
//obj_pump_bucket_116 (AnikasOdyssey_fla.obj_pump_bucket_116)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pump_bucket_116 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public function obj_pump_bucket_116(){
addFrameScript(1, frame2, 192, frame193, 507, frame508, 696, frame697);
}
function frame697(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame508(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame193(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 127
//obj_pump_bucket_pick_up_230 (AnikasOdyssey_fla.obj_pump_bucket_pick_up_230)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class obj_pump_bucket_pick_up_230 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_bucket_and_toy_mc:MovieClip;
public var girl_bucket_full_and_toy_mc:MovieClip;
public function obj_pump_bucket_pick_up_230(){
addFrameScript(1, frame2, 18, frame19, 22, frame23, 33, frame34);
}
function frame19(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame23(){
if (this.GotWater_bool){
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
}
function frame2(){
stop();
}
function frame34(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
if (this.GotWater_bool){
this.girl_bucket_and_toy_mc.visible = false;
this.girl_bucket_and_toy_mc.gotoAndStop(1);
this.girl_bucket_full_and_toy_mc.visible = true;
} else {
this.girl_bucket_and_toy_mc.visible = true;
this.girl_bucket_full_and_toy_mc.visible = false;
this.girl_bucket_full_and_toy_mc.gotoAndStop(1);
};
}
}
}//package AnikasOdyssey_fla
Section 128
//obj_pump_bucket_put_down_228 (AnikasOdyssey_fla.obj_pump_bucket_put_down_228)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pump_bucket_put_down_228 extends MovieClip {
public var camera_target:MovieClip;
public var girl_toy_mc:MovieClip;
public var girl_mc:MovieClip;
public function obj_pump_bucket_put_down_228(){
addFrameScript(1, frame2, 18, frame19, 34, frame35);
}
function frame19(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame35(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 129
//obj_pump_no_bucket_114 (AnikasOdyssey_fla.obj_pump_no_bucket_114)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pump_no_bucket_114 extends MovieClip {
public function obj_pump_no_bucket_114(){
addFrameScript(1, frame2, 4, frame5, 46, frame47);
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame47(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 130
//obj_pump_with_bucket_229 (AnikasOdyssey_fla.obj_pump_with_bucket_229)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_pump_with_bucket_229 extends MovieClip {
public function obj_pump_with_bucket_229(){
addFrameScript(1, frame2, 4, frame5, 17, frame18, 59, frame60);
}
function frame18(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame60(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 131
//obj_start_btn_84 (AnikasOdyssey_fla.obj_start_btn_84)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_start_btn_84 extends MovieClip {
public function obj_start_btn_84(){
addFrameScript(1, frame2, 5, frame6);
}
function frame6(){
stage.quality = StageQuality.HIGH;
stop();
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 132
//obj_swampy_185 (AnikasOdyssey_fla.obj_swampy_185)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_swampy_185 extends MovieClip {
public var camera_target:MovieClip;
public function obj_swampy_185(){
addFrameScript(1, frame2, 57, frame58, 356, frame357, 392, frame393, 547, frame548);
}
function frame393(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame548(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
function frame2(){
stop();
}
function frame357(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame58(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
}
}//package AnikasOdyssey_fla
Section 133
//obj_tongue_202 (AnikasOdyssey_fla.obj_tongue_202)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_tongue_202 extends MovieClip {
public var camera_target:MovieClip;
public function obj_tongue_202(){
addFrameScript(1, frame2, 25, frame26, 233, frame234);
}
function frame26(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame234(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 134
//obj_toy_mc_65 (AnikasOdyssey_fla.obj_toy_mc_65)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class obj_toy_mc_65 extends MovieClip {
public function obj_toy_mc_65(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 135
//obj_toy_pickup_110 (AnikasOdyssey_fla.obj_toy_pickup_110)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_toy_pickup_110 extends MovieClip {
public function obj_toy_pickup_110(){
addFrameScript(1, frame2, 20, frame21, 53, frame54, 67, frame68);
}
function frame21(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame54(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame68(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 136
//obj_treehole_135 (AnikasOdyssey_fla.obj_treehole_135)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_treehole_135 extends MovieClip {
public function obj_treehole_135(){
addFrameScript(1, frame2, 111, frame112);
}
function frame2(){
stop();
}
function frame112(){
stop();
this.dispatchEvent(new Event("ANIM_DONE"));
}
}
}//package AnikasOdyssey_fla
Section 137
//obj_treehole_goblin_in_hole_137 (AnikasOdyssey_fla.obj_treehole_goblin_in_hole_137)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_treehole_goblin_in_hole_137 extends MovieClip {
public function obj_treehole_goblin_in_hole_137(){
addFrameScript(1, frame2, 4, frame5, 126, frame127);
}
function frame5(){
trace("HEY FUCKER!!", this.visible);
}
function frame2(){
stop();
}
function frame127(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
this.dispatchEvent(new Event("ANIM_DONE"));
stop();
}
}
}//package AnikasOdyssey_fla
Section 138
//obj_treehole_goblin_out_136 (AnikasOdyssey_fla.obj_treehole_goblin_out_136)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_treehole_goblin_out_136 extends MovieClip {
public function obj_treehole_goblin_out_136(){
addFrameScript(1, frame2, 108, frame109, 258, frame259);
}
function frame109(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
function frame259(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
this.dispatchEvent(new Event("ANIM_DONE"));
stop();
}
}
}//package AnikasOdyssey_fla
Section 139
//obj_treehole_goblin_push_138 (AnikasOdyssey_fla.obj_treehole_goblin_push_138)
package AnikasOdyssey_fla {
import flash.display.*;
import flash.events.*;
public dynamic class obj_treehole_goblin_push_138 extends MovieClip {
public function obj_treehole_goblin_push_138(){
addFrameScript(1, frame2, 4, frame5, 172, frame173);
}
function frame173(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
this.dispatchEvent(new Event("ANIM_DONE"));
stop();
}
function frame5(){
this.dispatchEvent(new Event("OBJ_INTERACT"));
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 140
//parallax_1_mc_22 (AnikasOdyssey_fla.parallax_1_mc_22)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class parallax_1_mc_22 extends MovieClip {
public var clouds_mc:MovieClip;
}
}//package AnikasOdyssey_fla
Section 141
//parallax_2_18 (AnikasOdyssey_fla.parallax_2_18)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class parallax_2_18 extends MovieClip {
public var ram_silloutte_mc:MovieClip;
public var clouds_mc:MovieClip;
}
}//package AnikasOdyssey_fla
Section 142
//preloader_mc_1 (AnikasOdyssey_fla.preloader_mc_1)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class preloader_mc_1 extends MovieClip {
public function preloader_mc_1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 143
//pump_drip_loop_46 (AnikasOdyssey_fla.pump_drip_loop_46)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class pump_drip_loop_46 extends MovieClip {
public function pump_drip_loop_46(){
addFrameScript(273, frame274);
}
function frame274(){
gotoAndPlay("loop");
}
}
}//package AnikasOdyssey_fla
Section 144
//pump_mc_45 (AnikasOdyssey_fla.pump_mc_45)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class pump_mc_45 extends MovieClip {
public function pump_mc_45(){
addFrameScript(1, frame2, 10, frame11);
}
function frame2(){
stop();
}
function frame11(){
gotoAndStop("off");
}
}
}//package AnikasOdyssey_fla
Section 145
//ram_silloutte_mc_19 (AnikasOdyssey_fla.ram_silloutte_mc_19)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class ram_silloutte_mc_19 extends MovieClip {
public function ram_silloutte_mc_19(){
addFrameScript(1, frame2, 305, frame306);
}
function frame306(){
stop();
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 146
//ram_test_mc_60 (AnikasOdyssey_fla.ram_test_mc_60)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class ram_test_mc_60 extends MovieClip {
public function ram_test_mc_60(){
addFrameScript(1, frame2, 4, frame5);
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 147
//sound_fade_zone_90 (AnikasOdyssey_fla.sound_fade_zone_90)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class sound_fade_zone_90 extends MovieClip {
public function sound_fade_zone_90(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 148
//sound_full_zone_91 (AnikasOdyssey_fla.sound_full_zone_91)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class sound_full_zone_91 extends MovieClip {
public function sound_full_zone_91(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 149
//swampguy_mc_48 (AnikasOdyssey_fla.swampguy_mc_48)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class swampguy_mc_48 extends MovieClip {
public function swampguy_mc_48(){
addFrameScript(1, frame2, 51, frame52);
}
function frame2(){
stop();
}
function frame52(){
gotoAndPlay("peeking");
}
}
}//package AnikasOdyssey_fla
Section 150
//target_mc_239 (AnikasOdyssey_fla.target_mc_239)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class target_mc_239 extends MovieClip {
public function target_mc_239(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 151
//tricky_logo_mc_244 (AnikasOdyssey_fla.tricky_logo_mc_244)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class tricky_logo_mc_244 extends MovieClip {
public function tricky_logo_mc_244(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 152
//vine_1_mc_58 (AnikasOdyssey_fla.vine_1_mc_58)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class vine_1_mc_58 extends MovieClip {
public function vine_1_mc_58(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 153
//vine_2_mc_56 (AnikasOdyssey_fla.vine_2_mc_56)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class vine_2_mc_56 extends MovieClip {
public function vine_2_mc_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 154
//vine_3_mc_57 (AnikasOdyssey_fla.vine_3_mc_57)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class vine_3_mc_57 extends MovieClip {
public function vine_3_mc_57(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 155
//vine_mc_55 (AnikasOdyssey_fla.vine_mc_55)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class vine_mc_55 extends MovieClip {
public var vine_2_mc:MovieClip;
public var vine_3_mc:MovieClip;
public var vine_1_mc:MovieClip;
public function vine_mc_55(){
addFrameScript(1, frame2);
}
function frame2(){
stop();
}
}
}//package AnikasOdyssey_fla
Section 156
//world_mc_24 (AnikasOdyssey_fla.world_mc_24)
package AnikasOdyssey_fla {
import flash.display.*;
public dynamic class world_mc_24 extends MovieClip {
public var snd_4_fade_y:MovieClip;
public var snd_6_full_y:MovieClip;
public var snd_6_full_x:MovieClip;
public var snd_3_fade_x:MovieClip;
public var snd_5_full_y:MovieClip;
public var girl_mc:MovieClip;
public var anim:MovieClip;
public var snd_2_fade_x:MovieClip;
public var snd_3_fade_y:MovieClip;
public var background_mc:MovieClip;
public var snd_4_full_x:MovieClip;
public var positions:MovieClip;
public var snd_4_full_y:MovieClip;
public var snd_1_fade_x:MovieClip;
public var snd_5_full_x:MovieClip;
public var snd_3_full_y:MovieClip;
public var hotspots:MovieClip;
public var snd_8_fade_y:MovieClip;
public var snd_3_full_x:MovieClip;
public var snd_2_full_x:MovieClip;
public var snd_8_fade_x:MovieClip;
public var snd_6_fade_y:MovieClip;
public var snd_1_full_x:MovieClip;
public var snd_6_fade_x:MovieClip;
public var snd_8_full_x:MovieClip;
public var snd_8_full_y:MovieClip;
public var snd_5_fade_x:MovieClip;
public var snd_5_fade_y:MovieClip;
public var snd_4_fade_x:MovieClip;
}
}//package AnikasOdyssey_fla
Section 157
//BGSound (com.zodal.app.BGSound)
package com.zodal.app {
import flash.media.*;
public class BGSound {
public var mySoundChannel:SoundChannel;
public var Test_x_bool:Boolean;
public var FullStop_x_num:Number;
public var FullStop_y_num:Number;
public var IsPlaying_bool:Boolean;
public var Linkage_str:String;
public var mySound:Sound;
public var Test_y_bool:Boolean;
public var FadeOutDistance_h_num:Number;
public var FadeOutDistance_v_num:Number;
public var FadeStart_x_num:Number;
public var FadeStart_y_num:Number;
public var FullStart_x_num:Number;
public var FullStart_y_num:Number;
public var FadeInDistance_h_num:Number;
public var FadeInDistance_v_num:Number;
public var FadeStop_x_num:Number;
public var FadeStop_y_num:Number;
}
}//package com.zodal.app
Section 158
//GameCamera (com.zodal.app.GameCamera)
package com.zodal.app {
import flash.display.*;
import flash.events.*;
public class GameCamera {
private var cloud_near_update_countdown:Number;
private var camera_lock_left:Number;
private var target_h_speed:Number;// = 0
private var follow_x_offset:Number;
private var pan_delta_y:Number;
private var scroll_x_right_medium:Number;
private var cloud_near_update_frequency:Number;
private var camera_lock_up:Number;
private var pan_delta_x:Number;
private var scroll_x_left_fast:Number;
private var target_scale:Number;
private var pan_landing_threshold:Number;
private var focus_frames_remaining:Number;
private var scroll_y_down_fast:Number;
private var cloud_far_update_countdown:Number;
private var screen_width:Number;// = 800
private var pan_start_x:Number;
private var pan_start_y:Number;
private var target_x:Number;
private var target_y:Number;
private var frame_until_sound_update:Number;
private var pan_takeoff_threshold:Number;
private var fast_scroll_speed:Number;// = 8
private var screen_height:Number;// = 600
private var cloud_far_update_frequency:Number;
private var camera_lock_right:Number;
private var Parallax_Near_mc:MovieClip;
private var Parallax_Far_mc:MovieClip;
public var mySoundManager:SoundManager;
private var scroll_x_left_medium:Number;
private var current_v_speed:Number;// = 0
private var World_Height_num:Number;
private var World_mc:MovieClip;
private var scroll_y_up_slow:Number;
private var scale_delta:Number;
private var target_v_speed:Number;// = 0
private var Panning_Mode:String;
private var cloud_far_speed:Number;
private var camera_lock_down:Number;
private var scroll_x_right_slow:Number;
private var sound_update_frequency:Number;
private var camera_scale:Number;
private var myStage:Stage;
private var cloud_near_speed:Number;
private var camera_lock_x:Number;
private var camera_lock_y:Number;
public var Mode:String;
private var scroll_y_down_slow:Number;
private var scroll_x_left_slow:Number;
private var scroll_y_up_fast:Number;
private var pan_done_threshold:Number;
private var focus_x:Number;// = 0
private var focus_y:Number;// = 0
private var slow_scroll_speed:Number;// = 3
private var medium_scroll_speed:Number;// = 6
private var World_Width_num:Number;
private var scroll_y_up_medium:Number;
private var follow_y_offset:Number;
private var current_h_speed:Number;// = 0
private var World_Start_x:Number;
private var World_Start_y:Number;
private var follow_frames:Number;
private var scroll_x_right_fast:Number;
private var scroll_y_down_medium:Number;
private var follow_target_mc:MovieClip;
public function GameCamera(_arg1:Stage):void{
focus_x = 0;
focus_y = 0;
target_h_speed = 0;
target_v_speed = 0;
current_h_speed = 0;
current_v_speed = 0;
screen_width = 800;
screen_height = 600;
fast_scroll_speed = 8;
medium_scroll_speed = 6;
slow_scroll_speed = 3;
super();
myStage = _arg1;
pan_takeoff_threshold = 20;
pan_landing_threshold = 20;
pan_done_threshold = 5;
camera_scale = 1;
sound_update_frequency = 4;
frame_until_sound_update = 0;
mySoundManager = new SoundManager();
cloud_far_update_frequency = 90;
cloud_near_update_frequency = 60;
cloud_far_update_countdown = cloud_far_update_frequency;
cloud_near_update_countdown = cloud_far_update_frequency;
cloud_far_speed = 0.8;
cloud_near_speed = 0.8;
InitScrollAreas();
}
private function PositionParallax():void{
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
_local1 = (World_mc.x / -(World_Width_num));
_local2 = (World_mc.y / -(World_Height_num));
_local3 = 400;
_local4 = 400;
_local5 = -100;
_local6 = 1750;
_local7 = (World_Width_num - _local3);
_local8 = (World_Height_num - _local4);
_local9 = 800;
_local10 = 800;
_local11 = -100;
_local12 = 1400;
_local13 = (World_Width_num - _local9);
_local14 = (World_Height_num - _local10);
Parallax_Near_mc.x = (_local5 - (_local1 * _local7));
Parallax_Near_mc.y = (_local6 - (_local2 * _local8));
Parallax_Far_mc.x = (_local11 - (_local1 * _local13));
Parallax_Far_mc.y = (_local12 - (_local2 * _local14));
}
public function PanToPosition(_arg1:Number, _arg2:Number, _arg3:Number=1){
var _local4:*;
_local4 = 30;
pan_start_x = focus_x;
pan_start_y = focus_y;
SetTarget(_arg1, _arg2, _arg3, _local4);
Mode = "PANNING";
Panning_Mode = "TAKEOFF";
}
public function SetCameraLockToPosition(_arg1:Number, _arg2:Number){
camera_lock_x = _arg1;
camera_lock_y = _arg2;
}
public function SetIdle(){
Mode = "IDLE";
}
public function Start():void{
mySoundManager.Init(World_mc);
World_mc.addEventListener(Event.ENTER_FRAME, DrawFrame);
SetIdle();
}
public function InitScrollAreas(){
var _local1:*;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = 25;
_local2 = 30;
_local3 = 35;
_local4 = ((_local1 + _local2) + _local3);
scroll_x_left_slow = (0 + _local4);
scroll_x_left_medium = ((0 + _local4) - _local3);
scroll_x_left_fast = (0 + _local1);
scroll_x_right_slow = (screen_width - _local4);
scroll_x_right_medium = ((screen_width - _local4) + _local3);
scroll_x_right_fast = (screen_width - _local1);
scroll_y_up_slow = (0 + _local4);
scroll_y_up_medium = ((0 + _local4) - _local3);
scroll_y_up_fast = (0 + _local1);
_local5 = (_local4 + 35);
scroll_y_down_slow = (screen_height - _local5);
scroll_y_down_medium = ((screen_height - _local5) + _local3);
scroll_y_down_fast = (screen_height - _local1);
}
private function DrawFrame(_arg1:Event){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:Number;
if ((((Mode == "IDLE")) || ((Mode == "SCROLLING")))){
_local2 = 0;
_local3 = 0;
_local4 = myStage.mouseX;
_local5 = myStage.mouseY;
if (_local4 < scroll_x_left_slow){
if (_local4 < scroll_x_left_fast){
_local2 = -(fast_scroll_speed);
} else {
if (_local4 < scroll_x_left_medium){
_local2 = -(medium_scroll_speed);
} else {
_local2 = -(slow_scroll_speed);
};
};
} else {
if (_local4 > scroll_x_right_slow){
if (_local4 > scroll_x_right_fast){
_local2 = fast_scroll_speed;
} else {
if (_local4 > scroll_x_right_medium){
_local2 = medium_scroll_speed;
} else {
_local2 = slow_scroll_speed;
};
};
};
};
if (_local5 < scroll_y_up_slow){
if (_local5 < scroll_y_up_fast){
_local3 = -(fast_scroll_speed);
} else {
if (_local5 < scroll_y_up_medium){
_local3 = -(medium_scroll_speed);
} else {
_local3 = -(slow_scroll_speed);
};
};
} else {
if (_local5 > scroll_y_down_slow){
if (_local5 > scroll_y_down_fast){
_local3 = fast_scroll_speed;
} else {
if (_local5 > scroll_y_down_medium){
_local3 = medium_scroll_speed;
} else {
_local3 = slow_scroll_speed;
};
};
};
};
if ((((_local2 == 0)) && ((_local3 == 0)))){
World_mc.girl_mc.gotoAndStop("off");
World_mc.background_mc.obj_goblin_mc.goblin_mc.gotoAndStop("off");
};
if (_local3 < 0){
if ((focus_y - _local3) < (camera_lock_y - camera_lock_up)){
_local3 = 0;
};
World_mc.girl_mc.gotoAndStop("up");
World_mc.background_mc.obj_goblin_mc.goblin_mc.gotoAndStop("up");
} else {
if (_local3 > 0){
if ((focus_y + _local3) > (camera_lock_y + camera_lock_down)){
_local3 = 0;
};
World_mc.girl_mc.gotoAndStop("down");
World_mc.background_mc.obj_goblin_mc.goblin_mc.gotoAndStop("down");
};
};
if (_local2 < 0){
if ((focus_x - _local2) < (camera_lock_x - camera_lock_left)){
_local2 = 0;
};
World_mc.girl_mc.gotoAndStop("left");
World_mc.background_mc.obj_goblin_mc.goblin_mc.gotoAndStop("left");
} else {
if (_local2 > 0){
if ((focus_x + _local2) > (camera_lock_x + camera_lock_right)){
_local2 = 0;
};
World_mc.girl_mc.gotoAndStop("right");
World_mc.background_mc.obj_goblin_mc.goblin_mc.gotoAndStop("right");
};
};
if (((!((target_h_speed == _local2))) || (!((target_v_speed == _local3))))){
Mode = "SCROLLING";
target_h_speed = _local2;
target_v_speed = _local3;
};
};
if (Mode == "SCROLLING"){
ScrollWorld();
} else {
if (Mode == "FOCUSING"){
if (((!((follow_target_mc.camera_target == null))) && ((focus_frames_remaining > 0)))){
pan_start_x = focus_x;
pan_start_y = focus_y;
_local6 = ((follow_x_offset + follow_target_mc.x) + follow_target_mc.camera_target.x);
_local7 = ((follow_y_offset + follow_target_mc.y) + follow_target_mc.camera_target.y);
SetTarget(_local6, _local7, 1, focus_frames_remaining);
_local8 = 2;
if (focus_frames_remaining < _local8){
target_h_speed = (pan_delta_x / 2);
target_v_speed = (pan_delta_y / 2);
} else {
if ((follow_frames - focus_frames_remaining) < _local8){
target_h_speed = (pan_delta_x * 2);
target_v_speed = (pan_delta_y * 2);
} else {
target_h_speed = pan_delta_x;
target_v_speed = pan_delta_y;
};
};
focus_frames_remaining--;
ScrollWorld();
} else {
if (focus_frames_remaining <= 0){
Mode = "FOLLOWING";
};
};
} else {
if (Mode == "FOLLOWING"){
if (follow_target_mc.camera_target != null){
pan_start_x = focus_x;
pan_start_y = focus_y;
_local9 = ((follow_x_offset + follow_target_mc.x) + follow_target_mc.camera_target.x);
_local10 = ((follow_y_offset + follow_target_mc.y) + follow_target_mc.camera_target.y);
focus_x = _local9;
focus_y = _local10;
current_h_speed = (focus_x - _local9);
current_v_speed = (focus_y - _local10);
DrawCamera();
};
} else {
if (Mode == "PANNING"){
if (camera_scale != target_scale){
if (Math.abs((camera_scale - target_scale)) < 0.1){
camera_scale = target_scale;
} else {
camera_scale = (camera_scale + scale_delta);
};
};
if (Panning_Mode == "TAKEOFF"){
_local11 = Math.abs((pan_start_x - focus_x));
_local12 = Math.abs((pan_start_y - focus_y));
target_h_speed = (pan_delta_x / 2);
target_v_speed = (pan_delta_y / 2);
if ((((_local11 > pan_takeoff_threshold)) && ((_local12 > pan_takeoff_threshold)))){
target_h_speed = pan_delta_x;
target_v_speed = pan_delta_y;
Panning_Mode = "INFLIGHT";
};
ScrollWorld();
} else {
if (Panning_Mode == "INFLIGHT"){
_local11 = Math.abs((target_x - focus_x));
_local12 = Math.abs((target_y - focus_y));
if ((((_local11 < pan_landing_threshold)) && ((_local12 < pan_landing_threshold)))){
target_h_speed = 0;
target_v_speed = 0;
Panning_Mode = "LANDING";
};
ScrollWorld();
} else {
if (Panning_Mode == "LANDING"){
ScrollWorld();
};
};
};
};
};
};
};
cloud_far_update_countdown--;
cloud_near_update_countdown--;
if (cloud_far_update_countdown < 0){
cloud_far_update_countdown = cloud_far_update_frequency;
Parallax_Far_mc["clouds_mc"].x = (Parallax_Far_mc["clouds_mc"].x + cloud_far_speed);
};
if (cloud_near_update_countdown < 0){
cloud_near_update_countdown = cloud_near_update_frequency;
Parallax_Near_mc["clouds_mc"].x = (Parallax_Near_mc["clouds_mc"].x + cloud_near_speed);
};
}
private function SetTarget(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=1){
var _local5:*;
var _local6:*;
target_x = _arg1;
target_y = _arg2;
_local5 = (target_x - focus_x);
_local6 = (target_y - focus_y);
pan_delta_x = (_local5 / _arg4);
pan_delta_y = (_local6 / _arg4);
target_scale = _arg3;
scale_delta = ((target_scale - camera_scale) / _arg4);
}
public function Pan(_arg1:Number, _arg2:Number){
target_h_speed = _arg1;
target_v_speed = _arg2;
Mode = "PANNING";
}
public function SetCameraScrollBounds(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
camera_lock_left = (_arg1 - 80);
camera_lock_right = (_arg3 - 80);
camera_lock_up = (_arg2 - 80);
camera_lock_down = (_arg4 - 60);
}
public function PanToAnimation(_arg1:MovieClip){
Mode = "PANNING";
}
private function DrawCamera(){
World_mc.scaleX = camera_scale;
World_mc.scaleY = camera_scale;
World_mc.x = ((-(focus_x) * camera_scale) + 400);
World_mc.y = ((-(focus_y) * camera_scale) + 300);
PositionParallax();
frame_until_sound_update--;
if (frame_until_sound_update <= 0){
frame_until_sound_update = sound_update_frequency;
UpdateBGSound();
};
}
private function ScrollWorld(){
current_h_speed = (current_h_speed + ((target_h_speed - current_h_speed) / 5));
current_v_speed = (current_v_speed + ((target_v_speed - current_v_speed) / 5));
if (target_h_speed == 0){
if (Math.abs((target_h_speed - current_h_speed)) < 1){
current_h_speed = 0;
};
};
if (target_v_speed == 0){
if (Math.abs((target_v_speed - current_v_speed)) < 1){
current_v_speed = 0;
};
};
if ((((current_v_speed == 0)) && ((current_h_speed == 0)))){
if (Mode != "FOCUSING"){
SetIdle();
};
} else {
if (current_h_speed != 0){
focus_x = (focus_x + current_h_speed);
};
if (current_v_speed != 0){
focus_y = (focus_y + current_v_speed);
};
};
DrawCamera();
}
public function FollowAnimation(_arg1:MovieClip, _arg2:Number, _arg3:Number){
follow_target_mc = _arg1;
follow_x_offset = _arg2;
follow_y_offset = _arg3;
focus_frames_remaining = 30;
Mode = "FOCUSING";
}
public function JumpToPosition(_arg1:Number, _arg2:Number){
focus_x = _arg1;
focus_y = _arg2;
DrawCamera();
}
public function UpdateBGSound():void{
mySoundManager.UpdateBGSound(focus_x, focus_y);
}
public function setParallaxMCs(_arg1:MovieClip, _arg2:MovieClip){
Parallax_Near_mc = _arg1;
Parallax_Far_mc = _arg2;
}
public function setWorldMC(_arg1:MovieClip){
World_mc = _arg1;
World_Start_x = World_mc.x;
World_Start_y = World_mc.y;
World_Width_num = World_mc.width;
World_Height_num = World_mc.height;
}
public function StopScrolling(){
target_h_speed = 0;
target_v_speed = 0;
SetIdle();
}
}
}//package com.zodal.app
Section 159
//GameState (com.zodal.app.GameState)
package com.zodal.app {
public class GameState {
public var VinePullOrder_array:Array;
public var VinePullsDone_Number:Number;
public var BucketAtPump_bool:Boolean;
public var Theme5Played_bool:Boolean;
public var GoblinsGone_bool:Boolean;
public var HoldingBucket_bool:Boolean;
public var Theme1Played_bool:Boolean;
public var ToyRescued_bool:Boolean;
public var EveryoneWaving_bool:Boolean;
public var LeverDown_bool:Boolean;
public var CartOnBridge_bool:Boolean;
public var BridgeUp_bool:Boolean;
public var BridgeBroken_bool:Boolean;
public var GotWater_bool:Boolean;
public var BirdInNest_bool:Boolean;
public var HoldingFeathers_bool:Boolean;
public var VinesSolved_bool:Boolean;
public var RamScaredAway_bool:Boolean;
public var GoblinsTrappedInHole_bool:Boolean;
public var ClicksToFixMachine_num:Number;
public var Theme4Played_bool:Boolean;
public var BridgeDown_bool:Boolean;
public var GoblinsOut_bool:Boolean;
public var Theme7Played_bool:Boolean;
public var Theme3Played_bool:Boolean;
public var SwampCreatureVisible_bool:Boolean;
public var GoblinLookingInHole_bool:Boolean;
public var RamOut_bool:Boolean;
public var HoldingBerries_bool:Boolean;
public var BucketByPump_bool:Boolean;
public var MachineFixed_bool:Boolean;
public var ToyStolen_bool:Boolean;
public var BucketAtHouse_bool:Boolean;
public var Theme6Played_bool:Boolean;
public var HoldingToy_bool:Boolean;
public var MachineState_num:Number;
public var LizardOnBranch_bool:Boolean;
public var BucketKnockedOver_bool:Boolean;
public var Theme2Played_bool:Boolean;
public var BucketAtFence_bool:Boolean;
public var FeathersDown_bool:Boolean;
public var VinePulled_bool:Boolean;
public var VinesDown_bool:Boolean;
public function Init(){
HoldingBucket_bool = false;
HoldingToy_bool = false;
HoldingBerries_bool = false;
HoldingFeathers_bool = false;
BucketAtHouse_bool = false;
BucketAtPump_bool = false;
BucketKnockedOver_bool = false;
BucketAtFence_bool = false;
ToyStolen_bool = false;
GoblinsOut_bool = false;
GoblinLookingInHole_bool = false;
GoblinsTrappedInHole_bool = false;
GoblinsGone_bool = false;
SwampCreatureVisible_bool = true;
VinesDown_bool = false;
VinePulled_bool = false;
VinePullOrder_array = new Array(2, 3, 1);
VinePullsDone_Number = 0;
VinesSolved_bool = false;
LizardOnBranch_bool = false;
MachineState_num = 0;
MachineFixed_bool = false;
LeverDown_bool = false;
ClicksToFixMachine_num = 4;
BridgeUp_bool = true;
BridgeDown_bool = false;
BridgeBroken_bool = false;
CartOnBridge_bool = false;
RamOut_bool = false;
RamScaredAway_bool = false;
BirdInNest_bool = false;
ToyRescued_bool = false;
FeathersDown_bool = false;
GotWater_bool = false;
BucketByPump_bool = false;
EveryoneWaving_bool = false;
Theme1Played_bool = false;
Theme2Played_bool = false;
Theme3Played_bool = false;
Theme4Played_bool = false;
Theme5Played_bool = false;
Theme6Played_bool = false;
Theme7Played_bool = false;
}
}
}//package com.zodal.app
Section 160
//Hotspot (com.zodal.app.Hotspot)
package com.zodal.app {
public class Hotspot {
public var Type_num:Number;
public var OtherArgs_array:Array;
public var NextPosition_str:String;
public var Animation_str:String;
public var Name_str:String;
public static var ANIM_INTERACT = 3;
public static var ANIM_STAY = 2;
public static var ANIM_MOVE = 1;
public function Hotspot(_arg1:String, _arg2:Number, ... _args){
Name_str = _arg1;
Type_num = _arg2;
switch (Type_num){
case ANIM_MOVE:
Animation_str = _args[0];
NextPosition_str = _args[1];
break;
case ANIM_STAY:
Animation_str = _args[0];
break;
case ANIM_INTERACT:
Animation_str = _args[0];
NextPosition_str = _args[1];
break;
};
}
}
}//package com.zodal.app
Section 161
//Position (com.zodal.app.Position)
package com.zodal.app {
public class Position {
public var Bounds_right_num:Number;
public var Bounds_up_num:Number;
public var Bounds_down_num:Number;
public var Name_str:String;
public var ActiveHotspots_array:Array;
public var location_x:Number;
public var location_y:Number;
public var Bounds_left_num:Number;
public function Position(_arg1:String):void{
Name_str = _arg1;
ActiveHotspots_array = new Array();
}
public function RemoveHotspot(_arg1:String){
ActiveHotspots_array[_arg1] = null;
}
public function AddHotspot(_arg1:Hotspot){
ActiveHotspots_array[_arg1.Name_str] = null;
ActiveHotspots_array[_arg1.Name_str] = _arg1;
}
public function SetLocation(_arg1:Number, _arg2:Number):void{
location_x = _arg1;
location_y = _arg2;
}
public function SetBounds(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
Bounds_up_num = _arg2;
Bounds_down_num = _arg4;
Bounds_left_num = _arg1;
Bounds_right_num = _arg3;
}
public function GetAllHotspots():Array{
return (ActiveHotspots_array);
}
public function GetHotspot(_arg1:String):Hotspot{
return (ActiveHotspots_array[_arg1]);
}
}
}//package com.zodal.app
Section 162
//PositionManager (com.zodal.app.PositionManager)
package com.zodal.app {
import flash.display.*;
public class PositionManager {
private var World_mc:MovieClip;
private var Positions_array:Array;
private var Parallax_near_mc:MovieClip;
private var Parallax_far_mc:MovieClip;
public var ThemeSongs_array:Array;
private var PositionNames_array:Array;
public var ThemeSongsChannels_array:Array;
public function PositionManager():void{
}
public function getPositionNames():Array{
return (PositionNames_array);
}
public function setParallaxMCs(_arg1:MovieClip, _arg2:MovieClip){
Parallax_near_mc = _arg1;
Parallax_far_mc = _arg2;
}
public function UpdatePositionBasedOnGameState(_arg1:Position, _arg2:GameState){
var _local3:*;
var _local4:*;
_local3 = _arg1.Name_str;
if (_local3 == "game_intro"){
if (!_arg2.ToyRescued_bool){
_arg2.HoldingToy_bool = true;
World_mc.background_mc.obj_start_btn_mc.gotoAndStop("on");
World_mc.background_mc.obj_start_btn_mc.visible = true;
ThemeSongsChannels_array[7] = ThemeSongs_array[7].play(0, 999);
_arg2.Theme7Played_bool = true;
};
};
if (_local3 == "house_pos"){
World_mc.background_mc.obj_start_btn_mc.gotoAndStop("off");
World_mc.background_mc.obj_start_btn_mc.visible = false;
if (!_arg2.GotWater_bool){
_arg1.AddHotspot(new Hotspot("obj_door_click", Hotspot.ANIM_INTERACT, "obj_house_door_no_water", "house_pos"));
} else {
_arg1.AddHotspot(new Hotspot("obj_door_click", Hotspot.ANIM_INTERACT, "game_ending", "game_intro"));
};
if (!_arg2.ToyRescued_bool){
if (_arg2.HoldingToy_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("house_down");
_arg1.AddHotspot(new Hotspot("inv_house_click", Hotspot.ANIM_INTERACT, "inv_house_toy", "house_pos"));
_arg1.RemoveHotspot("toy_click");
_arg1.AddHotspot(new Hotspot("bucket_click", Hotspot.ANIM_INTERACT, "obj_bucket_pickup", "house_pos"));
} else {
if (_arg2.HoldingBucket_bool){
World_mc.background_mc.obj_toy_mc.gotoAndStop("house_down");
_arg1.AddHotspot(new Hotspot("inv_house_click", Hotspot.ANIM_INTERACT, "obj_toy_pickup", "house_pos"));
_arg1.AddHotspot(new Hotspot("toy_click", Hotspot.ANIM_INTERACT, "obj_toy_pickup", "house_pos"));
_arg1.RemoveHotspot("bucket_click");
};
};
} else {
_arg1.RemoveHotspot("toy_click");
_arg1.RemoveHotspot("bucket_click");
_arg1.RemoveHotspot("inv_house_click");
if (_arg2.HoldingBucket_bool){
};
};
};
if (_local3 == "pump_pos"){
if (!_arg2.ToyRescued_bool){
if (_arg2.HoldingBucket_bool){
_arg1.AddHotspot(new Hotspot("pump_click", Hotspot.ANIM_INTERACT, "obj_pump_bucket", "fence"));
_arg1.AddHotspot(new Hotspot("inv_pump_click", Hotspot.ANIM_INTERACT, "obj_pump_bucket", "fence"));
} else {
_arg1.AddHotspot(new Hotspot("inv_pump_click", Hotspot.ANIM_INTERACT, "inv_pump_toy", "pump_pos"));
_arg1.AddHotspot(new Hotspot("pump_click", Hotspot.ANIM_INTERACT, "obj_pump_no_bucket", "pump_pos"));
};
} else {
_arg1.AddHotspot(new Hotspot("loc_fence_click", Hotspot.ANIM_INTERACT, "loc_pump_to_fence", "fence"));
if (_arg2.HoldingBucket_bool){
_arg1.AddHotspot(new Hotspot("pump_click", Hotspot.ANIM_INTERACT, "obj_pump_bucket_put_down", "pump_pos"));
_arg1.AddHotspot(new Hotspot("inv_pump_click", Hotspot.ANIM_INTERACT, "obj_pump_bucket_put_down", "pump_pos"));
_arg1.RemoveHotspot("obj_pump_bucket");
} else {
_arg1.AddHotspot(new Hotspot("inv_pump_click", Hotspot.ANIM_INTERACT, "inv_pump_toy", "pump_pos"));
if (_arg2.BucketByPump_bool){
if (_arg2.GotWater_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("pump_down_full");
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("pump_down");
};
_arg1.AddHotspot(new Hotspot("pump_click", Hotspot.ANIM_INTERACT, "obj_pump_with_bucket", "pump_pos"));
_arg1.AddHotspot(new Hotspot("obj_pump_bucket", Hotspot.ANIM_INTERACT, "obj_pump_bucket_pick_up", "pump_pos"));
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("fence");
_arg1.AddHotspot(new Hotspot("pump_click", Hotspot.ANIM_INTERACT, "obj_pump_no_bucket", "pump_pos"));
_arg1.RemoveHotspot("obj_pump_bucket");
};
};
};
} else {
if (_local3 == "fence"){
if (!_arg2.ToyRescued_bool){
_arg1.AddHotspot(new Hotspot("fence_click", Hotspot.ANIM_INTERACT, "obj_fence", "fence"));
if (_arg2.HoldingBucket_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("inv_fence_bucket", Hotspot.ANIM_INTERACT, "inv_fence_bucket", "fence"));
_arg1.RemoveHotspot("obj_knocked_over_bucket");
} else {
if (_arg2.BucketKnockedOver_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("knocked_over");
_arg1.AddHotspot(new Hotspot("obj_knocked_over_bucket", Hotspot.ANIM_INTERACT, "obj_fence_bucket_knocked_over", "fence"));
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("fence");
_arg1.AddHotspot(new Hotspot("obj_fence_bucket", Hotspot.ANIM_INTERACT, "obj_fence_bucket_on_ground", "forest"));
_arg1.RemoveHotspot("obj_knocked_over_bucket");
_arg1.RemoveHotspot("inv_fence_bucket");
};
};
} else {
_arg1.AddHotspot(new Hotspot("loc_pump_click", Hotspot.ANIM_INTERACT, "loc_fence_to_pump", "pump_pos"));
_arg1.RemoveHotspot("inv_fence_bucket");
_arg1.RemoveHotspot("fence_click");
if (_arg2.HoldingBucket_bool){
_arg1.RemoveHotspot("obj_knocked_over_bucket");
} else {
if (_arg2.BucketByPump_bool){
_arg1.RemoveHotspot("obj_fence_bucket");
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("fence");
_arg1.AddHotspot(new Hotspot("obj_fence_bucket", Hotspot.ANIM_INTERACT, "obj_fence_bucket_on_ground_pickup", "fence"));
};
};
};
} else {
if (_local3 == "forest"){
if (!_arg2.Theme1Played_bool){
ThemeSongsChannels_array[1] = ThemeSongs_array[1].play(0, 1);
_arg2.Theme1Played_bool = true;
};
if (((_arg2.GoblinsOut_bool) && (!(_arg2.GoblinsGone_bool)))){
if (((!(_arg2.GoblinLookingInHole_bool)) && (!(_arg2.GoblinsTrappedInHole_bool)))){
World_mc.background_mc.obj_goblin_mc.gotoAndStop("forest");
_arg1.AddHotspot(new Hotspot("forest_fence_click", Hotspot.ANIM_INTERACT, "obj_forest_fence_zap_w_goblin", "forest"));
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_forest_to_tree_w_goblin", "treehole"));
} else {
_arg1.AddHotspot(new Hotspot("forest_fence_click", Hotspot.ANIM_INTERACT, "obj_forest_fence_zap", "forest"));
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_forest_to_tree", "treehole"));
};
} else {
World_mc.background_mc.obj_goblin_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("forest_fence_click", Hotspot.ANIM_INTERACT, "obj_forest_fence_zap", "forest"));
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_forest_to_tree", "treehole"));
};
} else {
if (_local3 == "treehole"){
if (((_arg2.GoblinsOut_bool) && (!(_arg2.GoblinsGone_bool)))){
if (_arg2.GoblinLookingInHole_bool){
World_mc.background_mc.obj_goblin_mc.gotoAndStop("treehole_stuck");
_arg1.AddHotspot(new Hotspot("forest_click", Hotspot.ANIM_INTERACT, "loc_treehole_to_forest", "forest"));
_arg1.AddHotspot(new Hotspot("loc_next_to_log", Hotspot.ANIM_INTERACT, "loc_treehole_to_log", "hollow_log_left"));
_arg1.AddHotspot(new Hotspot("treehole_click", Hotspot.ANIM_INTERACT, "obj_treehole_goblin_push", "treehole"));
} else {
if (_arg2.GoblinsTrappedInHole_bool){
World_mc.background_mc.obj_goblin_mc.gotoAndStop("treehole_rescue");
_arg1.AddHotspot(new Hotspot("forest_click", Hotspot.ANIM_INTERACT, "loc_treehole_to_forest", "forest"));
_arg1.AddHotspot(new Hotspot("loc_next_to_log", Hotspot.ANIM_INTERACT, "loc_treehole_to_log", "hollow_log_left"));
_arg1.RemoveHotspot("treehole_click");
} else {
World_mc.background_mc.obj_goblin_mc.gotoAndStop("treehole");
World_mc.background_mc.obj_goblin_mc.visible = true;
_arg1.AddHotspot(new Hotspot("treehole_click", Hotspot.ANIM_INTERACT, "obj_treehole_goblin_out", "treehole"));
_arg1.AddHotspot(new Hotspot("forest_click", Hotspot.ANIM_INTERACT, "loc_treehole_to_forest_w_goblin", "forest"));
_arg1.AddHotspot(new Hotspot("loc_next_to_log", Hotspot.ANIM_INTERACT, "loc_treehole_to_log_w_goblin", "hollow_log_left"));
};
};
} else {
World_mc.background_mc.obj_goblin_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("forest_click", Hotspot.ANIM_INTERACT, "loc_treehole_to_forest", "forest"));
_arg1.AddHotspot(new Hotspot("loc_next_to_log", Hotspot.ANIM_INTERACT, "loc_treehole_to_log", "hollow_log_left"));
_arg1.AddHotspot(new Hotspot("treehole_click", Hotspot.ANIM_INTERACT, "obj_treehole", "treehole"));
};
} else {
if (_local3 == "hollow_log_left"){
if (((_arg2.GoblinsOut_bool) && (!(_arg2.GoblinsGone_bool)))){
if (((!(_arg2.GoblinLookingInHole_bool)) && (!(_arg2.GoblinsTrappedInHole_bool)))){
World_mc.background_mc.obj_goblin_mc.gotoAndStop("log");
};
if (_arg2.GoblinLookingInHole_bool){
_arg1.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_INTERACT, "obj_hollow_goblins_stuck", "hollow_log_left"));
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_treehole", "treehole"));
} else {
if (_arg2.GoblinsTrappedInHole_bool){
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_treehole", "treehole"));
_arg1.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_swamp_goblins_goodbye", "swamp"));
} else {
_arg1.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_INTERACT, "obj_hollow_goblins_out", "hollow_log_left"));
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_treehole_w_goblin", "treehole"));
};
};
} else {
World_mc.background_mc.obj_goblin_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("tree_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_treehole", "treehole"));
if (_arg2.GoblinsGone_bool){
_arg1.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_swamp", "swamp"));
} else {
_arg1.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_INTERACT, "loc_hollow_to_swamp_goblins_appear", "hollow_log_left"));
};
};
} else {
if (_local3 == "swamp"){
if (!_arg2.Theme3Played_bool){
ThemeSongsChannels_array[3] = ThemeSongs_array[3].play(0, 1);
_arg2.Theme3Played_bool = true;
};
if (_arg2.VinesDown_bool){
World_mc.background_mc.vines_mc.gotoAndStop("down");
if (_arg2.VinesSolved_bool){
if (_arg2.LizardOnBranch_bool){
World_mc.background_mc.lizard_mc.gotoAndStop("freed");
World_mc.background_mc.lizard_mc.visible = true;
} else {
World_mc.background_mc.lizard_mc.gotoAndStop("off");
};
} else {
_local4 = (_arg2.VinePullsDone_Number + 1);
World_mc.background_mc.lizard_mc.gotoAndStop(("tangle_" + _local4));
};
if (_arg2.VinePullsDone_Number == 2){
_arg1.AddHotspot(new Hotspot("vine_1_click", Hotspot.ANIM_INTERACT, "obj_pull_vine_1_final", "swamp"));
} else {
_arg1.AddHotspot(new Hotspot("vine_1_click", Hotspot.ANIM_INTERACT, "obj_pull_vine_1", "swamp"));
};
_arg1.AddHotspot(new Hotspot("vine_2_click", Hotspot.ANIM_INTERACT, "obj_pull_vine_2", "swamp"));
_arg1.AddHotspot(new Hotspot("vine_3_click", Hotspot.ANIM_INTERACT, "obj_pull_vine_3", "swamp"));
} else {
World_mc.background_mc.vines_mc.gotoAndStop("off");
World_mc.background_mc.lizard_mc.gotoAndStop("watching");
};
} else {
if (_local3 == "log_left"){
if (_arg2.SwampCreatureVisible_bool){
_arg1.AddHotspot(new Hotspot("obj_swamp_monster_click", Hotspot.ANIM_INTERACT, "obj_swampy", "log_left"));
World_mc.background_mc.swampy_mc.visible = true;
World_mc.background_mc.swampy_mc.gotoAndStop("on");
} else {
_arg1.RemoveHotspot("obj_swamp_monster_click");
};
if (_arg2.LizardOnBranch_bool){
_arg1.AddHotspot(new Hotspot("tongue_click", Hotspot.ANIM_INTERACT, "obj_tongue", "log_right"));
};
} else {
if (_local3 == "log_right"){
if (_arg2.HoldingBerries_bool){
_arg1.AddHotspot(new Hotspot("inv_log_berries_click", Hotspot.ANIM_INTERACT, "inv_log_berries", "log_right"));
} else {
_arg1.RemoveHotspot("inv_log_berries_click");
};
} else {
if (_local3 == "swamp_bank"){
if (_arg2.HoldingBerries_bool){
_arg1.AddHotspot(new Hotspot("inv_bank_berries_click", Hotspot.ANIM_INTERACT, "inv_bank_berries", "swamp_bank"));
} else {
_arg1.RemoveHotspot("inv_bank_berries_click");
};
} else {
if (_local3 == "berry_bush"){
if (_arg2.HoldingBerries_bool){
_arg1.RemoveHotspot("obj_bush_click");
_arg1.AddHotspot(new Hotspot("inv_bush_berries_click", Hotspot.ANIM_INTERACT, "inv_bush_berries", "berry_bush"));
} else {
_arg1.AddHotspot(new Hotspot("obj_bush_click", Hotspot.ANIM_INTERACT, "obj_berry_bush", "berry_bush"));
_arg1.RemoveHotspot("inv_bush_berries_click");
};
} else {
if (_local3 == "fish_spot"){
if (_arg2.HoldingBerries_bool){
_arg1.AddHotspot(new Hotspot("inv_fishspot_berries_click", Hotspot.ANIM_INTERACT, "inv_fishspot_berries", "fisherman"));
} else {
_arg1.RemoveHotspot("inv_fishspot_berries_click");
};
} else {
if (_local3 == "treecity_lever"){
if (_arg2.MachineFixed_bool){
World_mc.background_mc.obj_machine_mc.gotoAndStop("fixed");
_arg1.RemoveHotspot("gear_4_click");
_arg1.RemoveHotspot("gear_4b_click");
if (_arg2.BridgeBroken_bool){
World_mc.background_mc.obj_bridge_mc.gotoAndStop("bridge_collapsed");
World_mc.background_mc.obj_cart_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_cliff_lower_click", Hotspot.ANIM_INTERACT, "loc_levers_to_clifflower", "cliff_lower"));
_arg1.AddHotspot(new Hotspot("obj_bridge_broken", Hotspot.ANIM_INTERACT, "loc_levers_to_clifflower", "cliff_lower"));
_arg1.AddHotspot(new Hotspot("lever_click", Hotspot.ANIM_INTERACT, "obj_lever_pull", "treecity_lever"));
_arg1.RemoveHotspot("obj_bridge_down");
_arg1.RemoveHotspot("loc_cliff_click");
} else {
if (_arg2.BridgeDown_bool){
World_mc.background_mc.obj_bridge_mc.gotoAndStop("bridge_down");
_arg1.AddHotspot(new Hotspot("loc_cliff_click", Hotspot.ANIM_INTERACT, "loc_levers_to_cliff", "cliff_bridge"));
_arg1.AddHotspot(new Hotspot("obj_bridge_down", Hotspot.ANIM_INTERACT, "loc_levers_to_cliff", "cliff_bridge"));
_arg1.AddHotspot(new Hotspot("lever_click", Hotspot.ANIM_INTERACT, "obj_lever_pull_action_long", "treecity_lever"));
if (_arg2.CartOnBridge_bool){
_arg1.AddHotspot(new Hotspot("lever_click", Hotspot.ANIM_INTERACT, "obj_lever_pull_action_long", "treecity_lever"));
};
} else {
if (_arg2.BridgeUp_bool){
World_mc.background_mc.obj_bridge_mc.gotoAndStop("bridge_up");
_arg1.RemoveHotspot("loc_cliff_click");
_arg1.RemoveHotspot("obj_bridge_down");
_arg1.AddHotspot(new Hotspot("lever_click", Hotspot.ANIM_INTERACT, "obj_lever_pull_action_long", "treecity_lever"));
};
};
};
} else {
World_mc.background_mc.obj_machine_mc.gotoAndStop(("state_" + _arg2.MachineState_num));
_arg1.RemoveHotspot("gear_1_click");
_arg1.RemoveHotspot("gear_1b_click");
_arg1.RemoveHotspot("gear_2_click");
_arg1.RemoveHotspot("gear_2b_click");
_arg1.RemoveHotspot("gear_3_click");
_arg1.RemoveHotspot("gear_3b_click");
_arg1.RemoveHotspot("gear_4_click");
_arg1.RemoveHotspot("gear_4b_click");
_arg1.AddHotspot(new Hotspot((("gear_" + (_arg2.MachineState_num + 1)) + "_click"), Hotspot.ANIM_INTERACT, "obj_machine_kick", "treecity_lever"));
_arg1.AddHotspot(new Hotspot((("gear_" + (_arg2.MachineState_num + 1)) + "b_click"), Hotspot.ANIM_INTERACT, "obj_machine_kick", "treecity_lever"));
_arg1.AddHotspot(new Hotspot("lever_click", Hotspot.ANIM_INTERACT, "obj_lever_pull_action", "treecity_lever"));
};
} else {
if (_local3 == "cliff_bridge"){
if (!_arg2.Theme5Played_bool){
ThemeSongsChannels_array[5] = ThemeSongs_array[5].play(0, 1);
_arg2.Theme5Played_bool = true;
};
World_mc.background_mc.eagle_mc.gotoAndStop("perched");
if (_arg2.BridgeBroken_bool){
World_mc.background_mc.obj_bridge_mc.gotoAndStop("bridge_collapsed");
World_mc.background_mc.obj_cart_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_cliff_lower_click", Hotspot.ANIM_INTERACT, "loc_cliff_to_lower", "cliff_lower"));
_arg1.AddHotspot(new Hotspot("obj_cliff_broken_steps", Hotspot.ANIM_INTERACT, "loc_cliff_to_lower", "cliff_lower"));
_arg1.RemoveHotspot("obj_bridge_down");
_arg1.RemoveHotspot("cart_bridge_click");
_arg1.RemoveHotspot("cart_cliff_click");
_arg1.RemoveHotspot("loc_machine_click");
} else {
World_mc.background_mc.obj_bridge_mc.gotoAndStop("bridge_down");
_arg1.AddHotspot(new Hotspot("loc_machine_click", Hotspot.ANIM_INTERACT, "loc_cliff_to_machine", "treecity_lever"));
_arg1.AddHotspot(new Hotspot("obj_bridge_down", Hotspot.ANIM_INTERACT, "loc_cliff_to_machine", "treecity_lever"));
_arg1.AddHotspot(new Hotspot("loc_cliff_lower_click", Hotspot.ANIM_INTERACT, "loc_cliff_lower_blocked", "cliff_bridge"));
if (_arg2.CartOnBridge_bool){
World_mc.background_mc.obj_cart_mc.gotoAndStop("bridge");
_arg1.AddHotspot(new Hotspot("cart_bridge_click", Hotspot.ANIM_INTERACT, "obj_cart_on_bridge", "cliff_bridge"));
_arg1.RemoveHotspot("cart_cliff_click");
} else {
World_mc.background_mc.obj_cart_mc.gotoAndStop("cliff");
_arg1.AddHotspot(new Hotspot("cart_cliff_click", Hotspot.ANIM_INTERACT, "obj_cart_on_cliff", "cliff_bridge"));
_arg1.RemoveHotspot("cart_bridge_click");
};
};
} else {
if (_local3 == "cliff_top_lookout"){
World_mc.background_mc.eagle_mc.gotoAndStop("perched");
if (_arg2.RamOut_bool){
World_mc.background_mc.ram_mc.gotoAndStop("idle");
_arg1.AddHotspot(new Hotspot("hatch_click", Hotspot.ANIM_INTERACT, "obj_hatch_goat_scare", "cliff_top_lookout"));
} else {
World_mc.background_mc.ram_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("hatch_click", Hotspot.ANIM_INTERACT, "obj_hatch_no_goat", "cliff_top_lookout"));
};
} else {
if (_local3 == "cliff_lower_right"){
if (_arg2.RamOut_bool){
World_mc.background_mc.ram_mc.gotoAndStop("idle");
_arg1.AddHotspot(new Hotspot("loc_path_1_click", Hotspot.ANIM_INTERACT, "loc_path_goat", "cliff_path"));
_arg1.AddHotspot(new Hotspot("loc_path_2_click", Hotspot.ANIM_INTERACT, "loc_path_goat", "cliff_path"));
_arg1.AddHotspot(new Hotspot("loc_path_2b_click", Hotspot.ANIM_INTERACT, "loc_path_goat", "cliff_path"));
} else {
if (_arg2.RamScaredAway_bool){
World_mc.background_mc.eagle_mc.gotoAndStop("off");
World_mc.background_mc.ram_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_path_1_click", Hotspot.ANIM_INTERACT, "loc_path_to_clifftop", "clifftop"));
_arg1.AddHotspot(new Hotspot("loc_path_2_click", Hotspot.ANIM_MOVE, "loc_path_to_clifftop", "clifftop"));
_arg1.AddHotspot(new Hotspot("loc_path_2b_click", Hotspot.ANIM_MOVE, "loc_path_to_clifftop", "clifftop"));
} else {
World_mc.background_mc.ram_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_path_1_click", Hotspot.ANIM_INTERACT, "loc_path_goat_appear", "cliff_path"));
_arg1.AddHotspot(new Hotspot("loc_path_2_click", Hotspot.ANIM_MOVE, "loc_path_goat_appear", "cliff_lower_right"));
_arg1.AddHotspot(new Hotspot("loc_path_2b_click", Hotspot.ANIM_MOVE, "loc_path_goat_appear", "cliff_lower_right"));
};
};
} else {
if (_local3 == "cliff_path"){
if (((_arg2.RamOut_bool) && (!(_arg2.RamScaredAway_bool)))){
_arg1.AddHotspot(new Hotspot("obj_ram_click", Hotspot.ANIM_INTERACT, "obj_midpath_push_ram", "cliff_path"));
} else {
_arg1.RemoveHotspot("obj_ram_click");
};
} else {
if (_local3 == "clifftop"){
World_mc.background_mc.eagle_mc.gotoAndStop("off");
if (!_arg2.Theme6Played_bool){
ThemeSongsChannels_array[6] = ThemeSongs_array[6].play(0, 1);
_arg2.Theme6Played_bool = true;
};
} else {
if (_local3 == "nest"){
World_mc.background_mc.eagle_mc.gotoAndStop("off");
if (!_arg2.HoldingToy_bool){
World_mc.background_mc.obj_toy_mc.gotoAndStop("nest");
_arg1.AddHotspot(new Hotspot("obj_nest_rabbit_click", Hotspot.ANIM_INTERACT, "obj_nest_rabbit", "nest"));
_arg1.AddHotspot(new Hotspot("loc_path_4_click", Hotspot.ANIM_INTERACT, "loc_nest_to_clifftop", "clifftop"));
} else {
World_mc.background_mc.obj_toy_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_path_4_click", Hotspot.ANIM_INTERACT, "loc_nest_to_mountain", "giant"));
_arg1.AddHotspot(new Hotspot("cliff_ledge_click", Hotspot.ANIM_INTERACT, "loc_nest_to_mountain", "giant"));
_arg1.AddHotspot(new Hotspot("inv_nest_toy_click", Hotspot.ANIM_INTERACT, "inv_nest_toy", "nest"));
_arg1.RemoveHotspot("obj_nest_rabbit_click");
};
} else {
if (_local3 == "giant"){
World_mc.background_mc.giant_mc.gotoAndStop("on");
if (_arg2.HoldingFeathers_bool){
_arg1.RemoveHotspot("obj_feathers_click");
World_mc.background_mc.obj_feathers_mc.gotoAndStop("off");
_arg1.AddHotspot(new Hotspot("loc_sky_click", Hotspot.ANIM_INTERACT, "loc_fly_home", "pump_pos"));
} else {
if (_arg2.FeathersDown_bool){
World_mc.background_mc.obj_feathers_mc.gotoAndStop("on");
_arg1.AddHotspot(new Hotspot("obj_feathers_click", Hotspot.ANIM_INTERACT, "obj_feathers_pickup", "giant"));
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function Init(_arg1:MovieClip):void{
var _local2:String;
var _local3:Position;
var _local4:Number;
var _local5:Number;
var _local6:*;
World_mc = _arg1;
Positions_array = new Array();
PositionNames_array = new Array();
ThemeSongs_array = new Array();
ThemeSongs_array[1] = new BGMusic_1();
ThemeSongs_array[2] = new BGMusic_2();
ThemeSongs_array[3] = new BGMusic_3();
ThemeSongs_array[4] = new BGMusic_4();
ThemeSongs_array[5] = new BGMusic_5();
ThemeSongs_array[6] = new BGMusic_6();
ThemeSongs_array[7] = new BGMusic_2();
ThemeSongsChannels_array = new Array();
_local2 = "game_intro";
_local3 = new Position(_local2);
_local3.SetBounds(0, 0, 0, -50);
_local3.AddHotspot(new Hotspot("intro_start_click", Hotspot.ANIM_MOVE, "game_intro", "house_pos"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "house_pos";
_local3 = new Position(_local2);
_local3.SetBounds(250, 250, 350, 70);
_local3.AddHotspot(new Hotspot("loc_pump_click", Hotspot.ANIM_MOVE, "house_to_pump", "pump_pos"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "pump_pos";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 70);
_local3.AddHotspot(new Hotspot("house_click", Hotspot.ANIM_MOVE, "pump_to_house", "house_pos"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "fence";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 315, 70);
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "forest";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 170);
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "treehole";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 110);
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "hollow_log_left";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 120);
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "swamp";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 150);
_local3.AddHotspot(new Hotspot("loc_swamp_steps_click", Hotspot.ANIM_MOVE, "loc_swamp_to_steps", "steps"));
_local3.AddHotspot(new Hotspot("loc_left_log_click", Hotspot.ANIM_MOVE, "loc_swamp_to_log", "log_left"));
_local3.AddHotspot(new Hotspot("hollow_log_click", Hotspot.ANIM_MOVE, "loc_swamp_to_hollow", "hollow_log_left"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "steps";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 260);
_local3.AddHotspot(new Hotspot("loc_swamp_click", Hotspot.ANIM_MOVE, "loc_steps_to_swamp", "swamp"));
_local3.AddHotspot(new Hotspot("obj_mushroom_steps_click", Hotspot.ANIM_MOVE, "loc_steps_to_swamp", "swamp"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "log_left";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 100);
_local3.AddHotspot(new Hotspot("loc_swamp_click", Hotspot.ANIM_MOVE, "loc_log_to_swamp", "swamp"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "log_right";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 110);
_local3.AddHotspot(new Hotspot("loc_swamp_rock_click", Hotspot.ANIM_MOVE, "loc_log_to_bank", "swamp_bank"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "swamp_bank";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 220, 150);
_local3.AddHotspot(new Hotspot("loc_swamp_rock_click", Hotspot.ANIM_MOVE, "loc_bank_to_log", "log_right"));
_local3.AddHotspot(new Hotspot("loc_fishing_spot_click", Hotspot.ANIM_MOVE, "loc_bank_to_spot", "fish_spot"));
_local3.AddHotspot(new Hotspot("loc_berries_click", Hotspot.ANIM_MOVE, "loc_bank_to_berries", "berry_bush"));
_local3.AddHotspot(new Hotspot("obj_bush_slide_click", Hotspot.ANIM_MOVE, "loc_bank_to_berries", "berry_bush"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "berry_bush";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 240);
_local3.AddHotspot(new Hotspot("loc_bank_click", Hotspot.ANIM_MOVE, "loc_berries_to_bank", "swamp_bank"));
_local3.AddHotspot(new Hotspot("obj_bush_slide_click", Hotspot.ANIM_MOVE, "loc_berries_to_bank", "swamp_bank"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "fish_spot";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 180, -5);
_local3.AddHotspot(new Hotspot("loc_bank_click", Hotspot.ANIM_INTERACT, "loc_spot_to_bank", "swamp_bank"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "fisherman";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 40);
_local3.AddHotspot(new Hotspot("loc_stairs_to_treehouse_click", Hotspot.ANIM_INTERACT, "loc_fisherman_to_treehouse", "treecity_lower"));
_local3.AddHotspot(new Hotspot("obj_fisherman_click", Hotspot.ANIM_INTERACT, "obj_fisherman", "fisherman"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "treecity_lower";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_machine_click", Hotspot.ANIM_INTERACT, "loc_treehouse_to_lever", "treecity_lever"));
_local3.AddHotspot(new Hotspot("obj_treehouse_steps_click", Hotspot.ANIM_INTERACT, "loc_treehouse_to_lever", "treecity_lever"));
_local3.AddHotspot(new Hotspot("loc_stairs_to_treehouse_click", Hotspot.ANIM_INTERACT, "loc_treehouse_to_fisherman", "fisherman"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "treecity_lever";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_treehouse_lower_click", Hotspot.ANIM_INTERACT, "loc_lever_to_treehouse", "treecity_lower"));
_local3.AddHotspot(new Hotspot("obj_treehouse_steps_click", Hotspot.ANIM_INTERACT, "loc_lever_to_treehouse", "treecity_lower"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "cliff_bridge";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_lower_tunnel_click", Hotspot.ANIM_MOVE, "loc_cliff_to_lookout", "cliff_top_lookout"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "cliff_top_lookout";
_local3 = new Position(_local2);
_local3.SetBounds(350, 150, 175, 250);
_local3.AddHotspot(new Hotspot("loc_upper_tunnel_click", Hotspot.ANIM_MOVE, "loc_lookout_to_cliff", "cliff_bridge"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "cliff_lower";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_machine_click", Hotspot.ANIM_MOVE, "loc_cliff_lower_to_machine", "treecity_lever"));
_local3.AddHotspot(new Hotspot("obj_bridge_broken", Hotspot.ANIM_MOVE, "loc_cliff_lower_to_machine", "treecity_lever"));
_local3.AddHotspot(new Hotspot("loc_cliff_click", Hotspot.ANIM_MOVE, "loc_cliff_lower_to_cliff", "cliff_bridge"));
_local3.AddHotspot(new Hotspot("obj_cliff_broken_steps", Hotspot.ANIM_MOVE, "loc_cliff_lower_to_cliff", "cliff_bridge"));
_local3.AddHotspot(new Hotspot("loc_path_start_click", Hotspot.ANIM_MOVE, "loc_cliff_to_path_start", "cliff_lower_right"));
_local3.AddHotspot(new Hotspot("obj_cliff_lower_steps", Hotspot.ANIM_MOVE, "loc_cliff_to_path_start", "cliff_lower_right"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "cliff_lower_right";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_cliff_lower_click", Hotspot.ANIM_MOVE, "loc_pathstart_to_cliff_lower", "cliff_lower"));
_local3.AddHotspot(new Hotspot("obj_cliff_lower_steps", Hotspot.ANIM_MOVE, "loc_pathstart_to_cliff_lower", "cliff_lower"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "cliff_path";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 350, 250);
_local3.AddHotspot(new Hotspot("loc_path_1_click", Hotspot.ANIM_MOVE, "loc_midpath_to_bottom", "cliff_lower_right"));
_local3.AddHotspot(new Hotspot("loc_path_2_click", Hotspot.ANIM_MOVE, "loc_midpath_to_bottom", "cliff_lower_right"));
_local3.AddHotspot(new Hotspot("loc_path_2b_click", Hotspot.ANIM_MOVE, "loc_midpath_to_bottom", "cliff_lower_right"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "clifftop";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 200, 250);
_local3.AddHotspot(new Hotspot("loc_path_3_click", Hotspot.ANIM_MOVE, "loc_clifftop_to_path", "cliff_lower_right"));
_local3.AddHotspot(new Hotspot("loc_nest_click", Hotspot.ANIM_MOVE, "loc_clifftop_to_nest", "nest"));
_local3.AddHotspot(new Hotspot("obj_mountain_top_path_click", Hotspot.ANIM_MOVE, "loc_clifftop_to_nest", "nest"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "nest";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 200, 250);
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local2 = "giant";
_local3 = new Position(_local2);
_local3.SetBounds(350, 250, 300, 175);
_local3.AddHotspot(new Hotspot("inv_giant_toy_click", Hotspot.ANIM_INTERACT, "inv_giant_toy", "giant"));
_local3.AddHotspot(new Hotspot("obj_giant_cheek_click", Hotspot.ANIM_INTERACT, "obj_kiss_giant", "giant"));
Positions_array[_local2] = _local3;
PositionNames_array.push(_local2);
_local4 = World_mc.positions.x;
_local5 = World_mc.positions.y;
for (_local6 in Positions_array) {
Positions_array[_local6].SetLocation((World_mc.positions[_local6].x + _local4), (World_mc.positions[_local6].y + _local5));
};
}
public function getPosition(_arg1:String):Position{
return (Positions_array[_arg1]);
}
public function ObjectInteraction(_arg1:Position, _arg2:String, _arg3:GameState){
var _local4:*;
var _local5:String;
var _local6:Number;
var _local7:*;
_local4 = _arg1.Name_str;
if (_local4 == "game_intro"){
if (!_arg3.ToyRescued_bool){
if (_arg3.Theme7Played_bool){
_arg3.Theme7Played_bool = false;
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("house_down");
_arg3.HoldingBucket_bool = false;
World_mc.background_mc.obj_start_btn_mc.gotoAndStop("off");
World_mc.background_mc.obj_start_btn_mc.visible = false;
};
};
};
if (_local4 == "house_pos"){
if (_arg2 == "obj_bucket_pickup"){
if (_arg3.HoldingToy_bool){
World_mc.background_mc.obj_toy_mc.gotoAndStop("house_down");
_arg3.HoldingToy_bool = false;
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("off");
_arg3.HoldingBucket_bool = true;
};
} else {
if (_arg2 == "obj_toy_pickup"){
if (_arg3.HoldingBucket_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("house_down");
_arg3.HoldingBucket_bool = false;
} else {
World_mc.background_mc.obj_toy_mc.gotoAndStop("off");
_arg3.HoldingToy_bool = true;
};
} else {
if (_arg2 == "game_ending"){
if (!_arg3.Theme7Played_bool){
ThemeSongsChannels_array[7] = ThemeSongs_array[7].play(0, 999);
_arg3.Theme7Played_bool = true;
} else {
Parallax_far_mc.ram_silloutte_mc.gotoAndPlay("go");
};
};
};
};
} else {
if (_local4 == "pump_pos"){
if (_arg2 == "obj_pump_bucket"){
if (!_arg3.ToyStolen_bool){
World_mc.background_mc.obj_toy_mc.gotoAndStop("off");
_arg3.HoldingToy_bool = false;
_arg3.HoldingBucket_bool = false;
_arg3.ToyStolen_bool = true;
_arg3.BucketKnockedOver_bool = true;
} else {
World_mc.background_mc.obj_toy_mc.gotoAndStop("nest");
};
} else {
if (_arg2 == "obj_pump_bucket_put_down"){
_arg3.HoldingBucket_bool = false;
_arg3.BucketByPump_bool = true;
if (_arg3.GotWater_bool){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("pump_down_full");
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("pump_down");
};
} else {
if (_arg2 == "obj_pump_no_bucket"){
World_mc.background_mc.drips_mc.visible = !(World_mc.background_mc.drips_mc.visible);
} else {
if (_arg2 == "obj_pump_with_bucket"){
if (!_arg3.GotWater_bool){
World_mc.background_mc.drips_mc.visible = !(World_mc.background_mc.drips_mc.visible);
_arg3.GotWater_bool = true;
} else {
World_mc.background_mc.obj_bucket_mc.gotoAndStop("pump_down_full");
};
} else {
if (_arg2 == "obj_pump_bucket_pick_up"){
_arg3.HoldingBucket_bool = true;
_arg3.BucketByPump_bool = false;
World_mc.background_mc.obj_bucket_mc.gotoAndStop("off");
};
};
};
};
};
} else {
if (_local4 == "fence"){
if (_arg2 == "inv_fence_bucket"){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("fence");
_arg3.HoldingBucket_bool = false;
} else {
if (_arg2 == "obj_fence_bucket_knocked_over"){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("off");
_arg3.HoldingBucket_bool = true;
_arg3.BucketKnockedOver_bool = false;
} else {
if (_arg2 == "obj_fence_bucket_on_ground_pickup"){
World_mc.background_mc.obj_bucket_mc.gotoAndStop("off");
_arg3.HoldingBucket_bool = true;
};
};
};
} else {
if (_local4 == "forest"){
World_mc.background_mc.obj_goblin_mc.goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.goblin_mc.visible);
} else {
if (_local4 == "treehole"){
World_mc.background_mc.obj_goblin_mc.goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.goblin_mc.visible);
if (_arg2 == "obj_treehole_goblin_out"){
_arg3.GoblinLookingInHole_bool = true;
} else {
if (_arg2 == "obj_treehole_goblin_push"){
_arg3.GoblinLookingInHole_bool = false;
_arg3.GoblinsTrappedInHole_bool = true;
World_mc.background_mc.obj_goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.visible);
};
};
} else {
if (_local4 == "hollow_log_left"){
if (_arg2 == "loc_hollow_to_swamp_goblins_appear"){
World_mc.background_mc.hollow_log_mc.visible = !(World_mc.background_mc.hollow_log_mc.visible);
_arg3.GoblinsOut_bool = true;
} else {
if (_arg2 == "obj_hollow_goblins_out"){
World_mc.background_mc.obj_goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.visible);
World_mc.background_mc.hollow_log_mc.visible = !(World_mc.background_mc.hollow_log_mc.visible);
} else {
if (_arg2 == "obj_hollow_goblins_stuck"){
World_mc.background_mc.obj_goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.visible);
World_mc.background_mc.hollow_log_mc.visible = !(World_mc.background_mc.hollow_log_mc.visible);
_arg3.GoblinLookingInHole_bool = false;
} else {
if (_arg2 == "loc_hollow_to_swamp_goblins_goodbye"){
World_mc.background_mc.obj_goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.visible);
_arg3.GoblinsTrappedInHole_bool = false;
_arg3.GoblinsGone_bool = true;
} else {
if (_arg2 == "loc_hollow_to_treehole_w_goblin"){
World_mc.background_mc.obj_goblin_mc.goblin_mc.visible = !(World_mc.background_mc.obj_goblin_mc.goblin_mc.visible);
};
};
};
};
};
} else {
if (_local4 == "swamp"){
if (_arg2 == "loc_swamp_to_log"){
World_mc.background_mc.log_ripple_mc.gotoAndPlay("log_left_ripple");
} else {
if ((((_arg2 == "obj_pull_vine_1")) || ((_arg2 == "obj_pull_vine_1_final")))){
_local5 = "vine_1_mc";
_local6 = 1;
} else {
if (_arg2 == "obj_pull_vine_2"){
_local5 = "vine_2_mc";
_local6 = 2;
} else {
if (_arg2 == "obj_pull_vine_3"){
_local5 = "vine_3_mc";
_local6 = 3;
};
};
};
if (_arg3.VinePulled_bool){
_arg3.VinePulled_bool = false;
World_mc.background_mc.vines_mc[_local5].gotoAndStop("hanging");
} else {
_arg3.VinePulled_bool = true;
World_mc.background_mc.vines_mc[_local5].gotoAndStop("pulled");
if (!_arg3.VinesSolved_bool){
_local7 = _arg3.VinePullOrder_array[_arg3.VinePullsDone_Number];
if (_local6 == _local7){
_arg3.VinePullsDone_Number++;
if (_arg3.VinePullsDone_Number == _arg3.VinePullOrder_array.length){
_arg3.VinesSolved_bool = true;
_arg3.LizardOnBranch_bool = true;
} else {
World_mc.background_mc.falling_leaves_mc.gotoAndPlay("on");
};
} else {
_arg3.VinePullsDone_Number = 0;
};
};
};
};
} else {
if (_local4 == "log_left"){
if (_arg2 == "obj_swampy"){
if (World_mc.background_mc.swampy_mc.visible){
World_mc.background_mc.swampy_mc.gotoAndStop("off");
World_mc.background_mc.swampy_mc.visible = false;
_arg3.SwampCreatureVisible_bool = false;
World_mc.background_mc.lizard_mc.gotoAndStop("off");
} else {
if (_arg3.VinesDown_bool == false){
_arg3.VinesDown_bool = true;
World_mc.background_mc.vines_mc.gotoAndStop("down");
World_mc.background_mc.branch_mc.gotoAndStop("broken");
} else {
World_mc.background_mc.lizard_mc.gotoAndStop("tangle_1");
};
};
} else {
if (_arg2 == "obj_tongue"){
World_mc.background_mc.lizard_mc.gotoAndStop("gone");
_arg3.LizardOnBranch_bool = false;
};
};
} else {
if (_local4 == "log_right"){
if (_arg2 == "inv_log_berries"){
_arg3.HoldingBerries_bool = false;
};
} else {
if (_local4 == "swamp_bank"){
if (_arg2 == "inv_bank_berries"){
_arg3.HoldingBerries_bool = false;
};
if (_arg2 == "loc_bank_to_log"){
World_mc.background_mc.log_ripple_mc.gotoAndPlay("right_log_ripple");
};
} else {
if (_local4 == "berry_bush"){
if (_arg2 == "obj_berry_bush"){
_arg3.HoldingBerries_bool = true;
} else {
if (_arg2 == "inv_bush_berries"){
_arg3.HoldingBerries_bool = false;
};
};
} else {
if (_local4 == "fish_spot"){
if (_arg2 == "inv_fishspot_berries"){
_arg3.HoldingBerries_bool = false;
if (World_mc.background_mc.fisherman_mc.visible){
World_mc.background_mc.fisherman_mc.visible = false;
} else {
World_mc.background_mc.fisherman_mc.visible = true;
};
};
} else {
if (_local4 == "fisherman"){
if (World_mc.background_mc.fisherman_mc.visible){
World_mc.background_mc.fisherman_mc.visible = false;
} else {
World_mc.background_mc.fisherman_mc.visible = true;
};
if (_arg2 == "loc_fisherman_to_treehouse"){
if (!_arg3.Theme4Played_bool){
ThemeSongsChannels_array[4] = ThemeSongs_array[4].play(0, 1);
_arg3.Theme4Played_bool = true;
};
};
} else {
if (_local4 == "treecity_lower"){
if (_arg2 == "loc_treehouse_to_fisherman"){
if (World_mc.background_mc.fisherman_mc.visible){
World_mc.background_mc.fisherman_mc.visible = false;
} else {
World_mc.background_mc.fisherman_mc.visible = true;
};
};
} else {
if (_local4 == "treecity_lever"){
if ((((((_arg2 == "obj_lever_pull_action")) || ((_arg2 == "obj_lever_pull_action_long")))) || ((_arg2 == "obj_lever_pull")))){
if (!_arg3.LeverDown_bool){
_arg3.LeverDown_bool = true;
World_mc.background_mc.levers_mc.gotoAndStop("down");
} else {
_arg3.LeverDown_bool = false;
World_mc.background_mc.levers_mc.gotoAndStop("up");
if (!_arg3.MachineFixed_bool){
World_mc.background_mc.obj_machine_mc.gotoAndPlay(("work_" + _arg3.MachineState_num));
} else {
if (_arg3.BridgeBroken_bool){
} else {
World_mc.background_mc.obj_machine_mc.gotoAndPlay("working");
if (_arg3.BridgeUp_bool){
_arg3.BridgeDown_bool = true;
_arg3.BridgeUp_bool = false;
World_mc.background_mc.obj_bridge_mc.gotoAndPlay("lower_bridge");
} else {
if (_arg3.BridgeDown_bool){
if (_arg3.CartOnBridge_bool){
_arg3.BridgeDown_bool = false;
_arg3.BridgeUp_bool = false;
_arg3.BridgeBroken_bool = true;
World_mc.background_mc.obj_bridge_mc.gotoAndPlay("collapse");
World_mc.background_mc.obj_cart_mc.gotoAndStop("off");
} else {
_arg3.BridgeDown_bool = false;
_arg3.BridgeUp_bool = true;
World_mc.background_mc.obj_bridge_mc.gotoAndPlay("raise_bridge");
};
};
};
};
};
};
} else {
if ((_arg2 == "obj_machine_kick")){
_arg3.MachineState_num++;
if (_arg3.MachineState_num >= _arg3.ClicksToFixMachine_num){
_arg3.MachineFixed_bool = true;
};
World_mc.background_mc.obj_machine_mc.gotoAndPlay(("crash_" + _arg3.MachineState_num));
};
};
} else {
if (_local4 == "cliff_bridge"){
if (_arg2 == "obj_cart_on_cliff"){
_arg3.CartOnBridge_bool = true;
World_mc.background_mc.obj_cart_mc.gotoAndPlay("cliff_to_bridge");
} else {
if (_arg2 == "obj_cart_on_bridge"){
_arg3.CartOnBridge_bool = false;
World_mc.background_mc.obj_cart_mc.gotoAndPlay("bridge_to_cliff");
};
};
} else {
if (_local4 == "cliff_top_lookout"){
World_mc.background_mc.obj_hatch_mc.gotoAndPlay("open");
if (_arg3.RamOut_bool){
World_mc.background_mc.ram_mc.gotoAndStop("off");
World_mc.background_mc.ram_mc.visible = false;
_arg3.RamOut_bool = false;
_arg3.RamScaredAway_bool = true;
};
} else {
if (_local4 == "cliff_lower_right"){
if (((!(_arg3.RamOut_bool)) && (!(_arg3.RamScaredAway_bool)))){
World_mc.background_mc.ram_mc.gotoAndStop("idle");
World_mc.background_mc.ram_mc.visible = true;
_arg3.RamOut_bool = true;
_arg3.RamScaredAway_bool = false;
};
} else {
if (_local4 == "cliff_path"){
if (_arg2 == "obj_midpath_push_ram"){
if (World_mc.background_mc.ram_mc.visible){
World_mc.background_mc.ram_mc.visible = false;
} else {
World_mc.background_mc.ram_mc.visible = true;
};
};
} else {
if (_local4 == "nest"){
World_mc.background_mc.giant_mc.gotoAndStop("off");
if (_arg2 == "obj_nest_rabbit"){
World_mc.background_mc.obj_toy_mc.gotoAndStop("off");
_arg3.HoldingToy_bool = true;
_arg3.ToyRescued_bool = true;
} else {
if (_arg2 == "loc_nest_to_mountain"){
World_mc.background_mc.obj_feathers_mc.gotoAndStop("on");
_arg3.FeathersDown_bool = true;
};
};
} else {
if (_local4 == "giant"){
if (_arg2 == "obj_feathers_pickup"){
World_mc.background_mc.obj_feathers_mc.gotoAndStop("off");
_arg3.FeathersDown_bool = false;
_arg3.HoldingFeathers_bool = true;
} else {
if (_arg2 == "obj_kiss_giant"){
if (World_mc.background_mc.giant_mc.visible){
World_mc.background_mc.giant_mc.visible = false;
World_mc.background_mc.giant_mc.gotoAndStop("off");
} else {
World_mc.background_mc.giant_mc.visible = true;
World_mc.background_mc.giant_mc.gotoAndStop("on");
};
} else {
if (_arg2 == "loc_fly_home"){
if (!_arg3.Theme2Played_bool){
ThemeSongsChannels_array[2] = ThemeSongs_array[2].play(0, 1);
_arg3.Theme2Played_bool = true;
};
World_mc.background_mc.giant_mc.gotoAndStop("off");
if (!_arg3.EveryoneWaving_bool){
World_mc.background_mc.vines_mc.gotoAndStop("off");
World_mc.background_mc.lizard_mc.gotoAndStop("goodbye");
World_mc.background_mc.obj_goblin_mc.gotoAndStop("goodbye");
World_mc.background_mc.swampy_mc.gotoAndPlay("peeking");
World_mc.background_mc.swampy_mc.visible = true;
World_mc.background_mc.fisherman_mc.gotoAndStop("smile");
_arg3.EveryoneWaving_bool = true;
} else {
World_mc.background_mc.vines_mc.gotoAndStop("off");
World_mc.background_mc.lizard_mc.gotoAndStop("gone");
World_mc.background_mc.obj_goblin_mc.gotoAndStop("off");
World_mc.background_mc.swampy_mc.gotoAndStop("off");
World_mc.background_mc.fisherman_mc.gotoAndStop("idle");
_arg3.EveryoneWaving_bool = false;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
}
}//package com.zodal.app
Section 163
//SoundManager (com.zodal.app.SoundManager)
package com.zodal.app {
import flash.display.*;
import flash.media.*;
public class SoundManager {
private var BGSounds_array:Array;
private var FadeAmountPerFrame_num:Number;// = 0.02
private var BGMinVol_num:Number;
private var FadeChannel:SoundChannel;
private var FadingSound_bool:Boolean;
private var BGLoopCount_num:Number;
private var myWorld_mc:MovieClip;
private var FadeTransform:SoundTransform;
private var BGMaxVol_num:Number;
public function SoundManager(){
FadeAmountPerFrame_num = 0.02;
super();
BGSounds_array = new Array();
}
public function UpdateBGSound(_arg1:Number, _arg2:Number){
var _local3:*;
var _local4:*;
_local3 = 1;
while (_local3 <= BGLoopCount_num) {
CheckBGSound(_arg1, _arg2, _local3);
_local3++;
};
if (FadingSound_bool){
FadeTransform = FadeChannel.soundTransform;
_local4 = (FadeTransform.volume - FadeAmountPerFrame_num);
if (_local4 <= 0){
_local4 = 0;
FadingSound_bool = false;
FadeChannel.stop();
};
FadeTransform.volume = _local4;
FadeChannel.soundTransform = FadeTransform;
};
}
public function FadeOutChannel(_arg1:SoundChannel){
FadingSound_bool = true;
FadeChannel = _arg1;
}
private function CheckBGSound(_arg1, _arg2, _arg3:Number){
var _local4:BGSound;
var _local5:Boolean;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:SoundTransform;
_local4 = BGSounds_array[_arg3];
_local5 = false;
_local6 = 1;
if (_local4.Test_x_bool){
if ((((_arg1 > _local4.FadeStart_x_num)) && ((_arg1 < _local4.FadeStop_x_num)))){
_local5 = true;
if ((((_arg1 > _local4.FullStart_x_num)) && ((_arg1 < _local4.FullStop_x_num)))){
_local6 = Math.min(_local6, BGMaxVol_num);
} else {
if (_arg1 < _local4.FullStart_x_num){
_local7 = (_arg1 - _local4.FadeStart_x_num);
_local8 = (_local7 / _local4.FadeInDistance_h_num);
_local6 = (_local8 * BGMaxVol_num);
} else {
_local7 = (_local4.FadeStop_x_num - _arg1);
_local8 = (_local7 / _local4.FadeOutDistance_h_num);
_local6 = (_local8 * BGMaxVol_num);
};
};
};
};
if (((_local5) && (_local4.Test_y_bool))){
if ((((_arg2 > _local4.FadeStart_y_num)) && ((_arg2 < _local4.FadeStop_y_num)))){
_local5 = true;
if ((((_arg2 > _local4.FullStart_y_num)) && ((_arg2 < _local4.FullStop_y_num)))){
_local6 = Math.min(_local6, BGMaxVol_num);
} else {
if (_arg2 < _local4.FullStart_y_num){
_local7 = (_arg2 - _local4.FadeStart_y_num);
_local8 = (_local7 / _local4.FadeInDistance_v_num);
_local6 = Math.min(_local6, (_local8 * BGMaxVol_num));
} else {
_local7 = (_local4.FadeStop_y_num - _arg2);
_local8 = (_local7 / _local4.FadeOutDistance_v_num);
_local6 = Math.min(_local6, (_local8 * BGMaxVol_num));
};
};
} else {
_local5 = false;
};
};
if (_local5){
_local9 = new SoundTransform(_local6, 0);
if (_local4.IsPlaying_bool){
_local4.mySoundChannel.soundTransform = _local9;
} else {
_local4.mySoundChannel = _local4.mySound.play(0, 999, _local9);
_local4.IsPlaying_bool = true;
};
} else {
if (_local4.IsPlaying_bool){
_local4.mySoundChannel.stop();
_local4.IsPlaying_bool = false;
};
};
}
public function Init(_arg1:MovieClip){
var _local2:BGSound;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:*;
myWorld_mc = _arg1;
BGLoopCount_num = 6;
BGMaxVol_num = 1;
BGMinVol_num = 0;
BGSounds_array[1] = new BGSound();
BGSounds_array[1].mySound = new BGSound_1();
BGSounds_array[1].Test_x_bool = true;
BGSounds_array[1].Test_y_bool = false;
BGSounds_array[2] = new BGSound();
BGSounds_array[2].mySound = new BGSound_2();
BGSounds_array[2].Test_x_bool = true;
BGSounds_array[2].Test_y_bool = false;
BGSounds_array[3] = new BGSound();
BGSounds_array[3].mySound = new BGSound_3();
BGSounds_array[3].Test_x_bool = true;
BGSounds_array[3].Test_y_bool = true;
BGSounds_array[4] = new BGSound();
BGSounds_array[4].mySound = new BGSound_4();
BGSounds_array[4].Test_x_bool = true;
BGSounds_array[4].Test_y_bool = true;
BGSounds_array[5] = new BGSound();
BGSounds_array[5].mySound = new BGSound_5();
BGSounds_array[5].Test_x_bool = true;
BGSounds_array[5].Test_y_bool = true;
BGSounds_array[6] = new BGSound();
BGSounds_array[6].mySound = new BGSound_6();
BGSounds_array[6].Test_x_bool = true;
BGSounds_array[6].Test_y_bool = true;
_local5 = 1;
while (_local5 <= BGLoopCount_num) {
_local2 = BGSounds_array[_local5];
if (_local2.Test_x_bool){
_local3 = myWorld_mc[(("snd_" + _local5) + "_full_x")];
_local4 = myWorld_mc[(("snd_" + _local5) + "_fade_x")];
_local2.FadeStart_x_num = _local4.x;
_local2.FadeStop_x_num = (_local4.x + _local4.width);
_local2.FullStart_x_num = _local3.x;
_local2.FullStop_x_num = (_local3.x + _local3.width);
_local2.FadeInDistance_h_num = (_local2.FullStart_x_num - _local2.FadeStart_x_num);
_local2.FadeOutDistance_h_num = (_local2.FadeStop_x_num - _local2.FullStop_x_num);
};
if (_local2.Test_y_bool){
_local3 = myWorld_mc[(("snd_" + _local5) + "_full_y")];
_local4 = myWorld_mc[(("snd_" + _local5) + "_fade_y")];
_local2.FadeStart_y_num = _local4.y;
_local2.FadeStop_y_num = (_local4.y + _local4.height);
_local2.FullStart_y_num = _local3.y;
_local2.FullStop_y_num = (_local3.y + _local3.height);
_local2.FadeInDistance_v_num = (_local2.FullStart_y_num - _local2.FadeStart_y_num);
_local2.FadeOutDistance_v_num = (_local2.FadeStop_y_num - _local2.FullStop_y_num);
};
_local2.IsPlaying_bool = false;
_local5++;
};
}
}
}//package com.zodal.app
Section 164
//BGMusic_1 (BGMusic_1)
package {
import flash.media.*;
public dynamic class BGMusic_1 extends Sound {
}
}//package
Section 165
//BGMusic_2 (BGMusic_2)
package {
import flash.media.*;
public dynamic class BGMusic_2 extends Sound {
}
}//package
Section 166
//BGMusic_3 (BGMusic_3)
package {
import flash.media.*;
public dynamic class BGMusic_3 extends Sound {
}
}//package
Section 167
//BGMusic_4 (BGMusic_4)
package {
import flash.media.*;
public dynamic class BGMusic_4 extends Sound {
}
}//package
Section 168
//BGMusic_5 (BGMusic_5)
package {
import flash.media.*;
public dynamic class BGMusic_5 extends Sound {
}
}//package
Section 169
//BGMusic_6 (BGMusic_6)
package {
import flash.media.*;
public dynamic class BGMusic_6 extends Sound {
}
}//package
Section 170
//BGSound_1 (BGSound_1)
package {
import flash.media.*;
public dynamic class BGSound_1 extends Sound {
}
}//package
Section 171
//BGSound_2 (BGSound_2)
package {
import flash.media.*;
public dynamic class BGSound_2 extends Sound {
}
}//package
Section 172
//BGSound_3 (BGSound_3)
package {
import flash.media.*;
public dynamic class BGSound_3 extends Sound {
}
}//package
Section 173
//BGSound_4 (BGSound_4)
package {
import flash.media.*;
public dynamic class BGSound_4 extends Sound {
}
}//package
Section 174
//BGSound_5 (BGSound_5)
package {
import flash.media.*;
public dynamic class BGSound_5 extends Sound {
}
}//package
Section 175
//BGSound_6 (BGSound_6)
package {
import flash.media.*;
public dynamic class BGSound_6 extends Sound {
}
}//package
Section 176
//Game (Game)
package {
import flash.display.*;
import flash.events.*;
import com.zodal.app.*;
import flash.net.*;
public class Game {
private var World_mc:MovieClip;
private var curPosition:Position;
private var input_active_bool:Boolean;
private var DebugMode_bool:Boolean;
private var PositionNames_array:Array;
private var ConnectionURL_str:String;// = "http://trickysheep.dev.zodal.net/call_home.php"
private var myPositions:PositionManager;
private var PositionNamesArrayIndex_num:Number;
private var myStage:Stage;
private var ConnectionSessionID_str:String;// = "999"
private var HotspotAnimationsInProgress_array:Array;
private var myCamera:GameCamera;
public var myGameState:GameState;
private var ConnectionMade_bool:Boolean;
public function Game(_arg1:Stage):void{
ConnectionSessionID_str = "999";
ConnectionURL_str = "http://trickysheep.dev.zodal.net/call_home.php";
super();
DebugMode_bool = false;
myStage = _arg1;
myCamera = new GameCamera(_arg1);
myPositions = new PositionManager();
myGameState = new GameState();
HotspotAnimationsInProgress_array = new Array();
}
private function ActivatePositionHotspots(){
var _local1:Array;
var _local2:*;
var _local3:*;
_local1 = curPosition.GetAllHotspots();
for (_local2 in _local1) {
_local3 = _local1[_local2];
if (_local3 != null){
World_mc.hotspots[_local2].tabEnabled = false;
World_mc.hotspots[_local2].buttonMode = true;
World_mc.hotspots[_local2].addEventListener(MouseEvent.CLICK, this.hotspotClick);
World_mc.hotspots[_local2].visible = true;
};
};
}
private function securityErrorHandler(_arg1:SecurityErrorEvent):void{
trace(("securityErrorHandler: " + _arg1));
}
public function FocusCameraOnPosition():void{
myCamera.JumpToPosition(curPosition.location_x, (curPosition.location_y - 100));
}
private function hotspotClick(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:*;
var _local4:Hotspot;
var _local5:*;
_local2 = _arg1.target;
_local3 = _local2.name;
if (_local3 == null){
} else {
_local4 = curPosition.GetHotspot(_local3);
_local5 = _local4.Animation_str;
HotspotAnimationsInProgress_array[_local5] = _local4;
switch (_local4.Type_num){
case Hotspot.ANIM_MOVE:
ClearPostion();
PlayAnimation(_local5, true);
break;
case Hotspot.ANIM_STAY:
World_mc.hotspots[_local4.Name_str].visible = false;
PlayAnimation(_local5, false);
break;
case Hotspot.ANIM_INTERACT:
ClearPostion();
PlayAnimation(_local5, true);
break;
};
};
}
private function PlayAnimation(_arg1:String, _arg2:Boolean){
var _local3:MovieClip;
_local3 = World_mc.anim[_arg1];
if (_arg1 == "loc_hollow_to_swamp_goblins_goodbye"){
PhoneHome(2);
} else {
if (_arg1 == "obj_tongue"){
PhoneHome(3);
} else {
if (_arg1 == "loc_path_goat_appear"){
PhoneHome(4);
} else {
if (_arg1 == "game_ending"){
PhoneHome(5);
};
};
};
};
if (_local3 != null){
if (_arg2){
myCamera.FollowAnimation(_local3, World_mc.anim.x, World_mc.anim.y);
};
_local3.HoldingBucket_bool = myGameState.HoldingBucket_bool;
_local3.HoldingToy_bool = myGameState.HoldingToy_bool;
_local3.HoldingBerries_bool = myGameState.HoldingBerries_bool;
_local3.GotWater_bool = myGameState.GotWater_bool;
_local3.gotoAndPlay("go");
_local3.visible = true;
_local3.addEventListener("ANIM_DONE", this.AnimationFinished);
_local3.addEventListener("OBJ_INTERACT", this.ObjectInteraction);
_local3.addEventListener("TRIGGER_ANIM", this.TriggerAnimation);
} else {
trace(("ERROR!! bad animation name: " + _arg1));
};
}
private function ClearPositionHotspots(){
var _local1:Array;
var _local2:*;
var _local3:*;
_local1 = curPosition.GetAllHotspots();
for (_local2 in _local1) {
_local3 = _local1[_local2];
if (_local3 != null){
World_mc.hotspots[_local2].removeEventListener(MouseEvent.CLICK, this.hotspotClick);
World_mc.hotspots[_local2].visible = false;
World_mc.hotspots[_local2].buttonMode = false;
};
};
}
private function PrevPosition(){
PositionNamesArrayIndex_num--;
if (PositionNamesArrayIndex_num < 0){
PositionNamesArrayIndex_num = (PositionNames_array.length - 1);
};
UpdateDebugPosition();
}
private function UpdateDebugPosition(){
if (curPosition != null){
ClearPostion();
};
PrepNewPosition(PositionNames_array[PositionNamesArrayIndex_num]);
FocusCameraOnPosition();
myCamera.UpdateBGSound();
}
private function ObjectInteraction(_arg1:Event){
var _local2:*;
_local2 = _arg1.target.name;
if (_local2 == "game_intro"){
if (myGameState.Theme7Played_bool){
trace("FADE OUT MUSIC");
};
myCamera.mySoundManager.FadeOutChannel(myPositions.ThemeSongsChannels_array[7]);
};
myPositions.ObjectInteraction(curPosition, _local2, myGameState);
}
public function Start():void{
var _local1:*;
var _local2:*;
myGameState.Init();
myCamera.Start();
_local1 = new Array("house_click", "toy_click", "pump_click", "bucket_click", "treehole_click", "obj_door_click", "obj_fence_bucket", "obj_knocked_over_bucket", "inv_fence_bucket", "fence_click", "inv_pump_click", "pump_click", "obj_pump_bucket", "forest_fence_click", "loc_cliff_click", "cart_cliff_click", "cart_bridge_click", "loc_lower_tunnel_click", "obj_nest_rabbit_click", "lever_click", "obj_bush_click", "hollow_log_click", "inv_bush_berries_click", "inv_bank_berries_click", "inv_fishspot_berries_click", "gear_1_click", "gear_1b_click", "gear_2_click", "gear_2b_click", "gear_3_click", "gear_3b_click", "gear_4_click", "gear_4b_click", "loc_treehouse_lower_click", "gear_1_click", "loc_sky_click", "cliff_ledge_click", "obj_feathers_click", "inv_giant_toy_click", "loc_fence_click", "vine_1_click", "vine_2_click", "vine_3_click", "loc_swamp_click", "obj_mushroom_steps_click", "obj_bush_slide_click", "obj_treehouse_steps_click", "obj_cliff_broken_steps", "obj_cliff_lower_steps", "obj_bridge_broken", "obj_bridge_down");
for (_local2 in _local1) {
World_mc.hotspots[_local1[_local2]].visible = false;
};
if (DebugMode_bool){
PositionNames_array = myPositions.getPositionNames();
PositionNamesArrayIndex_num = 0;
myGameState.HoldingBucket_bool = false;
myGameState.BucketKnockedOver_bool = false;
myGameState.HoldingToy_bool = true;
myGameState.GoblinsOut_bool = false;
myGameState.GoblinLookingInHole_bool = false;
myGameState.GoblinsTrappedInHole_bool = false;
myGameState.GoblinsGone_bool = false;
myGameState.SwampCreatureVisible_bool = true;
myGameState.VinesDown_bool = false;
myGameState.VinesSolved_bool = false;
myGameState.VinePullsDone_Number = 0;
myGameState.LizardOnBranch_bool = false;
myGameState.HoldingBerries_bool = false;
myGameState.MachineFixed_bool = false;
myGameState.BridgeUp_bool = true;
myGameState.BridgeDown_bool = false;
myGameState.BridgeBroken_bool = false;
myGameState.CartOnBridge_bool = false;
myGameState.RamOut_bool = false;
myGameState.RamScaredAway_bool = false;
myGameState.FeathersDown_bool = false;
myGameState.ToyRescued_bool = false;
myGameState.HoldingFeathers_bool = false;
myGameState.BucketByPump_bool = false;
myGameState.GotWater_bool = false;
UpdateDebugPosition();
myStage.addEventListener(KeyboardEvent.KEY_UP, this.DebugKeyDown);
} else {
PrepNewPosition("game_intro");
};
FocusCameraOnPosition();
ConnectionMade_bool = false;
PhoneHome(1);
}
private function TriggerAnimation(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = _arg1.target.anim_to_play;
_local3 = curPosition.Name_str;
_local4 = new Hotspot("", Hotspot.ANIM_INTERACT, _local2, _local3);
HotspotAnimationsInProgress_array[_local2] = _local4;
PlayAnimation(_local2, false);
}
function PhoneHome(_arg1){
var loader:URLLoader;
var connect_str:*;
var request:URLRequest;
var in_status = _arg1;
loader = new URLLoader();
configureListeners(loader);
connect_str = ((((((ConnectionURL_str + "?s=") + in_status) + "&i=") + ConnectionSessionID_str) + "&u=") + escape(myStage.loaderInfo.url));
trace(("CONNECTING TO " + connect_str));
request = new URLRequest(connect_str);
try {
loader.load(request);
} catch(error:Error) {
trace("Unable to load requested document.");
};
}
public function SetInputActive(_arg1:Boolean):void{
if (input_active_bool != _arg1){
input_active_bool = _arg1;
if (_arg1){
};
};
}
private function httpStatusHandler(_arg1:HTTPStatusEvent):void{
trace(("httpStatusHandler: " + _arg1));
}
private function completeHandler(_arg1:Event):void{
var loader:URLLoader;
var vars:URLVariables;
var event = _arg1;
loader = URLLoader(event.target);
trace(("completeHandler: " + loader.data));
try {
vars = new URLVariables(loader.data);
ConnectionSessionID_str = vars.i;
ConnectionMade_bool = true;
} catch(error:Error) {
trace("Bad Data");
};
}
private function NextPosition(){
PositionNamesArrayIndex_num++;
if (PositionNamesArrayIndex_num >= PositionNames_array.length){
PositionNamesArrayIndex_num = 0;
};
UpdateDebugPosition();
}
private function PrepNewPosition(_arg1:String){
curPosition = myPositions.getPosition(_arg1);
myPositions.UpdatePositionBasedOnGameState(curPosition, myGameState);
World_mc.girl_mc.x = curPosition.location_x;
World_mc.girl_mc.y = curPosition.location_y;
World_mc.girl_mc.visible = true;
if (curPosition.Name_str == "game_intro"){
World_mc.girl_mc.visible = false;
};
if (((((myGameState.HoldingBucket_bool) || (myGameState.HoldingToy_bool))) || (myGameState.HoldingBerries_bool))){
if (((((myGameState.HoldingBucket_bool) && (myGameState.HoldingToy_bool))) && (myGameState.GotWater_bool))){
World_mc.girl_mc.inv.gotoAndStop("bucket_full_and_toy");
} else {
if (((myGameState.HoldingBucket_bool) && (myGameState.HoldingToy_bool))){
World_mc.girl_mc.inv.gotoAndStop("bucket_and_toy");
} else {
if (myGameState.HoldingBucket_bool){
World_mc.girl_mc.inv.gotoAndStop("bucket");
} else {
if (myGameState.HoldingToy_bool){
World_mc.girl_mc.inv.gotoAndStop("toy");
} else {
if (myGameState.HoldingBerries_bool){
World_mc.girl_mc.inv.gotoAndStop("berries");
};
};
};
};
};
} else {
World_mc.girl_mc.inv.gotoAndStop("off");
};
myCamera.SetCameraLockToPosition(curPosition.location_x, curPosition.location_y);
myCamera.SetCameraScrollBounds(curPosition.Bounds_left_num, curPosition.Bounds_up_num, curPosition.Bounds_right_num, curPosition.Bounds_down_num);
ActivatePositionHotspots();
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
trace(("ioErrorHandler: " + _arg1));
}
public function setParallaxMCs(_arg1:MovieClip, _arg2:MovieClip){
myCamera.setParallaxMCs(_arg1, _arg2);
myPositions.setParallaxMCs(_arg1, _arg2);
}
public function setWorldMC(_arg1:MovieClip){
World_mc = _arg1;
myCamera.setWorldMC(World_mc);
myPositions.Init(World_mc);
World_mc.positions.visible = false;
}
function DebugKeyDown(_arg1:KeyboardEvent):void{
trace(("keyCode code: " + _arg1.keyCode));
switch (_arg1.keyCode){
case 57:
PrevPosition();
break;
case 48:
NextPosition();
break;
};
}
private function configureListeners(_arg1:IEventDispatcher):void{
_arg1.addEventListener(Event.COMPLETE, completeHandler);
_arg1.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
_arg1.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
_arg1.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
}
private function ClearPostion(){
World_mc.girl_mc.visible = false;
ClearPositionHotspots();
}
private function AnimationFinished(_arg1:Event){
var _local2:*;
var _local3:MovieClip;
var _local4:Hotspot;
_local2 = _arg1.target.name;
_local3 = World_mc.anim[_local2];
_local3.removeEventListener("ANIM_DONE", this.AnimationFinished);
_local3.removeEventListener("OBJ_INTERACT", this.ObjectInteraction);
_local3.removeEventListener("TRIGGER_ANIM", this.TriggerAnimation);
_local3.visible = false;
_local3.gotoAndStop("off");
_local4 = HotspotAnimationsInProgress_array[_local2];
if (_local4 != null){
switch (_local4.Type_num){
case Hotspot.ANIM_MOVE:
PrepNewPosition(_local4.NextPosition_str);
myCamera.StopScrolling();
break;
case Hotspot.ANIM_STAY:
World_mc.hotspots[_local4.Name_str].visible = true;
case Hotspot.ANIM_INTERACT:
PrepNewPosition(_local4.NextPosition_str);
myCamera.StopScrolling();
};
};
}
}
}//package