Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class AdLoader extends Sprite {
private var contentspotid:String;
private var cpmstarLoader:Loader;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function addedHandler(_arg1:Event):void{
var _local2:String;
var _local3:DisplayObjectContainer;
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
_local2 = "http://server.cpmstar.com/adviewas3.swf";
_local3 = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
}
}//package CPMStar
Section 2
//arrow_left_37 (D_fla.arrow_left_37)
package D_fla {
import flash.display.*;
public dynamic class arrow_left_37 extends MovieClip {
public function arrow_left_37(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 3
//arrow_right_38 (D_fla.arrow_right_38)
package D_fla {
import flash.display.*;
public dynamic class arrow_right_38 extends MovieClip {
public function arrow_right_38(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 4
//btn_CB_123 (D_fla.btn_CB_123)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_CB_123 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_CB_123(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
}
}
}//package D_fla
Section 5
//btn_close_39 (D_fla.btn_close_39)
package D_fla {
import flash.display.*;
public dynamic class btn_close_39 extends MovieClip {
public function btn_close_39(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 6
//btn_G_124 (D_fla.btn_G_124)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_G_124 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_G_124(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.girlswood.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
stop();
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
}
}
}//package D_fla
Section 7
//btn_help_40 (D_fla.btn_help_40)
package D_fla {
import flash.display.*;
public dynamic class btn_help_40 extends MovieClip {
public function btn_help_40(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 8
//btn_MM_continue_41 (D_fla.btn_MM_continue_41)
package D_fla {
import flash.display.*;
public dynamic class btn_MM_continue_41 extends MovieClip {
public function btn_MM_continue_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 9
//btn_MM_credits_42 (D_fla.btn_MM_credits_42)
package D_fla {
import flash.display.*;
public dynamic class btn_MM_credits_42 extends MovieClip {
public function btn_MM_credits_42(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 10
//btn_MM_more_games_43 (D_fla.btn_MM_more_games_43)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_MM_more_games_43 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_MM_more_games_43(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 11
//btn_MM_new_game_44 (D_fla.btn_MM_new_game_44)
package D_fla {
import flash.display.*;
public dynamic class btn_MM_new_game_44 extends MovieClip {
public function btn_MM_new_game_44(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 12
//btn_more_games_104 (D_fla.btn_more_games_104)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_more_games_104 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_more_games_104(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com/games/games/Game_cat.asp?cat=New Addition";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 13
//btn_more_games_106 (D_fla.btn_more_games_106)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_more_games_106 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_more_games_106(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com/games/games/Game_cat.asp?cat=New Addition";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 14
//btn_more_games_166 (D_fla.btn_more_games_166)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_more_games_166 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_more_games_166(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com/games/games/Game_cat.asp?cat=New Addition";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 15
//btn_more_games_45 (D_fla.btn_more_games_45)
package D_fla {
import flash.display.*;
public dynamic class btn_more_games_45 extends MovieClip {
public function btn_more_games_45(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 16
//btn_next_105 (D_fla.btn_next_105)
package D_fla {
import flash.display.*;
public dynamic class btn_next_105 extends MovieClip {
public function btn_next_105(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 17
//btn_next_107 (D_fla.btn_next_107)
package D_fla {
import flash.display.*;
public dynamic class btn_next_107 extends MovieClip {
public function btn_next_107(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 18
//btn_next_46 (D_fla.btn_next_46)
package D_fla {
import flash.display.*;
public dynamic class btn_next_46 extends MovieClip {
public function btn_next_46(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 19
//btn_pause_47 (D_fla.btn_pause_47)
package D_fla {
import flash.display.*;
public dynamic class btn_pause_47 extends MovieClip {
public function btn_pause_47(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 20
//btn_PAUSE_continue_48 (D_fla.btn_PAUSE_continue_48)
package D_fla {
import flash.display.*;
public dynamic class btn_PAUSE_continue_48 extends MovieClip {
public function btn_PAUSE_continue_48(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 21
//btn_PAUSE_main_menu_49 (D_fla.btn_PAUSE_main_menu_49)
package D_fla {
import flash.display.*;
public dynamic class btn_PAUSE_main_menu_49 extends MovieClip {
public function btn_PAUSE_main_menu_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 22
//btn_PAUSE_more_games_50 (D_fla.btn_PAUSE_more_games_50)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_PAUSE_more_games_50 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_PAUSE_more_games_50(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
public function moregameslast2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
gotoAndStop(1);
url = "http://www.coolbuddy.com/games/games/Game_cat.asp?cat=New Addition";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregameslast2);
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 23
//btn_play_13 (D_fla.btn_play_13)
package D_fla {
import flash.display.*;
public dynamic class btn_play_13 extends MovieClip {
public function btn_play_13(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 24
//btn_play_again_168 (D_fla.btn_play_again_168)
package D_fla {
import flash.display.*;
public dynamic class btn_play_again_168 extends MovieClip {
public function btn_play_again_168(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 25
//btn_reset_51 (D_fla.btn_reset_51)
package D_fla {
import flash.display.*;
public dynamic class btn_reset_51 extends MovieClip {
public function btn_reset_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 26
//btn_sound_52 (D_fla.btn_sound_52)
package D_fla {
import flash.display.*;
public dynamic class btn_sound_52 extends MovieClip {
public function btn_sound_52(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 27
//btn_walkthrough_441 (D_fla.btn_walkthrough_441)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class btn_walkthrough_441 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function btn_walkthrough_441(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
channel7 = button1.play(1, 1);
trace("pitre");
gotoAndStop(1);
url = "http://www.coolbuddy.com/games/community/game_walkthrough.asp?cat=2532";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
stop();
}
}
}//package D_fla
Section 28
//F_base_U_194 (D_fla.F_base_U_194)
package D_fla {
import flash.display.*;
public dynamic class F_base_U_194 extends MovieClip {
public function F_base_U_194(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 29
//fish_11_closer_button_279 (D_fla.fish_11_closer_button_279)
package D_fla {
import flash.display.*;
public dynamic class fish_11_closer_button_279 extends MovieClip {
public function fish_11_closer_button_279(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 30
//fish_12_closer_button_294 (D_fla.fish_12_closer_button_294)
package D_fla {
import flash.display.*;
public dynamic class fish_12_closer_button_294 extends MovieClip {
public function fish_12_closer_button_294(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 31
//gamename_434 (D_fla.gamename_434)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class gamename_434 extends MovieClip {
public var Dslide:TextField;
public function gamename_434(){
addFrameScript(0, frame1);
}
function frame1(){
Dslide.embedFonts = true;
}
}
}//package D_fla
Section 32
//gate_start_game_430 (D_fla.gate_start_game_430)
package D_fla {
import flash.display.*;
public dynamic class gate_start_game_430 extends MovieClip {
public function gate_start_game_430(){
addFrameScript(19, frame20, 39, frame40);
}
function frame20(){
stop();
}
function frame40(){
stop();
}
}
}//package D_fla
Section 33
//item_small_preloader_118 (D_fla.item_small_preloader_118)
package D_fla {
import flash.display.*;
public dynamic class item_small_preloader_118 extends MovieClip {
public function item_small_preloader_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 34
//item_small_preloader2_5 (D_fla.item_small_preloader2_5)
package D_fla {
import flash.display.*;
public dynamic class item_small_preloader2_5 extends MovieClip {
public function item_small_preloader2_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package D_fla
Section 35
//L_01complete_119 (D_fla.L_01complete_119)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_01complete_119 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_01complete_119(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 36
//L_02complete_132 (D_fla.L_02complete_132)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_02complete_132 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_02complete_132(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 37
//L_03complete_133 (D_fla.L_03complete_133)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_03complete_133 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_03complete_133(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
trace("kak");
}
}
}//package D_fla
Section 38
//L_04complete_140 (D_fla.L_04complete_140)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_04complete_140 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_04complete_140(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 39
//L_05complete_141 (D_fla.L_05complete_141)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_05complete_141 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_05complete_141(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 40
//L_06complete_142 (D_fla.L_06complete_142)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_06complete_142 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_06complete_142(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 41
//L_07complete_143 (D_fla.L_07complete_143)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_07complete_143 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_07complete_143(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 42
//L_08complete_144 (D_fla.L_08complete_144)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_08complete_144 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_08complete_144(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 43
//L_09complete_145 (D_fla.L_09complete_145)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_09complete_145 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_09complete_145(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 44
//L_10complete_146 (D_fla.L_10complete_146)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_10complete_146 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_10complete_146(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 45
//L_11complete_147 (D_fla.L_11complete_147)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_11complete_147 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_11complete_147(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 46
//L_12complete_148 (D_fla.L_12complete_148)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_12complete_148 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_12complete_148(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 47
//L_13complete_149 (D_fla.L_13complete_149)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_13complete_149 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_13complete_149(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 48
//L_14complete_151 (D_fla.L_14complete_151)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_14complete_151 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_14complete_151(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 49
//L_15complete_152 (D_fla.L_15complete_152)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_15complete_152 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_15complete_152(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 50
//L_16complete_153 (D_fla.L_16complete_153)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_16complete_153 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_16complete_153(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 51
//L_17complete_154 (D_fla.L_17complete_154)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_17complete_154 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_17complete_154(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 52
//L_18complete_155 (D_fla.L_18complete_155)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_18complete_155 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_18complete_155(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 53
//L_19complete_156 (D_fla.L_19complete_156)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_19complete_156 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_19complete_156(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 54
//L_20complete_157 (D_fla.L_20complete_157)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_20complete_157 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_20complete_157(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 55
//L_21complete_158 (D_fla.L_21complete_158)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_21complete_158 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_21complete_158(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 56
//L_22complete_159 (D_fla.L_22complete_159)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_22complete_159 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_22complete_159(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 57
//L_23complete_160 (D_fla.L_23complete_160)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_23complete_160 extends MovieClip {
public var Score:TextField;
public var TotalScore:TextField;
public var btn_next:MovieClip;
public function L_23complete_160(){
addFrameScript(134, frame135);
}
function frame135(){
stop();
}
}
}//package D_fla
Section 58
//L_24complete_161 (D_fla.L_24complete_161)
package D_fla {
import flash.text.*;
import flash.display.*;
public dynamic class L_24complete_161 extends MovieClip {
public var btn_play_again:MovieClip;
public var Score:TextField;
public var TotalScore:TextField;
public function L_24complete_161(){
addFrameScript(277, frame278);
}
function frame278(){
stop();
}
}
}//package D_fla
Section 59
//level_begin_444 (D_fla.level_begin_444)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class level_begin_444 extends MovieClip {
public var cube_close:MovieClip;
public function level_begin_444(){
addFrameScript(0, frame1, 59, frame60, 139, frame140);
}
function frame1(){
MovieClip(this.parent).level_start();
}
function frame140(){
stop();
}
function frame60(){
stop();
}
}
}//package D_fla
Section 60
//MainTimeline (D_fla.MainTimeline)
package D_fla {
import flash.events.*;
import flash.display.*;
import CPMStar.*;
import flash.text.*;
import flash.media.*;
import flash.ui.*;
import flash.utils.*;
import flash.system.*;
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.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var Score2:Number;
public var Score1:Number;
public var L_13_bck:Class;
public var L_05complete:MovieClip;
public var cube_close_border:Class;
public var L_24_bck:Class;
public var F_base_R_in:Class;
public var L_16complete:MovieClip;
public var L_01_shdw:Class;
public var fish_04_3_closer_i_button_red:Class;
public var fish_10_2_closer_i_button:Class;
public var fish_01_closer:Class;
public var fish_11_closer_i_button_green:Class;
public var KolHodov:Number;
public var L_01_bck:Class;
public var start_game2:MovieClip;
public var stone:Class;
public var start_game1:MovieClip;
public var L_19_shdw:Class;
public var time_ring:Class;
public var k:int;
public var L_12_bck:Class;
public var speed:int;
public var D_Slide_back1;
public var myBox:Array;
public var L_24_shdw:Class;
public var fish_13_closer_button_red:Class;
public var L_23_bck:Class;
public var ret:Boolean;
public var begin:Boolean;
public var stoneend1;
public var fish_14_closer_green:Class;
public var fish_10_closer_red:Class;
public var EmptyY:int;
public var L_02_shdw:Class;
public var EmptyX:int;
public var fish_09_closer_button:Class;
public var L_09_grd:Class;
public var fish_02_closeri_button_green:Class;
public var L_11_bck:Class;
public var L_04complete:MovieClip;
public var fish_13_closer:Class;
public var L_22_bck:Class;
public var SpeedCount:int;
public var L_15complete:MovieClip;
public var menu_bar:MovieClip;
public var fish_13_closer_button:Class;
public var close_shadow:Class;
public var border_open_close_21;
public var L_03_shdw:Class;
public var L_08_grd:Class;
public var fish_03_2_closer:Class;
public var L_10_bck:Class;
public var delay:int;
public var TotalScoreLast:int;
public var cot:Number;
public var fish_01_closer_green:Class;
public var L_19_grd:Class;
public var L_21_bck:Class;
public var gate_start_game:MovieClip;
public var pausin:int;
public var level_begin1:MovieClip;
public var completeFX1;
public var TotalScore:int;
public var L_07_grd:Class;
public var L_03complete:MovieClip;
public var L_04_shdw:Class;
public var L_18_grd:Class;
public var F_base_U_closer:Class;
public var L_20_bck:Class;
public var imageBmp:Bitmap;
public var L_14complete:MovieClip;
public var Boxde1:int;
public var Boxde2:int;
public var coolb:SLogo_small;
public var KolTime:Number;
public var stoneend:Class;
public var L_06_grd:Class;
public var St:Boolean;
public var fish_10_closer_button:Class;
public var L_17_grd:Class;
public var field_fade:Class;
public var adBox:MovieClip;
public var L_05_shdw:Class;
public var Yg1:Boolean;
public var Yg2:Boolean;
public var L_10_shdw:Class;
public var X1:Boolean;
public var X2:Boolean;
public var fish_13_closer_i_button_green:Class;
public var L_05_grd:Class;
public var F_base_D_in:Class;
public var Y1:Boolean;
public var Y2:Boolean;
public var fish_01_closer_i_button_gold:Class;
public var L_02complete:MovieClip;
public var L_16_grd:Class;
public var item:Class;
public var fish_12_2_closer:Class;
public var L_13complete:MovieClip;
public var Delay2:int;
public var Delay1:int;
public var stone_mov1;
public var L_24complete:MovieClip;
public var L_06_shdw:Class;
public var fish_03_closer_button:Class;
public var Level:int;
public var L_04_grd:Class;
public var hiden:MovieClip;
public var L_11_shdw:Class;
public var BoxThere:Boolean;
public var my_fmt:TextFormat;
public var F_base_R_closer:Class;
public var channel2:SoundChannel;
public var channel3:SoundChannel;
public var channel4:SoundChannel;
public var channel5:SoundChannel;
public var channel6:SoundChannel;
public var channel7:SoundChannel;
public var L_15_grd:Class;
public var level_complete:Class;
public var TimeScore:Number;
public var CheaterL:int;
public var pr_Start:MovieClip;
public var help_ingame_1:Class;
public var help_ingame_3:Class;
public var help_ingame_2:Class;
public var container2:MovieClip;
public var border_open_close_2:Class;
public var L_07_shdw:Class;
public var L_03_grd:Class;
public var fish_03_closer_i_button:Class;
public var ObjMouseX:int;
public var LevelCount:int;
public var L_01complete:MovieClip;
public var time_ring1:MovieClip;
public var L_14_grd:Class;
public var ObjMouseY:int;
public var L_12_shdw:Class;
public var fish_10_closer_i_button:Class;
public var L_09complete:MovieClip;
public var del:Boolean;
public var fish_14_closer_i_button_green:Class;
public var ad:DisplayObject;
public var L_12complete:MovieClip;
public var stone_mov:Class;
public var L_23complete:MovieClip;
public var timesup:Class;
public var GemMouseX:int;
public var GemMouseY:int;
public var L_09_bck:Class;
public var cm:ContextMenu;
public var stone1;
public var F_base_D:Class;
public var preloader:MovieClip;
public var F_base_L:Class;
public var F_base_R:Class;
public var L_02_grd:Class;
public var F_base_U:Class;
public var container:MovieClip;
public var L_08_shdw:Class;
public var L_13_grd:Class;
public var credits:Class;
public var CPMStarContentSpotID:String;
public var L_24_grd:Class;
public var forY:Boolean;
public var L_13_shdw:Class;
public var Karr1:int;
public var forX:Boolean;
public var fish_11_closer_button:Class;
public var Karr2:int;
public var fish_01_closer_i_button_red:Class;
public var talismsn_movie:Class;
public var RestTime:Number;
public var L_08_bck:Class;
public var sponsorLogo1;
public var L_01_grd:Class;
public var obj:MovieClip;
public var fish_02_closer_red:Class;
public var help_page1:Class;
public var help_page2:Class;
public var L_19_bck:Class;
public var L_12_grd:Class;
public var fish_11_closer_button_red:Class;
public var L_08complete:MovieClip;
public var resetsound:Class;
public var Count1:Boolean;
public var Count2:Boolean;
public var L_09_shdw:Class;
public var L_11complete:MovieClip;
public var L_23_grd:Class;
public var fish_02_closer:Class;
public var L_19complete:MovieClip;
public var grd_all:Class;
public var pausePosition:int;
public var F_base_U_in:Class;
public var fish_01:Class;
public var fish_02:Class;
public var fish_03:Class;
public var fish_04:Class;
public var L_22complete:MovieClip;
public var fish_06:Class;
public var fish_07:Class;
public var fish_08:Class;
public var L_14_shdw:Class;
public var fish_05:Class;
public var fish_04_2_closer_button:Class;
public var fish_09:Class;
public var talismsn_movie1;
public var L_07_bck:Class;
public var fish_10:Class;
public var fish_11:Class;
public var SpeedTest:int;
public var fish_13:Class;
public var fish_14:Class;
public var fish_12:Class;
public var fish_12_closer_green:Class;
public var L_18_bck:Class;
public var minuteTimer:Timer;
public var L_11_grd:Class;
public var fish_02_closer_i_button_gold:Class;
public var Box:Array;
public var L_22_grd:Class;
public var D_Slide_back:Class;
public var fish_04_closer_button:Class;
public var nu:int;
public var StartObjCoordY:int;
public var St2:Boolean;
public var Pause:Boolean;
public var StartObjCoordX:int;
public var fish_up:Class;
public var kar:int;
public var L_06_bck:Class;
public var Closr:Boolean;
public var F_base_L_in:Class;
public var fish_14_closer:Class;
public var L_15_shdw:Class;
public var L_17_bck:Class;
public var StartGemCoordX:int;
public var StartGemCoordY:int;
public var L_07complete:MovieClip;
public var L_20_shdw:Class;
public var L_10_grd:Class;
public var fish_down:Class;
public var L_10complete:MovieClip;
public var L_21_grd:Class;
public var L_18complete:MovieClip;
public var F_base_L_closer:Class;
public var L_21complete:MovieClip;
public var ObjL:int;
public var ObjR:int;
public var sp:int;
public var channel10:SoundChannel;
public var L_05_bck:Class;
public var ObjU:int;
public var ObjD:int;
public var Score:int;
public var fish_04_3_closer_i_button_gold:Class;
public var L_16_bck:Class;
public var fish_up1;
public var L_16_shdw:Class;
public var L_20_grd:Class;
public var L_21_shdw:Class;
public var darck:Class;
public var CheaterLevel:TextField;
public var kit:Boolean;
public var fish_01_closer_button:Class;
public var L_04_bck:Class;
public var Gem2:MovieClip;
public var MainMenu:int;
public var ItemThere:Boolean;
public var FarObjMouseX:int;
public var NumHod:int;
public var fish_12_closer_button:Class;
public var FarObjMouseY:int;
public var StepScore:Number;
public var L_15_bck:Class;
public var Xg2:Boolean;
public var GemX:int;
public var resetsound1;
public var L_06complete:MovieClip;
public var GemY:int;
public var Xg1:Boolean;
public var soundon:int;
public var Gem:MovieClip;
public var L_17complete:MovieClip;
public var L_17_shdw:Class;
public var fish_down1;
public var button:Class;
public var fish_01_2_closer:Class;
public var button1;
public var resetyea:Boolean;
public var FarGemMouseX:int;
public var FarGemMouseY:int;
public var fish_11_closer:Class;
public var L_22_shdw:Class;
public var L_20complete:MovieClip;
public var fish_11_closer_i_button_red:Class;
public var L_03_bck:Class;
public var to_main_menu:Class;
public var fish_04_3_closer:Class;
public var L_14_bck:Class;
public var myBox2:Array;
public var imageData;
public var fish_03_closer_i_button_red:Class;
public var completeFX:Class;
public var L_18_shdw:Class;
public var L_02_bck:Class;
public var pauseall:Class;
public var L_23_shdw:Class;
public var black:Class;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 48, frame49, 204, frame205, 220, frame221, 234, frame235, 308, frame309, 321, frame322, 351, frame352, 519, frame520, 532, frame533, 667, frame668, 691, frame692, 826, frame827, 1005, frame1006, 1187, frame1188, 1365, frame1366, 1548, frame1549, 1728, frame1729, 1908, frame1909, 2088, frame2089, 2268, frame2269, 2448, frame2449, 2628, frame2629, 2808, frame2809, 2988, frame2989, 3168, frame3169, 3348, frame3349, 3528, frame3529, 3709, frame3710, 3889, frame3890, 4069, frame4070, 4249, frame4250, 4429, frame4430, 4609, frame4610, 4930, frame4931);
}
function frame1188(){
stop();
L_04complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_04);
trace(("Level = " + Level));
}
public function rarrow2(_arg1:MouseEvent):void{
Box[32].arrow_right.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, rarrow2);
Box[32].gotoAndPlay(31);
addEventListener(Event.ENTER_FRAME, onEnterFramehelp1);
}
public function starts(_arg1:MouseEvent):void{
var e = _arg1;
if (kit){
removeChild(adBox);
channel7 = button1.play(1, 1);
trace("pitre");
preloader.btn_play.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, starts2);
try {
Box[100].x = 320;
Box[100].y = 200;
stage.addChild(Box[100]);
Box[100].addEventListener(MouseEvent.MOUSE_DOWN, moregameslink);
Box[100].gotoAndPlay(1);
} catch(err:Error) {
trace(err);
};
};
}
public function continue1(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
Box[30].btn_con.gotoAndStop(2);
Box[30].btn_con.removeEventListener(MouseEvent.MOUSE_DOWN, continue1);
Box[30].btn_main_menu.removeEventListener(MouseEvent.MOUSE_DOWN, mainmenu1);
stage.addEventListener(MouseEvent.MOUSE_UP, continue2);
}
public function continue2(_arg1:MouseEvent):void{
minuteTimer.start();
Pause = false;
Box[30].btn_con.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, continue2);
Box[29].gotoAndPlay(31);
Box[30].gotoAndPlay(31);
addEventListener(Event.ENTER_FRAME, Pauseweneed);
}
public function onEnterFrameBox(_arg1:Event){
var event = _arg1;
Gem.removeEventListener(MouseEvent.MOUSE_DOWN, pickupGem);
container.removeEventListener(MouseEvent.MOUSE_DOWN, pickup);
speed = (speed + 1);
k++;
if ((((GemX == obj.x)) && ((GemY == obj.y)))){
ItemThere = true;
};
if (((((((!((obj.x == EmptyX))) && (!((obj.x == StartObjCoordX))))) && ((obj.y == EmptyY)))) && ((obj.y == StartObjCoordY)))){
if ((((obj.x >= (StartObjCoordX + 25))) && ((obj.x < EmptyX)))){
trace("One");
obj.x = (obj.x + speed);
if (obj.x > EmptyX){
obj.x = EmptyX;
};
if (ItemThere){
Gem.x = obj.x;
};
};
if ((((obj.x <= (StartObjCoordX - 25))) && ((obj.x > EmptyX)))){
trace("Two");
obj.x = (obj.x - speed);
if (obj.x < EmptyX){
obj.x = EmptyX;
};
if (ItemThere){
Gem.x = obj.x;
};
};
if ((((obj.x < StartObjCoordX)) && ((obj.x > (StartObjCoordX - 25))))){
trace("One");
obj.x = (obj.x + speed);
if (obj.x > StartObjCoordX){
obj.x = StartObjCoordX;
};
if (ItemThere){
Gem.x = obj.x;
};
};
if ((((obj.x > StartObjCoordX)) && ((obj.x < (StartObjCoordX + 25))))){
trace("Two");
obj.x = (obj.x - speed);
if (obj.x < StartObjCoordX){
obj.x = StartObjCoordX;
};
if (ItemThere){
Gem.x = obj.x;
};
};
};
if ((((((((obj.x == EmptyX)) && ((obj.x == StartObjCoordX)))) && (!((obj.y == EmptyY))))) && (!((obj.y == StartObjCoordY))))){
if ((((obj.y >= (StartObjCoordY + 25))) && ((obj.y < EmptyY)))){
trace("One");
obj.y = (obj.y + speed);
if (obj.y > EmptyY){
obj.y = EmptyY;
};
if (ItemThere){
Gem.y = obj.y;
};
};
if ((((obj.y <= (StartObjCoordY - 25))) && ((obj.y > EmptyY)))){
trace("Two");
obj.y = (obj.y - speed);
if (obj.y < EmptyY){
obj.y = EmptyY;
};
if (ItemThere){
Gem.y = obj.y;
};
};
if ((((obj.y < StartObjCoordY)) && ((obj.y > (StartObjCoordY - 25))))){
trace("One2");
obj.y = (obj.y + speed);
if (obj.y > StartObjCoordY){
obj.y = StartObjCoordY;
};
if (ItemThere){
Gem.y = obj.y;
};
};
if ((((obj.y > StartObjCoordY)) && ((obj.y <= (StartObjCoordY + 25))))){
trace("Two2");
obj.y = (obj.y - speed);
if (obj.y < StartObjCoordY){
obj.y = StartObjCoordY;
};
if (ItemThere){
Gem.y = obj.y;
};
};
};
trace(("OnEvent-obj.x " + obj.x));
trace(("OnEvent-EmptyX " + EmptyX));
trace(("OnEvent-StartObjCoordX " + StartObjCoordX));
trace("orrr");
trace(("OnEvent-obj.y " + obj.y));
trace(("OnEvent-EmptyY " + EmptyY));
trace(("OnEvent-StartObjCoordY " + StartObjCoordY));
if ((((((obj.x == EmptyX)) && ((obj.y == EmptyY)))) || ((((obj.x == StartObjCoordX)) && ((obj.y == StartObjCoordY)))))){
Gem.addEventListener(MouseEvent.MOUSE_DOWN, pickupGem);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace("remove");
removeEventListener(Event.ENTER_FRAME, onEnterFrameBox);
if ((((((Box[3].x == 320)) && ((Box[3].y == 150)))) && ((Level == 1)))){
try {
addChild(Box[35]);
Box[35].doubleClickEnabled = false;
Box[35].mouseChildren = false;
Box[35].mouseEnabled = false;
Box[35].gotoAndPlay(1);
Box[34].alpha = 0;
removeChild(Box[34]);
} catch(err:Error) {
trace(err.message);
};
};
};
if ((((obj.x == EmptyX)) && ((obj.y == EmptyY)))){
Box[0].x = StartObjCoordX;
Box[0].y = StartObjCoordY;
NumHod++;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
trace(("NumHod yyyyy" + NumHod));
};
}
function frame4250(){
stop();
L_21complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_21);
trace(("Level = " + Level));
}
public function newcont_02(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_02);
L_02complete.btn_next.gotoAndStop(2);
}
public function newcont_03(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_03);
L_03complete.btn_next.gotoAndStop(2);
}
public function newcont_04(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_04);
L_04complete.btn_next.gotoAndStop(2);
}
public function newcont_07(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_07);
L_07complete.btn_next.gotoAndStop(2);
}
public function newcont_09(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_09);
L_09complete.btn_next.gotoAndStop(2);
}
public function onEnterFrameCloseEnd(_arg1:Event){
if (L_01complete.currentFrame == L_01complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd);
};
}
public function newcont_05(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_05);
L_05complete.btn_next.gotoAndStop(2);
}
public function eventLoadingComplete(_arg1:Event){
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, eventLoadingProgress);
loaderInfo.removeEventListener(Event.COMPLETE, eventLoadingComplete);
gotoAndPlay(2);
}
function frame3169(){
stop();
L_15complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_15);
trace(("Level = " + Level));
}
public function cred2(_arg1:MouseEvent):void{
start_game1.btn_credits.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, cred2);
Box[29].x = 320;
Box[29].y = 240;
Box[31].x = 320;
Box[31].y = 240;
addChild(Box[29]);
Box[29].gotoAndPlay(1);
addChild(Box[31]);
Box[31].gotoAndPlay(1);
Box[31].btn_close_cr.addEventListener(MouseEvent.MOUSE_DOWN, clos);
}
function frame520(){
trace("Karambwer");
}
public function newcont_06(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_06);
L_06complete.btn_next.gotoAndStop(2);
}
public function newcont_10(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_10);
L_10complete.btn_next.gotoAndStop(2);
}
public function newcont_08(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_08);
L_08complete.btn_next.gotoAndStop(2);
}
public function newcont_12(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_12);
L_12complete.btn_next.gotoAndStop(2);
}
public function newcont_13(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_13);
L_13complete.btn_next.gotoAndStop(2);
}
public function newcont_14(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_14);
L_14complete.btn_next.gotoAndStop(2);
}
public function newcont_15(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_15);
L_15complete.btn_next.gotoAndStop(2);
}
public function newcont_11(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_11);
L_11complete.btn_next.gotoAndStop(2);
}
public function newcont_19(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_19);
L_19complete.btn_next.gotoAndStop(2);
}
public function level_11(){
var i:int;
KolHodov = 16;
KolTime = 15;
Box[27] = new cube_close_border();
Box[24] = new L_11_shdw();
Box[23] = new L_11_grd();
Box[22] = new L_11_shdw();
Box[21] = new L_11_bck();
Box[20] = new F_base_D();
Box[1] = new F_base_D_in();
Box[2] = new fish_04_closer_button();
Box[3] = new fish_01_2_closer();
Box[4] = new fish_13();
Box[5] = new fish_12();
Box[6] = new fish_09();
Box[7] = new fish_03();
Gem.x = 410;
Gem.y = 150;
Box[0].x = 320;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 240;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 150;
Box[3].alpha = 0;
Box[4].x = 410;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 330;
Box[5].alpha = 0;
Box[6].x = 410;
Box[6].y = 330;
Box[6].alpha = 0;
Box[7].x = 230;
Box[7].y = 150;
Box[7].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 0, 0, 1, 2, 3, 0, 0, 0, 1, 0];
myBox[3] = [0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0];
myBox[4] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_12(){
var i:int;
KolHodov = 16;
KolTime = 20;
Box[27] = new cube_close_border();
Box[24] = new L_12_shdw();
Box[23] = new L_12_grd();
Box[22] = new L_12_shdw();
Box[21] = new L_12_bck();
Box[20] = new F_base_D();
Box[1] = new F_base_D_in();
Box[2] = new fish_09_closer_button();
Box[3] = new fish_01_2_closer();
Box[4] = new fish_12();
Box[5] = new fish_02();
Box[6] = new fish_02();
Box[7] = new fish_03();
Box[8] = new fish_14();
Gem.x = 320;
Gem.y = 150;
Box[0].x = 320;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 500;
Box[1].y = 150;
Box[1].alpha = 0;
Box[2].x = 320;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 410;
Box[3].y = 150;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 500;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 410;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 410;
Box[8].y = 240;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 1, 0, 1, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 20];
myBox[4] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_13(){
var i:int;
KolHodov = 30;
KolTime = 35;
Box[27] = new cube_close_border();
Box[24] = new L_13_shdw();
Box[23] = new L_13_grd();
Box[22] = new L_13_shdw();
Box[21] = new L_13_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_13_closer_button();
Box[3] = new fish_03_2_closer();
Box[4] = new fish_13();
Box[5] = new fish_11();
Box[6] = new fish_10();
Box[7] = new fish_02();
Box[8] = new fish_01();
Gem.x = 230;
Gem.y = 150;
Box[0].x = 410;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 330;
Box[6].alpha = 0;
Box[7].x = 410;
Box[7].y = 150;
Box[7].alpha = 0;
Box[8].x = 320;
Box[8].y = 150;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 20];
myBox[4] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_15(){
var i:int;
KolHodov = 30;
KolTime = 30;
Box[27] = new cube_close_border();
Box[24] = new L_15_shdw();
Box[23] = new L_15_grd();
Box[22] = new L_15_shdw();
Box[21] = new L_15_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_03_closer_button();
Box[3] = new fish_10_closer_i_button();
Box[4] = new fish_12_closer_green();
Box[5] = new fish_13();
Box[6] = new fish_14();
Box[7] = new fish_11();
Box[8] = new fish_03();
Gem.x = 410;
Gem.y = 150;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 320;
Box[2].y = 240;
Box[2].alpha = 0;
Box[3].x = 230;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 410;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 230;
Box[7].y = 150;
Box[7].alpha = 0;
Box[8].x = 500;
Box[8].y = 150;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 1, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 0, 4, 0, 1, 0, 1, 0, 0];
myBox[4] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
myBox[5] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_16(){
var i:int;
KolHodov = 10;
KolTime = 15;
Box[27] = new cube_close_border();
Box[24] = new L_16_shdw();
Box[23] = new L_16_grd();
Box[22] = new L_16_shdw();
Box[21] = new L_16_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_10_closer_button();
Box[3] = new fish_11_closer_i_button_red();
Box[4] = new fish_02_closeri_button_green();
Box[5] = new fish_14_closer_green();
Box[6] = new fish_11();
Box[7] = new fish_13();
Box[8] = new fish_02();
Gem.x = 320;
Gem.y = 240;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 240;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 410;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 150;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 240;
Box[7].alpha = 0;
Box[8].x = 410;
Box[8].y = 330;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 1, 0, 1, 0, 0];
myBox[4] = [0, 0, 0, 0, 5, 0, 0, 1, 1, 0, 0];
myBox[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
myBox[6] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_10(){
var i:int;
KolHodov = 11;
KolTime = 14;
Box[27] = new cube_close_border();
Box[24] = new L_10_shdw();
Box[23] = new L_10_grd();
Box[22] = new L_10_shdw();
Box[21] = new L_10_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_11_closer_button();
Box[3] = new fish_02_closer();
Box[4] = new fish_13();
Box[5] = new fish_11();
Box[6] = new fish_04();
Box[7] = new fish_03();
Gem.x = 320;
Gem.y = 240;
Box[0].x = 410;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 320;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 150;
Box[7].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 20];
myBox[4] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_19(){
var i:int;
KolHodov = 30;
KolTime = 40;
Box[27] = new cube_close_border();
Box[24] = new L_19_shdw();
Box[23] = new L_19_grd();
Box[22] = new L_19_shdw();
Box[21] = new L_19_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_13_closer_button();
Box[3] = new fish_04_3_closer();
Box[4] = new fish_13_closer_button_red();
Box[5] = new fish_02_closer_red();
Box[6] = new fish_13();
Box[7] = new fish_10();
Box[8] = new fish_04();
Gem.x = 230;
Gem.y = 240;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 330;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 410;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 410;
Box[8].y = 150;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0];
myBox[4] = [0, 0, 1, 0, 5, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 20];
myBox[6] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_17(){
var i:int;
KolHodov = 20;
KolTime = 22;
Box[27] = new cube_close_border();
Box[24] = new L_17_shdw();
Box[23] = new L_17_grd();
Box[22] = new L_17_shdw();
Box[21] = new L_17_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_11_closer_button_red();
Box[3] = new fish_03_closer_i_button();
Box[4] = new fish_12_2_closer();
Box[5] = new fish_13();
Box[6] = new fish_10();
Box[7] = new fish_11();
Box[8] = new fish_04();
Gem.x = 320;
Gem.y = 330;
Box[0].x = 410;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 320;
Box[2].y = 240;
Box[2].alpha = 0;
Box[3].x = 230;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 410;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 330;
Box[5].alpha = 0;
Box[6].x = 320;
Box[6].y = 150;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 230;
Box[8].y = 150;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 0, 0, 1, 1, 0];
myBox[4] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
myBox[5] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_18(){
var i:int;
KolHodov = 22;
KolTime = 30;
Box[27] = new cube_close_border();
Box[24] = new L_18_shdw();
Box[23] = new L_18_grd();
Box[22] = new L_18_shdw();
Box[21] = new L_18_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_01_closer_button();
Box[3] = new fish_04_2_closer_button();
Box[4] = new fish_01();
Box[5] = new fish_12();
Box[6] = new fish_13();
Box[7] = new fish_13();
Box[8] = new fish_02();
Gem.x = 230;
Gem.y = 150;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 410;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 410;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 330;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 240;
Box[7].alpha = 0;
Box[8].x = 230;
Box[8].y = 240;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 1, 0, 0, 3, 3, 1, 0, 0, 1, 0];
myBox[3] = [1, 0, 0, 1, 3, 0, 1, 0, 0, 0, 0];
myBox[4] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function newcont_24(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_24);
L_24complete.btn_play_again.gotoAndStop(2);
}
public function newcont_17(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_17);
L_17complete.btn_next.gotoAndStop(2);
}
public function level_14(){
var i:int;
KolHodov = 25;
KolTime = 22;
Box[27] = new cube_close_border();
Box[24] = new L_14_shdw();
Box[23] = new L_14_grd();
Box[22] = new L_14_shdw();
Box[21] = new L_14_bck();
Box[20] = new F_base_U();
Box[1] = new F_base_U_in();
Box[2] = new fish_01_closer_button();
Box[3] = new fish_13_closer();
Box[4] = new fish_09();
Box[5] = new fish_11();
Box[6] = new fish_14();
Box[7] = new fish_14();
Box[8] = new fish_04();
Gem.x = 230;
Gem.y = 240;
Box[0].x = 230;
Box[0].y = 330;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 150;
Box[1].alpha = 0;
Box[2].x = 320;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 410;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 320;
Box[8].y = 240;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 20];
myBox[4] = [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
function frame533(){
trace("Menu");
}
public function level_20(){
var i:int;
KolHodov = 20;
KolTime = 20;
Box[27] = new cube_close_border();
Box[24] = new L_20_shdw();
Box[23] = new L_20_grd();
Box[22] = new L_20_shdw();
Box[21] = new L_20_bck();
Box[20] = new F_base_D();
Box[1] = new F_base_D_in();
Box[2] = new fish_12_closer_button();
Box[3] = new fish_03_closer_i_button_red();
Box[4] = new fish_10_closer_red();
Box[5] = new fish_12();
Box[6] = new fish_14();
Box[7] = new fish_02();
Box[8] = new fish_03();
Gem.x = 230;
Gem.y = 240;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 410;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 410;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 410;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 230;
Box[8].y = 150;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 0, 0, 1, 1, 0];
myBox[4] = [0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0];
myBox[5] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_21(){
var i:int;
KolHodov = 35;
KolTime = 30;
Box[27] = new cube_close_border();
Box[24] = new L_21_shdw();
Box[23] = new L_21_grd();
Box[22] = new L_21_shdw();
Box[21] = new L_21_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_13_closer_button();
Box[3] = new fish_04_3_closer_i_button_red();
Box[4] = new fish_13_closer_i_button_green();
Box[5] = new fish_01_closer_green();
Box[6] = new fish_13();
Box[7] = new fish_10();
Box[8] = new fish_04();
Gem.x = 320;
Gem.y = 150;
Box[0].x = 230;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 230;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 330;
Box[5].alpha = 0;
Box[6].x = 320;
Box[6].y = 150;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 410;
Box[8].y = 240;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 1, 0, 0, 1, 0];
myBox[4] = [0, 0, 0, 0, 5, 0, 0, 0, 1, 0, 0];
myBox[5] = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0];
myBox[6] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_22(){
var i:int;
KolHodov = 20;
KolTime = 33;
Box[27] = new cube_close_border();
Box[24] = new L_22_shdw();
Box[23] = new L_22_grd();
Box[22] = new L_22_shdw();
Box[21] = new L_22_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_closer();
Box[2] = new fish_13_closer_button_red();
Box[3] = new fish_10_2_closer_i_button();
Box[4] = new fish_11_closer_i_button_green();
Box[5] = new fish_01_closer_i_button_gold();
Box[6] = new fish_12();
Box[7] = new fish_04();
Box[8] = new fish_04();
Gem.x = 230;
Gem.y = 240;
Box[0].x = 410;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 330;
Box[5].alpha = 0;
Box[6].x = 230;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 320;
Box[7].y = 150;
Box[7].alpha = 0;
Box[8].x = 230;
Box[8].y = 330;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
myBox[2] = [0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 0, 4, 0, 1, 0, 1, 0, 0];
myBox[4] = [0, 0, 0, 0, 5, 0, 1, 0, 0, 0, 0];
myBox[5] = [0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0];
myBox[6] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_23(){
var i:int;
KolHodov = 35;
KolTime = 35;
Box[27] = new cube_close_border();
Box[24] = new L_23_shdw();
Box[23] = new L_23_grd();
Box[22] = new L_23_shdw();
Box[21] = new L_23_bck();
Box[20] = new F_base_U();
Box[1] = new F_base_U_closer();
Box[2] = new fish_14_closer();
Box[3] = new fish_01_closer_i_button_red();
Box[4] = new fish_14_closer_i_button_green();
Box[5] = new fish_02_closer_i_button_gold();
Box[6] = new fish_13();
Box[7] = new fish_01();
Box[8] = new fish_01();
Gem.x = 320;
Gem.y = 240;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 500;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 410;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 500;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 320;
Box[6].y = 240;
Box[6].alpha = 0;
Box[7].x = 230;
Box[7].y = 330;
Box[7].alpha = 0;
Box[8].x = 410;
Box[8].y = 330;
Box[8].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
myBox[2] = [0, 0, 0, 1, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 1, 1, 0, 0, 0];
myBox[4] = [0, 0, 0, 0, 5, 0, 0, 0, 0, 1, 0];
myBox[5] = [0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0];
myBox[6] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_24(){
var i:int;
KolHodov = 40;
KolTime = 40;
Box[27] = new cube_close_border();
Box[24] = new L_24_shdw();
Box[23] = new L_24_grd();
Box[22] = new L_24_shdw();
Box[21] = new L_24_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_closer();
Box[2] = new fish_11_closer_button_red();
Box[3] = new fish_13_closer_i_button();
Box[4] = new fish_04_3_closer_i_button_gold();
Box[5] = new fish_12();
Box[6] = new fish_12();
Box[7] = new fish_14();
Box[8] = new fish_10();
Box[9] = new fish_09();
Box[10] = new fish_02();
Box[11] = new fish_02();
Box[12] = new fish_01();
Box[13] = new fish_03();
Box[14] = new fish_04();
Gem.x = 500;
Gem.y = 150;
Box[0].x = 140;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 140;
Box[3].y = 150;
Box[3].alpha = 0;
Box[4].x = 140;
Box[4].y = 330;
Box[4].alpha = 0;
Box[5].x = 230;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 500;
Box[6].y = 150;
Box[6].alpha = 0;
Box[7].x = 410;
Box[7].y = 150;
Box[7].alpha = 0;
Box[8].x = 500;
Box[8].y = 240;
Box[8].alpha = 0;
Box[9].x = 320;
Box[9].y = 150;
Box[9].alpha = 0;
Box[10].x = 500;
Box[10].y = 330;
Box[10].alpha = 0;
Box[11].x = 320;
Box[11].y = 240;
Box[11].alpha = 0;
Box[12].x = 320;
Box[12].y = 330;
Box[12].alpha = 0;
Box[13].x = 230;
Box[13].y = 330;
Box[13].alpha = 0;
Box[14].x = 410;
Box[14].y = 240;
Box[14].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0];
myBox[2] = [1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0];
myBox[4] = [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0];
myBox[5] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[7] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[8] = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[9] = [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[10] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[11] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[12] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[13] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[14] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
container.addChild(Box[7]);
container.addChild(Box[8]);
container.addChild(Box[9]);
container.addChild(Box[10]);
container.addChild(Box[11]);
container.addChild(Box[12]);
container.addChild(Box[13]);
container.addChild(Box[14]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function newcont(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2);
L_01complete.btn_next.gotoAndStop(2);
}
public function onEnterFramehelp4(_arg1:Event):void{
if (Box[33].currentFrame == 60){
Box[33].arrow_left.removeEventListener(MouseEvent.MOUSE_DOWN, larrow);
stage.removeEventListener(MouseEvent.MOUSE_UP, larrow2);
Box[33].btn_closeh2.removeEventListener(MouseEvent.MOUSE_DOWN, cl12);
stage.removeEventListener(MouseEvent.MOUSE_UP, cl22);
removeChild(Box[33]);
removeChild(Box[29]);
removeEventListener(Event.ENTER_FRAME, onEnterFramehelp4);
};
}
public function cl2(_arg1:MouseEvent):void{
Box[32].btn_closeh1.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, cl2);
Box[32].gotoAndPlay(31);
Box[29].gotoAndPlay(31);
minuteTimer.start();
addEventListener(Event.ENTER_FRAME, onEnterFramehelp2);
}
public function onEnterFramehelp1(_arg1:Event):void{
if (Box[32].currentFrame >= 60){
removeChild(Box[32]);
addChild(Box[33]);
Box[33].arrow_left.addEventListener(MouseEvent.MOUSE_DOWN, larrow);
Box[33].btn_closeh2.addEventListener(MouseEvent.MOUSE_DOWN, cl12);
Box[33].gotoAndPlay(1);
removeEventListener(Event.ENTER_FRAME, onEnterFramehelp1);
};
}
public function onEnterFramehelp3(_arg1:Event):void{
if (Box[33].currentFrame >= 60){
removeChild(Box[33]);
addChild(Box[32]);
Box[32].arrow_right.addEventListener(MouseEvent.MOUSE_DOWN, rarrow);
Box[32].btn_closeh1.addEventListener(MouseEvent.MOUSE_DOWN, cl1);
Box[32].gotoAndPlay(61);
removeEventListener(Event.ENTER_FRAME, onEnterFramehelp3);
};
}
public function cl1(_arg1:MouseEvent):void{
var e = _arg1;
channel7 = button1.play(1, 1);
Box[32].btn_closeh1.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, cl2);
try {
Box[32].arrow_right.removeEventListener(MouseEvent.MOUSE_DOWN, rarrow);
Box[32].btn_closeh1.removeEventListener(MouseEvent.MOUSE_DOWN, cl1);
} catch(err:Error) {
trace(err);
};
}
public function onEnterFramehelp2(_arg1:Event):void{
if (Box[32].currentFrame == 60){
Box[32].arrow_right.removeEventListener(MouseEvent.MOUSE_DOWN, rarrow);
stage.removeEventListener(MouseEvent.MOUSE_UP, rarrow2);
Box[32].btn_closeh1.removeEventListener(MouseEvent.MOUSE_DOWN, cl1);
stage.removeEventListener(MouseEvent.MOUSE_UP, cl2);
removeChild(Box[32]);
removeChild(Box[29]);
removeEventListener(Event.ENTER_FRAME, onEnterFramehelp2);
};
}
public function newcont_21(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_21);
L_21complete.btn_next.gotoAndStop(2);
}
public function newcont_20(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_20);
L_20complete.btn_next.gotoAndStop(2);
}
public function newcont_16(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_16);
L_16complete.btn_next.gotoAndStop(2);
}
public function place(_arg1:MouseEvent):void{
var e = _arg1;
if ((((((((St == false)) && (!((obj.y == StartObjCoordY))))) && (!((obj.y == EmptyY))))) || ((((((St == false)) && (!((obj.x == EmptyX))))) && (!((obj.x == StartObjCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
removeEventListener(Event.ENTER_FRAME, StoneMove);
trace("function place (e:MouseEvent):void");
stage.removeEventListener(MouseEvent.MOUSE_MOVE, changeXY);
if (((((((((!((obj.x == EmptyX))) && ((obj.y == EmptyY)))) && (!((obj.x == StartObjCoordX))))) && ((obj.y == StartObjCoordY)))) || ((((((((obj.x == EmptyX)) && (!((obj.y == EmptyY))))) && ((obj.x == StartObjCoordX)))) && (!((obj.y == StartObjCoordY))))))){
addEventListener(Event.ENTER_FRAME, onEnterFrameBox);
};
trace(("obj " + obj));
if ((((obj.x == EmptyX)) && ((obj.y == EmptyY)))){
if ((((((Box[3].x == 320)) && ((Box[3].y == 150)))) && ((Level == 1)))){
try {
addChild(Box[35]);
Box[35].doubleClickEnabled = false;
Box[35].mouseChildren = false;
Box[35].mouseEnabled = false;
Box[35].gotoAndPlay(1);
Box[34].alpha = 0;
removeChild(Box[34]);
} catch(err:Error) {
trace(err.message);
};
};
Box[0].x = StartObjCoordX;
Box[0].y = StartObjCoordY;
NumHod++;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
trace(("NumHod " + NumHod));
};
speed = 1;
stage.removeEventListener(MouseEvent.MOUSE_UP, place);
}
public function newcont_18(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_18);
L_18complete.btn_next.gotoAndStop(2);
}
public function onEnterFrameTimesup(_arg1:Event){
var event = _arg1;
if ((Box[49].currentFrame == 25)){
channel4 = completeFX1.play(1, 1);
};
trace(((Box[49].currentFrame + " ") + Box[49].totalFrames));
if (Box[49].currentFrame == Box[49].totalFrames){
trace("UDaaaaaaaaaalaaaaaaaajsya");
removeEventListener(Event.ENTER_FRAME, onEnterFrameTimesup);
try {
container2.removeChild(Box[49]);
} catch(err:Error) {
trace(err);
};
resets3();
};
}
function frame2089(){
stop();
L_09complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_09);
trace(("Level = " + Level));
}
function frame309(){
}
public function newcont_22(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_22);
L_22complete.btn_next.gotoAndStop(2);
}
public function newcont_23(_arg1:MouseEvent):void{
channel7 = button1.play();
stage.addEventListener(MouseEvent.MOUSE_UP, newcont2_23);
L_23complete.btn_next.gotoAndStop(2);
}
function frame49(){
stop();
trace("Lolo");
kit = true;
try {
preloader.btn_play.addEventListener(MouseEvent.MOUSE_DOWN, starts);
trace("po");
} catch(err:Error) {
trace(err.message);
};
}
public function helps2(_arg1:MouseEvent):void{
menu_bar.btn_reset.addEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.addEventListener(MouseEvent.MOUSE_DOWN, pauses);
minuteTimer.stop();
menu_bar.btn_help.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, helps2);
addChild(Box[29]);
addChild(Box[32]);
Box[32].arrow_right.addEventListener(MouseEvent.MOUSE_DOWN, rarrow);
Box[32].btn_closeh1.addEventListener(MouseEvent.MOUSE_DOWN, cl1);
Box[32].gotoAndPlay(1);
Box[29].gotoAndPlay(1);
}
function frame322(){
menu_bar.currentLevel.text = Level;
menu_bar.currentLevel.embedFonts = true;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
if (soundon == 0){
try {
menu_bar.btn_sound.gotoAndStop(2);
} catch(err:Error) {
};
};
}
public function pauses(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
Pause = true;
trace("function pauses (e:MouseEvent):void");
menu_bar.btn_pause.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, pauses2);
}
public function sounds(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
if (menu_bar.btn_sound.currentFrame == 1){
menu_bar.btn_sound.gotoAndStop(2);
soundon = 0;
} else {
menu_bar.btn_sound.gotoAndStop(1);
soundon = 1;
};
stage.addEventListener(MouseEvent.MOUSE_UP, sounds2);
}
public function Formula(){
if (RestTime >= KolTime){
TimeScore = (100 / 2);
} else {
TimeScore = ((RestTime / ((KolTime * 4) / 100)) / 2);
};
if (NumHod <= KolHodov){
StepScore = (100 / 2);
} else {
StepScore = ((100 - ((NumHod - KolHodov) * 5)) / 2);
};
if (StepScore < 0){
StepScore = 0;
};
Score = (StepScore + TimeScore);
TotalScore = (TotalScore + Score);
trace(("NumHod " + NumHod));
trace(("TimeScore " + TimeScore));
trace(("StepScore " + StepScore));
trace(("Score " + Score));
trace(("TotalScore " + TotalScore));
}
function frame4070(){
stop();
L_20complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_20);
trace(("Level = " + Level));
}
public function cred(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre2");
start_game1.btn_credits.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, cred2);
}
public function helps(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
menu_bar.btn_help.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, helps2);
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
}
public function newcontin(_arg1:MouseEvent):void{
if (ret){
channel7 = button1.play(1, 1);
trace("pitre");
start_game1.btn_continue.gotoAndStop(1);
stage.addEventListener(MouseEvent.MOUSE_UP, newcontin2);
};
}
public function delqit(_arg1:Event):void{
if (Box[31].totalFrames == Box[31].currentFrame){
removeChild(Box[31]);
removeChild(Box[29]);
removeEventListener(Event.ENTER_FRAME, delqit);
};
}
public function onEnterFrameGemS2(_arg1:Event):void{
if (Gem2.currentFrame == 12){
channel2 = fish_down1.play();
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS2);
};
if (Gem2.currentFrame == 14){
channel2 = fish_up1.play();
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS2);
};
}
public function eventLoadingProgress(_arg1:ProgressEvent){
var _local2:uint;
var _local3:uint;
trace("bytesTotal 3");
_local2 = _arg1.bytesTotal;
_local3 = _arg1.bytesLoaded;
pr_Start.item_small_preloader.x = (-220 + ((440 * _local3) / _local2));
pr_Start.preloader_strip.x = (-500 + ((480 * _local3) / _local2));
}
function frame352(){
minuteTimer = new Timer(100);
resetyea = false;
pausin = 0;
Pause = false;
trace(2);
trace(Pause);
menu_bar.btn_reset.addEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.addEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.addEventListener(MouseEvent.MOUSE_DOWN, helps);
menu_bar.btn_sound.addEventListener(MouseEvent.MOUSE_DOWN, sounds);
menu_bar.btn_walkthrough.addEventListener(MouseEvent.MOUSE_DOWN, walkthrough);
delay = 0;
del = true;
stop();
}
public function newcont2(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2);
L_01complete.btn_next.gotoAndStop(1);
L_01complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd);
}
public function Pauseweneed2(_arg1:Event):void{
var event = _arg1;
if (Box[30].totalFrames == Box[30].currentFrame){
trace("ty1");
MainMenu = 1;
try {
Level1Close();
removeChild(Box[30]);
removeChild(Box[29]);
Gem.gotoAndPlay("itemstart");
addEventListener(Event.ENTER_FRAME, delGem1);
minuteTimer.reset();
try {
Box[34].alpha = 1;
removeChild(Box[34]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
Box[35].alpha = 1;
removeChild(Box[35]);
} catch(err:Error) {
trace((err.message + " 2"));
};
try {
Box[36].alpha = 1;
removeChild(Box[36]);
} catch(err:Error) {
trace((err.message + " 3"));
};
} catch(err:Error) {
trace((err.message + "What a fuck"));
};
removeEventListener(Event.ENTER_FRAME, Pauseweneed2);
};
}
public function onEnterFrametoMenu2(_arg1:Event){
var event = _arg1;
if (Box[41].currentFrame == Box[41].totalFrames){
try {
trace(188888);
container2.removeChild(Box[41]);
} catch(err:Error) {
trace(err);
};
trace(5880888);
removeEventListener(Event.ENTER_FRAME, onEnterFrametoMenu2);
try {
L_24complete.alpha = 1;
} catch(err:Error) {
trace(err);
};
gotoAndPlay("MainMenu1");
Level = 1;
};
}
public function newstarts(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
start_game1.btn_new_game.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, newstarts2);
}
public function onEnterFrameGem(_arg1:Event){
var i:int;
var j:int;
var event = _arg1;
trace("function onEnterFrameGem(event:Event)");
container.removeEventListener(MouseEvent.MOUSE_DOWN, pickup);
Gem.removeEventListener(MouseEvent.MOUSE_DOWN, pickupGem);
try {
Box[50].x = 320;
Box[50].y = 480;
addChild(Box[50]);
Box[50].alpha = 0;
} catch(err:Error) {
};
trace(("Box[kar].x " + Box[kar].x));
trace(("Box[kar].y " + Box[kar].y));
speed = (speed + 1);
k++;
if ((((Gem.x == Box[kar].x)) && ((Gem.y == Box[kar].y)))){
ItemThere = true;
};
trace(("ItemThere=true" + ItemThere));
if (((!((Gem.x == StartGemCoordX))) && ((Gem.y == StartGemCoordY)))){
if ((((Gem.x >= (StartGemCoordX + 25))) && ((Gem.x < (StartGemCoordX + 90))))){
trace("One");
Gem.x = (Gem.x + speed);
if (Gem.x > (StartGemCoordX + 90)){
Gem.x = (StartGemCoordX + 90);
};
if (ItemThere){
Box[kar].x = Gem.x;
};
};
if ((((Gem.x <= (StartGemCoordX - 25))) && ((Gem.x > (StartGemCoordX - 90))))){
trace("Two");
Gem.x = (Gem.x - speed);
if (Gem.x < (StartGemCoordX - 90)){
Gem.x = (StartGemCoordX - 90);
};
if (ItemThere){
Box[kar].x = Gem.x;
};
};
if ((((Gem.x < StartGemCoordX)) && ((Gem.x > (StartGemCoordX - 25))))){
trace("One");
Gem.x = (Gem.x + speed);
if (Gem.x > StartGemCoordX){
Gem.x = StartGemCoordX;
};
if (ItemThere){
Box[kar].x = Gem.x;
};
};
if ((((Gem.x > StartGemCoordX)) && ((Gem.x < (StartGemCoordX + 25))))){
trace("Two");
Gem.x = (Gem.x - speed);
if (Gem.x < StartGemCoordX){
Gem.x = StartGemCoordX;
};
if (ItemThere){
Box[kar].x = Gem.x;
};
};
};
if ((((Gem.x == StartGemCoordX)) && (!((Gem.y == StartGemCoordY))))){
if ((((Gem.y >= (StartGemCoordY + 25))) && ((Gem.y < (StartGemCoordY + 90))))){
trace("One");
Gem.y = (Gem.y + speed);
if (Gem.y > (StartGemCoordY + 90)){
Gem.y = (StartGemCoordY + 90);
};
if (ItemThere){
Box[kar].y = Gem.y;
};
};
if ((((Gem.y <= (StartGemCoordY - 25))) && ((Gem.y > (StartGemCoordY - 90))))){
trace("Two");
Gem.y = (Gem.y - speed);
if (Gem.y < (StartGemCoordY - 90)){
Gem.y = (StartGemCoordY - 90);
};
if (ItemThere){
Box[kar].y = Gem.y;
};
};
if ((((Gem.y < StartGemCoordY)) && ((Gem.y > (StartGemCoordY - 25))))){
trace("One2");
Gem.y = (Gem.y + speed);
if (Gem.y > StartGemCoordY){
Gem.y = StartGemCoordY;
};
if (ItemThere){
Box[kar].y = Gem.y;
};
};
if ((((Gem.y > StartGemCoordY)) && ((Gem.y <= (StartGemCoordY + 25))))){
trace("Two2");
Gem.y = (Gem.y - speed);
if (Gem.y > StartGemCoordY){
Gem.y = StartGemCoordY;
};
if (ItemThere){
Box[kar].y = Gem.y;
};
};
};
trace(("OnEvent-Gem.x " + Gem.x));
trace(("Box[kar].x " + Box[kar].x));
trace(("OnEvent-StartGemCoordX " + StartGemCoordX));
trace("orrr");
trace(("OnEvent-Gem.y " + Gem.y));
trace(("Box[kar].y " + Box[kar].y));
trace(("OnEvent-StartGemCoordY " + StartGemCoordY));
if ((((((((((((Gem.x == StartGemCoordX)) && ((Gem.y == StartGemCoordY)))) || ((((Gem.x == (StartGemCoordX - 90))) && ((Gem.y == StartGemCoordY)))))) || ((((Gem.y == (StartGemCoordY - 90))) && ((Gem.x == StartGemCoordX)))))) || ((((Gem.y == (StartGemCoordY + 90))) && ((Gem.x == StartGemCoordX)))))) || ((((Gem.y == StartGemCoordY)) && ((Gem.x == (StartGemCoordX + 90))))))){
if ((((((Gem.x == Box[1].x)) && ((Gem.y == Box[1].y)))) && ((Level == 1)))){
try {
Box[35].alpha = 0;
removeChild(Box[35]);
} catch(err:Error) {
trace(err.message);
};
try {
Box[36].alpha = 0;
removeChild(Box[36]);
} catch(err:Error) {
trace(err.message);
};
};
if ((((Gem.x == Box[1].x)) && ((Gem.y == Box[1].y)))){
trace("yes");
try {
Box[50].x = 320;
Box[50].y = 480;
addChild(Box[50]);
Box[50].alpha = 0;
} catch(err:Error) {
};
try {
Box[34].alpha = 1;
removeChild(Box[34]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
Box[35].alpha = 1;
removeChild(Box[34]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
Box[36].alpha = 1;
removeChild(Box[34]);
} catch(err:Error) {
trace((err.message + " 1"));
};
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
Box[20].x = Box[1].x;
Box[20].y = Box[1].y;
container2.addChild(Box[20]);
container2.swapChildren(Box[20], Gem);
container.removeChild(Box[1]);
Box[20].play();
minuteTimer.stop();
addEventListener(Event.ENTER_FRAME, onEnterFramelevelComp);
addChild(Box[28]);
Box[28].gotoAndPlay(1);
} else {
if ((((((myBox[BoxNear(Gem.x, Gem.y)][4] > 0)) && ((Box[BoxNear(Gem.x, Gem.y)].currentFrame == 1)))) || ((((myBox[BoxNear(Gem.x, Gem.y)][4] > 0)) && ((Box[BoxNear(Gem.x, Gem.y)].currentFrame == 41)))))){
if (myBox[BoxNear(Gem.x, Gem.y)][4] == myBox[BoxNear(Gem.x, Gem.y)][5]){
i = 0;
while (i < 4) {
myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][i] = myBox[BoxNear(Gem.x, Gem.y)][(i + 6)];
myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][(i + 6)] = myBox[BoxNear(Gem.x, Gem.y)][(i + 6)];
if (Box[myBox[BoxNear(Gem.x, Gem.y)][4]].currentFrame != 1){
Box[myBox[BoxNear(Gem.x, Gem.y)][4]].play();
if (Box[BoxNear(Gem.x, Gem.y)].totalFrames == 2){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(2);
};
} else {
Box[myBox[BoxNear(Gem.x, Gem.y)][4]].gotoAndStop(79);
if (Box[BoxNear(Gem.x, Gem.y)].totalFrames == 2){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(2);
};
};
i = (i + 1);
};
} else {
if (Box[BoxNear(Gem.x, Gem.y)].totalFrames == 2){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(2);
};
if (Box[BoxNear(Gem.x, Gem.y)].totalFrames == 42){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(42);
};
if (Box[BoxNear(Gem.x, Gem.y)].totalFrames == 80){
if (Box[BoxNear(Gem.x, Gem.y)].currentFrame == 1){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(42);
};
if (Box[BoxNear(Gem.x, Gem.y)].currentFrame == 41){
Box[BoxNear(Gem.x, Gem.y)].gotoAndStop(80);
};
};
Box[myBox[BoxNear(Gem.x, Gem.y)][4]].play();
trace("Pat1 yes ");
Box[myBox[BoxNear(Gem.x, Gem.y)][4]].play();
trace(((("Box[myBox[BoxNear(Gem.x,Gem.y)][5]] " + Box[myBox[BoxNear(Gem.x, Gem.y)][5]]) + " Box[myBox[BoxNear(Gem.x,Gem.y)][4]] ") + Box[myBox[BoxNear(Gem.x, Gem.y)][4]]));
if (myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][10] > 0){
if (Delay2 != 0){
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick2);
Delay2 = 0;
};
Karr2 = BoxNear(Gem.x, Gem.y);
Boxde2 = myBox[BoxNear(Gem.x, Gem.y)][4];
minuteTimer.addEventListener(TimerEvent.TIMER, onTick2);
};
i = 0;
while (i < 4) {
myBox[19][i] = myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][i];
myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][i] = myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][(i + 6)];
myBox[myBox[BoxNear(Gem.x, Gem.y)][4]][(i + 6)] = myBox[19][i];
i = (i + 1);
};
if (myBox[BoxNear(Gem.x, Gem.y)][5] > 0){
trace("Pat1 yes ");
Box[myBox[BoxNear(Gem.x, Gem.y)][5]].play();
if (myBox[myBox[BoxNear(Gem.x, Gem.y)][5]][10] > 0){
if (Delay2 != 0){
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick2);
Delay2 = 0;
};
Karr2 = BoxNear(Gem.x, Gem.y);
Boxde2 = myBox[BoxNear(Gem.x, Gem.y)][5];
minuteTimer.addEventListener(TimerEvent.TIMER, onTick2);
};
j = 0;
while (j < 4) {
trace("Pat2 yes ");
myBox[19][j] = myBox[myBox[BoxNear(Gem.x, Gem.y)][5]][j];
myBox[myBox[BoxNear(Gem.x, Gem.y)][5]][j] = myBox[myBox[BoxNear(Gem.x, Gem.y)][5]][(j + 6)];
myBox[myBox[BoxNear(Gem.x, Gem.y)][5]][(j + 6)] = myBox[19][j];
j = (j + 1);
};
};
};
};
try {
removeChild(Box[50]);
} catch(err:Error) {
};
Gem.addEventListener(MouseEvent.MOUSE_DOWN, pickupGem);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
};
trace("remove5435");
removeEventListener(Event.ENTER_FRAME, onEnterFrameGem);
if ((((((((((Gem.x == 320)) && ((Gem.y == 150)))) && ((Level == 1)))) && ((Box[3].x == 320)))) && ((Box[3].y == 150)))){
try {
addChild(Box[36]);
Box[36].doubleClickEnabled = false;
Box[36].mouseChildren = false;
Box[36].mouseEnabled = false;
Box[36].gotoAndPlay(1);
Box[35].alpha = 0;
removeChild(Box[35]);
} catch(err:Error) {
trace((err.message + "What a fuck"));
};
};
};
if ((((Gem.x == EmptyX)) && ((Gem.y == EmptyY)))){
Box[0].x = StartGemCoordX;
Box[0].y = StartGemCoordY;
NumHod++;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
trace(("NumHod " + NumHod));
};
}
public function starts2(_arg1:MouseEvent):void{
kit = false;
preloader.btn_play.gotoAndStop(1);
preloader.play();
stage.removeEventListener(MouseEvent.MOUSE_UP, starts2);
gotoAndPlay("Play");
channel6 = D_Slide_back1.play(0, 10000);
}
public function Playback():void{
St = false;
trace("Neeeeeeeeeeeeeeeee");
channel3.removeEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
}
function frame2989(){
stop();
L_14complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_14);
trace(("Level = " + Level));
}
public function preloader1(){
if (!isUrl(["www.flashgamelicense.com", "flashgamelicense.com"])){
trace("BAD URL!");
PreloaderScroll();
} else {
PreloaderScroll();
};
}
public function pickup(_arg1:MouseEvent):void{
St = false;
trace("function pickup (e:MouseEvent):void");
stage.addEventListener(MouseEvent.MOUSE_UP, place);
EmptyX = Box[0].x;
EmptyY = Box[0].y;
ObjMouseX = mouseX;
ObjMouseY = mouseY;
begin = true;
ItemThere = false;
trace(("begin pic " + begin));
X1 = false;
Y1 = false;
X2 = false;
Y2 = false;
if ((((((_arg1.target == "[object MovieClip]")) || ((_arg1.target == "[object time_ring]")))) || ((_arg1.target == "[object black]")))){
obj = MovieClip(_arg1.target.parent);
} else {
obj = MovieClip(_arg1.target);
};
if (((!((_arg1.target.parent.parent == "[object MainTimeline]"))) && (!((_arg1.target.parent.parent == "[object MovieClip]"))))){
obj = MovieClip(_arg1.target.parent.parent);
};
trace(("\tobj=MovieClip(e.target) " + MovieClip(_arg1.target)));
trace(("\tobj=MovieClip(e.target p) " + MovieClip(_arg1.target.parent)));
trace(("\tobj=MovieClip(e.target .parent) " + MovieClip(_arg1.target.parent.parent)));
trace(("obj.x " + obj.x));
trace((" obj.y; " + obj.y));
StartObjCoordX = obj.x;
StartObjCoordY = obj.y;
GemX = Gem.x;
GemY = Gem.y;
FarObjMouseX = (obj.x - mouseX);
FarObjMouseY = (obj.y - mouseY);
trace(((FarObjMouseX + " ") + FarObjMouseY));
stage.addEventListener(MouseEvent.MOUSE_MOVE, changeXY);
}
public function onEnterFrameCloseEnd6(_arg1:Event){
if (L_06complete.currentFrame == L_06complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd6);
};
}
public function onEnterFrameCloseEnd7(_arg1:Event){
if (L_07complete.currentFrame == L_07complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd7);
};
}
public function onEnterFrameCloseEnd3(_arg1:Event){
if (L_03complete.currentFrame == L_03complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd3);
};
}
public function onEnterFrameCloseEnd4(_arg1:Event){
if (L_04complete.currentFrame == L_04complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd4);
};
}
public function onEnterFrameCloseEnd9(_arg1:Event){
if (L_09complete.currentFrame == L_09complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd9);
};
}
public function onEnterFrameCloseEnd2(_arg1:Event){
if (L_02complete.currentFrame == L_02complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd2);
};
}
public function onEnterFrameCloseEnd5(_arg1:Event){
if (L_05complete.currentFrame == L_05complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd5);
};
}
function frame4931(){
stop();
L_24complete.btn_play_again.addEventListener(MouseEvent.MOUSE_DOWN, newcont_24);
trace(("Level = " + Level));
}
public function FormulaUp(_arg1:MovieClip){
var aParam = _arg1;
if ((((aParam.currentFrame >= 104)) && ((aParam.currentFrame < 135)))){
aParam.TotalScore.text = TotalScoreLast;
aParam.TotalScore.embedFonts = true;
};
if ((((aParam.currentFrame >= 114)) && ((aParam.currentFrame < 135)))){
aParam.Score.text = 0;
aParam.Score.embedFonts = true;
};
if ((((aParam.currentFrame > 135)) && ((aParam.currentFrame <= 160)))){
aParam.Score.text = Score;
aParam.Score.embedFonts = true;
};
if ((((aParam.currentFrame > 135)) && ((aParam.currentFrame < 145)))){
aParam.TotalScore.text = TotalScore;
aParam.TotalScore.embedFonts = true;
};
if ((((aParam.currentFrame >= 145)) && ((aParam.currentFrame <= 160)))){
aParam.TotalScore.text = TotalScore;
aParam.TotalScore.embedFonts = true;
removeEventListener(Event.ENTER_FRAME, onEnterFrameFormula);
Score1 = 0;
SpeedTest = 0;
};
if (aParam.currentFrame == 135){
SpeedTest++;
if (SpeedTest <= (SpeedCount + 1)){
trace("F3_2");
trace(("Score " + Score));
trace(("SpeedCount " + SpeedCount));
Score1 = (Score1 + (Score / SpeedCount));
trace(("Score1 " + Score1));
trace("F3_3");
Score2 = (Score2 + (Score / SpeedCount));
try {
aParam.Score.text = Score1.toFixed(0);
aParam.Score.embedFonts = true;
} catch(err:Error) {
};
trace("F3_4");
if (Score1 >= Score){
trace("F4");
Score1 = Score;
aParam.Score.text = Score;
aParam.Score.embedFonts = true;
};
trace("F5");
trace(("Score " + Score));
trace(("Score2 " + Score2));
if (Score2 >= TotalScore){
trace("F6");
Score2 = TotalScore;
};
try {
aParam.TotalScore.text = Score2.toFixed(0);
aParam.TotalScore.embedFonts = true;
TotalScoreLast = TotalScore;
} catch(err:Error) {
};
};
};
}
public function FormulaUpEnd(_arg1:MovieClip){
var aParam = _arg1;
if ((((aParam.currentFrame >= 247)) && ((aParam.currentFrame < 278)))){
aParam.TotalScore.text = TotalScoreLast;
aParam.TotalScore.embedFonts = true;
};
if ((((aParam.currentFrame >= 0x0101)) && ((aParam.currentFrame < 278)))){
aParam.Score.text = 0;
aParam.Score.embedFonts = true;
};
if ((((aParam.currentFrame > 278)) && ((aParam.currentFrame <= 304)))){
aParam.Score.text = Score;
aParam.Score.embedFonts = true;
};
if ((((aParam.currentFrame > 278)) && ((aParam.currentFrame < 288)))){
aParam.TotalScore.text = TotalScore;
aParam.TotalScore.embedFonts = true;
};
if ((((aParam.currentFrame >= 288)) && ((aParam.currentFrame <= 304)))){
aParam.TotalScore.text = TotalScore;
aParam.TotalScore.embedFonts = true;
removeEventListener(Event.ENTER_FRAME, onEnterFrameFormula);
Score1 = 0;
SpeedTest = 0;
};
if (aParam.currentFrame == 278){
SpeedTest++;
if (SpeedTest <= (SpeedCount + 1)){
trace("F3_2");
trace(("Score " + Score));
trace(("SpeedCount " + SpeedCount));
Score1 = (Score1 + (Score / SpeedCount));
trace(("Score1 " + Score1));
trace("F3_3");
Score2 = (Score2 + (Score / SpeedCount));
try {
aParam.Score.text = Score1.toFixed(0);
aParam.Score.embedFonts = true;
} catch(err:Error) {
};
trace("F3_4");
if (Score1 >= Score){
trace("F4");
Score1 = Score;
aParam.Score.text = Score;
aParam.Score.embedFonts = true;
};
trace("F5");
trace(("Score " + Score));
trace(("Score2 " + Score2));
if (Score2 >= TotalScore){
trace("F6");
Score2 = TotalScore;
};
try {
aParam.TotalScore.text = Score2.toFixed(0);
aParam.TotalScore.embedFonts = true;
TotalScoreLast = TotalScore;
} catch(err:Error) {
};
};
};
}
public function onEnterFrameCloseEnd8(_arg1:Event){
if (L_08complete.currentFrame == L_08complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd8);
};
}
public function changeXY(_arg1:MouseEvent):void{
var dec:int;
var e = _arg1;
trace("function changeXY(e:MouseEvent):void");
if (begin){
if ((((GemX == StartObjCoordX)) && ((GemY == StartObjCoordY)))){
ItemThere = true;
};
if ((((EmptyX == (obj.x - 90))) && ((EmptyY == obj.y)))){
X1 = true;
} else {
if ((((EmptyX == (obj.x + 90))) && ((EmptyY == obj.y)))){
X2 = true;
} else {
if ((((EmptyY == (obj.y - 90))) && ((EmptyX == obj.x)))){
Y1 = true;
} else {
if ((((EmptyY == (obj.y + 90))) && ((EmptyX == obj.x)))){
Y2 = true;
};
};
};
};
trace(("X " + X1));
trace(("begin ch " + begin));
trace(("X1 " + X1));
trace(("X2 " + X2));
trace(("Y1 " + Y1));
trace(("Y2 " + Y2));
};
trace(("ItemThere " + ItemThere));
trace(("Gem.x " + Gem.x));
trace(("Gem.y " + Gem.y));
if (((((((((((X1) && ((obj.x <= StartObjCoordX)))) && (((mouseX + FarObjMouseX) <= StartObjCoordX)))) && ((obj.x >= EmptyX)))) && (((mouseX + FarObjMouseX) >= EmptyX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = (mouseX + FarObjMouseX);
Gem.x = obj.x;
} else {
obj.x = (mouseX + FarObjMouseX);
};
};
if (((((X1) && (((mouseX + FarObjMouseX) < EmptyX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = EmptyX;
Gem.x = obj.x;
} else {
obj.x = EmptyX;
};
};
if (((((X1) && (((mouseX + FarObjMouseX) > StartObjCoordX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = StartObjCoordX;
Gem.x = obj.x;
} else {
obj.x = StartObjCoordX;
};
};
if (((((((((((X2) && ((obj.x >= StartObjCoordX)))) && (((mouseX + FarObjMouseX) >= StartObjCoordX)))) && ((obj.x <= EmptyX)))) && (((mouseX + FarObjMouseX) <= EmptyX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = (mouseX + FarObjMouseX);
Gem.x = obj.x;
} else {
obj.x = (mouseX + FarObjMouseX);
};
};
if (((((X2) && (((mouseX + FarObjMouseX) > EmptyX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = EmptyX;
Gem.x = obj.x;
} else {
obj.x = EmptyX;
};
};
if (((((X2) && (((mouseX + FarObjMouseX) < StartObjCoordX)))) && ((obj.y == EmptyY)))){
if (ItemThere){
obj.x = StartObjCoordX;
Gem.x = obj.x;
} else {
obj.x = StartObjCoordX;
};
};
if (((((((((Y1) && ((((obj.y <= StartObjCoordY)) && ((obj.x == EmptyX)))))) && (((mouseY + FarObjMouseY) <= StartObjCoordY)))) && ((obj.y >= EmptyY)))) && (((mouseY + FarObjMouseY) >= EmptyY)))){
if (ItemThere){
obj.y = (mouseY + FarObjMouseY);
Gem.y = obj.y;
} else {
obj.y = (mouseY + FarObjMouseY);
};
};
if (((((Y1) && (((mouseY + FarObjMouseY) < EmptyY)))) && ((obj.x == EmptyX)))){
if (ItemThere){
obj.y = EmptyY;
Gem.y = obj.y;
} else {
obj.y = EmptyY;
};
};
if (((((Y1) && (((mouseY + FarObjMouseY) > StartObjCoordY)))) && ((obj.x == EmptyX)))){
if (ItemThere){
obj.y = StartObjCoordY;
Gem.x = obj.x;
} else {
obj.x = StartObjCoordX;
};
};
if (((((((((Y2) && ((((obj.y >= StartObjCoordY)) && ((obj.x == EmptyX)))))) && (((mouseY + FarObjMouseY) >= StartObjCoordY)))) && ((obj.y <= EmptyY)))) && (((mouseY + FarObjMouseY) <= EmptyY)))){
if (ItemThere){
obj.y = (mouseY + FarObjMouseY);
Gem.y = obj.y;
} else {
obj.y = (mouseY + FarObjMouseY);
};
};
if (((((Y2) && (((mouseY + FarObjMouseY) > EmptyY)))) && ((obj.x == EmptyX)))){
if (ItemThere){
obj.y = EmptyY;
Gem.y = obj.y;
} else {
obj.y = EmptyY;
};
};
if (((((Y2) && (((mouseY + FarObjMouseY) < StartObjCoordY)))) && ((obj.x == EmptyX)))){
if (ItemThere){
obj.y = StartObjCoordY;
Gem.x = obj.x;
} else {
obj.x = StartObjCoordX;
};
};
if ((((((((St == false)) && (!((obj.y == StartObjCoordY))))) && (!((obj.y == EmptyY))))) || ((((((St == false)) && (!((obj.x == EmptyX))))) && (!((obj.x == StartObjCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
trace(("StartObjCoordX " + StartObjCoordX));
trace(("StartObjCoordY " + StartObjCoordY));
trace(("level_begin1.obj.x " + obj.x));
trace(("level_begin1.obj.y " + obj.y));
trace(("ObjMouseX " + ObjMouseX));
trace(("ObjMouseY " + ObjMouseY));
begin = false;
}
public function rarrow(_arg1:MouseEvent):void{
var e = _arg1;
channel7 = button1.play(1, 1);
Box[32].arrow_right.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, rarrow2);
try {
Box[32].arrow_right.removeEventListener(MouseEvent.MOUSE_DOWN, rarrow);
Box[32].btn_closeh1.removeEventListener(MouseEvent.MOUSE_DOWN, cl1);
} catch(err:Error) {
trace(err);
};
}
public function changeXYGem(_arg1:MouseEvent):void{
var e = _arg1;
trace("function changeXYGem (e:MouseEvent):void");
if (begin){
kar = BoxNear(Gem.x, Gem.y);
if (BoxNear(Gem.x, Gem.y) < 15){
trace("Ku");
ItemThere = true;
};
if ((((((GemMouseX > mouseX)) && ((EmptyX == (Gem.x - 90))))) && ((EmptyY == Gem.y)))){
X1 = true;
trace("Ku2");
} else {
if ((((((GemMouseX < mouseX)) && ((EmptyX == (Gem.x + 90))))) && ((EmptyY == Gem.y)))){
X2 = true;
trace("Ku3");
} else {
if ((((((GemMouseY > mouseY)) && ((EmptyY == (Gem.y - 90))))) && ((EmptyX == Gem.x)))){
Y1 = true;
trace("Ku4");
} else {
if ((((((GemMouseY < mouseY)) && ((EmptyY == (Gem.y + 90))))) && ((EmptyX == Gem.x)))){
Y2 = true;
trace("Ku5");
};
};
};
};
trace("Kuramba");
if (((((((X1) || (X2))) || (Y1))) || (Y2))){
trace("not gem move");
} else {
ItemThere = false;
try {
if ((((((GemMouseX > mouseX)) && ((BoxNear((Gem.x - 90), Gem.y) <= 15)))) && ((myBox[BoxNear((Gem.x - 90), Gem.y)][1] == 1)))){
ObjL = BoxNear((Gem.x - 90), Gem.y);
Xg1 = true;
} else {
if ((((((GemMouseX < mouseX)) && ((BoxNear((Gem.x + 90), Gem.y) <= 15)))) && ((myBox[BoxNear((Gem.x + 90), Gem.y)][3] == 1)))){
ObjR = BoxNear((Gem.x + 90), Gem.y);
Xg2 = true;
};
if ((((((GemMouseY > mouseY)) && ((BoxNear(Gem.x, (Gem.y - 90)) <= 15)))) && ((myBox[BoxNear(Gem.x, (Gem.y - 90))][2] == 1)))){
ObjU = BoxNear(Gem.x, (Gem.y - 90));
Yg1 = true;
} else {
if ((((((GemMouseY < mouseY)) && ((BoxNear(Gem.x, (Gem.y + 90)) <= 15)))) && ((myBox[BoxNear(Gem.x, (Gem.y + 90))][0] == 1)))){
ObjD = BoxNear(Gem.x, (Gem.y + 90));
Yg2 = true;
};
};
};
} catch(err:Error) {
trace(err.message);
};
};
trace(("Xg1 " + Xg1));
trace(("Xg2 " + Xg2));
trace(("Yg1 " + Yg1));
trace(("Yg2 " + Yg2));
};
trace("Kuramba2");
if (((Xg1) && (Xg2))){
Xg2 = false;
};
if (((Xg1) && (Yg1))){
Yg1 = false;
};
if (((Xg1) && (Yg2))){
Yg2 = false;
};
if (((Xg2) && (Yg1))){
Yg1 = false;
};
if (((Xg2) && (Yg2))){
Yg2 = false;
};
if (((Yg1) && (Yg2))){
Yg2 = false;
};
if (((((((((((X1) && ((Box[kar].x <= StartObjCoordX)))) && (((mouseX + FarObjMouseX) <= StartObjCoordX)))) && ((Box[kar].x >= EmptyX)))) && (((mouseX + FarObjMouseX) >= EmptyX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
if ((((((((St == false)) && (!((Gem.y == StartGemCoordY))))) && (!((Gem.y == EmptyY))))) || ((((((St == false)) && (!((Gem.x == EmptyX))))) && (!((Gem.x == StartGemCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
Box[kar].x = (mouseX + FarObjMouseX);
Gem.x = Box[kar].x;
} else {
Box[kar].x = (mouseX + FarObjMouseX);
};
};
if (((((X1) && (((mouseX + FarObjMouseX) < EmptyX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
Box[kar].x = EmptyX;
Gem.x = Box[kar].x;
trace("lalalala");
} else {
Box[kar].x = EmptyX;
};
};
if (((((X1) && (((mouseX + FarObjMouseX) > StartObjCoordX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
Box[kar].x = StartObjCoordX;
Gem.x = Box[kar].x;
} else {
Box[kar].x = StartObjCoordX;
};
};
if (((((((((((X2) && ((Box[kar].x >= StartObjCoordX)))) && (((mouseX + FarObjMouseX) >= StartObjCoordX)))) && ((Box[kar].x <= EmptyX)))) && (((mouseX + FarObjMouseX) <= EmptyX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
if ((((((((St == false)) && (!((Gem.y == StartGemCoordY))))) && (!((Gem.y == EmptyY))))) || ((((((St == false)) && (!((Gem.x == EmptyX))))) && (!((Gem.x == StartGemCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
Box[kar].x = (mouseX + FarObjMouseX);
trace("lalalala2");
Gem.x = Box[kar].x;
} else {
trace("lalalala2222");
Box[kar].x = (mouseX + FarObjMouseX);
};
};
if (((((X2) && (((mouseX + FarObjMouseX) > EmptyX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
Box[kar].x = EmptyX;
Gem.x = Box[kar].x;
} else {
Box[kar].x = EmptyX;
};
};
if (((((X2) && (((mouseX + FarObjMouseX) < StartObjCoordX)))) && ((Box[kar].y == EmptyY)))){
if (ItemThere){
Box[kar].x = StartObjCoordX;
Gem.x = Box[kar].x;
} else {
Box[kar].x = StartObjCoordX;
};
};
if (((((((((Y1) && ((((Box[kar].y <= StartObjCoordY)) && ((Box[kar].x == EmptyX)))))) && (((mouseY + FarObjMouseY) <= StartObjCoordY)))) && ((Box[kar].y >= EmptyY)))) && (((mouseY + FarObjMouseY) >= EmptyY)))){
if (ItemThere){
if ((((((((St == false)) && (!((Gem.y == StartGemCoordY))))) && (!((Gem.y == EmptyY))))) || ((((((St == false)) && (!((Gem.x == EmptyX))))) && (!((Gem.x == StartGemCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
Box[kar].y = (mouseY + FarObjMouseY);
Gem.y = Box[kar].y;
} else {
Box[kar].y = (mouseY + FarObjMouseY);
};
};
if (((((Y1) && (((mouseY + FarObjMouseY) < EmptyY)))) && ((Box[kar].x == EmptyX)))){
if (ItemThere){
Box[kar].y = EmptyY;
Gem.y = Box[kar].y;
} else {
Box[kar].y = EmptyY;
};
};
if (((((Y1) && (((mouseY + FarObjMouseY) > StartObjCoordY)))) && ((Box[kar].x == EmptyX)))){
if (ItemThere){
Box[kar].y = StartObjCoordY;
Gem.y = Box[kar].y;
} else {
Box[kar].y = StartObjCoordY;
};
};
if (((((((((Y2) && ((((Box[kar].y >= StartObjCoordY)) && ((Box[kar].x == EmptyX)))))) && (((mouseY + FarObjMouseY) >= StartObjCoordY)))) && ((Box[kar].y <= EmptyY)))) && (((mouseY + FarObjMouseY) <= EmptyY)))){
if (ItemThere){
if ((((((((St == false)) && (!((Gem.y == StartGemCoordY))))) && (!((Gem.y == EmptyY))))) || ((((((St == false)) && (!((Gem.x == EmptyX))))) && (!((Gem.x == StartGemCoordX))))))){
trace("Daaaaaaaaaaaa");
channel3 = stone_mov1.play(50, 1);
channel3.addEventListener(Event.SOUND_COMPLETE, function (){
Playback();
});
St = true;
};
Box[kar].y = (mouseY + FarObjMouseY);
Gem.y = Box[kar].y;
} else {
Box[kar].y = (mouseY + FarObjMouseY);
};
};
if (((((Y2) && (((mouseY + FarObjMouseY) > EmptyY)))) && ((Box[kar].x == EmptyX)))){
if (ItemThere){
Box[kar].y = EmptyY;
Gem.y = Box[kar].y;
} else {
Box[kar].y = EmptyY;
};
};
if (((((Y2) && (((mouseY + FarObjMouseY) < StartObjCoordY)))) && ((Box[kar].x == EmptyX)))){
if (ItemThere){
Box[kar].y = StartObjCoordY;
Gem.y = Box[kar].y;
} else {
Box[kar].y = StartObjCoordY;
};
};
if (((((((((((Xg1) && ((myBox[kar][3] == 1)))) && ((Gem.x <= StartGemCoordX)))) && ((Gem.x >= (StartGemCoordX - 90))))) && (((mouseX + FarGemMouseX) <= StartGemCoordX)))) && (((mouseX + FarGemMouseX) >= (StartGemCoordX - 90))))){
Gem.x = (mouseX + FarGemMouseX);
if ((((((((((St2 == false)) && (!((Gem.x == (StartGemCoordX - 90)))))) && (!((Gem.x == StartGemCoordX))))) && (!((Gem.x == (StartGemCoordX + 90)))))) || (((((((!((Gem.y == StartGemCoordY))) && ((St2 == false)))) && (!((Gem.y == (StartGemCoordY - 90)))))) && (!((Gem.y == (StartGemCoordY + 90)))))))){
channel5 = talismsn_movie1.play();
channel5.addEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
St2 = true;
};
};
if (((Xg1) && (((mouseX + FarGemMouseX) < (StartGemCoordX - 90))))){
Gem.x = (StartGemCoordX - 90);
};
if (((Xg1) && (((mouseX + FarGemMouseX) > StartGemCoordX)))){
Gem.x = StartGemCoordX;
};
if (((((((((((Xg2) && ((myBox[kar][1] == 1)))) && ((Gem.x >= StartGemCoordX)))) && ((Gem.x <= (StartGemCoordX + 90))))) && (((mouseX + FarGemMouseX) >= StartGemCoordX)))) && (((mouseX + FarGemMouseX) <= (StartGemCoordX + 90))))){
Gem.x = (mouseX + FarGemMouseX);
if ((((((((((St2 == false)) && (!((Gem.x == (StartGemCoordX - 90)))))) && (!((Gem.x == StartGemCoordX))))) && (!((Gem.x == (StartGemCoordX + 90)))))) || (((((((!((Gem.y == StartGemCoordY))) && ((St2 == false)))) && (!((Gem.y == (StartGemCoordY - 90)))))) && (!((Gem.y == (StartGemCoordY + 90)))))))){
channel5 = talismsn_movie1.play();
channel5.addEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
St2 = true;
};
};
if (((Xg2) && (((mouseX + FarGemMouseX) > (StartGemCoordX + 90))))){
Gem.x = (StartGemCoordX + 90);
};
if (((Xg2) && (((mouseX + FarGemMouseX) < StartGemCoordX)))){
Gem.x = StartGemCoordX;
};
if (((((((((((Yg1) && ((myBox[kar][0] == 1)))) && ((Gem.y <= StartGemCoordY)))) && ((Gem.y >= (StartGemCoordY - 90))))) && (((mouseY + FarGemMouseY) <= StartGemCoordY)))) && (((mouseY + FarGemMouseY) >= (StartGemCoordY - 90))))){
Gem.y = (mouseY + FarGemMouseY);
if ((((((((((St2 == false)) && (!((Gem.x == (StartGemCoordX - 90)))))) && (!((Gem.x == StartGemCoordX))))) && (!((Gem.x == (StartGemCoordX + 90)))))) || (((((((!((Gem.y == StartGemCoordY))) && ((St2 == false)))) && (!((Gem.y == (StartGemCoordY - 90)))))) && (!((Gem.y == (StartGemCoordY + 90)))))))){
channel5 = talismsn_movie1.play();
channel5.addEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
St2 = true;
};
};
if (((Yg1) && (((mouseY + FarGemMouseY) < (StartGemCoordY - 90))))){
Gem.y = (StartGemCoordY - 90);
};
if (((Yg1) && (((mouseY + FarGemMouseY) > StartGemCoordY)))){
Gem.y = StartGemCoordY;
};
if (((((((((((Yg2) && ((myBox[kar][2] == 1)))) && ((Gem.y >= StartGemCoordY)))) && ((Gem.y <= (StartGemCoordY + 90))))) && (((mouseY + FarGemMouseY) >= StartGemCoordY)))) && (((mouseY + FarGemMouseY) <= (StartGemCoordY + 90))))){
Gem.y = (mouseY + FarGemMouseY);
if ((((((((((St2 == false)) && (!((Gem.x == (StartGemCoordX - 90)))))) && (!((Gem.x == StartGemCoordX))))) && (!((Gem.x == (StartGemCoordX + 90)))))) || (((((((!((Gem.y == StartGemCoordY))) && ((St2 == false)))) && (!((Gem.y == (StartGemCoordY - 90)))))) && (!((Gem.y == (StartGemCoordY + 90)))))))){
channel5 = talismsn_movie1.play();
channel5.addEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
St2 = true;
};
};
if (((Yg2) && (((mouseY + FarGemMouseY) > (StartGemCoordY + 90))))){
Gem.y = (StartGemCoordY + 90);
};
if (((Yg2) && (((mouseY + FarGemMouseY) < StartGemCoordY)))){
Gem.y = StartGemCoordY;
};
begin = false;
if ((((((((((((Gem.x == StartGemCoordX)) && ((Gem.y == StartGemCoordY)))) || ((((Gem.x == StartGemCoordX)) && ((Gem.y == (StartGemCoordY + 90))))))) || ((((Gem.x == StartGemCoordX)) && ((Gem.y == (StartGemCoordY - 90))))))) || ((((Gem.x == (StartGemCoordX + 90))) && ((Gem.y == StartGemCoordY)))))) || ((((Gem.x == (StartGemCoordX - 90))) && ((Gem.y == StartGemCoordY)))))){
trace("kuyyaaaa");
if ((((Gem.x == EmptyX)) && ((Gem.y == EmptyY)))){
Box[0].x = StartGemCoordX;
Box[0].y = StartGemCoordY;
NumHod++;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
trace(("NumHod " + NumHod));
};
kar = BoxNear(Gem.x, Gem.y);
trace(("Closr:Boolean " + Closr));
if ((((((myBox[kar][4] > 0)) && ((Box[kar].currentFrame == 1)))) || ((((myBox[kar][4] > 0)) && ((Box[kar].currentFrame == 41)))))){
if (!Closr){
CloseFishka(kar);
};
};
begin = true;
EmptyX = Box[0].x;
EmptyY = Box[0].y;
GemMouseX = mouseX;
GemMouseY = mouseY;
BoxThere = false;
X1 = false;
Y1 = false;
X2 = false;
Y2 = false;
Xg1 = false;
Yg1 = false;
Xg2 = false;
Yg2 = false;
StartGemCoordX = Gem.x;
StartGemCoordY = Gem.y;
StartObjCoordX = Box[kar].x;
StartObjCoordY = Box[kar].y;
GemX = Gem.x;
GemY = Gem.y;
FarGemMouseX = (Gem.x - mouseX);
FarGemMouseY = (Gem.y - mouseY);
FarObjMouseX = (Box[kar].x - mouseX);
FarObjMouseY = (Box[kar].y - mouseY);
};
}
public function clickHide(_arg1:MouseEvent):void{
hiden.x = 800;
}
public function moregameslink11(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
trace("Raaaaboootaet");
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame3890(){
stop();
L_19complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_19);
trace(("Level = " + Level));
}
public function pickupGem(_arg1:MouseEvent):void{
Closr = false;
trace("function pickupGem (e:MouseEvent):void");
kar = BoxNear(Gem.x, Gem.y);
trace("1111111111111111");
begin = true;
stage.addEventListener(MouseEvent.MOUSE_UP, placeGem);
EmptyX = Box[0].x;
EmptyY = Box[0].y;
GemMouseX = mouseX;
GemMouseY = mouseY;
St2 = false;
St = false;
BoxThere = false;
X1 = false;
Y1 = false;
X2 = false;
Y2 = false;
Xg1 = false;
Yg1 = false;
Xg2 = false;
Yg2 = false;
StartGemCoordX = Gem.x;
StartGemCoordY = Gem.y;
trace(("BoxUnder " + BoxNear(Gem.x, Gem.y)));
trace((("---------" + Box[2].x) + "--------"));
trace(Box[0]);
StartObjCoordX = Box[kar].x;
StartObjCoordY = Box[kar].y;
trace(("ObjD" + ObjD));
if (_arg1.target == "[object MovieClip]"){
obj = MovieClip(_arg1.target.parent);
} else {
obj = MovieClip(_arg1.target);
};
trace(("\tobj=MovieClip(e.target) " + MovieClip(_arg1.target)));
trace(("\tobj=MovieClip(e.target p) " + MovieClip(_arg1.target.parent)));
trace(("obj.x " + obj.x));
trace((" obj.y; " + obj.y));
GemX = obj.x;
GemY = obj.y;
FarGemMouseX = (Gem.x - mouseX);
FarGemMouseY = (Gem.y - mouseY);
trace(("FarGemMouseX " + FarGemMouseX));
FarObjMouseX = (Box[kar].x - mouseX);
FarObjMouseY = (Box[kar].y - mouseY);
trace(((FarObjMouseX + " ") + FarObjMouseY));
trace((("objjjj" + " ") + Box[kar].x));
stage.addEventListener(MouseEvent.MOUSE_MOVE, changeXYGem);
trace(("myBox[kar].x " + Box[kar].x));
trace(("myBox[kar].y " + Box[kar].y));
}
function frame1006(){
stop();
trace("tak");
L_03complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_03);
trace(("Level = " + Level));
}
public function resets2(_arg1:MouseEvent):void{
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
NumHod = 0;
stage.removeEventListener(MouseEvent.MOUSE_UP, resets2);
menu_bar.btn_reset.gotoAndStop(1);
Gem2.x = Gem.x;
Gem2.y = Gem.y;
container2.removeChild(Gem);
resetyea = true;
level_start();
addChild(Gem2);
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS2);
Gem2.gotoAndPlay("itemstart");
addEventListener(Event.ENTER_FRAME, delGem2);
minuteTimer.reset();
minuteTimer.start();
menu_bar.line.x = -163.8;
}
public function resets3():void{
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
NumHod = 0;
Gem2.x = Gem.x;
Gem2.y = Gem.y;
container2.removeChild(Gem);
resetyea = true;
level_start();
addChild(Gem2);
Gem2.gotoAndPlay("itemstart");
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS2);
addEventListener(Event.ENTER_FRAME, delGem2);
minuteTimer.reset();
minuteTimer.start();
menu_bar.line.x = -163.8;
}
function frame827(){
stop();
L_02complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_02);
trace(("Level = " + Level));
}
public function onEnterFrameCloseCube(_arg1:Event){
var o:int;
var event = _arg1;
try {
if (soundon == 0){
menu_bar.btn_sound.gotoAndStop(2);
};
} catch(err:Error) {
trace(err);
};
try {
if (sp == 1){
trace("fark1");
removeChild(imageBmp);
addChild(Box[27]);
trace("fark11");
Box[27].gotoAndPlay((level_begin1.cube_close.currentFrame + 1));
sp = 2;
trace("fark2");
};
if (Box[27].currentFrame == 9){
channel10 = border_open_close_21.play();
};
if (Box[27].currentFrame == 60){
channel10 = border_open_close_21.play();
};
if ((((Box[27].currentFrame > 9)) && ((Box[27].currentFrame < 48)))){
trace(("cot " + cot));
if (StartGemCoordX == 140){
cot = (cot + 0.24);
Gem.x = (Box[27].left.x + 140);
Gem.x = (Gem.x + cot);
Box[20].x = Gem.x;
};
if (StartGemCoordX == 500){
cot = (cot + 0.24);
Gem.x = (Box[27].right.x + 500);
Gem.x = (Gem.x - cot);
Box[20].x = Gem.x;
};
};
if ((((Box[27].currentFrame > 37)) && ((Box[27].currentFrame < 48)))){
if (StartGemCoordX == 230){
cot = (cot + 0.1);
Gem.x = (Box[27].left.x + 148);
Gem.x = (Gem.x + cot);
Box[20].x = Gem.x;
};
if (StartGemCoordX == 410){
cot = (cot + 0.7);
Gem.x = (Box[27].right.x + 498);
Gem.x = (Gem.x - cot);
Box[20].x = Gem.x;
};
};
if ((((Box[27].currentFrame > 59)) && ((Box[27].currentFrame < 78)))){
trace(("fark3" + Box[27].currentFrame));
if (StartGemCoordY == 150){
Gem.y = (Box[27].down.y + 150);
Box[20].y = Gem.y;
};
if (StartGemCoordY == 330){
trace(("Box[27].up.y " + Box[27].upper.y));
Gem.y = (Box[27].upper.y + 330);
trace(("fark6" + Box[27].currentFrame));
Box[20].y = Gem.y;
};
};
if (Box[27].currentFrame == Box[27].totalFrames){
channel10.stop();
Gem.y = 240;
Box[20].y = Gem.y;
Gem.x = 320;
Box[20].x = Gem.x;
try {
removeChild(Box[50]);
} catch(err:Error) {
};
if (MainMenu == 0){
LevelCount = Level;
trace("kjk");
Score2 = TotalScore;
Formula();
NumHod = 0;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
addEventListener(Event.ENTER_FRAME, onEnterFrameFormula);
switch (Level){
case 1:
gotoAndPlay("Menu1");
trace("Menu1");
break;
case 2:
gotoAndPlay("Menu2");
break;
case 3:
gotoAndPlay("Menu3");
break;
case 4:
gotoAndPlay("Menu4");
break;
case 5:
gotoAndPlay("Menu5");
break;
case 6:
gotoAndPlay("Menu6");
break;
case 7:
gotoAndPlay("Menu7");
break;
case 8:
gotoAndPlay("Menu8");
break;
case 9:
gotoAndPlay("Menu9");
break;
case 10:
gotoAndPlay("Menu10");
break;
case 11:
gotoAndPlay("Menu11");
break;
case 12:
gotoAndPlay("Menu12");
break;
case 13:
gotoAndPlay("Menu13");
break;
case 14:
gotoAndPlay("Menu14");
break;
case 15:
gotoAndPlay("Menu15");
break;
case 16:
gotoAndPlay("Menu16");
break;
case 17:
gotoAndPlay("Menu17");
break;
case 18:
gotoAndPlay("Menu18");
break;
case 19:
gotoAndPlay("Menu19");
break;
case 20:
gotoAndPlay("Menu20");
break;
case 21:
gotoAndPlay("Menu21");
break;
case 22:
gotoAndPlay("Menu22");
break;
case 23:
gotoAndPlay("Menu23");
break;
case 24:
gotoAndPlay("Menu24");
break;
};
trace("pim");
Level++;
} else {
trace("Limbobo");
Box[40].x = 320;
Box[40].y = 240;
addChild(Box[40]);
level_begin1.cube_close.stop();
level_begin1.cube_close.alpha = 0;
trace("1");
Box[40].gotoAndPlay(1);
addEventListener(Event.ENTER_FRAME, onEnterFrametoMenu);
trace("2");
};
trace("fark7");
o = (container2.numChildren - 1);
while (o >= 0) {
container2.removeChildAt(o);
o = (o - 1);
};
removeChild(Box[27]);
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseCube);
};
} catch(err:Error) {
trace(err);
};
}
public function clos(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
Box[31].btn_close_cr.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, clos2);
}
public function onTick(_arg1:TimerEvent):void{
menu_bar.line.x = (menu_bar.line.x - (18 / (KolTime * 4)));
RestTime = (RestTime - 0.1);
if (RestTime < 0){
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
RestTime = (KolTime * 4);
Box[49].x = 320;
Box[49].y = 240;
container2.addChild(Box[49]);
Box[49].gotoAndPlay(1);
addEventListener(Event.ENTER_FRAME, onEnterFrameTimesup);
};
}
public function onEnterFrametoMenu(_arg1:Event){
var event = _arg1;
if (Box[40].currentFrame == Box[40].totalFrames){
gotoAndPlay("MainMenu1");
ret = true;
removeChild(Box[40]);
removeEventListener(Event.ENTER_FRAME, onEnterFrametoMenu);
try {
L_24complete.alpha = 1;
} catch(err:Error) {
};
try {
level_begin1.cube_close.alpha = 1;
} catch(err:Error) {
};
};
}
public function cl12(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
Box[33].btn_closeh2.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, cl22);
Box[33].arrow_left.removeEventListener(MouseEvent.MOUSE_DOWN, larrow);
Box[33].btn_closeh2.removeEventListener(MouseEvent.MOUSE_DOWN, cl12);
}
public function moregame2(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
Box[30].btn_more_games.gotoAndStop(1);
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregame2);
}
function frame1(){
CPMStarContentSpotID = "3784QFCE1BF66";
ad = new AdLoader(CPMStarContentSpotID);
adBox.addChild(ad);
stage.showDefaultContextMenu = false;
cm = new ContextMenu();
cm.hideBuiltInItems();
trace("bytesTotal 1 ");
stop();
preloader1();
trace("bytesTotal ");
coolb.addEventListener(MouseEvent.MOUSE_DOWN, moregameslink11);
coolb.buttonMode = true;
}
function frame2(){
soundon = 1;
ret = false;
my_fmt = new TextFormat();
my_fmt.font = "Eccentric";
preloader.coolbuddy.addEventListener(MouseEvent.MOUSE_DOWN, moregameslink);
TotalScoreLast = 0;
TotalScore = 0;
Score1 = 0;
SpeedTest = 0;
SpeedCount = 35;
CheaterL = 1;
NumHod = 0;
completeFX = (loaderInfo.applicationDomain.getDefinition("completeFX") as Class);
completeFX1 = new completeFX();
resetsound = (loaderInfo.applicationDomain.getDefinition("resetsound") as Class);
resetsound1 = new resetsound();
border_open_close_2 = (loaderInfo.applicationDomain.getDefinition("border_open_close_2") as Class);
border_open_close_21 = new border_open_close_2();
D_Slide_back = (loaderInfo.applicationDomain.getDefinition("D_Slide_back") as Class);
D_Slide_back1 = new D_Slide_back();
button = (loaderInfo.applicationDomain.getDefinition("button") as Class);
button1 = new button();
fish_down = (loaderInfo.applicationDomain.getDefinition("fish_down") as Class);
fish_down1 = new fish_down();
fish_up = (loaderInfo.applicationDomain.getDefinition("fish_up") as Class);
fish_up1 = new fish_up();
talismsn_movie = (loaderInfo.applicationDomain.getDefinition("talismsn_movie") as Class);
talismsn_movie1 = new talismsn_movie();
stone_mov = (loaderInfo.applicationDomain.getDefinition("stonemov") as Class);
stone_mov1 = new stone_mov();
stone = (loaderInfo.applicationDomain.getDefinition("stone") as Class);
stone1 = new stone();
stoneend = (loaderInfo.applicationDomain.getDefinition("stoneend") as Class);
stoneend1 = new stoneend();
sponsorLogo1 = (loaderInfo.applicationDomain.getDefinition("sponsorLogo") as Class);
darck = (loaderInfo.applicationDomain.getDefinition("darck") as Class);
fish_01 = (loaderInfo.applicationDomain.getDefinition("fish_01") as Class);
fish_02 = (loaderInfo.applicationDomain.getDefinition("fish_02") as Class);
fish_03 = (loaderInfo.applicationDomain.getDefinition("fish_03") as Class);
fish_04 = (loaderInfo.applicationDomain.getDefinition("fish_04") as Class);
fish_05 = (loaderInfo.applicationDomain.getDefinition("fish_05") as Class);
fish_06 = (loaderInfo.applicationDomain.getDefinition("fish_06") as Class);
fish_07 = (loaderInfo.applicationDomain.getDefinition("fish_07") as Class);
fish_08 = (loaderInfo.applicationDomain.getDefinition("fish_08") as Class);
fish_09 = (loaderInfo.applicationDomain.getDefinition("fish_09") as Class);
fish_10 = (loaderInfo.applicationDomain.getDefinition("fish_10") as Class);
fish_11 = (loaderInfo.applicationDomain.getDefinition("fish_11") as Class);
fish_12 = (loaderInfo.applicationDomain.getDefinition("fish_12") as Class);
fish_13 = (loaderInfo.applicationDomain.getDefinition("fish_13") as Class);
fish_14 = (loaderInfo.applicationDomain.getDefinition("fish_14") as Class);
F_base_R = (loaderInfo.applicationDomain.getDefinition("F_base_R") as Class);
F_base_R_in = (loaderInfo.applicationDomain.getDefinition("F_base_R_in") as Class);
F_base_D = (loaderInfo.applicationDomain.getDefinition("F_base_D") as Class);
F_base_D_in = (loaderInfo.applicationDomain.getDefinition("F_base_D_in") as Class);
F_base_L = (loaderInfo.applicationDomain.getDefinition("F_base_L") as Class);
F_base_L_closer = (loaderInfo.applicationDomain.getDefinition("F_base_L_closer") as Class);
F_base_L_in = (loaderInfo.applicationDomain.getDefinition("F_base_L_in") as Class);
F_base_U = (loaderInfo.applicationDomain.getDefinition("F_base_U") as Class);
F_base_U_closer = (loaderInfo.applicationDomain.getDefinition("F_base_U_closer") as Class);
F_base_R_closer = (loaderInfo.applicationDomain.getDefinition("F_base_R_closer") as Class);
F_base_U_in = (loaderInfo.applicationDomain.getDefinition("F_base_U_in") as Class);
fish_01_2_closer = (loaderInfo.applicationDomain.getDefinition("fish_01_2_closer") as Class);
fish_01_closer = (loaderInfo.applicationDomain.getDefinition("fish_01_closer") as Class);
fish_01_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_01_closer_button") as Class);
fish_01_closer_green = (loaderInfo.applicationDomain.getDefinition("fish_01_closer_green") as Class);
fish_01_closer_i_button_gold = (loaderInfo.applicationDomain.getDefinition("fish_01_closer_i_button_gold") as Class);
fish_01_closer_i_button_red = (loaderInfo.applicationDomain.getDefinition("fish_01_closer_i_button_red") as Class);
fish_10_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_10_closer_button") as Class);
fish_10_closer_i_button = (loaderInfo.applicationDomain.getDefinition("fish_10_closer_i_button") as Class);
fish_10_closer_red = (loaderInfo.applicationDomain.getDefinition("fish_10_closer_red") as Class);
fish_11_closer = (loaderInfo.applicationDomain.getDefinition("fish_11_closer") as Class);
fish_11_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_11_closer_button") as Class);
fish_11_closer_button_red = (loaderInfo.applicationDomain.getDefinition("fish_11_closer_button_red") as Class);
fish_11_closer_i_button_green = (loaderInfo.applicationDomain.getDefinition("fish_11_closer_i_button_green") as Class);
fish_11_closer_i_button_red = (loaderInfo.applicationDomain.getDefinition("fish_11_closer_i_button_red") as Class);
fish_12_2_closer = (loaderInfo.applicationDomain.getDefinition("fish_12_2_closer") as Class);
fish_12_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_12_closer_button") as Class);
fish_12_closer_green = (loaderInfo.applicationDomain.getDefinition("fish_12_closer_green") as Class);
fish_13_closer = (loaderInfo.applicationDomain.getDefinition("fish_13_closer") as Class);
fish_13_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_13_closer_button") as Class);
fish_13_closer_button_red = (loaderInfo.applicationDomain.getDefinition("fish_13_closer_button_red") as Class);
fish_13_closer_i_button_green = (loaderInfo.applicationDomain.getDefinition("fish_13_closer_i_button_green") as Class);
fish_02_closer = (loaderInfo.applicationDomain.getDefinition("fish_02_closer") as Class);
fish_02_closer_i_button_gold = (loaderInfo.applicationDomain.getDefinition("fish_02_closer_i_button_gold") as Class);
fish_02_closer_red = (loaderInfo.applicationDomain.getDefinition("fish_02_closer_red") as Class);
fish_02_closeri_button_green = (loaderInfo.applicationDomain.getDefinition("fish_02_closeri_button_green") as Class);
fish_03_2_closer = (loaderInfo.applicationDomain.getDefinition("fish_03_2_closer") as Class);
fish_03_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_03_closer_button") as Class);
fish_03_closer_i_button = (loaderInfo.applicationDomain.getDefinition("fish_03_closer_i_button") as Class);
fish_03_closer_i_button_red = (loaderInfo.applicationDomain.getDefinition("fish_03_closer_i_button_red") as Class);
fish_04_2_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_04_2_closer_button") as Class);
fish_04_3_closer = (loaderInfo.applicationDomain.getDefinition("fish_04_3_closer") as Class);
fish_04_3_closer_i_button_red = (loaderInfo.applicationDomain.getDefinition("fish_04_3_closer_i_button_red") as Class);
fish_04_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_04_closer_button") as Class);
fish_09_closer_button = (loaderInfo.applicationDomain.getDefinition("fish_09_closer_button") as Class);
fish_10_2_closer_i_button = (loaderInfo.applicationDomain.getDefinition("fish_10_2_closer_i_button") as Class);
fish_04_3_closer_i_button_gold = (loaderInfo.applicationDomain.getDefinition("fish_04_3_closer_i_button_gold") as Class);
fish_14_closer = (loaderInfo.applicationDomain.getDefinition("fish_14_closer") as Class);
fish_14_closer_green = (loaderInfo.applicationDomain.getDefinition("fish_14_closer_green") as Class);
fish_14_closer_i_button_green = (loaderInfo.applicationDomain.getDefinition("fish_14_closer_i_button_green") as Class);
L_01_bck = (loaderInfo.applicationDomain.getDefinition("L_01_bck") as Class);
L_02_bck = (loaderInfo.applicationDomain.getDefinition("L_02_bck") as Class);
L_03_bck = (loaderInfo.applicationDomain.getDefinition("L_03_bck") as Class);
L_04_bck = (loaderInfo.applicationDomain.getDefinition("L_04_bck") as Class);
L_05_bck = (loaderInfo.applicationDomain.getDefinition("L_05_bck") as Class);
L_06_bck = (loaderInfo.applicationDomain.getDefinition("L_06_bck") as Class);
L_07_bck = (loaderInfo.applicationDomain.getDefinition("L_07_bck") as Class);
L_08_bck = (loaderInfo.applicationDomain.getDefinition("L_08_bck") as Class);
L_09_bck = (loaderInfo.applicationDomain.getDefinition("L_09_bck") as Class);
L_10_bck = (loaderInfo.applicationDomain.getDefinition("L_10_bck") as Class);
L_11_bck = (loaderInfo.applicationDomain.getDefinition("L_11_bck") as Class);
L_12_bck = (loaderInfo.applicationDomain.getDefinition("L_12_bck") as Class);
L_13_bck = (loaderInfo.applicationDomain.getDefinition("L_13_bck") as Class);
L_14_bck = (loaderInfo.applicationDomain.getDefinition("L_14_bck") as Class);
L_15_bck = (loaderInfo.applicationDomain.getDefinition("L_15_bck") as Class);
L_16_bck = (loaderInfo.applicationDomain.getDefinition("L_16_bck") as Class);
L_17_bck = (loaderInfo.applicationDomain.getDefinition("L_17_bck") as Class);
L_18_bck = (loaderInfo.applicationDomain.getDefinition("L_18_bck") as Class);
L_19_bck = (loaderInfo.applicationDomain.getDefinition("L_19_bck") as Class);
L_20_bck = (loaderInfo.applicationDomain.getDefinition("L_20_bck") as Class);
L_21_bck = (loaderInfo.applicationDomain.getDefinition("L_21_bck") as Class);
L_22_bck = (loaderInfo.applicationDomain.getDefinition("L_22_bck") as Class);
L_23_bck = (loaderInfo.applicationDomain.getDefinition("L_23_bck") as Class);
L_24_bck = (loaderInfo.applicationDomain.getDefinition("L_24_bck") as Class);
L_01_grd = (loaderInfo.applicationDomain.getDefinition("L_01_grd") as Class);
L_02_grd = (loaderInfo.applicationDomain.getDefinition("L_02_grd") as Class);
L_03_grd = (loaderInfo.applicationDomain.getDefinition("L_03_grd") as Class);
L_04_grd = (loaderInfo.applicationDomain.getDefinition("L_04_grd") as Class);
L_05_grd = (loaderInfo.applicationDomain.getDefinition("L_05_grd") as Class);
L_06_grd = (loaderInfo.applicationDomain.getDefinition("L_06_grd") as Class);
L_07_grd = (loaderInfo.applicationDomain.getDefinition("L_07_grd") as Class);
L_08_grd = (loaderInfo.applicationDomain.getDefinition("L_08_grd") as Class);
L_09_grd = (loaderInfo.applicationDomain.getDefinition("L_09_grd") as Class);
L_10_grd = (loaderInfo.applicationDomain.getDefinition("L_10_grd") as Class);
L_11_grd = (loaderInfo.applicationDomain.getDefinition("L_11_grd") as Class);
L_12_grd = (loaderInfo.applicationDomain.getDefinition("L_12_grd") as Class);
L_13_grd = (loaderInfo.applicationDomain.getDefinition("L_13_grd") as Class);
L_14_grd = (loaderInfo.applicationDomain.getDefinition("L_14_grd") as Class);
L_15_grd = (loaderInfo.applicationDomain.getDefinition("L_15_grd") as Class);
L_16_grd = (loaderInfo.applicationDomain.getDefinition("L_16_grd") as Class);
L_17_grd = (loaderInfo.applicationDomain.getDefinition("L_17_grd") as Class);
L_18_grd = (loaderInfo.applicationDomain.getDefinition("L_18_grd") as Class);
L_19_grd = (loaderInfo.applicationDomain.getDefinition("L_19_grd") as Class);
L_20_grd = (loaderInfo.applicationDomain.getDefinition("L_20_grd") as Class);
L_21_grd = (loaderInfo.applicationDomain.getDefinition("L_21_grd") as Class);
L_22_grd = (loaderInfo.applicationDomain.getDefinition("L_22_grd") as Class);
L_23_grd = (loaderInfo.applicationDomain.getDefinition("L_23_grd") as Class);
L_24_grd = (loaderInfo.applicationDomain.getDefinition("L_24_grd") as Class);
L_01_shdw = (loaderInfo.applicationDomain.getDefinition("L_01_shdw") as Class);
L_02_shdw = (loaderInfo.applicationDomain.getDefinition("L_02_shdw") as Class);
L_03_shdw = (loaderInfo.applicationDomain.getDefinition("L_03_shdw") as Class);
L_04_shdw = (loaderInfo.applicationDomain.getDefinition("L_04_shdw") as Class);
L_05_shdw = (loaderInfo.applicationDomain.getDefinition("L_05_shdw") as Class);
L_06_shdw = (loaderInfo.applicationDomain.getDefinition("L_06_shdw") as Class);
L_07_shdw = (loaderInfo.applicationDomain.getDefinition("L_07_shdw") as Class);
L_08_shdw = (loaderInfo.applicationDomain.getDefinition("L_08_shdw") as Class);
L_09_shdw = (loaderInfo.applicationDomain.getDefinition("L_09_shdw") as Class);
L_10_shdw = (loaderInfo.applicationDomain.getDefinition("L_10_shdw") as Class);
L_11_shdw = (loaderInfo.applicationDomain.getDefinition("L_11_shdw") as Class);
L_12_shdw = (loaderInfo.applicationDomain.getDefinition("L_12_shdw") as Class);
L_13_shdw = (loaderInfo.applicationDomain.getDefinition("L_13_shdw") as Class);
L_14_shdw = (loaderInfo.applicationDomain.getDefinition("L_14_shdw") as Class);
L_15_shdw = (loaderInfo.applicationDomain.getDefinition("L_15_shdw") as Class);
L_16_shdw = (loaderInfo.applicationDomain.getDefinition("L_16_shdw") as Class);
L_17_shdw = (loaderInfo.applicationDomain.getDefinition("L_17_shdw") as Class);
L_18_shdw = (loaderInfo.applicationDomain.getDefinition("L_18_shdw") as Class);
L_19_shdw = (loaderInfo.applicationDomain.getDefinition("L_19_shdw") as Class);
L_20_shdw = (loaderInfo.applicationDomain.getDefinition("L_20_shdw") as Class);
L_21_shdw = (loaderInfo.applicationDomain.getDefinition("L_21_shdw") as Class);
L_22_shdw = (loaderInfo.applicationDomain.getDefinition("L_22_shdw") as Class);
L_23_shdw = (loaderInfo.applicationDomain.getDefinition("L_23_shdw") as Class);
L_24_shdw = (loaderInfo.applicationDomain.getDefinition("L_24_shdw") as Class);
item = (loaderInfo.applicationDomain.getDefinition("item") as Class);
Gem2 = new item();
trace(1);
Box = new Array();
myBox2 = new Array();
myBox = new Array();
time_ring = (loaderInfo.applicationDomain.getDefinition("time_ring") as Class);
time_ring1 = new time_ring();
Gem = new item();
imageData = new border1(0, 0);
imageBmp = new Bitmap(imageData);
to_main_menu = (loaderInfo.applicationDomain.getDefinition("to_main_menu") as Class);
Box[40] = new to_main_menu();
Box[41] = new to_main_menu();
timesup = (loaderInfo.applicationDomain.getDefinition("timesup") as Class);
Box[49] = new timesup();
cube_close_border = (loaderInfo.applicationDomain.getDefinition("cube_close_border") as Class);
Box[27] = new cube_close_border();
pauseall = (loaderInfo.applicationDomain.getDefinition("pauseall") as Class);
Box[30] = new pauseall();
credits = (loaderInfo.applicationDomain.getDefinition("credits") as Class);
Box[31] = new credits();
field_fade = (loaderInfo.applicationDomain.getDefinition("field_fade") as Class);
Box[29] = new field_fade();
level_complete = (loaderInfo.applicationDomain.getDefinition("level_complete") as Class);
Box[28] = new level_complete();
grd_all = (loaderInfo.applicationDomain.getDefinition("grd_all") as Class);
Box[26] = new grd_all();
close_shadow = (loaderInfo.applicationDomain.getDefinition("close_shadow") as Class);
Box[25] = new close_shadow();
help_page1 = (loaderInfo.applicationDomain.getDefinition("help_page1") as Class);
Box[32] = new help_page1();
help_page2 = (loaderInfo.applicationDomain.getDefinition("help_page2") as Class);
Box[33] = new help_page2();
black = (loaderInfo.applicationDomain.getDefinition("black") as Class);
Box[0] = new black();
help_ingame_3 = (loaderInfo.applicationDomain.getDefinition("help_ingame_3") as Class);
Box[36] = new help_ingame_3();
help_ingame_2 = (loaderInfo.applicationDomain.getDefinition("help_ingame_2") as Class);
Box[35] = new help_ingame_2();
help_ingame_1 = (loaderInfo.applicationDomain.getDefinition("help_ingame_1") as Class);
Box[34] = new help_ingame_1();
container = new MovieClip();
container2 = new MovieClip();
}
public function newstarts2(_arg1:MouseEvent):void{
var _local2:int;
TotalScore = 0;
TotalScoreLast = 0;
start_game1.btn_new_game.gotoAndStop(1);
start_game1.play();
_local2 = 0;
while (_local2 <= 24) {
trace(("CheaterLevel.text " + CheaterLevel.text));
if (String(_local2) == CheaterLevel.text){
CheaterL = _local2;
};
_local2++;
};
Level = CheaterL;
stage.removeEventListener(MouseEvent.MOUSE_UP, newstarts2);
gate_start_game.play();
gotoAndPlay("Play2");
start_game1.btn_new_game.removeEventListener(MouseEvent.MOUSE_DOWN, newstarts);
start_game1.btn_credits.removeEventListener(MouseEvent.MOUSE_DOWN, cred);
start_game1.btn_continue.removeEventListener(MouseEvent.MOUSE_DOWN, newcontin);
}
public function cl22(_arg1:MouseEvent):void{
minuteTimer.start();
Box[33].btn_closeh2.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, cl22);
Box[33].gotoAndPlay(31);
Box[29].gotoAndPlay(31);
addEventListener(Event.ENTER_FRAME, onEnterFramehelp4);
}
public function BoxNear(_arg1, _arg2){
var _local3:Boolean;
var _local4:int;
_local3 = true;
_local4 = 1;
while (_local4 <= 14) {
if (Box[_local4].x == _arg1){
if (Box[_local4].y == _arg2){
return (_local4);
};
};
_local4++;
};
if (_local3){
return (16);
};
}
public function mainmenu1(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
Box[30].btn_main_menu.gotoAndStop(2);
Box[30].btn_con.removeEventListener(MouseEvent.MOUSE_DOWN, continue1);
Box[30].btn_main_menu.removeEventListener(MouseEvent.MOUSE_DOWN, mainmenu1);
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
stage.addEventListener(MouseEvent.MOUSE_UP, mainmenu2);
}
public function mainmenu2(_arg1:MouseEvent):void{
Box[30].btn_main_menu.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, mainmenu2);
Box[29].gotoAndPlay(31);
Box[30].gotoAndPlay(31);
addEventListener(Event.ENTER_FRAME, Pauseweneed2);
trace("tuk");
}
public function Level1Close():void{
try {
removeEventListener(Event.ENTER_FRAME, onEnterFramelevelComp);
} catch(err:Error) {
};
Box[22].x = 320;
Box[22].y = 240;
Box[23].x = 320;
Box[23].y = 240;
Box[24].x = 320;
Box[24].y = 240;
Box[25].x = 320;
Box[25].y = 240;
Box[26].x = 320;
Box[26].y = 240;
Box[22].alpha = 0.53;
Box[23].alpha = 0;
Box[24].alpha = 0;
Box[25].alpha = 0;
Box[26].alpha = 0;
container2.addChild(Box[24]);
container2.addChild(Box[23]);
container2.addChild(Box[25]);
container2.addChild(Box[26]);
if (MainMenu == 0){
container2.swapChildren(Box[26], Gem);
container2.swapChildren(Box[25], Box[20]);
};
channel5 = resetsound1.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseD);
}
public function larrow2(_arg1:MouseEvent):void{
Box[33].arrow_left.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, larrow2);
Box[33].gotoAndPlay(31);
addEventListener(Event.ENTER_FRAME, onEnterFramehelp3);
}
public function moregame(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
trace("pitre");
Box[30].btn_more_games.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregame2);
}
public function placeGem(_arg1:MouseEvent):void{
var e = _arg1;
if ((((((((((((St2 == false)) && ((ItemThere = false)))) && (!((Gem.x == (StartGemCoordX - 90)))))) && (!((Gem.x == StartGemCoordX))))) && (!((Gem.x == (StartGemCoordX + 90)))))) || (((((((((((!((Gem.y == StartGemCoordY))) && ((ItemThere = false)))) && ((St == true)))) && ((St2 == false)))) && (!((Gem.y == (StartGemCoordY - 90)))))) && (!((Gem.y == (StartGemCoordY + 90)))))))){
channel5 = talismsn_movie1.play();
channel5.addEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
St2 = true;
};
ItemThere = false;
trace("function placeGem (e:MouseEvent):void");
stage.removeEventListener(MouseEvent.MOUSE_MOVE, changeXYGem);
addEventListener(Event.ENTER_FRAME, onEnterFrameGem);
if ((((Gem.x == EmptyX)) && ((Gem.y == EmptyY)))){
Box[0].x = StartGemCoordX;
Box[0].y = StartGemCoordY;
NumHod++;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
trace(("NumHod " + NumHod));
};
speed = 2;
stage.removeEventListener(MouseEvent.MOUSE_UP, placeGem);
}
public function walkthrough(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
menu_bar.btn_walkthrough.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, walkthrough2);
menu_bar.btn_reset.removeEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
}
function frame668(){
stop();
L_01complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont);
L_01complete.btn_more_games.addEventListener(MouseEvent.MOUSE_DOWN, moregames11);
trace(("Level = " + Level));
}
public function onEnterFrameCloseEnd10(_arg1:Event){
if (L_10complete.currentFrame == L_10complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd10);
};
}
public function onEnterFrameCloseEnd12(_arg1:Event){
if (L_12complete.currentFrame == L_12complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd12);
};
}
public function onEnterFrameCloseEnd13(_arg1:Event){
if (L_13complete.currentFrame == L_13complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd13);
};
}
public function onEnterFrameCloseEnd14(_arg1:Event){
if (L_14complete.currentFrame == L_14complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd14);
};
}
public function onEnterFrameCloseEnd17(_arg1:Event){
if (L_17complete.currentFrame == L_17complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd17);
};
}
public function onEnterFrameCloseEnd11(_arg1:Event){
if (L_11complete.currentFrame == L_11complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd11);
};
}
public function onEnterFrameCloseEnd19(_arg1:Event){
if (L_19complete.currentFrame == L_19complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd19);
};
}
public function newcont2_02(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_02);
L_02complete.btn_next.gotoAndStop(1);
L_02complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd2);
}
public function newcont2_04(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_04);
L_04complete.btn_next.gotoAndStop(1);
L_04complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd4);
}
public function newcont2_08(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_08);
L_08complete.btn_next.gotoAndStop(1);
L_08complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd8);
}
public function newcont2_09(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_09);
L_09complete.btn_next.gotoAndStop(1);
L_09complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd9);
}
public function onEnterFrameCloseEnd15(_arg1:Event){
if (L_15complete.currentFrame == L_15complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd15);
};
}
public function resets(_arg1:MouseEvent):void{
channel7 = button1.play(1, 1);
menu_bar.btn_pause.removeEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.removeEventListener(MouseEvent.MOUSE_DOWN, helps);
stage.addEventListener(MouseEvent.MOUSE_UP, resets2);
menu_bar.btn_reset.gotoAndStop(2);
}
public function newcont2_05(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_05);
L_05complete.btn_next.gotoAndStop(1);
L_05complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd5);
}
public function newcont2_07(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_07);
L_07complete.btn_next.gotoAndStop(1);
L_07complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd7);
}
public function onEnterFrameCloseEnd22(_arg1:Event){
if (L_22complete.currentFrame == L_22complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd22);
};
}
public function onEnterFrameCloseEnd23(_arg1:Event){
if (L_23complete.currentFrame == L_23complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd23);
};
}
public function onEnterFrameCloseEnd24(_arg1:Event){
if (L_24complete.currentFrame == L_24complete.totalFrames){
L_24complete.alpha = 0;
Box[41].x = 320;
Box[41].y = 240;
container2.addChild(Box[41]);
Box[41].gotoAndPlay(1);
addEventListener(Event.ENTER_FRAME, onEnterFrametoMenu2);
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd24);
};
}
public function newcont2_03(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_03);
L_03complete.btn_next.gotoAndStop(1);
L_03complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd3);
}
public function onEnterFrameCloseEnd20(_arg1:Event){
if (L_20complete.currentFrame == L_20complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd20);
};
}
public function newcont2_06(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_06);
L_06complete.btn_next.gotoAndStop(1);
L_06complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd6);
}
public function newcont2_11(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_11);
L_11complete.btn_next.gotoAndStop(1);
L_11complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd11);
}
public function newcont2_13(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_13);
L_13complete.btn_next.gotoAndStop(1);
L_13complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd13);
}
public function newcont2_16(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_16);
L_16complete.btn_next.gotoAndStop(1);
L_16complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd16);
}
public function newcont2_12(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_12);
L_12complete.btn_next.gotoAndStop(1);
L_12complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd12);
}
public function newcont2_14(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_14);
L_14complete.btn_next.gotoAndStop(1);
L_14complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd14);
}
public function newcont2_15(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_15);
L_15complete.btn_next.gotoAndStop(1);
L_15complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd15);
}
public function newcont2_10(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_10);
L_10complete.btn_next.gotoAndStop(1);
L_10complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd10);
}
function frame205(){
hiden.addEventListener(MouseEvent.CLICK, clickHide);
}
public function onEnterFrameCloseEnd16(_arg1:Event){
if (L_16complete.currentFrame == L_16complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd16);
};
}
public function newcont2_19(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_19);
L_19complete.btn_next.gotoAndStop(1);
L_19complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd19);
}
public function onEnterFrameCloseEnd18(_arg1:Event){
if (L_18complete.currentFrame == L_18complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd18);
};
}
public function onEnterFrameCloseEnd21(_arg1:Event){
if (L_21complete.currentFrame == L_21complete.totalFrames){
gotoAndPlay("StartNew");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd21);
};
}
public function newcont2_17(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_17);
L_17complete.btn_next.gotoAndStop(1);
L_17complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd17);
}
public function newcont2_18(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_18);
L_18complete.btn_next.gotoAndStop(1);
L_18complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd18);
}
public function newcont2_23(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_23);
L_23complete.btn_next.gotoAndStop(1);
L_23complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd23);
}
public function newcont2_24(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_24);
L_24complete.btn_play_again.gotoAndStop(1);
L_24complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd24);
}
public function newcont2_21(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_21);
L_21complete.btn_next.gotoAndStop(1);
L_21complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd21);
}
public function newcont2_22(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_22);
L_22complete.btn_next.gotoAndStop(1);
L_22complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd22);
}
public function newcont2_20(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, newcont2_20);
L_20complete.btn_next.gotoAndStop(1);
L_20complete.play();
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseEnd20);
}
function frame692(){
trace("Menu2");
}
function frame221(){
if (ret){
try {
start_game1.btn_continue.gotoAndStop(2);
} catch(err:Error) {
};
};
}
public function delGem1(_arg1:Event):void{
if (Gem.totalFrames == Gem.currentFrame){
container2.removeChild(Gem);
};
}
public function delGem2(_arg1:Event):void{
if (Gem2.totalFrames == Gem2.currentFrame){
removeChild(Gem2);
};
}
function frame1909(){
stop();
L_08complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_08);
trace(("Level = " + Level));
}
public function Playback2():void{
St2 = false;
trace("Neeeeeeeeeeeeeeeee");
channel5.removeEventListener(Event.SOUND_COMPLETE, function (){
Playback2();
});
}
function frame235(){
stop();
Box[31] = new credits();
Box[29] = new field_fade();
trace("Lolo");
try {
start_game1.btn_new_game.addEventListener(MouseEvent.MOUSE_DOWN, newstarts);
start_game1.btn_credits.addEventListener(MouseEvent.MOUSE_DOWN, cred);
start_game1.btn_continue.addEventListener(MouseEvent.MOUSE_DOWN, newcontin);
trace("po");
} catch(err:Error) {
trace(err.message);
};
}
public function newcontin2(_arg1:MouseEvent):void{
start_game1.play();
start_game1.btn_continue.gotoAndStop(2);
stage.removeEventListener(MouseEvent.MOUSE_UP, newcontin2);
gate_start_game.play();
gotoAndPlay("Play2");
start_game1.btn_new_game.removeEventListener(MouseEvent.MOUSE_DOWN, newstarts);
start_game1.btn_credits.removeEventListener(MouseEvent.MOUSE_DOWN, cred);
start_game1.btn_continue.removeEventListener(MouseEvent.MOUSE_DOWN, newcontin);
}
public function CloseFishka(_arg1:int):void{
var _local2:int;
var _local3:int;
Closr = true;
if ((((((myBox[_arg1][4] > 0)) && ((Box[_arg1].currentFrame == 1)))) || ((((myBox[_arg1][4] > 0)) && ((Box[_arg1].currentFrame == 41)))))){
if (myBox[_arg1][4] == myBox[_arg1][5]){
_local2 = 0;
while (_local2 < 4) {
myBox[myBox[_arg1][4]][_local2] = myBox[_arg1][(_local2 + 6)];
myBox[myBox[_arg1][4]][(_local2 + 6)] = myBox[_arg1][(_local2 + 6)];
_local2++;
};
if (Box[myBox[_arg1][4]].currentFrame != 1){
if (Box[_arg1].totalFrames == 2){
Box[_arg1].gotoAndStop(2);
};
Box[myBox[_arg1][4]].play();
} else {
Box[myBox[_arg1][4]].gotoAndStop(79);
if (Box[_arg1].totalFrames == 2){
Box[_arg1].gotoAndStop(2);
};
};
} else {
trace("++++++++++++Pat1 yes+++++++++++\t\t ++++++++++++ +++++++++++");
if (Box[_arg1].totalFrames == 2){
Box[_arg1].gotoAndStop(2);
};
if (Box[_arg1].totalFrames == 42){
Box[_arg1].gotoAndStop(42);
};
if (Box[_arg1].totalFrames == 80){
if (Box[_arg1].currentFrame == 1){
Box[_arg1].gotoAndStop(42);
};
if (Box[_arg1].currentFrame == 41){
Box[_arg1].gotoAndStop(80);
};
};
Box[myBox[_arg1][4]].play();
if (myBox[myBox[_arg1][4]][10] > 0){
if (Delay1 != 0){
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick1);
Delay1 = 0;
};
Karr1 = _arg1;
Boxde1 = myBox[_arg1][4];
minuteTimer.addEventListener(TimerEvent.TIMER, onTick1);
};
_local2 = 0;
while (_local2 < 4) {
trace(((("WmyBox[(myBox[karB][4])][" + _local2) + "] ") + myBox[myBox[_arg1][4]][_local2]));
myBox[19][_local2] = myBox[myBox[_arg1][4]][_local2];
myBox[myBox[_arg1][4]][_local2] = myBox[myBox[_arg1][4]][(_local2 + 6)];
myBox[myBox[_arg1][4]][(_local2 + 6)] = myBox[19][_local2];
_local2++;
};
if (myBox[_arg1][5] > 0){
trace("Pat1 yes ");
if (myBox[myBox[_arg1][5]][10] > 0){
if (Delay2 != 0){
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick2);
Delay2 = 0;
};
Karr2 = _arg1;
Boxde2 = myBox[_arg1][5];
minuteTimer.addEventListener(TimerEvent.TIMER, onTick2);
};
Box[myBox[_arg1][5]].play();
_local3 = 0;
while (_local3 < 4) {
myBox[19][_local3] = myBox[myBox[_arg1][5]][_local3];
myBox[myBox[_arg1][5]][_local3] = myBox[myBox[_arg1][5]][(_local3 + 6)];
myBox[myBox[_arg1][5]][(_local3 + 6)] = myBox[19][_local3];
_local3++;
};
};
};
};
}
public function Pauseweneed(_arg1:Event):void{
if (Box[30].totalFrames == Box[30].currentFrame){
removeChild(Box[30]);
removeChild(Box[29]);
removeEventListener(Event.ENTER_FRAME, Pauseweneed);
};
}
function frame2809(){
stop();
L_13complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_13);
trace(("Level = " + Level));
}
public function StoneMove(_arg1:Event):void{
}
public function clos2(_arg1:MouseEvent):void{
Box[31].btn_close_cr.gotoAndStop(1);
Box[29].gotoAndPlay(31);
Box[31].gotoAndPlay(31);
Box[31].btn_close_cr.removeEventListener(MouseEvent.MOUSE_DOWN, clos);
stage.removeEventListener(MouseEvent.MOUSE_UP, clos2);
addEventListener(Event.ENTER_FRAME, delqit);
}
public function onEnterFrameGemS(_arg1:Event):void{
if (Gem.currentFrame == 12){
channel2 = fish_down1.play();
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS);
};
if (Gem.currentFrame == 14){
channel2 = fish_up1.play();
removeEventListener(Event.ENTER_FRAME, onEnterFrameGemS);
};
}
function frame1729(){
stop();
L_07complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_07);
trace(("Level = " + Level));
}
public function onEnterFrameFormula(_arg1:Event){
var event = _arg1;
switch (LevelCount){
case 1:
try {
FormulaUp(L_01complete);
} catch(err:Error) {
trace(err);
};
break;
case 2:
try {
FormulaUp(L_02complete);
} catch(err:Error) {
trace(err);
};
break;
case 3:
try {
FormulaUp(L_03complete);
} catch(err:Error) {
trace(err);
};
break;
case 4:
try {
FormulaUp(L_04complete);
} catch(err:Error) {
trace(err);
};
break;
case 5:
try {
FormulaUp(L_05complete);
} catch(err:Error) {
trace(err);
};
break;
case 6:
try {
FormulaUp(L_06complete);
} catch(err:Error) {
trace(err);
};
break;
case 7:
try {
FormulaUp(L_07complete);
} catch(err:Error) {
trace(err);
};
break;
case 8:
try {
FormulaUp(L_08complete);
} catch(err:Error) {
trace(err);
};
break;
case 9:
try {
FormulaUp(L_09complete);
} catch(err:Error) {
trace(err);
};
break;
case 10:
try {
FormulaUp(L_10complete);
} catch(err:Error) {
trace(err);
};
break;
case 11:
try {
FormulaUp(L_11complete);
} catch(err:Error) {
trace(err);
};
break;
case 12:
try {
FormulaUp(L_12complete);
} catch(err:Error) {
trace(err);
};
break;
case 13:
try {
FormulaUp(L_13complete);
} catch(err:Error) {
trace(err);
};
break;
case 14:
try {
FormulaUp(L_14complete);
} catch(err:Error) {
trace(err);
};
break;
case 15:
try {
FormulaUp(L_15complete);
} catch(err:Error) {
trace(err);
};
break;
case 16:
try {
FormulaUp(L_16complete);
} catch(err:Error) {
trace(err);
};
break;
case 17:
try {
FormulaUp(L_17complete);
} catch(err:Error) {
trace(err);
};
break;
case 18:
try {
FormulaUp(L_18complete);
} catch(err:Error) {
trace(err);
};
break;
case 19:
try {
FormulaUp(L_19complete);
} catch(err:Error) {
trace(err);
};
break;
case 20:
try {
FormulaUp(L_20complete);
} catch(err:Error) {
trace(err);
};
break;
case 21:
try {
FormulaUp(L_21complete);
} catch(err:Error) {
trace(err);
};
break;
case 22:
try {
FormulaUp(L_22complete);
} catch(err:Error) {
trace(err);
};
break;
case 23:
try {
FormulaUp(L_23complete);
} catch(err:Error) {
trace(err);
};
break;
case 24:
try {
FormulaUpEnd(L_24complete);
} catch(err:Error) {
trace(err);
};
break;
};
}
public function level_1(){
var cube_close_border:Class;
var L_01_shdw:Class;
var L_01_grd:Class;
var L_01_bck:Class;
var F_base_U:Class;
var F_base_U_in:Class;
var f_R:Class;
var f_L_D:Class;
var i:int;
KolHodov = 10;
KolTime = 60;
trace("function level_1 ()");
Box[50] = new darck();
Box[100] = new sponsorLogo1();
cube_close_border = (loaderInfo.applicationDomain.getDefinition("cube_close_border") as Class);
Box[27] = new (cube_close_border);
L_01_shdw = (loaderInfo.applicationDomain.getDefinition("L_01_shdw") as Class);
Box[24] = new (L_01_shdw);
L_01_grd = (loaderInfo.applicationDomain.getDefinition("L_01_grd") as Class);
Box[23] = new (L_01_grd);
Box[22] = new (L_01_shdw);
L_01_bck = (loaderInfo.applicationDomain.getDefinition("L_01_bck") as Class);
Box[21] = new (L_01_bck);
F_base_U = (loaderInfo.applicationDomain.getDefinition("F_base_U") as Class);
Box[20] = new (F_base_U);
F_base_U_in = (loaderInfo.applicationDomain.getDefinition("F_base_U_in") as Class);
Box[1] = new (F_base_U_in);
f_R = (loaderInfo.applicationDomain.getDefinition("f_R") as Class);
Box[2] = new (f_R);
f_L_D = (loaderInfo.applicationDomain.getDefinition("f_L_D") as Class);
Box[3] = new (f_L_D);
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Gem.x = 230;
Gem.y = 150;
Box[34].x = 320;
Box[34].y = 240;
Box[35].x = 320;
Box[35].y = 240;
Box[36].x = 320;
Box[36].y = 240;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[2].x = 230;
Box[2].y = 150;
Box[2].alpha = 0;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[3].x = 320;
Box[3].y = 240;
Box[3].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(container.numChildren);
try {
Box[34].alpha = 1;
removeChild(Box[34]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
Box[35].alpha = 1;
removeChild(Box[35]);
} catch(err:Error) {
trace((err.message + " 2"));
};
try {
Box[36].alpha = 1;
removeChild(Box[36]);
} catch(err:Error) {
trace((err.message + " 3"));
};
addChild(Box[34]);
Box[34].mouseEnabled = false;
Box[34].mouseChildren = false;
Box[34].doubleClickEnabled = false;
Box[34].gotoAndPlay(1);
addChild(imageBmp);
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 1, 0, 0, 0, 0, 0];
i = (i + 1);
};
}
public function level_2(){
var i:int;
KolHodov = 4;
KolTime = 10;
Box[27] = new cube_close_border();
Box[24] = new L_02_shdw();
Box[23] = new L_02_grd();
Box[22] = new L_02_shdw();
Box[21] = new L_02_bck();
Box[20] = new F_base_U();
Box[1] = new F_base_U_in();
Box[2] = new fish_13();
Box[3] = new fish_13();
Box[4] = new fish_11();
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Gem.x = 410;
Gem.y = 150;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[2].x = 320;
Box[2].y = 150;
Box[2].alpha = 0;
Box[0].x = 410;
Box[0].y = 240;
Box[0].alpha = 0;
Box[3].x = 410;
Box[3].y = 150;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 240;
Box[4].alpha = 0;
Box[1].x = 320;
Box[1].y = 330;
Box[1].alpha = 0;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[4] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
}
public function level_3(){
var i:int;
KolHodov = 5;
KolTime = 10;
Box[27] = new cube_close_border();
Box[24] = new L_03_shdw();
Box[23] = new L_03_grd();
Box[22] = new L_03_shdw();
Box[21] = new L_03_bck();
Box[20] = new F_base_L();
Box[1] = new F_base_L_in();
Box[2] = new fish_13();
Box[3] = new fish_04();
Box[4] = new fish_01();
Box[5] = new fish_02();
Box[6] = new fish_09();
Box[0].x = 230;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 500;
Box[1].y = 150;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 240;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 150;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 150;
Box[5].alpha = 0;
Box[6].x = 410;
Box[6].y = 240;
Box[6].alpha = 0;
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Gem.x = 230;
Gem.y = 240;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0];
myBox[4] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [0, 1, 0, 1, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
}
public function level_4(){
var i:int;
KolHodov = 3;
KolTime = 10;
Box[27] = new cube_close_border();
Box[24] = new L_04_shdw();
Box[23] = new L_04_grd();
Box[22] = new L_04_shdw();
Box[21] = new L_04_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_11_closer_button();
Box[3] = new fish_03_closer();
Box[4] = new fish_13();
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Gem.x = 320;
Gem.y = 150;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[2].x = 410;
Box[2].y = 240;
Box[2].alpha = 0;
Box[0].x = 410;
Box[0].y = 150;
Box[0].alpha = 0;
Box[3].x = 320;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 150;
Box[4].alpha = 0;
Box[1].x = 230;
Box[1].y = 150;
Box[1].alpha = 0;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 0, 0, 0, 3, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 1, 0, 0, 0, 0, 1, 1];
myBox[4] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
}
public function level_6(){
var i:int;
KolHodov = 9;
KolTime = 15;
Box[27] = new cube_close_border();
Box[24] = new L_06_shdw();
Box[23] = new L_06_grd();
Box[22] = new L_06_shdw();
Box[21] = new L_06_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_13();
Box[3] = new fish_01_closer();
Box[4] = new fish_13_closer_button();
Box[5] = new fish_14();
Gem.x = 230;
Gem.y = 330;
Box[0].x = 320;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 230;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 240;
Box[5].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0];
myBox[4] = [0, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_9(){
var i:int;
KolHodov = 13;
KolTime = 14;
Box[27] = new cube_close_border();
Box[24] = new L_09_shdw();
Box[23] = new L_09_grd();
Box[22] = new L_09_shdw();
Box[21] = new L_09_bck();
Box[20] = new F_base_R();
Box[1] = new F_base_R_in();
Box[2] = new fish_01_closer_button();
Box[3] = new fish_03_2_closer();
Box[4] = new fish_13();
Box[5] = new fish_11();
Gem.x = 320;
Gem.y = 150;
Box[0].x = 320;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 410;
Box[3].y = 240;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 150;
Box[4].alpha = 0;
Box[5].x = 320;
Box[5].y = 330;
Box[5].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0];
myBox[4] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_7(){
var i:int;
KolHodov = 10;
KolTime = 20;
Box[27] = new cube_close_border();
Box[24] = new L_07_shdw();
Box[23] = new L_07_grd();
Box[22] = new L_07_shdw();
Box[21] = new L_07_bck();
Box[20] = new F_base_D();
Box[1] = new F_base_D_in();
Box[2] = new fish_13();
Box[3] = new fish_11();
Box[4] = new fish_09();
Box[5] = new fish_03();
Box[6] = new fish_01();
Gem.x = 410;
Gem.y = 330;
Box[0].x = 320;
Box[0].y = 240;
Box[0].alpha = 0;
Box[1].x = 230;
Box[1].y = 150;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 330;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 230;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 240;
Box[5].alpha = 0;
Box[6].x = 320;
Box[6].y = 150;
Box[6].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[4] = [0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[6] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
container.addChild(Box[6]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_8(){
var i:int;
KolHodov = 9;
KolTime = 15;
Box[27] = new cube_close_border();
Box[24] = new L_08_shdw();
Box[23] = new L_08_grd();
Box[22] = new L_08_shdw();
Box[21] = new L_08_bck();
Box[20] = new F_base_D();
Box[1] = new F_base_D_in();
Box[2] = new fish_12_closer_button();
Box[3] = new fish_11_closer();
Box[4] = new fish_03();
Box[5] = new fish_03();
Gem.x = 410;
Gem.y = 240;
Box[0].x = 320;
Box[0].y = 150;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 330;
Box[1].alpha = 0;
Box[2].x = 410;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 320;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 240;
Box[5].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0];
myBox[4] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
public function level_5(){
var i:int;
KolHodov = 6;
KolTime = 10;
Box[27] = new cube_close_border();
Box[24] = new L_05_shdw();
Box[23] = new L_05_grd();
Box[22] = new L_05_shdw();
Box[21] = new L_05_bck();
Box[20] = new F_base_U();
Box[1] = new F_base_U_in();
Box[2] = new fish_13();
Box[3] = new fish_12();
Box[4] = new fish_01();
Box[5] = new fish_14();
Gem.x = 230;
Gem.y = 330;
Box[0].x = 320;
Box[0].y = 330;
Box[0].alpha = 0;
Box[1].x = 410;
Box[1].y = 240;
Box[1].alpha = 0;
Box[2].x = 320;
Box[2].y = 150;
Box[2].alpha = 0;
Box[3].x = 230;
Box[3].y = 330;
Box[3].alpha = 0;
Box[4].x = 320;
Box[4].y = 240;
Box[4].alpha = 0;
Box[5].x = 410;
Box[5].y = 330;
Box[5].alpha = 0;
i = 0;
while (i <= 20) {
myBox[i] = [0, 0, 0, 0, 0, 0, 0, 0];
trace(myBox[i]);
myBox[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[1] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[2] = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0];
myBox[3] = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[4] = [1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
myBox[5] = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
i = (i + 1);
};
try {
removeChild(Box[22]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(Box[23]);
} catch(err:Error) {
trace((err.message + " 1"));
};
try {
removeChild(imageBmp);
} catch(err:Error) {
trace((err.message + " 1"));
};
addChild(Box[21]);
addChild(container);
addChild(container2);
trace(container.numChildren);
if (container.numChildren > 0){
i = 1;
while (i <= container.numChildren) {
container.removeChildAt(0);
i = (i + 1);
};
};
imageBmp.x = 50;
imageBmp.y = 60;
Box[32].x = 320;
Box[32].y = 240;
Box[33].x = 320;
Box[33].y = 240;
Box[29].x = 320;
Box[29].y = 240;
Box[30].x = 320;
Box[30].y = 240;
Box[28].x = 320;
Box[28].y = 240;
Box[21].x = 320;
Box[21].y = 240;
Box[21].alpha = 0;
Box[22].alpha = 0;
Box[23].alpha = 0;
container.addChild(Box[1]);
container.addChild(Box[2]);
container.addChild(Box[3]);
container.addChild(Box[4]);
container.addChild(Box[5]);
addChild(Box[22]);
addChild(Box[23]);
addChild(Box[0]);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace(("container.numChildren " + container.numChildren));
addChild(imageBmp);
}
function frame3710(){
stop();
L_18complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_18);
trace(("Level = " + Level));
}
function frame2629(){
stop();
L_12complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_12);
trace(("Level = " + Level));
}
public function onEnterFramelevelComp(_arg1:Event){
if ((Box[28].currentFrame == 25)){
channel4 = completeFX1.play();
};
trace(((Box[28].currentFrame + " ") + Box[28].totalFrames));
if (Box[28].currentFrame == Box[28].totalFrames){
removeChild(Box[28]);
removeEventListener(Event.ENTER_FRAME, onEnterFramelevelComp);
Level1Close();
};
}
public function moregameslink(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
trace("Raaaaboootaet");
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
public function pauses2(_arg1:MouseEvent):void{
menu_bar.btn_pause.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, pauses2);
addChild(Box[29]);
addChild(Box[30]);
Box[29].gotoAndPlay(1);
Box[30].gotoAndPlay(1);
Box[30].btn_con.addEventListener(MouseEvent.MOUSE_DOWN, continue1);
Box[30].btn_main_menu.addEventListener(MouseEvent.MOUSE_DOWN, mainmenu1);
menu_bar.btn_reset.addEventListener(MouseEvent.MOUSE_DOWN, resets);
Box[30].btn_more_games.addEventListener(MouseEvent.MOUSE_DOWN, moregame);
menu_bar.btn_pause.addEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.addEventListener(MouseEvent.MOUSE_DOWN, helps);
if (Pause == true){
minuteTimer.stop();
Pause = false;
};
}
function frame1549(){
stop();
L_06complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_06);
trace(("Level = " + Level));
}
public function PreloaderScroll(){
loaderInfo.addEventListener(ProgressEvent.PROGRESS, eventLoadingProgress);
loaderInfo.addEventListener(Event.COMPLETE, eventLoadingComplete);
}
public function onEnterFrameStartlev2(_arg1:Event):void{
pausin++;
if (pausin == 5){
};
if (menu_bar.currentFrame == 30){
menu_bar.currentLevel.text = Level;
menu_bar.currentLevel.embedFonts = true;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
};
if (pausin >= 6){
Box[22].alpha = (Box[22].alpha - 0.051);
if (Box[22].alpha <= 0.5){
Box[23].alpha = (Box[23].alpha - 0.1);
};
};
if (Box[23].alpha <= 0){
Box[23].alpha = 0;
Box[22].alpha = 0;
removeChild(Box[22]);
removeChild(Box[23]);
removeChild(Box[0]);
container.addChildAt(Box[0], 0);
Box[0].alpha = 0;
container2.addChild(Gem);
Gem.gotoAndPlay(1);
addEventListener(Event.ENTER_FRAME, onEnterFrameGemS);
Gem.addEventListener(MouseEvent.MOUSE_DOWN, pickupGem);
container.addEventListener(MouseEvent.MOUSE_DOWN, pickup);
trace("onEnterFrameStartlev2");
removeEventListener(Event.ENTER_FRAME, onEnterFrameStartlev2);
};
}
public function onEnterFrameStartlev1(_arg1:Event):void{
var i:int;
var event = _arg1;
if ((Box[22].alpha == 0)){
channel5 = resetsound1.play();
};
trace(("level_begin1.currentFrame " + level_begin1.currentFrame));
trace(("Box[22].alpha " + Box[22].alpha));
Box[22].alpha = (Box[22].alpha + 0.051);
Box[23].alpha = (Box[23].alpha + 0.1);
if ((((Box[23].alpha >= 1)) && ((Box[22].alpha >= 1)))){
if (resetyea == true){
removeChild(Box[22]);
removeChild(Box[23]);
removeChild(imageBmp);
try {
removeChild(Box[21]);
} catch(err:Error) {
trace(" NOT REMOVED ");
};
try {
if (container.numChildren > 0){
i = 0;
while (i <= (container.numChildren + 10)) {
container.removeChildAt(0);
i = (i + 1);
};
removeChild(container);
};
} catch(err:Error) {
trace((err.message + "What a fuck"));
};
trace("What a fuck");
trace("What a fuck");
switch (Level){
case 1:
level_1();
break;
case 2:
level_2();
break;
case 3:
level_3();
break;
case 4:
level_4();
break;
case 5:
level_5();
break;
case 6:
level_6();
break;
case 7:
level_7();
break;
case 8:
level_8();
break;
case 9:
level_9();
break;
case 10:
level_10();
break;
case 11:
level_11();
break;
case 12:
level_12();
break;
case 13:
level_13();
break;
case 14:
level_14();
break;
case 15:
level_15();
break;
case 16:
level_16();
break;
case 17:
level_17();
break;
case 18:
level_18();
break;
case 19:
level_19();
break;
case 20:
level_20();
break;
case 21:
level_21();
break;
case 22:
level_22();
break;
case 23:
level_23();
break;
case 24:
level_24();
break;
};
imageBmp.x = 50;
imageBmp.y = 60;
menu_bar.btn_pause.addEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.addEventListener(MouseEvent.MOUSE_DOWN, helps);
menu_bar.btn_walkthrough.addEventListener(MouseEvent.MOUSE_DOWN, walkthrough);
Box[23].x = 320;
Box[23].y = 240;
Box[22].x = 320;
Box[22].y = 240;
addChild(Box[22]);
addChild(Box[23]);
addChild(imageBmp);
};
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
RestTime = (KolTime * 4);
minuteTimer.start();
Box[21].alpha = 1;
Box[22].alpha = 1;
Box[23].alpha = 1;
trace(("Part1 " + container.numChildren));
i = 1;
while (i < (container.numChildren + 2)) {
try {
Box[i].alpha = 1;
} catch(err:Error) {
trace((err.message + " 3"));
};
trace("Part2");
i = (i + 1);
};
removeEventListener(Event.ENTER_FRAME, onEnterFrameStartlev1);
try {
container2.removeChild(Gem);
} catch(err:Error) {
trace((err.message + " 3"));
};
trace("onEnterFrameStartlev1");
addEventListener(Event.ENTER_FRAME, onEnterFrameStartlev2);
};
}
public function walkthrough2(_arg1:MouseEvent):void{
menu_bar.btn_walkthrough.gotoAndStop(1);
stage.removeEventListener(MouseEvent.MOUSE_UP, walkthrough2);
menu_bar.btn_reset.addEventListener(MouseEvent.MOUSE_DOWN, resets);
menu_bar.btn_pause.addEventListener(MouseEvent.MOUSE_DOWN, pauses);
menu_bar.btn_help.addEventListener(MouseEvent.MOUSE_DOWN, helps);
}
function frame4610(){
stop();
L_23complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_23);
trace(("Level = " + Level));
}
function frame3529(){
stop();
L_17complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_17);
trace(("Level = " + Level));
}
public function larrow(_arg1:MouseEvent):void{
var e = _arg1;
channel7 = button1.play(1, 1);
Box[33].arrow_left.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, larrow2);
try {
Box[33].arrow_left.removeEventListener(MouseEvent.MOUSE_DOWN, larrow);
Box[33].btn_closeh2.removeEventListener(MouseEvent.MOUSE_DOWN, cl12);
} catch(err:Error) {
trace(err);
};
}
public function onEnterFrameCloseD(_arg1:Event){
var i:int;
var event = _arg1;
Box[22].alpha = (Box[22].alpha - 0.03);
Box[23].alpha = (Box[23].alpha + 0);
Box[24].alpha = (Box[24].alpha + 0);
Box[25].alpha = (Box[25].alpha + 0.03);
Box[26].alpha = (Box[26].alpha + 0.03);
if ((((Box[25].alpha >= 0.5)) && ((Box[26].alpha >= 0.5)))){
Box[22].alpha = 0;
Box[25].alpha = 0.5;
Box[26].alpha = 0.5;
Box[23].alpha = (Box[23].alpha + 0.07);
Box[24].alpha = (Box[24].alpha + 0.03);
if ((((Box[23].alpha >= 1)) && ((Box[24].alpha >= 0.5)))){
Box[23].alpha = 1;
Box[24].alpha = (Box[24].alpha + 0.1);
if (Box[24].alpha >= 1){
Box[24].alpha = 1;
try {
removeChild(Box[21]);
} catch(err:Error) {
trace(" NOT REMOVED ");
};
trace(" REMOVED ");
if (container.numChildren > 0){
i = (container.numChildren - 1);
while (i >= 0) {
container.removeChildAt(i);
i = (i - 1);
};
};
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseD);
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseA);
};
};
};
}
public function onEnterFrameCloseA(_arg1:Event){
Box[24].alpha = (Box[24].alpha - 0.05);
Box[23].alpha = (Box[23].alpha - 0.05);
if ((((Box[23].alpha <= 0)) && ((Box[24].alpha <= 0)))){
trace("far");
removeEventListener(Event.ENTER_FRAME, onEnterFrameCloseA);
Box[25].alpha = 0;
Box[26].alpha = 0;
level_begin1.gotoAndStop("close1");
trace("far2");
addEventListener(Event.ENTER_FRAME, onEnterFrameCloseCube);
StartGemCoordX = Gem.x;
StartGemCoordY = Gem.y;
trace("far3");
menu_bar.play();
if (soundon == 0){
menu_bar.btn_sound.gotoAndStop(2);
};
Box[27].x = 320;
Box[27].y = 240;
trace("far4");
sp = 1;
cot = 0;
};
}
function frame2449(){
stop();
L_11complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_11);
trace(("Level = " + Level));
}
function frame1366(){
stop();
L_05complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_05);
trace(("Level = " + Level));
}
public function sounds2(_arg1:MouseEvent):void{
if (menu_bar.btn_sound.currentFrame == 2){
SoundMixer.soundTransform = new SoundTransform(0);
} else {
SoundMixer.soundTransform = new SoundTransform(1);
};
stage.removeEventListener(MouseEvent.MOUSE_UP, sounds2);
}
public function onTick1(_arg1:TimerEvent):void{
var _local2:int;
if (Delay1 == 0){
container.setChildIndex(Box[Boxde1], 0);
time_ring1.x = 0;
time_ring1.y = 0;
Box[Boxde1].addChild(time_ring1);
time_ring1.gotoAndPlay(1);
};
Delay1 = (Delay1 + 1);
if (((!((((Box[Boxde1].x <= (Gem.x + 25))) && ((Box[Boxde1].x >= (Gem.x - 25)))))) || (!((((Box[Boxde1].y <= (Gem.y + 25))) && ((Box[Boxde1].y >= (Gem.y - 25)))))))){
if (Delay1 >= (myBox[Boxde1][10] * 10)){
_local2 = 0;
while (_local2 < 4) {
myBox[19][_local2] = myBox[Boxde1][(_local2 + 6)];
myBox[Boxde1][(_local2 + 6)] = myBox[Boxde1][_local2];
myBox[Boxde1][_local2] = myBox[19][_local2];
_local2++;
};
Box[Boxde1].removeChild(time_ring1);
Box[Boxde1].play();
Box[Karr1].gotoAndStop(1);
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick1);
_arg1.updateAfterEvent();
};
};
}
public function onTick2(_arg1:TimerEvent):void{
var _local2:int;
if (Delay2 == 0){
container.setChildIndex(Box[Boxde2], 0);
time_ring1.x = 0;
time_ring1.y = 0;
Box[Boxde2].addChild(time_ring1);
time_ring1.gotoAndPlay(1);
};
Delay2 = (Delay2 + 1);
trace(("Delay2 " + Delay2));
trace(("Gem.x " + Gem.x));
trace(("Gem.y " + Gem.y));
trace(("Box[Boxde2].x " + Box[Boxde2].x));
trace(("Box[Boxde2].x " + Box[Boxde2].y));
if (((!((((Box[Boxde2].x <= (Gem.x + 25))) && ((Box[Boxde2].x >= (Gem.x - 25)))))) || (!((((Box[Boxde2].y <= (Gem.y + 25))) && ((Box[Boxde2].y >= (Gem.y - 25)))))))){
trace(("Dela32 " + Delay2));
if (Delay2 >= (myBox[Boxde2][10] * 10)){
trace("Tick 1");
_local2 = 0;
while (_local2 < 4) {
myBox[19][_local2] = myBox[Boxde2][(_local2 + 6)];
myBox[Boxde2][(_local2 + 6)] = myBox[Boxde2][_local2];
myBox[Boxde2][_local2] = myBox[19][_local2];
myBox[19][_local2] = 0;
_local2++;
};
Box[Boxde2].removeChild(time_ring1);
Box[Boxde2].play();
Box[Karr2].gotoAndStop(1);
minuteTimer.removeEventListener(TimerEvent.TIMER, onTick2);
_arg1.updateAfterEvent();
};
};
}
public function moregames12(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
L_01complete.btn_more_games.gotoAndStop(1);
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
stage.removeEventListener(MouseEvent.MOUSE_UP, moregames12);
}
public function moregames11(_arg1:MouseEvent):void{
channel7 = button1.play();
trace("pitre@@@@@@@@2223");
L_01complete.btn_more_games.gotoAndStop(2);
stage.addEventListener(MouseEvent.MOUSE_UP, moregames12);
}
function frame4430(){
stop();
L_22complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_22);
trace(("Level = " + Level));
}
function frame3349(){
stop();
L_16complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_16);
trace(("Level = " + Level));
}
public function isUrl(_arg1:Array):Boolean{
var _local2:String;
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
_local2 = stage.loaderInfo.loaderURL;
_local3 = (_local2.indexOf("://") + 3);
_local4 = _local2.indexOf("/", _local3);
_local5 = _local2.substring(_local3, _local4);
_local6 = (_local5.lastIndexOf(".") - 1);
_local7 = (_local5.lastIndexOf(".", _local6) + 1);
_local8 = 1;
_local5 = _local5.substring(_local7, _local5.length);
trace(("domain " + _local5));
_local9 = 0;
while (_local9 <= _arg1.length) {
if (_local5 == _arg1[_local9]){
return (true);
};
_local9++;
};
return (false);
}
public function level_start(){
var i:int;
try {
removeEventListener(Event.ENTER_FRAME, onEnterFrameFormula);
} catch(err:Error) {
};
try {
removeEventListener(Event.ENTER_FRAME, onEnterFrameBox);
} catch(err:Error) {
};
try {
removeEventListener(Event.ENTER_FRAME, onEnterFrameGem);
} catch(err:Error) {
};
Count1 = true;
Count2 = true;
trace("What a fuck1");
menu_bar.currentLevel.text = Level;
menu_bar.currentLevel.embedFonts = true;
NumHod = 0;
menu_bar.KolHod.text = NumHod;
menu_bar.KolHod.embedFonts = true;
Score = 0;
MainMenu = 0;
if (soundon == 0){
menu_bar.btn_sound.gotoAndStop(2);
};
if (resetyea != true){
try {
removeChild(Gem);
} catch(err:Error) {
trace((err.message + "What a fuck"));
};
try {
if (container.numChildren > 0){
i = 0;
while (i <= (container.numChildren + 10)) {
container.removeChildAt(0);
i = (i + 1);
};
removeChild(container);
};
} catch(err:Error) {
trace((err.message + "What a fuck"));
};
trace("What a fuck");
trace("What a fuck");
switch (Level){
case 1:
level_1();
break;
case 2:
level_2();
break;
case 3:
level_3();
break;
case 4:
level_4();
break;
case 5:
level_5();
break;
case 6:
level_6();
break;
case 7:
level_7();
break;
case 8:
level_8();
break;
case 9:
level_9();
break;
case 10:
level_10();
break;
case 11:
level_11();
break;
case 12:
level_12();
break;
case 13:
level_13();
break;
case 14:
level_14();
break;
case 15:
level_15();
break;
case 16:
level_16();
break;
case 17:
level_17();
break;
case 18:
level_18();
break;
case 19:
level_19();
break;
case 20:
level_20();
break;
case 21:
level_21();
break;
case 22:
level_22();
break;
case 23:
level_23();
break;
case 24:
level_24();
break;
};
};
trace("function level_start()");
imageBmp.x = 50;
imageBmp.y = 60;
Box[23].x = 320;
Box[23].y = 240;
Box[23].alpha = 0;
Box[22].x = 320;
Box[22].y = 240;
Box[22].alpha = 0;
addChild(Box[22]);
addChild(Box[23]);
addChild(imageBmp);
addEventListener(Event.ENTER_FRAME, onEnterFrameStartlev1);
}
function frame2269(){
stop();
L_10complete.btn_next.addEventListener(MouseEvent.MOUSE_DOWN, newcont_10);
trace(("Level = " + Level));
}
}
}//package D_fla
Section 61
//menu_bar_438 (D_fla.menu_bar_438)
package D_fla {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class menu_bar_438 extends MovieClip {
public var line:MovieClip;
public var btn_help:MovieClip;
public var btn_pause:MovieClip;
public var btn_sound:MovieClip;
public var btn_walkthrough:MovieClip;
public var currentLevel:TextField;
public var btn_reset:MovieClip;
public var KolHod:TextField;
public function menu_bar_438(){
addFrameScript(0, frame1, 29, frame30, 30, frame31, 59, frame60);
}
function frame1(){
currentLevel.text = MovieClip(this.parent).Level;
KolHod.text = MovieClip(this.parent).NumHod;
}
function frame30(){
currentLevel.text = MovieClip(this.parent).Level;
KolHod.text = MovieClip(this.parent).NumHod;
stop();
}
function frame31(){
currentLevel.text = MovieClip(this.parent).Level;
KolHod.text = MovieClip(this.parent).NumHod;
}
function frame60(){
stop();
}
}
}//package D_fla
Section 62
//PRELOADR_10 (D_fla.PRELOADR_10)
package D_fla {
import flash.display.*;
public dynamic class PRELOADR_10 extends MovieClip {
public var coolbuddy:SLogo_small;
public var btn_play:MovieClip;
public function PRELOADR_10(){
addFrameScript(0, frame1, 47, frame48, 178, frame179);
}
function frame1(){
trace("@222222222@");
}
function frame179(){
gotoAndPlay("Play");
trace("huuuujj");
}
function frame48(){
stop();
}
}
}//package D_fla
Section 63
//PRELOADR_Start_1 (D_fla.PRELOADR_Start_1)
package D_fla {
import flash.display.*;
public dynamic class PRELOADR_Start_1 extends MovieClip {
public var item_small_preloader:MovieClip;
public var preloader_strip:MovieClip;
}
}//package D_fla
Section 64
//start_game_433 (D_fla.start_game_433)
package D_fla {
import flash.display.*;
public dynamic class start_game_433 extends MovieClip {
public var btn_continue:MovieClip;
public var gamename:MovieClip;
public var btn_credits:MovieClip;
public var btn_new_game:MovieClip;
public function start_game_433(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package D_fla
Section 65
//adBox (adBox)
package {
import flash.display.*;
public dynamic class adBox extends MovieClip {
}
}//package
Section 66
//black (black)
package {
import flash.display.*;
public dynamic class black extends MovieClip {
}
}//package
Section 67
//border (border)
package {
import flash.display.*;
public dynamic class border extends MovieClip {
}
}//package
Section 68
//border_open_close_2 (border_open_close_2)
package {
import flash.media.*;
public dynamic class border_open_close_2 extends Sound {
}
}//package
Section 69
//border1 (border1)
package {
import flash.display.*;
public dynamic class border1 extends BitmapData {
public function border1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 70
//button (button)
package {
import flash.media.*;
public dynamic class button extends Sound {
}
}//package
Section 71
//catchusonfacebook (catchusonfacebook)
package {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class catchusonfacebook extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function catchusonfacebook(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
channel7 = button1.play(1, 1);
trace("pitre");
url = "http://www.facebook.com/pages/Coolbuddy-Games/177306910591";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
buttonMode = true;
}
}
}//package
Section 72
//close_shadow (close_shadow)
package {
import flash.display.*;
public dynamic class close_shadow extends MovieClip {
}
}//package
Section 73
//completeFX (completeFX)
package {
import flash.media.*;
public dynamic class completeFX extends Sound {
}
}//package
Section 74
//credits (credits)
package {
import flash.display.*;
public dynamic class credits extends MovieClip {
public var btn_close_cr:MovieClip;
public function credits(){
addFrameScript(29, frame30, 59, frame60);
}
function frame30(){
stop();
}
function frame60(){
stop();
}
}
}//package
Section 75
//cube_close_border (cube_close_border)
package {
import flash.display.*;
public dynamic class cube_close_border extends MovieClip {
public var left:MovieClip;
public var right:MovieClip;
public var down:MovieClip;
public var upper:MovieClip;
}
}//package
Section 76
//D_Slide_back (D_Slide_back)
package {
import flash.media.*;
public dynamic class D_Slide_back extends Sound {
}
}//package
Section 77
//darck (darck)
package {
import flash.display.*;
public dynamic class darck extends MovieClip {
}
}//package
Section 78
//Eccentric (Eccentric)
package {
import flash.text.*;
public dynamic class Eccentric extends Font {
}
}//package
Section 79
//EccentricStdLast (EccentricStdLast)
package {
import flash.display.*;
public dynamic class EccentricStdLast extends MovieClip {
}
}//package
Section 80
//F_base_D (F_base_D)
package {
import flash.display.*;
public dynamic class F_base_D extends MovieClip {
public function F_base_D(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package
Section 81
//F_base_D_in (F_base_D_in)
package {
import flash.display.*;
public dynamic class F_base_D_in extends MovieClip {
}
}//package
Section 82
//F_base_L (F_base_L)
package {
import flash.display.*;
public dynamic class F_base_L extends MovieClip {
public function F_base_L(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package
Section 83
//F_base_L_closer (F_base_L_closer)
package {
import flash.display.*;
public dynamic class F_base_L_closer extends MovieClip {
public function F_base_L_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 84
//F_base_L_in (F_base_L_in)
package {
import flash.display.*;
public dynamic class F_base_L_in extends MovieClip {
}
}//package
Section 85
//F_base_R (F_base_R)
package {
import flash.display.*;
public dynamic class F_base_R extends MovieClip {
public function F_base_R(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package
Section 86
//F_base_R_closer (F_base_R_closer)
package {
import flash.display.*;
public dynamic class F_base_R_closer extends MovieClip {
public function F_base_R_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 87
//F_base_R_in (F_base_R_in)
package {
import flash.display.*;
public dynamic class F_base_R_in extends MovieClip {
}
}//package
Section 88
//F_base_U (F_base_U)
package {
import flash.display.*;
public dynamic class F_base_U extends MovieClip {
public function F_base_U(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package
Section 89
//F_base_U_closer (F_base_U_closer)
package {
import flash.display.*;
public dynamic class F_base_U_closer extends MovieClip {
public function F_base_U_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 90
//F_base_U_in (F_base_U_in)
package {
import flash.display.*;
public dynamic class F_base_U_in extends MovieClip {
}
}//package
Section 91
//f_L_D (f_L_D)
package {
import flash.display.*;
public dynamic class f_L_D extends MovieClip {
}
}//package
Section 92
//f_R (f_R)
package {
import flash.display.*;
public dynamic class f_R extends MovieClip {
}
}//package
Section 93
//field_fade (field_fade)
package {
import flash.display.*;
public dynamic class field_fade extends MovieClip {
public function field_fade(){
addFrameScript(29, frame30, 59, frame60);
}
function frame30(){
stop();
}
function frame60(){
stop();
}
}
}//package
Section 94
//fish_01 (fish_01)
package {
import flash.display.*;
public dynamic class fish_01 extends MovieClip {
}
}//package
Section 95
//fish_01_2_closer (fish_01_2_closer)
package {
import flash.display.*;
public dynamic class fish_01_2_closer extends MovieClip {
public function fish_01_2_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 96
//fish_01_closer (fish_01_closer)
package {
import flash.display.*;
public dynamic class fish_01_closer extends MovieClip {
public function fish_01_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 97
//fish_01_closer_button (fish_01_closer_button)
package {
import flash.display.*;
public dynamic class fish_01_closer_button extends MovieClip {
public function fish_01_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 98
//fish_01_closer_green (fish_01_closer_green)
package {
import flash.display.*;
public dynamic class fish_01_closer_green extends MovieClip {
public function fish_01_closer_green(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 99
//fish_01_closer_i_button_gold (fish_01_closer_i_button_gold)
package {
import flash.display.*;
public dynamic class fish_01_closer_i_button_gold extends MovieClip {
public function fish_01_closer_i_button_gold(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 100
//fish_01_closer_i_button_red (fish_01_closer_i_button_red)
package {
import flash.display.*;
public dynamic class fish_01_closer_i_button_red extends MovieClip {
public function fish_01_closer_i_button_red(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 101
//fish_02 (fish_02)
package {
import flash.display.*;
public dynamic class fish_02 extends MovieClip {
}
}//package
Section 102
//fish_02_closer (fish_02_closer)
package {
import flash.display.*;
public dynamic class fish_02_closer extends MovieClip {
public function fish_02_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 103
//fish_02_closer_i_button_gold (fish_02_closer_i_button_gold)
package {
import flash.display.*;
public dynamic class fish_02_closer_i_button_gold extends MovieClip {
public function fish_02_closer_i_button_gold(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 104
//fish_02_closer_red (fish_02_closer_red)
package {
import flash.display.*;
public dynamic class fish_02_closer_red extends MovieClip {
public function fish_02_closer_red(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 105
//fish_02_closeri_button_green (fish_02_closeri_button_green)
package {
import flash.display.*;
public dynamic class fish_02_closeri_button_green extends MovieClip {
public function fish_02_closeri_button_green(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 106
//fish_03 (fish_03)
package {
import flash.display.*;
public dynamic class fish_03 extends MovieClip {
}
}//package
Section 107
//fish_03_2_closer (fish_03_2_closer)
package {
import flash.display.*;
public dynamic class fish_03_2_closer extends MovieClip {
public function fish_03_2_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 108
//fish_03_closer (fish_03_closer)
package {
import flash.display.*;
public dynamic class fish_03_closer extends MovieClip {
public function fish_03_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 109
//fish_03_closer_button (fish_03_closer_button)
package {
import flash.display.*;
public dynamic class fish_03_closer_button extends MovieClip {
public function fish_03_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 110
//fish_03_closer_i_button (fish_03_closer_i_button)
package {
import flash.display.*;
public dynamic class fish_03_closer_i_button extends MovieClip {
public function fish_03_closer_i_button(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
stop();
}
function frame41(){
stop();
}
}
}//package
Section 111
//fish_03_closer_i_button_red (fish_03_closer_i_button_red)
package {
import flash.display.*;
public dynamic class fish_03_closer_i_button_red extends MovieClip {
public function fish_03_closer_i_button_red(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 112
//fish_04 (fish_04)
package {
import flash.display.*;
public dynamic class fish_04 extends MovieClip {
}
}//package
Section 113
//fish_04_2_closer_button (fish_04_2_closer_button)
package {
import flash.display.*;
public dynamic class fish_04_2_closer_button extends MovieClip {
public function fish_04_2_closer_button(){
addFrameScript(0, frame1, 39, frame40, 78, frame79);
}
function frame79(){
stop();
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 114
//fish_04_3_closer (fish_04_3_closer)
package {
import flash.display.*;
public dynamic class fish_04_3_closer extends MovieClip {
public function fish_04_3_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 115
//fish_04_3_closer_i_button_gold (fish_04_3_closer_i_button_gold)
package {
import flash.display.*;
public dynamic class fish_04_3_closer_i_button_gold extends MovieClip {
public function fish_04_3_closer_i_button_gold(){
addFrameScript(0, frame1, 40, frame41, 41, frame42);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
}
}//package
Section 116
//fish_04_3_closer_i_button_red (fish_04_3_closer_i_button_red)
package {
import flash.display.*;
public dynamic class fish_04_3_closer_i_button_red extends MovieClip {
public function fish_04_3_closer_i_button_red(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 117
//fish_04_closer_button (fish_04_closer_button)
package {
import flash.display.*;
public dynamic class fish_04_closer_button extends MovieClip {
public function fish_04_closer_button(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 118
//fish_05 (fish_05)
package {
import flash.display.*;
public dynamic class fish_05 extends MovieClip {
}
}//package
Section 119
//fish_06 (fish_06)
package {
import flash.display.*;
public dynamic class fish_06 extends MovieClip {
}
}//package
Section 120
//fish_07 (fish_07)
package {
import flash.display.*;
public dynamic class fish_07 extends MovieClip {
}
}//package
Section 121
//fish_08 (fish_08)
package {
import flash.display.*;
public dynamic class fish_08 extends MovieClip {
}
}//package
Section 122
//fish_09 (fish_09)
package {
import flash.display.*;
public dynamic class fish_09 extends MovieClip {
}
}//package
Section 123
//fish_09_closer_button (fish_09_closer_button)
package {
import flash.display.*;
public dynamic class fish_09_closer_button extends MovieClip {
public function fish_09_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 124
//fish_10 (fish_10)
package {
import flash.display.*;
public dynamic class fish_10 extends MovieClip {
}
}//package
Section 125
//fish_10_2_closer_i_button (fish_10_2_closer_i_button)
package {
import flash.display.*;
public dynamic class fish_10_2_closer_i_button extends MovieClip {
public function fish_10_2_closer_i_button(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 126
//fish_10_closer_button (fish_10_closer_button)
package {
import flash.display.*;
public dynamic class fish_10_closer_button extends MovieClip {
public function fish_10_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 127
//fish_10_closer_i_button (fish_10_closer_i_button)
package {
import flash.display.*;
public dynamic class fish_10_closer_i_button extends MovieClip {
public function fish_10_closer_i_button(){
addFrameScript(0, frame1, 40, frame41, 41, frame42, 79, frame80);
}
function frame80(){
stop();
}
function frame1(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
}
}//package
Section 128
//fish_10_closer_red (fish_10_closer_red)
package {
import flash.display.*;
public dynamic class fish_10_closer_red extends MovieClip {
public function fish_10_closer_red(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 129
//fish_11 (fish_11)
package {
import flash.display.*;
public dynamic class fish_11 extends MovieClip {
}
}//package
Section 130
//fish_11_closer (fish_11_closer)
package {
import flash.display.*;
public dynamic class fish_11_closer extends MovieClip {
public function fish_11_closer(){
addFrameScript(1, frame2, 39, frame40);
}
function frame2(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 131
//fish_11_closer_button (fish_11_closer_button)
package {
import flash.display.*;
public dynamic class fish_11_closer_button extends MovieClip {
public function fish_11_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 132
//fish_11_closer_button_red (fish_11_closer_button_red)
package {
import flash.display.*;
public dynamic class fish_11_closer_button_red extends MovieClip {
public function fish_11_closer_button_red(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 133
//fish_11_closer_i_button_green (fish_11_closer_i_button_green)
package {
import flash.display.*;
public dynamic class fish_11_closer_i_button_green extends MovieClip {
public function fish_11_closer_i_button_green(){
addFrameScript(1, frame2, 40, frame41);
}
function frame2(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 134
//fish_11_closer_i_button_red (fish_11_closer_i_button_red)
package {
import flash.display.*;
public dynamic class fish_11_closer_i_button_red extends MovieClip {
public function fish_11_closer_i_button_red(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 135
//fish_12 (fish_12)
package {
import flash.display.*;
public dynamic class fish_12 extends MovieClip {
}
}//package
Section 136
//fish_12_2_closer (fish_12_2_closer)
package {
import flash.display.*;
public dynamic class fish_12_2_closer extends MovieClip {
public function fish_12_2_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 137
//fish_12_closer_button (fish_12_closer_button)
package {
import flash.display.*;
public dynamic class fish_12_closer_button extends MovieClip {
public function fish_12_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 138
//fish_12_closer_green (fish_12_closer_green)
package {
import flash.display.*;
public dynamic class fish_12_closer_green extends MovieClip {
public function fish_12_closer_green(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 139
//fish_13 (fish_13)
package {
import flash.display.*;
public dynamic class fish_13 extends MovieClip {
}
}//package
Section 140
//fish_13_closer (fish_13_closer)
package {
import flash.display.*;
public dynamic class fish_13_closer extends MovieClip {
public function fish_13_closer(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 141
//fish_13_closer_button (fish_13_closer_button)
package {
import flash.display.*;
public dynamic class fish_13_closer_button extends MovieClip {
public function fish_13_closer_button(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 142
//fish_13_closer_button_red (fish_13_closer_button_red)
package {
import flash.display.*;
public dynamic class fish_13_closer_button_red extends MovieClip {
public function fish_13_closer_button_red(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 143
//fish_13_closer_i_button (fish_13_closer_i_button)
package {
import flash.display.*;
public dynamic class fish_13_closer_i_button extends MovieClip {
public function fish_13_closer_i_button(){
addFrameScript(0, frame1, 40, frame41, 41, frame42);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
function frame42(){
stop();
}
}
}//package
Section 144
//fish_13_closer_i_button_green (fish_13_closer_i_button_green)
package {
import flash.display.*;
public dynamic class fish_13_closer_i_button_green extends MovieClip {
public function fish_13_closer_i_button_green(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 145
//fish_14 (fish_14)
package {
import flash.display.*;
public dynamic class fish_14 extends MovieClip {
}
}//package
Section 146
//fish_14_closer (fish_14_closer)
package {
import flash.display.*;
public dynamic class fish_14_closer extends MovieClip {
public function fish_14_closer(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 147
//fish_14_closer_green (fish_14_closer_green)
package {
import flash.display.*;
public dynamic class fish_14_closer_green extends MovieClip {
public function fish_14_closer_green(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
}
}
}//package
Section 148
//fish_14_closer_i_button_green (fish_14_closer_i_button_green)
package {
import flash.display.*;
public dynamic class fish_14_closer_i_button_green extends MovieClip {
public function fish_14_closer_i_button_green(){
addFrameScript(0, frame1, 40, frame41);
}
function frame1(){
stop();
}
function frame41(){
stop();
}
}
}//package
Section 149
//fish_down (fish_down)
package {
import flash.media.*;
public dynamic class fish_down extends Sound {
}
}//package
Section 150
//fish_up (fish_up)
package {
import flash.media.*;
public dynamic class fish_up extends Sound {
}
}//package
Section 151
//grd_all (grd_all)
package {
import flash.display.*;
public dynamic class grd_all extends MovieClip {
}
}//package
Section 152
//help_ingame_1 (help_ingame_1)
package {
import flash.display.*;
public dynamic class help_ingame_1 extends MovieClip {
}
}//package
Section 153
//help_ingame_2 (help_ingame_2)
package {
import flash.display.*;
public dynamic class help_ingame_2 extends MovieClip {
}
}//package
Section 154
//help_ingame_3 (help_ingame_3)
package {
import flash.display.*;
public dynamic class help_ingame_3 extends MovieClip {
}
}//package
Section 155
//help_page1 (help_page1)
package {
import flash.display.*;
public dynamic class help_page1 extends MovieClip {
public var arrow_right:MovieClip;
public var btn_closeh1:MovieClip;
public function help_page1(){
addFrameScript(29, frame30, 59, frame60, 89, frame90);
}
function frame90(){
stop();
}
function frame30(){
stop();
}
function frame60(){
stop();
}
}
}//package
Section 156
//help_page2 (help_page2)
package {
import flash.display.*;
public dynamic class help_page2 extends MovieClip {
public var arrow_left:MovieClip;
public var btn_closeh2:MovieClip;
public function help_page2(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 157
//item (item)
package {
import flash.display.*;
public dynamic class item extends MovieClip {
public function item(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package
Section 158
//L_01_bck (L_01_bck)
package {
import flash.display.*;
public dynamic class L_01_bck extends MovieClip {
}
}//package
Section 159
//L_01_grd (L_01_grd)
package {
import flash.display.*;
public dynamic class L_01_grd extends MovieClip {
}
}//package
Section 160
//L_01_reset (L_01_reset)
package {
import flash.display.*;
public dynamic class L_01_reset extends MovieClip {
public function L_01_reset(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package
Section 161
//L_01_shdw (L_01_shdw)
package {
import flash.display.*;
public dynamic class L_01_shdw extends MovieClip {
}
}//package
Section 162
//L_02_bck (L_02_bck)
package {
import flash.display.*;
public dynamic class L_02_bck extends MovieClip {
}
}//package
Section 163
//L_02_grd (L_02_grd)
package {
import flash.display.*;
public dynamic class L_02_grd extends MovieClip {
}
}//package
Section 164
//L_02_shdw (L_02_shdw)
package {
import flash.display.*;
public dynamic class L_02_shdw extends MovieClip {
}
}//package
Section 165
//L_03_bck (L_03_bck)
package {
import flash.display.*;
public dynamic class L_03_bck extends MovieClip {
}
}//package
Section 166
//L_03_grd (L_03_grd)
package {
import flash.display.*;
public dynamic class L_03_grd extends MovieClip {
}
}//package
Section 167
//L_03_shdw (L_03_shdw)
package {
import flash.display.*;
public dynamic class L_03_shdw extends MovieClip {
}
}//package
Section 168
//L_04_bck (L_04_bck)
package {
import flash.display.*;
public dynamic class L_04_bck extends MovieClip {
}
}//package
Section 169
//L_04_grd (L_04_grd)
package {
import flash.display.*;
public dynamic class L_04_grd extends MovieClip {
}
}//package
Section 170
//L_04_shdw (L_04_shdw)
package {
import flash.display.*;
public dynamic class L_04_shdw extends MovieClip {
}
}//package
Section 171
//L_05_bck (L_05_bck)
package {
import flash.display.*;
public dynamic class L_05_bck extends MovieClip {
}
}//package
Section 172
//L_05_grd (L_05_grd)
package {
import flash.display.*;
public dynamic class L_05_grd extends MovieClip {
}
}//package
Section 173
//L_05_shdw (L_05_shdw)
package {
import flash.display.*;
public dynamic class L_05_shdw extends MovieClip {
}
}//package
Section 174
//L_06_bck (L_06_bck)
package {
import flash.display.*;
public dynamic class L_06_bck extends MovieClip {
}
}//package
Section 175
//L_06_grd (L_06_grd)
package {
import flash.display.*;
public dynamic class L_06_grd extends MovieClip {
}
}//package
Section 176
//L_06_shdw (L_06_shdw)
package {
import flash.display.*;
public dynamic class L_06_shdw extends MovieClip {
}
}//package
Section 177
//L_07_bck (L_07_bck)
package {
import flash.display.*;
public dynamic class L_07_bck extends MovieClip {
}
}//package
Section 178
//L_07_grd (L_07_grd)
package {
import flash.display.*;
public dynamic class L_07_grd extends MovieClip {
}
}//package
Section 179
//L_07_shdw (L_07_shdw)
package {
import flash.display.*;
public dynamic class L_07_shdw extends MovieClip {
}
}//package
Section 180
//L_08_bck (L_08_bck)
package {
import flash.display.*;
public dynamic class L_08_bck extends MovieClip {
}
}//package
Section 181
//L_08_grd (L_08_grd)
package {
import flash.display.*;
public dynamic class L_08_grd extends MovieClip {
}
}//package
Section 182
//L_08_shdw (L_08_shdw)
package {
import flash.display.*;
public dynamic class L_08_shdw extends MovieClip {
}
}//package
Section 183
//L_09_bck (L_09_bck)
package {
import flash.display.*;
public dynamic class L_09_bck extends MovieClip {
}
}//package
Section 184
//L_09_grd (L_09_grd)
package {
import flash.display.*;
public dynamic class L_09_grd extends MovieClip {
}
}//package
Section 185
//L_09_shdw (L_09_shdw)
package {
import flash.display.*;
public dynamic class L_09_shdw extends MovieClip {
}
}//package
Section 186
//L_10_bck (L_10_bck)
package {
import flash.display.*;
public dynamic class L_10_bck extends MovieClip {
}
}//package
Section 187
//L_10_grd (L_10_grd)
package {
import flash.display.*;
public dynamic class L_10_grd extends MovieClip {
}
}//package
Section 188
//L_10_shdw (L_10_shdw)
package {
import flash.display.*;
public dynamic class L_10_shdw extends MovieClip {
}
}//package
Section 189
//L_11_bck (L_11_bck)
package {
import flash.display.*;
public dynamic class L_11_bck extends MovieClip {
}
}//package
Section 190
//L_11_grd (L_11_grd)
package {
import flash.display.*;
public dynamic class L_11_grd extends MovieClip {
}
}//package
Section 191
//L_11_shdw (L_11_shdw)
package {
import flash.display.*;
public dynamic class L_11_shdw extends MovieClip {
}
}//package
Section 192
//L_12_bck (L_12_bck)
package {
import flash.display.*;
public dynamic class L_12_bck extends MovieClip {
}
}//package
Section 193
//L_12_grd (L_12_grd)
package {
import flash.display.*;
public dynamic class L_12_grd extends MovieClip {
}
}//package
Section 194
//L_12_shdw (L_12_shdw)
package {
import flash.display.*;
public dynamic class L_12_shdw extends MovieClip {
}
}//package
Section 195
//L_13_bck (L_13_bck)
package {
import flash.display.*;
public dynamic class L_13_bck extends MovieClip {
}
}//package
Section 196
//L_13_grd (L_13_grd)
package {
import flash.display.*;
public dynamic class L_13_grd extends MovieClip {
}
}//package
Section 197
//L_13_shdw (L_13_shdw)
package {
import flash.display.*;
public dynamic class L_13_shdw extends MovieClip {
}
}//package
Section 198
//L_14_bck (L_14_bck)
package {
import flash.display.*;
public dynamic class L_14_bck extends MovieClip {
}
}//package
Section 199
//L_14_grd (L_14_grd)
package {
import flash.display.*;
public dynamic class L_14_grd extends MovieClip {
}
}//package
Section 200
//L_14_shdw (L_14_shdw)
package {
import flash.display.*;
public dynamic class L_14_shdw extends MovieClip {
}
}//package
Section 201
//L_15_bck (L_15_bck)
package {
import flash.display.*;
public dynamic class L_15_bck extends MovieClip {
}
}//package
Section 202
//L_15_grd (L_15_grd)
package {
import flash.display.*;
public dynamic class L_15_grd extends MovieClip {
}
}//package
Section 203
//L_15_shdw (L_15_shdw)
package {
import flash.display.*;
public dynamic class L_15_shdw extends MovieClip {
}
}//package
Section 204
//L_16_bck (L_16_bck)
package {
import flash.display.*;
public dynamic class L_16_bck extends MovieClip {
}
}//package
Section 205
//L_16_grd (L_16_grd)
package {
import flash.display.*;
public dynamic class L_16_grd extends MovieClip {
}
}//package
Section 206
//L_16_shdw (L_16_shdw)
package {
import flash.display.*;
public dynamic class L_16_shdw extends MovieClip {
}
}//package
Section 207
//L_17_bck (L_17_bck)
package {
import flash.display.*;
public dynamic class L_17_bck extends MovieClip {
}
}//package
Section 208
//L_17_grd (L_17_grd)
package {
import flash.display.*;
public dynamic class L_17_grd extends MovieClip {
}
}//package
Section 209
//L_17_shdw (L_17_shdw)
package {
import flash.display.*;
public dynamic class L_17_shdw extends MovieClip {
}
}//package
Section 210
//L_18_bck (L_18_bck)
package {
import flash.display.*;
public dynamic class L_18_bck extends MovieClip {
}
}//package
Section 211
//L_18_grd (L_18_grd)
package {
import flash.display.*;
public dynamic class L_18_grd extends MovieClip {
}
}//package
Section 212
//L_18_shdw (L_18_shdw)
package {
import flash.display.*;
public dynamic class L_18_shdw extends MovieClip {
}
}//package
Section 213
//L_19_bck (L_19_bck)
package {
import flash.display.*;
public dynamic class L_19_bck extends MovieClip {
}
}//package
Section 214
//L_19_grd (L_19_grd)
package {
import flash.display.*;
public dynamic class L_19_grd extends MovieClip {
}
}//package
Section 215
//L_19_shdw (L_19_shdw)
package {
import flash.display.*;
public dynamic class L_19_shdw extends MovieClip {
}
}//package
Section 216
//L_20_bck (L_20_bck)
package {
import flash.display.*;
public dynamic class L_20_bck extends MovieClip {
}
}//package
Section 217
//L_20_grd (L_20_grd)
package {
import flash.display.*;
public dynamic class L_20_grd extends MovieClip {
}
}//package
Section 218
//L_20_shdw (L_20_shdw)
package {
import flash.display.*;
public dynamic class L_20_shdw extends MovieClip {
}
}//package
Section 219
//L_21_bck (L_21_bck)
package {
import flash.display.*;
public dynamic class L_21_bck extends MovieClip {
}
}//package
Section 220
//L_21_grd (L_21_grd)
package {
import flash.display.*;
public dynamic class L_21_grd extends MovieClip {
}
}//package
Section 221
//L_21_shdw (L_21_shdw)
package {
import flash.display.*;
public dynamic class L_21_shdw extends MovieClip {
}
}//package
Section 222
//L_22_bck (L_22_bck)
package {
import flash.display.*;
public dynamic class L_22_bck extends MovieClip {
}
}//package
Section 223
//L_22_grd (L_22_grd)
package {
import flash.display.*;
public dynamic class L_22_grd extends MovieClip {
}
}//package
Section 224
//L_22_shdw (L_22_shdw)
package {
import flash.display.*;
public dynamic class L_22_shdw extends MovieClip {
}
}//package
Section 225
//L_23_bck (L_23_bck)
package {
import flash.display.*;
public dynamic class L_23_bck extends MovieClip {
}
}//package
Section 226
//L_23_grd (L_23_grd)
package {
import flash.display.*;
public dynamic class L_23_grd extends MovieClip {
}
}//package
Section 227
//L_23_shdw (L_23_shdw)
package {
import flash.display.*;
public dynamic class L_23_shdw extends MovieClip {
}
}//package
Section 228
//L_24_bck (L_24_bck)
package {
import flash.display.*;
public dynamic class L_24_bck extends MovieClip {
}
}//package
Section 229
//L_24_grd (L_24_grd)
package {
import flash.display.*;
public dynamic class L_24_grd extends MovieClip {
}
}//package
Section 230
//L_24_shdw (L_24_shdw)
package {
import flash.display.*;
public dynamic class L_24_shdw extends MovieClip {
}
}//package
Section 231
//level_complete (level_complete)
package {
import flash.display.*;
public dynamic class level_complete extends MovieClip {
}
}//package
Section 232
//mus (mus)
package {
import flash.display.*;
public dynamic class mus extends MovieClip {
public function mus(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 233
//pauseall (pauseall)
package {
import flash.display.*;
public dynamic class pauseall extends MovieClip {
public var btn_main_menu:MovieClip;
public var btn_more_games:MovieClip;
public var btn_con:MovieClip;
public function pauseall(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 234
//playmechanism3 (playmechanism3)
package {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class playmechanism3 extends MovieClip {
public var button1;
public var channel7:SoundChannel;
public function playmechanism3(){
addFrameScript(0, frame1);
}
public function moregameslast(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
channel7 = button1.play(1, 1);
trace("pitre");
url = "http://www.coolbuddy.com/games/game.asp?gid=2100";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame1(){
stop();
button1 = new button();
addEventListener(MouseEvent.MOUSE_DOWN, moregameslast);
buttonMode = true;
}
}
}//package
Section 235
//resetsound (resetsound)
package {
import flash.media.*;
public dynamic class resetsound extends Sound {
}
}//package
Section 236
//SLogo_small (SLogo_small)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class SLogo_small extends MovieClip {
public function SLogo_small(){
addFrameScript(0, frame1);
}
public function moregameslink11(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
trace("Raaaaboootaet");
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, moregameslink11);
buttonMode = true;
}
}
}//package
Section 237
//sponsorLogo (sponsorLogo)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class sponsorLogo extends MovieClip {
public function sponsorLogo(){
addFrameScript(0, frame1);
}
public function moregameslink11(_arg1:MouseEvent):void{
var url:String;
var request:URLRequest;
var e = _arg1;
trace("Raaaaboootaet");
url = "http://www.coolbuddy.com";
request = new URLRequest(url);
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
trace("Error occurred!");
};
}
function frame1(){
addEventListener(MouseEvent.MOUSE_DOWN, moregameslink11);
buttonMode = true;
}
}
}//package
Section 238
//stone (stone)
package {
import flash.media.*;
public dynamic class stone extends Sound {
}
}//package
Section 239
//stoneend (stoneend)
package {
import flash.media.*;
public dynamic class stoneend extends Sound {
}
}//package
Section 240
//stonemov (stonemov)
package {
import flash.media.*;
public dynamic class stonemov extends Sound {
}
}//package
Section 241
//talismsn_movie (talismsn_movie)
package {
import flash.media.*;
public dynamic class talismsn_movie extends Sound {
}
}//package
Section 242
//time_ring (time_ring)
package {
import flash.display.*;
public dynamic class time_ring extends MovieClip {
public function time_ring(){
addFrameScript(799, frame800);
}
function frame800(){
stop();
}
}
}//package
Section 243
//timesup (timesup)
package {
import flash.display.*;
public dynamic class timesup extends MovieClip {
public function timesup(){
addFrameScript(59, frame60);
}
function frame60(){
stop();
}
}
}//package
Section 244
//to_main_menu (to_main_menu)
package {
import flash.display.*;
public dynamic class to_main_menu extends MovieClip {
}
}//package
Section 245
//track (track)
package {
import flash.media.*;
public dynamic class track extends Sound {
}
}//package