Section 1
//_crmain_106 (index_menu3_fla._crmain_106)
package index_menu3_fla {
import flash.display.*;
import flash.media.*;
public dynamic class _crmain_106 extends MovieClip {
public function _crmain_106(){
addFrameScript(0, frame1, 1121, frame1122);
}
function frame1(){
SoundMixer.stopAll();
}
function frame1122(){
SoundMixer.stopAll();
(parent as MovieClip).gotoAndStop(1, "Menu");
}
}
}//package index_menu3_fla
Section 2
//01_76 (index_menu3_fla.01_76)
package index_menu3_fla {
import flash.display.*;
public dynamic class 01_76 extends MovieClip {
public var ring:MovieClip;
public function 01_76(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 3
//02_78 (index_menu3_fla.02_78)
package index_menu3_fla {
import flash.display.*;
public dynamic class 02_78 extends MovieClip {
public var ring:MovieClip;
public function 02_78(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 4
//03_79 (index_menu3_fla.03_79)
package index_menu3_fla {
import flash.display.*;
public dynamic class 03_79 extends MovieClip {
public var ring:MovieClip;
public function 03_79(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 5
//04_80 (index_menu3_fla.04_80)
package index_menu3_fla {
import flash.display.*;
public dynamic class 04_80 extends MovieClip {
public var ring:MovieClip;
public function 04_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 6
//05_81 (index_menu3_fla.05_81)
package index_menu3_fla {
import flash.display.*;
public dynamic class 05_81 extends MovieClip {
public var ring:MovieClip;
public function 05_81(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 7
//06_82 (index_menu3_fla.06_82)
package index_menu3_fla {
import flash.display.*;
public dynamic class 06_82 extends MovieClip {
public var ring:MovieClip;
public function 06_82(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 8
//07_83 (index_menu3_fla.07_83)
package index_menu3_fla {
import flash.display.*;
public dynamic class 07_83 extends MovieClip {
public var ring:MovieClip;
public function 07_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 9
//08_84 (index_menu3_fla.08_84)
package index_menu3_fla {
import flash.display.*;
public dynamic class 08_84 extends MovieClip {
public var ring:MovieClip;
public function 08_84(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 10
//09_85 (index_menu3_fla.09_85)
package index_menu3_fla {
import flash.display.*;
public dynamic class 09_85 extends MovieClip {
public var ring:MovieClip;
public function 09_85(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 11
//10_86 (index_menu3_fla.10_86)
package index_menu3_fla {
import flash.display.*;
public dynamic class 10_86 extends MovieClip {
public var ring:MovieClip;
public function 10_86(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 12
//alarm_main_369 (index_menu3_fla.alarm_main_369)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 alarm_main_369 extends MovieClip {
public function alarm_main_369(){
addFrameScript(117, frame118);
}
function frame118(){
SoundMixer.stopAll();
stop();
(parent.parent as MovieClip).initstart();
(parent.parent as MovieClip).gotoAndStop(1, "Menu");
}
}
}//package index_menu3_fla
Section 13
//back_55 (index_menu3_fla.back_55)
package index_menu3_fla {
import flash.display.*;
public dynamic class back_55 extends MovieClip {
public function back_55(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 14
//ball_337 (index_menu3_fla.ball_337)
package index_menu3_fla {
import flash.display.*;
public dynamic class ball_337 extends MovieClip {
public var circ:MovieClip;
public var ballbg:MovieClip;
public var hit:MovieClip;
public function ball_337(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package index_menu3_fla
Section 15
//ballbg_339 (index_menu3_fla.ballbg_339)
package index_menu3_fla {
import flash.display.*;
public dynamic class ballbg_339 extends MovieClip {
public var body:MovieClip;
public function ballbg_339(){
addFrameScript(0, frame1, 24, frame25);
}
function frame1(){
stop();
}
function frame25(){
stop();
}
}
}//package index_menu3_fla
Section 16
//ballnew_342 (index_menu3_fla.ballnew_342)
package index_menu3_fla {
import flash.display.*;
public dynamic class ballnew_342 extends MovieClip {
public var old:MovieClip;
}
}//package index_menu3_fla
Section 17
//bg_180 (index_menu3_fla.bg_180)
package index_menu3_fla {
import flash.display.*;
public dynamic class bg_180 extends MovieClip {
public var lasthole:MovieClip;
}
}//package index_menu3_fla
Section 18
//bigfall_193 (index_menu3_fla.bigfall_193)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 bigfall_193 extends MovieClip {
public var bigone1:MovieClip;
public function bigfall_193(){
addFrameScript(0, frame1, 1, frame2, 10, frame11);
}
function frame1(){
bigone1.shadow.visible = false;
}
function frame2(){
bigone1.shadow.visible = false;
}
function frame11(){
stop();
visible = false;
bigone1.gotoAndStop(1);
dispatchEvent(new Event("bigatfloor"));
}
}
}//package index_menu3_fla
Section 19
//blast1_360 (index_menu3_fla.blast1_360)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast1_360 extends MovieClip {
public var sch:SoundChannel;
public function blast1_360(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 20
//blast2_362 (index_menu3_fla.blast2_362)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast2_362 extends MovieClip {
public var sch:SoundChannel;
public function blast2_362(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 21
//blast3_363 (index_menu3_fla.blast3_363)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast3_363 extends MovieClip {
public var sch:SoundChannel;
public function blast3_363(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 22
//blast4_364 (index_menu3_fla.blast4_364)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast4_364 extends MovieClip {
public var sch:SoundChannel;
public function blast4_364(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 23
//blast6_365 (index_menu3_fla.blast6_365)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast6_365 extends MovieClip {
public var sch:SoundChannel;
public function blast6_365(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 24
//blast7_366 (index_menu3_fla.blast7_366)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast7_366 extends MovieClip {
public var sch:SoundChannel;
public function blast7_366(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 25
//blast8_367 (index_menu3_fla.blast8_367)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast8_367 extends MovieClip {
public var sch:SoundChannel;
public function blast8_367(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 26
//blast9_368 (index_menu3_fla.blast9_368)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class blast9_368 extends MovieClip {
public var sch:SoundChannel;
public function blast9_368(){
addFrameScript(0, frame1, 1, frame2, 3, frame4, 4, frame5, 10, frame11, 30, frame31);
}
function frame1(){
stop();
}
function frame4(){
new bomb_sound().play();
}
function frame5(){
new explosion().play();
}
function frame2(){
sch = new explosion().play(0, 1000);
}
function frame31(){
sch.stop();
dispatchEvent(new Event("BLAST"));
visible = false;
}
function frame11(){
new explosion().play();
}
}
}//package index_menu3_fla
Section 27
//bulk_321 (index_menu3_fla.bulk_321)
package index_menu3_fla {
import flash.display.*;
public dynamic class bulk_321 extends MovieClip {
public function bulk_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 28
//bulk_f_320 (index_menu3_fla.bulk_f_320)
package index_menu3_fla {
import flash.display.*;
public dynamic class bulk_f_320 extends MovieClip {
public var old:MovieClip;
}
}//package index_menu3_fla
Section 29
//cata_182 (index_menu3_fla.cata_182)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class cata_182 extends MovieClip {
public var sit1:monster;
public var sit2:monster;
public var sit3:monster;
public var sitarea2:MovieClip;
public var sitarea1:MovieClip;
public var flash3:MovieClip;
public var flash1:MovieClip;
public var perila:MovieClip;
public var flash2:MovieClip;
public var sitarea3:MovieClip;
public function cata_182(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
stop();
sit1.visible = false;
sit2.visible = false;
sit3.visible = false;
flash1.visible = false;
flash2.visible = false;
flash3.visible = false;
dispatchEvent(new Event("pushsits"));
}
function frame33(){
dispatchEvent(new Event("done"));
}
}
}//package index_menu3_fla
Section 30
//cata_sml1_192 (index_menu3_fla.cata_sml1_192)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class cata_sml1_192 extends MovieClip {
public var sit1:monster;
public var sit2:monster;
public var sit3:monster;
public var sitarea2:MovieClip;
public var sitarea1:MovieClip;
public var flash3:MovieClip;
public var flash1:MovieClip;
public var perila:MovieClip;
public var flash2:MovieClip;
public var sitarea3:MovieClip;
public function cata_sml1_192(){
addFrameScript(0, frame1, 32, frame33);
}
function frame1(){
stop();
sit1.visible = false;
sit2.visible = false;
sit3.visible = false;
flash1.visible = false;
flash2.visible = false;
flash3.visible = false;
dispatchEvent(new Event("pushsits"));
}
function frame33(){
dispatchEvent(new Event("done"));
}
}
}//package index_menu3_fla
Section 31
//completelevel_51 (index_menu3_fla.completelevel_51)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 completelevel_51 extends MovieClip {
public var backbtn:MovieClip;
public var line:MovieClip;
public var bg:MovieClip;
public var scoreinfo:MovieClip;
public var htpbtn:MovieClip;
public function completelevel_51(){
addFrameScript(8, frame9, 32, frame33);
}
public function backbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
function frame9(){
stop();
scoreinfo.nextbtn.useHandCursor = true;
scoreinfo.nextbtn.buttonMode = true;
scoreinfo.nextbtn.addEventListener(MouseEvent.CLICK, nev);
scoreinfo.nextbtn.addEventListener(MouseEvent.MOUSE_OVER, backbtnMOVEvent);
scoreinfo.nextbtn.addEventListener(MouseEvent.MOUSE_OUT, backbtnOUEvent);
}
public function nev(_arg1:Event):void{
new button().play();
gotoAndPlay(10);
(parent as MovieClip).gotoAndPlay(361);
}
public function backbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame33(){
stop();
}
}
}//package index_menu3_fla
Section 32
//crazynew_325 (index_menu3_fla.crazynew_325)
package index_menu3_fla {
import flash.display.*;
public dynamic class crazynew_325 extends MovieClip {
public var old:MovieClip;
}
}//package index_menu3_fla
Section 33
//credits_64 (index_menu3_fla.credits_64)
package index_menu3_fla {
import flash.display.*;
public dynamic class credits_64 extends MovieClip {
public function credits_64(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 34
//d_level10_1_353 (index_menu3_fla.d_level10_1_353)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 d_level10_1_353 extends MovieClip {
public var nextbtn:MovieClip;
public function d_level10_1_353(){
addFrameScript(0, frame1, 9, frame10, 29, frame30, 39, frame40);
}
function frame10(){
stop();
Mouse.show();
}
function frame1(){
stop();
}
function frame30(){
stop();
}
function frame40(){
SoundMixer.stopAll();
(parent.parent as MovieClip).initstart();
(parent as ROOM).musicchannel.stop();
(parent.parent as MovieClip).gotoAndStop(1, "Credits");
}
}
}//package index_menu3_fla
Section 35
//d_level5_1_348 (index_menu3_fla.d_level5_1_348)
package index_menu3_fla {
import flash.display.*;
import flash.ui.*;
public dynamic class d_level5_1_348 extends MovieClip {
public var nextbtn:MovieClip;
public function d_level5_1_348(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
stop();
Mouse.show();
}
function frame1(){
stop();
}
function frame20(){
stop();
visible = false;
}
}
}//package index_menu3_fla
Section 36
//d_level5_2_350 (index_menu3_fla.d_level5_2_350)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.ui.*;
public dynamic class d_level5_2_350 extends MovieClip {
public var nextbtn:MovieClip;
public function d_level5_2_350(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40);
}
function frame10(){
stop();
Mouse.show();
}
function frame1(){
stop();
}
function frame20(){
dispatchEvent(new Event("anim1"));
}
function frame30(){
stop();
Mouse.show();
}
function frame40(){
stop();
visible = false;
dispatchEvent(new Event("anim2"));
}
}
}//package index_menu3_fla
Section 37
//demomc_92 (index_menu3_fla.demomc_92)
package index_menu3_fla {
import flash.display.*;
public dynamic class demomc_92 extends MovieClip {
public var fv:MovieClip;
public function demomc_92(){
addFrameScript(0, frame1, 24, frame25, 39, frame40);
}
function frame1(){
stop();
fv.visible = false;
}
function frame25(){
fv.visible = true;
}
function frame40(){
stop();
}
}
}//package index_menu3_fla
Section 38
//exitbtn_378 (index_menu3_fla.exitbtn_378)
package index_menu3_fla {
import flash.display.*;
public dynamic class exitbtn_378 extends MovieClip {
public function exitbtn_378(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 39
//fatty2_194 (index_menu3_fla.fatty2_194)
package index_menu3_fla {
import flash.display.*;
import flash.media.*;
public dynamic class fatty2_194 extends MovieClip {
public var sch2;
public var sch1:SoundChannel;
public var shadow:MovieClip;
public function fatty2_194(){
addFrameScript(0, frame1, 7, frame8, 11, frame12);
}
function frame12(){
sch2 = new snore().play();
}
function frame1(){
}
function frame8(){
sch1 = new snore().play();
}
}
}//package index_menu3_fla
Section 40
//fire_330 (index_menu3_fla.fire_330)
package index_menu3_fla {
import flash.display.*;
public dynamic class fire_330 extends MovieClip {
public var old:MovieClip;
public function fire_330(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
visible = false;
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 41
//fire_back_326 (index_menu3_fla.fire_back_326)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class fire_back_326 extends MovieClip {
public function fire_back_326(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
visible = false;
dispatchEvent(new Event("DONE"));
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 42
//flash_185 (index_menu3_fla.flash_185)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class flash_185 extends MovieClip {
public var sch:SoundChannel;
public var stransform:SoundTransform;
public var pan:Number;
public function flash_185(){
addFrameScript(0, frame1, 1, frame2, 7, frame8, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
visible = false;
dispatchEvent(new Event("FlashDone"));
}
function frame8(){
dispatchEvent(new Event("ShowMeMonster"));
}
function frame2(){
sch = new catapult_flash().play();
stransform = sch.soundTransform;
stransform.pan = pan;
sch.soundTransform = stransform;
}
}
}//package index_menu3_fla
Section 43
//friends_356 (index_menu3_fla.friends_356)
package index_menu3_fla {
import flash.display.*;
public dynamic class friends_356 extends MovieClip {
public function friends_356(){
addFrameScript(0, frame1, 69, frame70);
}
function frame70(){
stop();
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 44
//friends_out_359 (index_menu3_fla.friends_out_359)
package index_menu3_fla {
import flash.display.*;
public dynamic class friends_out_359 extends MovieClip {
public function friends_out_359(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package index_menu3_fla
Section 45
//hidemainbtns_67 (index_menu3_fla.hidemainbtns_67)
package index_menu3_fla {
import flash.display.*;
public dynamic class hidemainbtns_67 extends MovieClip {
public function hidemainbtns_67(){
addFrameScript(12, frame13);
}
function frame13(){
stop();
}
}
}//package index_menu3_fla
Section 46
//hit_341 (index_menu3_fla.hit_341)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class hit_341 extends MovieClip {
public function hit_341(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
dispatchEvent(new Event("BallBoom"));
}
}
}//package index_menu3_fla
Section 47
//howtoplay_56 (index_menu3_fla.howtoplay_56)
package index_menu3_fla {
import flash.display.*;
public dynamic class howtoplay_56 extends MovieClip {
public function howtoplay_56(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 48
//line_58 (index_menu3_fla.line_58)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 line_58 extends MovieClip {
public var creditsbtn:MovieClip;
public var startbtn:MovieClip;
public var soundbtn:MovieClip;
public var morebtn:MovieClip;
public function line_58(){
addFrameScript(79, frame80);
}
public function startbtnMO(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame80(){
stop();
startbtn.useHandCursor = true;
startbtn.buttonMode = true;
startbtn.addEventListener(MouseEvent.CLICK, startbtnCLICK);
startbtn.addEventListener(MouseEvent.MOUSE_MOVE, startbtnMM);
startbtn.addEventListener(MouseEvent.MOUSE_OUT, startbtnMO);
soundbtn.useHandCursor = true;
soundbtn.buttonMode = true;
soundbtn.addEventListener(MouseEvent.CLICK, soundbtnCLICK);
soundbtn.addEventListener(MouseEvent.MOUSE_MOVE, soundbtnMM);
soundbtn.addEventListener(MouseEvent.MOUSE_OUT, soundbtnMO);
morebtn.useHandCursor = true;
morebtn.buttonMode = true;
morebtn.addEventListener(MouseEvent.CLICK, morebtnCLICK);
morebtn.addEventListener(MouseEvent.MOUSE_MOVE, morebtnMM);
morebtn.addEventListener(MouseEvent.MOUSE_OUT, morebtnMO);
creditsbtn.useHandCursor = true;
creditsbtn.buttonMode = true;
creditsbtn.addEventListener(MouseEvent.CLICK, creditsbtnCLICK);
creditsbtn.addEventListener(MouseEvent.MOUSE_MOVE, creditsbtnMM);
creditsbtn.addEventListener(MouseEvent.MOUSE_OUT, creditsbtnMO);
}
public function creditsbtnCLICK(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("CREDITS"));
}
public function soundbtnMO(_arg1:MouseEvent):void{
if (!_arg1.target.hitTestPoint(_arg1.stageX, _arg1.stageY, true)){
_arg1.target.gotoAndStop(1);
};
}
public function soundbtnMM(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function creditsbtnMM(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function soundbtnCLICK(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("SOUND"));
}
public function morebtnMO(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
public function creditsbtnMO(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
public function morebtnMM(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function startbtnMM(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function morebtnCLICK(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("MORE"));
}
public function startbtnCLICK(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("START"));
}
}
}//package index_menu3_fla
Section 49
//line_back_74 (index_menu3_fla.line_back_74)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 line_back_74 extends MovieClip {
public var backbtn:MovieClip;
public var sl:MovieClip;
public var htpbtn:MovieClip;
public function line_back_74(){
addFrameScript(0, frame1, 34, frame35);
}
public function htpbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function backbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
public function htpbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame1(){
if ((parent as MovieClip).currentFrame < 55){
sl.gotoAndStop(10);
};
backbtn.buttonMode = true;
backbtn.useHandCursor = true;
backbtn.addEventListener(MouseEvent.CLICK, backbtnEvent);
backbtn.addEventListener(MouseEvent.MOUSE_OVER, backbtnMOVEvent);
backbtn.addEventListener(MouseEvent.MOUSE_OUT, backbtnOUEvent);
htpbtn.buttonMode = true;
htpbtn.useHandCursor = true;
htpbtn.addEventListener(MouseEvent.CLICK, htpbtnEvent);
htpbtn.addEventListener(MouseEvent.MOUSE_OVER, htpbtnMOVEvent);
htpbtn.addEventListener(MouseEvent.MOUSE_OUT, htpbtnOUEvent);
stop();
}
public function htpbtnEvent(_arg1:Event):void{
new button().play();
SoundMixer.stopAll();
gotoAndPlay(2);
(parent as MovieClip).gotoAndPlay(330);
dispatchEvent(new Event("LINEGOBACK1"));
}
public function backbtnEvent(_arg1:Event):void{
new button().play();
gotoAndPlay(2);
(parent as MovieClip).showring = 0;
(parent as MovieClip).LINEGOBACKEVENT(null);
}
public function backbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame35(){
stop();
}
}
}//package index_menu3_fla
Section 50
//line_start_10 (index_menu3_fla.line_start_10)
package index_menu3_fla {
import flash.display.*;
public dynamic class line_start_10 extends MovieClip {
public function line_start_10(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package index_menu3_fla
Section 51
//line_start_close_50 (index_menu3_fla.line_start_close_50)
package index_menu3_fla {
import flash.display.*;
public dynamic class line_start_close_50 extends MovieClip {
public function line_start_close_50(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package index_menu3_fla
Section 52
//line_start_close_scroll_88 (index_menu3_fla.line_start_close_scroll_88)
package index_menu3_fla {
import flash.display.*;
public dynamic class line_start_close_scroll_88 extends MovieClip {
public function line_start_close_scroll_88(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package index_menu3_fla
Section 53
//line1234_159 (index_menu3_fla.line1234_159)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class line1234_159 extends MovieClip {
public var back:MovieClip;
public function line1234_159(){
addFrameScript(9, frame10, 19, frame20);
}
function frame10(){
stop();
back.useHandCursor = true;
back.buttonMode = true;
back.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
gotoAndPlay(11);
});
back.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event){
back.gotoAndStop(2);
});
back.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event){
back.gotoAndStop(1);
});
}
function frame20(){
SoundMixer.stopAll();
(parent as MovieClip).gotoAndStop(1, "Menu");
}
}
}//package index_menu3_fla
Section 54
//line2_66 (index_menu3_fla.line2_66)
package index_menu3_fla {
import flash.display.*;
public dynamic class line2_66 extends MovieClip {
public var hidemainbtns:MovieClip;
public function line2_66(){
addFrameScript(49, frame50);
}
function frame50(){
stop();
}
}
}//package index_menu3_fla
Section 55
//M_BODY_164 (index_menu3_fla.M_BODY_164)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_BODY_164 extends MovieClip {
public function M_BODY_164(){
addFrameScript(24, frame25, 39, frame40, 79, frame80, 89, frame90, 94, frame95, 125, frame126, 138, frame139, 149, frame150, 169, frame170);
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame170(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame126(){
stop();
}
function frame40(){
stop();
}
function frame139(){
gotoAndStop(1);
}
function frame150(){
stop();
}
}
}//package index_menu3_fla
Section 56
//M_BODY_171 (index_menu3_fla.M_BODY_171)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_BODY_171 extends MovieClip {
public function M_BODY_171(){
addFrameScript(24, frame25, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 94, frame95, 126, frame127, 138, frame139, 149, frame150, 168, frame169);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame169(){
gotoAndStop(1);
}
function frame90(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame40(){
stop();
}
function frame127(){
stop();
}
function frame139(){
gotoAndStop(1);
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame150(){
stop();
}
}
}//package index_menu3_fla
Section 57
//M_BODY_turn_167 (index_menu3_fla.M_BODY_turn_167)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_BODY_turn_167 extends MovieClip {
public function M_BODY_turn_167(){
addFrameScript(9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 60, frame61);
}
function frame10(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
gotoAndStop(1);
}
function frame50(){
gotoAndStop(30);
}
function frame61(){
gotoAndStop(1);
}
}
}//package index_menu3_fla
Section 58
//M_BODY_turn_173 (index_menu3_fla.M_BODY_turn_173)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_BODY_turn_173 extends MovieClip {
public function M_BODY_turn_173(){
addFrameScript(9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 60, frame61);
}
function frame10(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
gotoAndStop(1);
}
function frame50(){
gotoAndStop(30);
}
function frame61(){
gotoAndStop(1);
}
}
}//package index_menu3_fla
Section 59
//M_EYES_165 (index_menu3_fla.M_EYES_165)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_EYES_165 extends MovieClip {
public function M_EYES_165(){
addFrameScript(24, frame25, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 94, frame95, 126, frame127, 138, frame139, 149, frame150, 168, frame169);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame169(){
gotoAndStop(1);
}
function frame90(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame40(){
stop();
}
function frame127(){
stop();
}
function frame139(){
gotoAndStop(1);
}
function frame50(){
stop();
}
function frame60(){
stop();
}
function frame150(){
stop();
}
}
}//package index_menu3_fla
Section 60
//M_MOUTH_166 (index_menu3_fla.M_MOUTH_166)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_MOUTH_166 extends MovieClip {
public function M_MOUTH_166(){
addFrameScript(24, frame25, 39, frame40, 79, frame80, 89, frame90, 94, frame95, 125, frame126, 138, frame139, 149, frame150, 169, frame170);
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame170(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame126(){
stop();
}
function frame40(){
stop();
}
function frame139(){
gotoAndStop(1);
}
function frame150(){
stop();
}
}
}//package index_menu3_fla
Section 61
//M_MOUTH_172 (index_menu3_fla.M_MOUTH_172)
package index_menu3_fla {
import flash.display.*;
public dynamic class M_MOUTH_172 extends MovieClip {
public function M_MOUTH_172(){
addFrameScript(24, frame25, 39, frame40, 79, frame80, 89, frame90, 94, frame95, 125, frame126, 138, frame139, 149, frame150, 169, frame170);
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame170(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame126(){
stop();
}
function frame40(){
stop();
}
function frame139(){
gotoAndStop(1);
}
function frame150(){
stop();
}
}
}//package index_menu3_fla
Section 62
//main_6 (index_menu3_fla.main_6)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 main_6 extends MovieClip {
public var totalmonsters:TextField;
public var line:MovieClip;
public var skipbtn:MovieClip;
public var nextbtn:MovieClip;
public var s:Sound;
public var maintimedig:TextField;
public var forward:Boolean;
public var totalscore:TextField;
public var title2:MovieClip;
public function main_6(){
addFrameScript(0, frame1, 1, frame2, 24, frame25, 29, frame30, 34, frame35, 63, frame64, 68, frame69, 74, frame75, 179, frame180, 293, frame294, 298, frame299, 304, frame305, 320, frame321, 325, frame326, 331, frame332, 355, frame356, 361, frame362, 365, frame366, 397, frame398, 401, frame402, 416, frame417, 427, frame428, 447, frame448, 454, frame455, 471, frame472, 477, frame478, 502, frame503, 534, frame535);
}
function frame398(){
stop();
}
function frame75(){
skipbtn.visible = false;
nextbtn.visible = false;
}
function frame64(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame321(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame448(){
stop();
}
function frame305(){
skipbtn.visible = false;
nextbtn.visible = false;
}
public function skipbtnEvent(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("SKIP"));
}
public function skipbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame299(){
stop();
}
function frame326(){
stop();
nextbtn.useHandCursor = true;
nextbtn.buttonMode = true;
}
function frame332(){
skipbtn.visible = false;
nextbtn.visible = false;
}
function frame455(){
skipbtn.visible = false;
}
function frame180(){
s = new monsters();
s.play();
}
function frame1(){
stop();
line.visible = false;
line.gotoAndStop(1);
}
function frame294(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame25(){
skipbtn.visible = true;
}
public function skipbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
function frame2(){
line.gotoAndPlay(2);
line.visible = true;
skipbtn.visible = false;
}
public function nextbtnEvent(_arg1:Event):void{
new button().play();
gotoAndPlay((currentFrame + 1));
}
function frame478(){
stop();
}
function frame503(){
stop();
}
function frame30(){
stop();
nextbtn.buttonMode = true;
nextbtn.useHandCursor = true;
nextbtn.addEventListener(MouseEvent.CLICK, nextbtnEvent);
nextbtn.addEventListener(MouseEvent.MOUSE_OVER, nextbtnMOVEvent);
nextbtn.addEventListener(MouseEvent.MOUSE_OUT, nextbtnOUEvent);
skipbtn.buttonMode = true;
skipbtn.useHandCursor = true;
skipbtn.addEventListener(MouseEvent.CLICK, skipbtnEvent);
skipbtn.addEventListener(MouseEvent.MOUSE_OVER, skipbtnMOVEvent);
skipbtn.addEventListener(MouseEvent.MOUSE_OUT, skipbtnOUEvent);
if (forward){
gotoAndStop(362);
};
}
function frame472(){
skipbtn.visible = true;
}
function frame356(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame366(){
stop();
}
public function nextbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
function frame362(){
stop();
}
function frame402(){
skipbtn.visible = false;
}
function frame35(){
skipbtn.visible = false;
nextbtn.visible = false;
}
public function nextbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame535(){
stop();
dispatchEvent(new Event("GOTOLEVELS"));
}
function frame417(){
skipbtn.visible = true;
}
function frame428(){
stop();
}
function frame69(){
stop();
}
}
}//package index_menu3_fla
Section 63
//main_back_65 (index_menu3_fla.main_back_65)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 main_back_65 extends MovieClip {
public var line:MovieClip;
public var skipbtn:MovieClip;
public var nextbtn:MovieClip;
public var s:Sound;
public var forward:Boolean;
public function main_back_65(){
addFrameScript(0, frame1, 1, frame2, 24, frame25, 29, frame30, 34, frame35, 63, frame64, 68, frame69, 74, frame75, 179, frame180, 293, frame294, 298, frame299, 304, frame305, 320, frame321, 325, frame326, 331, frame332, 355, frame356, 361, frame362, 365, frame366, 397, frame398, 401, frame402, 416, frame417, 427, frame428, 447, frame448, 454, frame455, 471, frame472, 477, frame478, 502, frame503, 534, frame535);
}
function frame398(){
stop();
}
function frame75(){
skipbtn.visible = false;
nextbtn.visible = false;
}
function frame64(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame321(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame448(){
stop();
}
public function skipbtnEvent(_arg1:Event):void{
new button().play();
dispatchEvent(new Event("SKIP"));
}
function frame305(){
skipbtn.visible = false;
nextbtn.visible = false;
}
public function skipbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame299(){
stop();
}
function frame326(){
stop();
nextbtn.useHandCursor = true;
nextbtn.buttonMode = true;
}
function frame332(){
skipbtn.visible = false;
nextbtn.visible = false;
}
function frame455(){
skipbtn.visible = false;
}
function frame180(){
s = new monsters();
s.play();
}
function frame1(){
stop();
line.visible = false;
line.gotoAndStop(1);
}
function frame294(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame25(){
skipbtn.visible = true;
}
public function skipbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
function frame2(){
line.gotoAndPlay(2);
line.visible = true;
skipbtn.visible = false;
}
public function nextbtnEvent(_arg1:Event):void{
new button().play();
gotoAndPlay((currentFrame + 1));
}
function frame478(){
stop();
}
function frame503(){
stop();
}
function frame30(){
stop();
nextbtn.buttonMode = true;
nextbtn.useHandCursor = true;
nextbtn.addEventListener(MouseEvent.CLICK, nextbtnEvent);
nextbtn.addEventListener(MouseEvent.MOUSE_OVER, nextbtnMOVEvent);
nextbtn.addEventListener(MouseEvent.MOUSE_OUT, nextbtnOUEvent);
skipbtn.buttonMode = true;
skipbtn.useHandCursor = true;
skipbtn.addEventListener(MouseEvent.CLICK, skipbtnEvent);
skipbtn.addEventListener(MouseEvent.MOUSE_OVER, skipbtnMOVEvent);
skipbtn.addEventListener(MouseEvent.MOUSE_OUT, skipbtnOUEvent);
if (forward){
gotoAndStop(362);
};
}
function frame472(){
skipbtn.visible = true;
}
function frame356(){
skipbtn.visible = true;
nextbtn.visible = true;
}
function frame366(){
stop();
}
public function nextbtnMOVEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(2);
}
function frame362(){
stop();
}
function frame402(){
skipbtn.visible = false;
}
function frame35(){
skipbtn.visible = false;
nextbtn.visible = false;
}
public function nextbtnOUEvent(_arg1:Event):void{
_arg1.target.gotoAndStop(1);
}
function frame535(){
stop();
dispatchEvent(new Event("GOTOLEVELS"));
}
function frame417(){
skipbtn.visible = true;
}
function frame428(){
stop();
}
function frame69(){
stop();
}
}
}//package index_menu3_fla
Section 64
//main_level_complete_52 (index_menu3_fla.main_level_complete_52)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_level_complete_52 extends MovieClip {
public function main_level_complete_52(){
addFrameScript(0, frame1, 15, frame16, 30, frame31, 45, frame46, 60, frame61, 75, frame76, 90, frame91, 105, frame106, 120, frame121, 135, frame136, 150, frame151);
}
function frame151(){
stop();
}
function frame76(){
stop();
}
function frame91(){
stop();
}
function frame16(){
stop();
}
function frame1(){
stop();
}
function frame106(){
stop();
}
function frame31(){
stop();
}
function frame46(){
stop();
}
function frame121(){
stop();
}
function frame136(){
stop();
}
function frame61(){
stop();
}
}
}//package index_menu3_fla
Section 65
//main_s_1_87 (index_menu3_fla.main_s_1_87)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_1_87 extends MovieClip {
public var line:MovieClip;
public function main_s_1_87(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 66
//main_s_10_102 (index_menu3_fla.main_s_10_102)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_10_102 extends MovieClip {
public var line:MovieClip;
public function main_s_10_102(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 67
//main_s_11_103 (index_menu3_fla.main_s_11_103)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_11_103 extends MovieClip {
public var line:MovieClip;
public function main_s_11_103(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 68
//main_s_2_94 (index_menu3_fla.main_s_2_94)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_2_94 extends MovieClip {
public var line:MovieClip;
public function main_s_2_94(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 69
//main_s_3_95 (index_menu3_fla.main_s_3_95)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_3_95 extends MovieClip {
public var line:MovieClip;
public function main_s_3_95(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 70
//main_s_4_96 (index_menu3_fla.main_s_4_96)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_4_96 extends MovieClip {
public var line:MovieClip;
public function main_s_4_96(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 71
//main_s_5_97 (index_menu3_fla.main_s_5_97)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_5_97 extends MovieClip {
public var line:MovieClip;
public function main_s_5_97(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 72
//main_s_6_98 (index_menu3_fla.main_s_6_98)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_6_98 extends MovieClip {
public var line:MovieClip;
public function main_s_6_98(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 73
//main_s_7_99 (index_menu3_fla.main_s_7_99)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_7_99 extends MovieClip {
public var line:MovieClip;
public function main_s_7_99(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 74
//main_s_8_100 (index_menu3_fla.main_s_8_100)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_8_100 extends MovieClip {
public var line:MovieClip;
public function main_s_8_100(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 75
//main_s_9_101 (index_menu3_fla.main_s_9_101)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_s_9_101 extends MovieClip {
public var line:MovieClip;
public function main_s_9_101(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package index_menu3_fla
Section 76
//main_tutorial_104 (index_menu3_fla.main_tutorial_104)
package index_menu3_fla {
import flash.display.*;
public dynamic class main_tutorial_104 extends MovieClip {
public function main_tutorial_104(){
addFrameScript(36, frame37, 66, frame67, 86, frame87, 116, frame117, 141, frame142, 173, frame174);
}
function frame87(){
stop();
}
function frame174(){
stop();
}
function frame117(){
stop();
}
function frame37(){
stop();
}
function frame142(){
stop();
}
function frame67(){
stop();
}
}
}//package index_menu3_fla
Section 77
//MainTimeline (index_menu3_fla.MainTimeline)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 maintime:uint;
public var levelcount:TextField;
public var pausemc:MovieClip;
public var lbar:MovieClip;
public var leveltime:Array;
public var st:uint;
public var myContextMenu:ContextMenu;
public var i:uint;
public var ugohome:MovieClip;
public var mainmenu:MovieClip;
public var totalcountsvar:uint;
public var showring:uint;
public var emc:MovieClip;
public var maintimedig:TextField;
public var time:uint;
public var playlevel:uint;
public var totalmonstersvar:uint;
public var item:ContextMenuItem;
public var totalmonsters:TextField;
public var ltime:uint;
public var tsec:String;
public var lpc:TextField;
public var tmin;
public var frame:MovieClip;
public var levelsdone:uint;
public var wwwbtnarea:MovieClip;
public var donelevels:Array;
public var levelcounts:Array;
public var totalscore:TextField;
public var monstrescount:TextField;
public var bighome:MovieClip;
public var totalbonusvar:uint;
public var allrooms:ROOM;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 7, frame8, 15, frame16);
}
public function wwwCLICK(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.mutanky.com/"), "_blank");
}
function frame16(){
levelsdone = allrooms.levelid;
showring = allrooms.levelid;
levelcounts[showring] = allrooms.levelcountvar;
leveltime[showring] = allrooms.levelеtimer.currentCount;
gotoAndStop(1, "Menu");
stop();
}
public function moregamesCLICK(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.ugoplayer.com"), "_blank");
}
function frame3(){
mainmenu.addEventListener("PLAYLEVEL", PLAYLEVELEVENT);
mainmenu.levelsdone = levelsdone;
mainmenu.showring = showring;
stop();
MochiAd.showPreGameAd({clip:emc, id:"b5f04e3904d64e99", res:"720x540", no_bg:true});
}
function frame4(){
stop();
}
function frame5(){
time = maintime;
tmin = String(int((time / 60)));
tsec = String((time % 60));
if (tmin.length == 1){
tmin = ("0" + tmin);
};
if (tsec.length == 1){
tsec = ("0" + tsec);
};
maintimedig.text = ((tmin + ":") + tsec);
totalscore.text = "";
i = 0;
while (i < (6 - String((totalbonusvar + totalcountsvar)).length)) {
totalscore.appendText("0");
i++;
};
totalscore.appendText(String((totalbonusvar + totalcountsvar)));
totalmonsters.text = "";
i = 0;
while (i < (3 - String(totalmonstersvar).length)) {
totalmonsters.appendText("0");
i++;
};
totalmonsters.appendText(String(totalmonstersvar));
}
public function PAUSEEVENT(_arg1:Event):void{
var _local2:SoundTransform;
pausemc.visible = true;
_local2 = allrooms.musicchannel.soundTransform;
if (_local2.volume > 0.25){
_local2.volume = 0.25;
};
allrooms.musicchannel.soundTransform = _local2;
trace(allrooms.musicchannel.soundTransform.volume);
}
function frame6(){
bighome.useHandCursor = true;
bighome.buttonMode = true;
bighome.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest("http://mutanky.com/games/"), "_blank");
});
ugohome.useHandCursor = true;
ugohome.buttonMode = true;
ugohome.addEventListener(MouseEvent.CLICK, function (_arg1:Event){
navigateToURL(new URLRequest("http://www.ugoplayer.com"), "_blank");
});
}
function frame1(){
playlevel = 1;
levelsdone = 0;
levelcounts = [];
leveltime = [];
showring = 0;
donelevels = [];
totalbonusvar = 0;
totalcountsvar = 0;
totalmonstersvar = 0;
maintime = (20 * 60);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
myContextMenu = new ContextMenu();
item = new ContextMenuItem("MUTANKY HOME - MORE GAMES");
myContextMenu.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemSelectHandler);
contextMenu = myContextMenu;
st = getTimer();
}
function frame2(){
ltime = (getTimer() - st);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, update);
stop();
}
function frame8(){
pausemc.visible = false;
pausemc.rebumebtn.buttonMode = true;
pausemc.rebumebtn.useHandCursor = true;
pausemc.rebumebtn.addEventListener(MouseEvent.CLICK, resumeCLICK);
pausemc.rebumebtn.addEventListener(MouseEvent.MOUSE_OVER, pausebtnsMOV);
pausemc.rebumebtn.addEventListener(MouseEvent.MOUSE_OUT, pausebtnsMO);
pausemc.moregamesbtn.buttonMode = true;
pausemc.moregamesbtn.useHandCursor = true;
pausemc.moregamesbtn.addEventListener(MouseEvent.CLICK, moregamesCLICK);
pausemc.moregamesbtn.addEventListener(MouseEvent.MOUSE_OVER, pausebtnsMOV);
pausemc.moregamesbtn.addEventListener(MouseEvent.MOUSE_OUT, pausebtnsMO);
pausemc.exitbtn.buttonMode = true;
pausemc.exitbtn.useHandCursor = true;
pausemc.exitbtn.addEventListener(MouseEvent.CLICK, exitCLICK);
pausemc.exitbtn.addEventListener(MouseEvent.MOUSE_OVER, pausebtnsMOV);
pausemc.exitbtn.addEventListener(MouseEvent.MOUSE_OUT, pausebtnsMO);
wwwbtnarea.buttonMode = true;
wwwbtnarea.useHandCursor = true;
wwwbtnarea.addEventListener(MouseEvent.CLICK, wwwCLICK);
allrooms.addEventListener("SETSCORE", SETSCORE);
allrooms.addEventListener("LEVELDONE", LEVELDONE);
allrooms.addEventListener("PAUSE", PAUSEEVENT);
allrooms.addEventListener("PAUSEEXIT", PAUSEEXITEVENT);
SETSCORE(null);
allrooms.initlevel(playlevel);
stop();
}
public function update(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = Math.floor(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal));
trace(_local2);
lpc.text = (_local2 + "%");
lbar.scaleX = (_local2 / 100);
if (_local2 == 100){
gotoAndPlay(1, "Menu");
};
}
public function menuItemSelectHandler(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest("http://www.mutanky.com/games/"), "_blank");
}
public function LEVELDONE(_arg1:Event):void{
gotoAndPlay(3);
}
public function pausebtnsMO(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(1);
}
public function PAUSEEXITEVENT(_arg1:Event):void{
pausemc.visible = false;
}
public function exitCLICK(_arg1:MouseEvent):void{
SoundMixer.stopAll();
allrooms.musicchannel.stop();
showring = 0;
gotoAndStop(1, "Menu");
}
public function pausebtnsMOV(_arg1:MouseEvent):void{
_arg1.target.gotoAndStop(2);
}
public function initstart():void{
playlevel = 1;
levelsdone = 0;
levelcounts = [];
leveltime = [];
showring = 0;
donelevels = [];
totalbonusvar = 0;
totalcountsvar = 0;
totalmonstersvar = 0;
maintime = (20 * 60);
}
public function resumeCLICK(_arg1:MouseEvent):void{
allrooms.resume();
pausemc.visible = false;
}
public function SETSCORE(_arg1:Event):void{
var _local2:uint;
levelcount.text = "";
_local2 = 0;
while (_local2 < (6 - String(allrooms.levelcountvar).length)) {
levelcount.appendText("0");
_local2++;
};
levelcount.appendText(String(allrooms.levelcountvar));
if (allrooms.monsterscountvar > 9){
monstrescount.text = String(allrooms.monsterscountvar);
} else {
monstrescount.text = ("0" + String(allrooms.monsterscountvar));
};
}
public function PLAYLEVELEVENT(_arg1:Event):void{
playlevel = mainmenu.gotolevel;
gotoAndStop(2, "Main");
}
}
}//package index_menu3_fla
Section 78
//MENU_5 (index_menu3_fla.MENU_5)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 MENU_5 extends MovieClip {
public var gotolevel:uint;
public var bontimes:Array;
public var line_back:MovieClip;
public var l1_btn:MovieClip;
public var needtoreset:Boolean;
public var l5_btn:MovieClip;
public var i:uint;
public var l9_btn:MovieClip;
public var m:MovieClip;
public var tb:uint;
public var gotohtp:Boolean;
public var z:MovieClip;
public var showring:uint;
public var line2:MovieClip;
public var maintimedig:TextField;
public var title1:MovieClip;
public var title2:MovieClip;
public var l4_btn:MovieClip;
public var l8_btn:MovieClip;
public var totalmonsters:TextField;
public var skipped:Boolean;
public var l3_btn:MovieClip;
public var l7_btn:MovieClip;
public var levelsdone;
public var donelevels:Array;
public var l10_btn:MovieClip;
public var main:MovieClip;
public var totalscore:TextField;
public var l2_btn:MovieClip;
public var l6_btn:MovieClip;
public var demo:MovieClip;
public var completelevel:MovieClip;
public var line:MovieClip;
public function MENU_5(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 25, frame26, 36, frame37, 50, frame51, 54, frame55, 74, frame75, 79, frame80, 99, frame100, 104, frame105, 124, frame125, 129, frame130, 149, frame150, 154, frame155, 174, frame175, 179, frame180, 199, frame200, 204, frame205, 224, frame225, 229, frame230, 249, frame250, 254, frame255, 274, frame275, 279, frame280, 299, frame300, 304, frame305, 324, frame325, 329, frame330, 350, frame351, 359, frame360, 360, frame361, 384, frame385);
}
function frame275(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame155(){
setscore();
}
function frame280(){
setscore();
}
public function MOREEVENT(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.ugoplayer.com"), "_blank");
}
public function CREDITSEVENT(_arg1:Event):void{
(parent as MovieClip).gotoAndStop(1, "CreditsMenu");
}
public function SKIPEVENT(_arg1:Event):void{
skipped = true;
switch (main.currentFrame){
case 30:
gotoAndPlay(55);
break;
case 69:
gotoAndPlay(80);
break;
case 299:
gotoAndPlay(105);
break;
case 326:
gotoAndPlay(130);
break;
case 362:
gotoAndPlay(155);
break;
case 366:
gotoAndPlay(180);
break;
case 398:
gotoAndPlay(205);
break;
case 423:
gotoAndPlay(230);
break;
case 428:
gotoAndPlay(0xFF);
break;
case 448:
gotoAndPlay(280);
break;
case 478:
gotoAndPlay(305);
break;
case 503:
gotoAndPlay(330);
break;
};
if (line2 != null){
line2.hidemainbtns.visible = false;
};
}
function frame180(){
setscore();
}
function frame1(){
stop();
gotolevel = 0;
if (needtoreset){
line.visible = true;
line.gotoAndPlay(1);
main.forward = false;
title1.visible = true;
main.gotoAndStop(1);
needtoreset = false;
};
if (((!(gotohtp)) && (!(needtoreset)))){
showring = (parent as MovieClip).showring;
} else {
showring = 0;
};
donelevels = (parent as MovieClip).donelevels;
title2.visible = false;
completelevel.visible = false;
if (showring > 0){
bontimes = [25, 45, 55, 70, 60, 90, 120, 120, 120, 0];
tb = 0;
if ((parent as MovieClip).leveltime[showring] <= bontimes[(showring - 1)]){
tb = 1000;
};
completelevel.scoreinfo.ls.text = (parent as MovieClip).levelcounts[showring];
completelevel.scoreinfo.tb.text = tb;
(parent as MovieClip).totalbonusvar = ((parent as MovieClip).totalbonusvar + tb);
(parent as MovieClip).totalcountsvar = ((parent as MovieClip).totalcountsvar + (parent as MovieClip).levelcounts[showring]);
(parent as MovieClip).totalmonstersvar = ((parent as MovieClip).totalmonstersvar + 15);
completelevel.visible = true;
completelevel.bg.gotoAndPlay((((showring - 1) * 15) + 2));
gotoAndStop(360);
};
setscore();
main.totalscore.text = totalscore.text;
main.totalmonsters.text = totalmonsters.text;
main.maintimedig.text = maintimedig.text;
if (gotohtp){
showring = 0;
gotohtp = false;
gotoAndStop(2);
main.gotoAndPlay(30);
main.forward = true;
main.line.gotoAndPlay(20);
line.visible = false;
title1.visible = false;
};
line.addEventListener("SOUND", SOUNDEVENT);
line.addEventListener("MORE", MOREEVENT);
line.addEventListener("CREDITS", CREDITSEVENT);
line.addEventListener("START", STARTEVENT);
main.addEventListener("SKIP", SKIPEVENT);
main.addEventListener("GOTOLEVELS", GOTOLEVELSEVENT);
}
function frame175(){
setscore();
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame26(){
setscore();
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame2(){
m.visible = false;
}
function frame3(){
if (skipped){
line2.hidemainbtns.visible = false;
};
setscore();
}
function frame37(){
needtoreset = true;
line_back.visible = false;
}
function frame51(){
needtoreset = true;
SoundMixer.stopAll();
gotoAndStop(1);
}
function frame55(){
setscore();
m.gotoAndPlay(1);
}
function frame300(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
public function SOUNDEVENT(_arg1:Event):void{
}
function frame75(){
setscore();
showring = (parent as MovieClip).showring;
trace("showring", showring);
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame305(){
setscore();
}
function frame80(){
setscore();
m.gotoAndPlay(1);
}
function frame325(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame205(){
setscore();
}
public function GOTOLEVELSEVENT(_arg1:Event):void{
trace("!6");
skipped = true;
gotoAndPlay(3);
}
function frame200(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame330(){
}
function frame105(){
setscore();
}
function frame100(){
setscore();
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
public function setscore():void{
var _local1:uint;
var _local2:*;
var _local3:String;
_local1 = (parent as MovieClip).maintime;
_local2 = String(int((_local1 / 60)));
_local3 = String((_local1 % 60));
if (_local2.length == 1){
_local2 = ("0" + _local2);
};
if (_local3.length == 1){
_local3 = ("0" + _local3);
};
maintimedig.text = ((_local2 + ":") + _local3);
if (m != null){
m.visible = true;
};
totalscore.text = "";
i = 0;
while (i < (6 - String(((parent as MovieClip).totalbonusvar + (parent as MovieClip).totalcountsvar)).length)) {
totalscore.appendText("0");
i++;
};
totalscore.appendText(String(((parent as MovieClip).totalbonusvar + (parent as MovieClip).totalcountsvar)));
totalmonsters.text = "";
i = 0;
while (i < (3 - String((parent as MovieClip).totalmonstersvar).length)) {
totalmonsters.appendText("0");
i++;
};
totalmonsters.appendText(String((parent as MovieClip).totalmonstersvar));
}
function frame225(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
public function STARTEVENT(_arg1:Event):void{
trace(skipped, levelsdone);
gotohtp = false;
line.visible = false;
title2.visible = false;
if (((skipped) || ((levelsdone > 0)))){
trace("!4");
gotoAndPlay(2);
title2.visible = true;
title2.gotoAndPlay(1);
} else {
trace("!5");
title1.visible = false;
main.gotoAndPlay(2);
gotoAndStop(2);
};
}
function frame230(){
setscore();
}
function frame351(){
gotohtp = true;
gotoAndStop(1);
}
public function LINEGOBACKEVENT(_arg1:Event):void{
trace("!lgb");
showring = 0;
completelevel.visible = false;
gotoAndPlay(27);
}
function frame360(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame361(){
setscore();
}
function frame125(){
setscore();
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame250(){
setscore();
if (showring > 0){
main.line.visible = false;
};
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
function frame130(){
setscore();
}
function frame255(){
setscore();
}
function frame385(){
completelevel.visible = false;
gotoAndStop(75);
}
function frame150(){
setscore();
i = 1;
while (i < 11) {
z = (getChildByName((("l" + i) + "_btn")) as MovieClip);
if (z != null){
z.ring.visible = false;
if (i == (levelsdone + 1)){
z.buttonMode = true;
z.useHandCursor = true;
z.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
new button().play();
if (int(_arg1.target.name.substr(1, 2)) == 10){
gotolevel = 10;
} else {
gotolevel = int(_arg1.target.name.substr(1, 1));
};
dispatchEvent(new Event("PLAYLEVEL"));
});
z.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
z.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
} else {
if (i <= levelsdone){
z.ring.visible = true;
z.gotoAndStop(2);
if (showring == i){
z.ring.gotoAndPlay(1);
new ring().play();
} else {
z.ring.gotoAndStop(25);
};
};
};
};
i++;
};
showring = 0;
stop();
}
}
}//package index_menu3_fla
Section 79
//MONSTA_163 (index_menu3_fla.MONSTA_163)
package index_menu3_fla {
import flash.display.*;
public dynamic class MONSTA_163 extends MovieClip {
public var eyes:MovieClip;
public var body:MovieClip;
public var mouth:MovieClip;
}
}//package index_menu3_fla
Section 80
//MONSTA_170 (index_menu3_fla.MONSTA_170)
package index_menu3_fla {
import flash.display.*;
public dynamic class MONSTA_170 extends MovieClip {
public var eyes:MovieClip;
public var body:MovieClip;
public var mouth:MovieClip;
}
}//package index_menu3_fla
Section 81
//MONSTA_ns_120 (index_menu3_fla.MONSTA_ns_120)
package index_menu3_fla {
import flash.display.*;
public dynamic class MONSTA_ns_120 extends MovieClip {
public var eyes:MovieClip;
public var body:MovieClip;
public var mouth:MovieClip;
}
}//package index_menu3_fla
Section 82
//more_63 (index_menu3_fla.more_63)
package index_menu3_fla {
import flash.display.*;
public dynamic class more_63 extends MovieClip {
public function more_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 83
//moregamesbtn_377 (index_menu3_fla.moregamesbtn_377)
package index_menu3_fla {
import flash.display.*;
public dynamic class moregamesbtn_377 extends MovieClip {
public function moregamesbtn_377(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 84
//NEXT_16 (index_menu3_fla.NEXT_16)
package index_menu3_fla {
import flash.display.*;
public dynamic class NEXT_16 extends MovieClip {
public function NEXT_16(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 85
//pausemc_375 (index_menu3_fla.pausemc_375)
package index_menu3_fla {
import flash.display.*;
public dynamic class pausemc_375 extends MovieClip {
public var moregamesbtn:MovieClip;
public var exitbtn:MovieClip;
public var rebumebtn:MovieClip;
}
}//package index_menu3_fla
Section 86
//rainbow_187 (index_menu3_fla.rainbow_187)
package index_menu3_fla {
import flash.display.*;
public dynamic class rainbow_187 extends MovieClip {
public function rainbow_187(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
stop();
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 87
//rebumebtn_376 (index_menu3_fla.rebumebtn_376)
package index_menu3_fla {
import flash.display.*;
public dynamic class rebumebtn_376 extends MovieClip {
public function rebumebtn_376(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 88
//redbtn_256 (index_menu3_fla.redbtn_256)
package index_menu3_fla {
import flash.display.*;
public dynamic class redbtn_256 extends MovieClip {
public function redbtn_256(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 89
//redbtn10_316 (index_menu3_fla.redbtn10_316)
package index_menu3_fla {
import flash.display.*;
public dynamic class redbtn10_316 extends MovieClip {
public function redbtn10_316(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 90
//ring__77 (index_menu3_fla.ring__77)
package index_menu3_fla {
import flash.display.*;
public dynamic class ring__77 extends MovieClip {
public function ring__77(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
}
}
}//package index_menu3_fla
Section 91
//scoreinfo_54 (index_menu3_fla.scoreinfo_54)
package index_menu3_fla {
import flash.display.*;
import flash.text.*;
public dynamic class scoreinfo_54 extends MovieClip {
public var tb:TextField;
public var ls:TextField;
public var nextbtn:MovieClip;
}
}//package index_menu3_fla
Section 92
//selectlev_75 (index_menu3_fla.selectlev_75)
package index_menu3_fla {
import flash.display.*;
public dynamic class selectlev_75 extends MovieClip {
public function selectlev_75(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package index_menu3_fla
Section 93
//shole_328 (index_menu3_fla.shole_328)
package index_menu3_fla {
import flash.display.*;
public dynamic class shole_328 extends MovieClip {
public var hole_fire:MovieClip;
}
}//package index_menu3_fla
Section 94
//skeleton_327 (index_menu3_fla.skeleton_327)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
public dynamic class skeleton_327 extends MovieClip {
public function skeleton_327(){
addFrameScript(0, frame1, 89, frame90);
}
function frame90(){
dispatchEvent(new Event("SKELETON"));
visible = false;
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 95
//skip_14 (index_menu3_fla.skip_14)
package index_menu3_fla {
import flash.display.*;
public dynamic class skip_14 extends MovieClip {
public function skip_14(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 96
//sound_60 (index_menu3_fla.sound_60)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
public dynamic class sound_60 extends MovieClip {
public var sca_off:MovieClip;
public var scheck:MovieClip;
public var sca_on:MovieClip;
public function sound_60(){
addFrameScript(0, frame1, 1, frame2);
}
public function offEvent(_arg1:Event):void{
var _local2:SoundTransform;
_local2 = SoundMixer.soundTransform;
_local2.volume = 0;
SoundMixer.soundTransform = _local2;
scheck.x = 43;
}
function frame1(){
stop();
}
public function onEvent(_arg1:Event):void{
var _local2:SoundTransform;
_local2 = SoundMixer.soundTransform;
_local2.volume = 1;
SoundMixer.soundTransform = _local2;
scheck.x = -2;
}
function frame2(){
if (SoundMixer.soundTransform.volume == 1){
scheck.x = -2;
} else {
scheck.x = 44;
};
sca_on.addEventListener(MouseEvent.CLICK, onEvent);
sca_off.addEventListener(MouseEvent.CLICK, offEvent);
}
}
}//package index_menu3_fla
Section 97
//start_59 (index_menu3_fla.start_59)
package index_menu3_fla {
import flash.display.*;
public dynamic class start_59 extends MovieClip {
public function start_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 98
//Symbol2_347 (index_menu3_fla.Symbol2_347)
package index_menu3_fla {
import flash.display.*;
public dynamic class Symbol2_347 extends MovieClip {
public function Symbol2_347(){
addFrameScript(0, frame1, 15, frame16);
}
function frame16(){
stop();
}
function frame1(){
stop();
}
}
}//package index_menu3_fla
Section 99
//Symbol2_8 (index_menu3_fla.Symbol2_8)
package index_menu3_fla {
import flash.display.*;
public dynamic class Symbol2_8 extends MovieClip {
public function Symbol2_8(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package index_menu3_fla
Section 100
//title1_57 (index_menu3_fla.title1_57)
package index_menu3_fla {
import flash.display.*;
public dynamic class title1_57 extends MovieClip {
public function title1_57(){
addFrameScript(54, frame55);
}
function frame55(){
stop();
}
}
}//package index_menu3_fla
Section 101
//title2_12 (index_menu3_fla.title2_12)
package index_menu3_fla {
import flash.display.*;
public dynamic class title2_12 extends MovieClip {
public function title2_12(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package index_menu3_fla
Section 102
//UGOPRELOADER_2 (index_menu3_fla.UGOPRELOADER_2)
package index_menu3_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
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 UGOPRELOADER_2 extends MovieClip {
public var url:String;
public var tag:SimpleButton;
public var request:URLRequest;
public function UGOPRELOADER_2(){
addFrameScript(0, frame1, 9, frame10, 174, frame175);
}
function frame10(){
tag.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
url = "http://www.ugoplayer.com/?cmpid=gdi_ugp_monster_101708";
request = new URLRequest(url);
}
function frame1(){
nielsen("game_intro");
}
function frame175(){
stop();
trace((parent as MovieClip).ltime);
if ((parent as MovieClip).ltime < 250){
(parent as MovieClip).gotoAndPlay(1, "Menu");
};
}
public function nielsen(_arg1){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:Loader;
_local2 = "us-ugo";
_local3 = "ugoplayer_flashgames";
_local4 = escape(_arg1);
_local5 = new URLRequest(((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + _local2) + "&cg=") + _local3) + "&si=") + _local4) + "&rnd=") + Math.ceil((Math.random() * 100000000))));
_local6 = new Loader();
_local6.load(_local5);
addChild(_local6);
}
public function mouseDown(_arg1:MouseEvent):void{
navigateToURL(request, "_blank");
}
}
}//package index_menu3_fla
Section 103
//ball_drop (ball_drop)
package {
import flash.media.*;
public dynamic class ball_drop extends Sound {
}
}//package
Section 104
//ball_fall (ball_fall)
package {
import flash.media.*;
public dynamic class ball_fall extends Sound {
}
}//package
Section 105
//ball_grag (ball_grag)
package {
import flash.media.*;
public dynamic class ball_grag extends Sound {
}
}//package
Section 106
//bomb_sound (bomb_sound)
package {
import flash.media.*;
public dynamic class bomb_sound extends Sound {
}
}//package
Section 107
//bulk_sound (bulk_sound)
package {
import flash.media.*;
public dynamic class bulk_sound extends Sound {
}
}//package
Section 108
//button (button)
package {
import flash.media.*;
public dynamic class button extends Sound {
}
}//package
Section 109
//catapult_flash (catapult_flash)
package {
import flash.media.*;
public dynamic class catapult_flash extends Sound {
}
}//package
Section 110
//catchsound (catchsound)
package {
import flash.media.*;
public dynamic class catchsound extends Sound {
}
}//package
Section 111
//disapear (disapear)
package {
import flash.media.*;
public dynamic class disapear extends Sound {
}
}//package
Section 112
//explosion (explosion)
package {
import flash.media.*;
public dynamic class explosion extends Sound {
}
}//package
Section 113
//explosion_loop (explosion_loop)
package {
import flash.media.*;
public dynamic class explosion_loop extends Sound {
}
}//package
Section 114
//fall2 (fall2)
package {
import flash.media.*;
public dynamic class fall2 extends Sound {
}
}//package
Section 115
//flame (flame)
package {
import flash.media.*;
public dynamic class flame extends Sound {
}
}//package
Section 116
//fx (fx)
package {
import flash.media.*;
public dynamic class fx extends Sound {
}
}//package
Section 117
//hamm_0 (hamm_0)
package {
import flash.media.*;
public dynamic class hamm_0 extends Sound {
}
}//package
Section 118
//hamm_1 (hamm_1)
package {
import flash.media.*;
public dynamic class hamm_1 extends Sound {
}
}//package
Section 119
//hamm_2 (hamm_2)
package {
import flash.media.*;
public dynamic class hamm_2 extends Sound {
}
}//package
Section 120
//l1_th1 (l1_th1)
package {
public dynamic class l1_th1 extends things {
}
}//package
Section 121
//l1_th2 (l1_th2)
package {
public dynamic class l1_th2 extends things {
}
}//package
Section 122
//l1_th3 (l1_th3)
package {
public dynamic class l1_th3 extends things {
}
}//package
Section 123
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_timeout:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var sendHostProgress:Boolean;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
sendHostProgress = false;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var idx:Number;
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
idx = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
lv = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array;
var _local4:Number;
_local3 = _arg2.split(".");
_local4 = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array;
var _local5:Number;
_local4 = _arg2.split(".");
_local5 = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
MochiAd._cleanup(mc);
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = MochiAd._getRes(options, clip);
w = wh[0];
h = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 124
//monster (monster)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.system.*;
public class monster extends MovieClip {
public var superholed:Boolean;// = false
var defx;
public var ballarea:MovieClip;
var slowdown:Boolean;// = false
public var oldturn:MovieClip;
var afterbang:Boolean;// = false
public var old:MovieClip;
public var monstermask1:MovieClip;
var roar:SoundChannel;
var defy:uint;
var initheight:Number;// = 0
public var inftime:Boolean;// = false
var goout:Boolean;// = false
public var ct:uint;// = 0
var fixheight:Number;// = 0
var killed:Boolean;// = false
var ltpause:Boolean;// = false
var upheight:uint;// = 0
var catched:Boolean;// = false
var curr_monster_y:uint;// = 0
var scfactor:Number;
var dragble:Boolean;// = true
var fallingdown:Boolean;// = false
var area:MovieClip;
var fxid:uint;// = 0
var fp10fix:Boolean;// = false
public var lifetime;
public var monstermask:MovieClip;
var zevok;
public var hole:MovieClip;
var fixwidth:Number;// = 0
var sitincat:Boolean;// = false
var hideonnextframe:Boolean;// = false
var curr_monster_drop_y:uint;
public function monster(_arg1:uint=0, _arg2:MovieClip=null, _arg3:Number=1):void{
var _local4:String;
var _local5:RegExp;
var _local6:Object;
curr_monster_y = 0;
fallingdown = false;
slowdown = false;
fixheight = 0;
fixwidth = 0;
initheight = 0;
ct = 0;
ltpause = false;
goout = false;
catched = false;
fxid = 0;
upheight = 0;
afterbang = false;
sitincat = false;
superholed = false;
inftime = false;
fp10fix = false;
hideonnextframe = false;
dragble = true;
killed = false;
super();
_local4 = Capabilities.version;
_local5 = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/;
_local6 = _local5.exec(_local4);
if (_local6 != null){
if (int(_local6[2]) == 10){
fp10fix = true;
};
};
ballarea.visible = false;
old.y = (old.y + 120);
oldturn.y = (oldturn.y + 120);
scfactor = _arg3;
area = _arg2;
monstermask.visible = false;
monstermask1.visible = false;
hole.visible = false;
hole.scaleX = 0.1;
hole.scaleY = 0.1;
if (_arg2 != null){
showmonster(_arg1);
};
}
public function showmonster(_arg1:uint):void{
var ef:Function;
var ltime = _arg1;
ef = function (_arg1:Event):void{
old.mask = monstermask;
oldturn.mask = null;
oldturn.visible = false;
if (hole.scaleX < 1){
hole.scaleX = (hole.scaleX + 0.05);
hole.scaleY = (hole.scaleY + 0.05);
} else {
old.visible = true;
if (old.y > -82.6){
oldturn.y = (oldturn.y - 40);
old.y = (old.y - 40);
} else {
old.y = (old.y - 40);
oldturn.y = (oldturn.y - 40);
removeEventListener(Event.ENTER_FRAME, ef);
addEventListener(Event.ENTER_FRAME, EF);
ct = 0;
hole.visible = false;
old.mask = null;
oldturn.mask = null;
dispatchEvent(new Event("Showed"));
};
};
};
old.y = -2.6;
oldturn.y = -2.6;
hideonnextframe = false;
visible = true;
lifetime = ltime;
hole.visible = true;
hole.scaleX = 0.1;
hole.scaleY = 0.1;
old.visible = false;
oldturn.visible = false;
oldturn.gotoAndStop(1);
old.eyes.gotoAndStop(1);
old.body.gotoAndStop(1);
old.mouth.gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, ef);
}
function EF(_arg1:Event):void{
if (!ltpause){
if (ct == lifetime){
if (old.visible){
old.mask = monstermask;
oldturn.mask = null;
} else {
old.mask = null;
oldturn.mask = monstermask;
};
goout = true;
hole.visible = true;
if (hole.scaleX < 1){
hole.scaleX = (hole.scaleX + 0.05);
hole.scaleY = (hole.scaleY + 0.05);
} else {
if (old.y < 0){
if (zevok != null){
zevok.stop();
zevok = null;
};
oldturn.y = (oldturn.y + 40);
old.y = (old.y + 40);
} else {
visible = false;
goout = false;
dispatchEvent(new Event("Falled"));
old.visible = true;
old.gotoAndStop(1);
oldturn.visible = false;
removeEventListener(Event.ENTER_FRAME, EF);
};
};
} else {
if (!inftime){
ct++;
};
};
} else {
if (catched){
old.visible = true;
oldturn.visible = false;
old.mask = monstermask1;
oldturn.mask = null;
if (old.y > -300){
old.y = (old.y - 40);
oldturn.y = (oldturn.y - 40);
} else {
removeEventListener(Event.ENTER_FRAME, EF);
goout = false;
dispatchEvent(new Event("Falled"));
old.visible = true;
old.gotoAndStop(1);
oldturn.visible = false;
visible = false;
oldturn.y = 37.5;
old.y = 37.5;
catched = false;
};
};
};
}
public function setpos():void{
var _local1:uint;
var _local2:Number;
sitincat = false;
superholed = false;
_local1 = 0;
visible = true;
killed = false;
x = 0;
y = 0;
scaleX = 1;
scaleY = 1;
while (((!(area.hitTestPoint((x + width), y, true))) || (!(area.hitTestPoint(x, y, true))))) {
x = ((Math.random() * area.width) + area.x);
y = ((Math.random() * area.height) + area.y);
if (_local1 == 1000){
x = defx;
y = defy;
break;
};
_local2 = ((25 + (int(((y - 300) / 1.8)) * 0.75)) / scfactor);
if (_local2 > 0.9){
_local2 = 0.9;
};
if (_local2 < 0.3){
_local2 = 0.3;
};
if (area.name == "l10_seatarea2"){
_local2 = 0.2;
};
scaleX = _local2;
scaleY = _local2;
if ((((y < 250)) && ((scaleY < 0)))){
scaleY = -(scaleY);
};
_local1++;
};
initheight = height;
fixwidth = width;
fixheight = 0;
curr_monster_y = y;
}
}
}//package
Section 125
//monster_yl (monster_yl)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.system.*;
public class monster_yl extends MovieClip {
public var superholed:Boolean;// = false
var defx;
public var ballarea:MovieClip;
var slowdown:Boolean;// = false
public var oldturn:MovieClip;
var afterbang:Boolean;// = false
public var old:MovieClip;
public var monstermask1:MovieClip;
var roar:SoundChannel;
var defy:uint;
var initheight:Number;// = 0
var inftime:Boolean;// = false
var goout:Boolean;// = false
var ct:uint;// = 0
var fixheight:Number;// = 0
var killed:Boolean;// = false
var ltpause:Boolean;// = false
var upheight:uint;// = 0
var catched:Boolean;// = false
var curr_monster_y:uint;// = 0
var scfactor:Number;
var dragble:Boolean;// = true
var fallingdown:Boolean;// = false
var area:MovieClip;
var fxid:uint;// = 0
var fp10fix:Boolean;// = false
var lifetime;
public var monstermask:MovieClip;
var zevok;
public var hole:MovieClip;
var fixwidth:Number;// = 0
var hideonnextframe:Boolean;// = false
var curr_monster_drop_y:uint;
public function monster_yl(_arg1:uint=0, _arg2:MovieClip=null, _arg3:Number=1):void{
var _local4:String;
var _local5:RegExp;
var _local6:Object;
curr_monster_y = 0;
fallingdown = false;
slowdown = false;
fixheight = 0;
fixwidth = 0;
initheight = 0;
ct = 0;
ltpause = false;
goout = false;
catched = false;
fxid = 0;
upheight = 0;
afterbang = false;
inftime = false;
superholed = false;
fp10fix = false;
hideonnextframe = false;
dragble = true;
killed = false;
super();
_local4 = Capabilities.version;
_local5 = /^(\w*) (\d*),(\d*),(\d*),(\d*)$/;
_local6 = _local5.exec(_local4);
if (_local6 != null){
if (int(_local6[2]) == 10){
fp10fix = true;
};
};
ballarea.visible = false;
old.y = (old.y + 120);
oldturn.y = (oldturn.y + 120);
scfactor = _arg3;
area = _arg2;
monstermask.visible = false;
monstermask1.visible = false;
hole.visible = false;
hole.scaleX = 0.1;
hole.scaleY = 0.1;
if (_arg2 != null){
showmonster(_arg1);
};
}
public function showmonster(_arg1:uint):void{
var ef:Function;
var ltime = _arg1;
ef = function (_arg1:Event):void{
old.mask = monstermask;
oldturn.mask = null;
oldturn.visible = false;
if (hole.scaleX < 1){
hole.scaleX = (hole.scaleX + 0.05);
hole.scaleY = (hole.scaleY + 0.05);
} else {
old.visible = true;
if (old.y > -82.6){
oldturn.y = (oldturn.y - 40);
old.y = (old.y - 40);
} else {
old.y = (old.y - 40);
oldturn.y = (oldturn.y - 40);
removeEventListener(Event.ENTER_FRAME, ef);
addEventListener(Event.ENTER_FRAME, EF);
ct = 0;
hole.visible = false;
old.mask = null;
oldturn.mask = null;
dispatchEvent(new Event("Showed"));
};
};
};
old.y = -2.6;
oldturn.y = -2.6;
hideonnextframe = false;
visible = true;
lifetime = ltime;
hole.visible = true;
hole.scaleX = 0.1;
hole.scaleY = 0.1;
old.visible = false;
oldturn.visible = false;
oldturn.gotoAndStop(1);
old.eyes.gotoAndStop(1);
old.body.gotoAndStop(1);
old.mouth.gotoAndStop(1);
addEventListener(Event.ENTER_FRAME, ef);
}
function EF(_arg1:Event):void{
if (!ltpause){
if (ct == lifetime){
if (old.visible){
old.mask = monstermask;
oldturn.mask = null;
} else {
old.mask = null;
oldturn.mask = monstermask;
};
goout = true;
hole.visible = true;
if (hole.scaleX < 1){
hole.scaleX = (hole.scaleX + 0.05);
hole.scaleY = (hole.scaleY + 0.05);
} else {
if (old.y < 0){
if (zevok != null){
zevok.stop();
zevok = null;
};
oldturn.y = (oldturn.y + 40);
old.y = (old.y + 40);
} else {
visible = false;
goout = false;
dispatchEvent(new Event("Falled"));
old.visible = true;
old.gotoAndStop(1);
oldturn.visible = false;
removeEventListener(Event.ENTER_FRAME, EF);
};
};
} else {
ct++;
};
} else {
if (catched){
old.visible = true;
oldturn.visible = false;
old.mask = monstermask1;
oldturn.mask = null;
if (old.y > -300){
old.y = (old.y - 40);
oldturn.y = (oldturn.y - 40);
} else {
removeEventListener(Event.ENTER_FRAME, EF);
goout = false;
dispatchEvent(new Event("Falled"));
old.visible = true;
old.gotoAndStop(1);
oldturn.visible = false;
visible = false;
oldturn.y = 37.5;
old.y = 37.5;
catched = false;
};
};
};
}
public function setpos():void{
var _local1:uint;
var _local2:Number;
_local1 = 0;
visible = true;
killed = false;
x = 0;
y = 0;
scaleX = 1;
scaleY = 1;
while (((!(area.hitTestPoint((x + width), y, true))) || (!(area.hitTestPoint(x, y, true))))) {
x = ((Math.random() * area.width) + area.x);
y = ((Math.random() * area.height) + area.y);
if (_local1 == 1000){
x = defx;
y = defy;
break;
};
_local2 = ((25 + (int(((y - 300) / 1.8)) * 0.75)) / scfactor);
_local2 = Math.abs(_local2);
if (_local2 > 0.6){
_local2 = 0.6;
};
if (_local2 < 0.25){
_local2 = 0.25;
};
scaleX = _local2;
scaleY = _local2;
if (scaleX < 0.35){
ballarea.scaleX = 2;
ballarea.scaleY = 2;
} else {
ballarea.scaleX = 1;
ballarea.scaleY = 1;
};
if ((((y < 250)) && ((scaleY < 0)))){
scaleY = -(scaleY);
};
_local1++;
};
initheight = height;
fixwidth = width;
fixheight = 0;
curr_monster_y = y;
}
}
}//package
Section 126
//monsters (monsters)
package {
import flash.media.*;
public dynamic class monsters extends Sound {
}
}//package
Section 127
//music (music)
package {
import flash.media.*;
public dynamic class music extends Sound {
}
}//package
Section 128
//music_story (music_story)
package {
import flash.media.*;
public dynamic class music_story extends Sound {
}
}//package
Section 129
//pile1_loud (pile1_loud)
package {
import flash.media.*;
public dynamic class pile1_loud extends Sound {
}
}//package
Section 130
//ring (ring)
package {
import flash.media.*;
public dynamic class ring extends Sound {
}
}//package
Section 131
//roar_quck (roar_quck)
package {
import flash.media.*;
public dynamic class roar_quck extends Sound {
}
}//package
Section 132
//ROOM (ROOM)
package {
public dynamic class ROOM extends room {
}
}//package
Section 133
//room (room)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
public class room extends MovieClip {
var monsters:Array;
public var catapult:MovieClip;
public var l4_seatarea1:MovieClip;
public var l4_seatarea2:MovieClip;
public var l4_seatarea4:MovieClip;
public var l4_seatarea5:MovieClip;
public var l4_seatarea6:MovieClip;
public var l4_seatarea7:MovieClip;
public var l9_th_mc12:MovieClip;
public var l9_th_mc13:MovieClip;
public var l9_th_mc14:MovieClip;
public var l9_th_mc15:MovieClip;
public var l9_th_mc16:MovieClip;
public var l9_th_mc17:MovieClip;
public var l9_th_mc11:MovieClip;
var l5a:uint;// = 35
public var l4_seatarea3:MovieClip;
public var l9_th_mc10:MovieClip;
public var l9_th_mc1:MovieClip;
public var l9_th_mc2:MovieClip;
public var l9_th_mc3:MovieClip;
public var bg:MovieClip;
public var l9_th_mc5:MovieClip;
public var l9_th_mc6:MovieClip;
public var l9_th_mc7:MovieClip;
public var l9_th_mc8:MovieClip;
public var l9_th_mc9:MovieClip;
public var l9_th_mc4:MovieClip;
public var skeleton:MovieClip;
public var l7_seatarea1:MovieClip;
public var l7_seatarea4:MovieClip;
public var l7_seatarea5:MovieClip;
public var whitehole:MovieClip;
public var bigfall:MovieClip;
public var l9_th_mc18:MovieClip;
var mousex;
var bigbaraboomcounter:uint;// = 0
var defaultpos:Array;
public var l7_seatarea3:MovieClip;
var mousey:uint;// = 0
public var crazy:MovieClip;
public var l7_seatarea2:MovieClip;
var flamechn:SoundChannel;
public var catapult_sml:MovieClip;
public var bombitem:MovieClip;
var bombpos:Array;
var currdraggedmonster:MovieClip;
public var levelеtimer:Timer;
public var hole:MovieClip;
var bigmonsters:Array;
var shinaction:Boolean;// = false
public var bulk:MovieClip;
public var ballshole:MovieClip;
var maintimer:Timer;
public var friends1:MovieClip;
public var friends2:MovieClip;
var thingsinevel:Array;
var gamepause:Boolean;// = false
public var l1_th_mc1:l1_th1;
public var l1_th_mc3:l1_th3;
public var l1_th_mc4:MovieClip;
public var fire_back:MovieClip;
public var l1_th_mc2:l1_th2;
public var l3_seatarea3:MovieClip;
public var redbtn5:MovieClip;
public var l3_seatarea5:MovieClip;
public var l3_seatarea6:MovieClip;
public var l3_seatarea7:MovieClip;
public var l3_seatarea1:MovieClip;
public var l3_seatarea2:MovieClip;
public var l3_seatarea4:MovieClip;
public var d_level10_1:MovieClip;
var phase:uint;// = 1
var areas:Array;
var timer1:Timer;
public var l6_th_mc1:MovieClip;
public var l6_th_mc2:MovieClip;
public var l6_th_mc3:MovieClip;
public var l6_th_mc4:MovieClip;
public var l6_th_mc5:MovieClip;
public var l6_seatarea1:MovieClip;
public var l6_th_mc8:MovieClip;
public var l6_seatarea4:MovieClip;
public var l6_seatarea5:MovieClip;
public var l6_seatarea6:MovieClip;
public var l6_seatarea7:MovieClip;
public var l6_seatarea8:MovieClip;
public var l6_seatarea2:MovieClip;
public var l6_seatarea3:MovieClip;
public var superholeicon:MovieClip;
public var pilesch:SoundChannel;
public var rainbow:MovieClip;
public var l6_th_mc6:MovieClip;
public var l6_th_mc7:MovieClip;
public var l6_th_mc9:MovieClip;
var animscale:Boolean;// = false
public var l9_seatarea1:MovieClip;
public var l9_seatarea2:MovieClip;
public var l9_seatarea3:MovieClip;
public var l9_seatarea4:MovieClip;
public var l9_seatarea5:MovieClip;
public var l9_seatarea6:MovieClip;
var bigkicks:uint;// = 0
public var ball:MovieClip;
var ballcurcor:Boolean;// = false
var firstkill:Boolean;// = false
public var d_level5_1:MovieClip;
public var ceilingarea_tmp:MovieClip;
var afterbang:Boolean;// = false
var holeisdrag:Boolean;// = false
public var d_level5_2:MovieClip;
public var l2_th_mc1:MovieClip;
public var l2_th_mc2:MovieClip;
public var l2_th_mc3:MovieClip;
public var l2_th_mc4:MovieClip;
public var l2_th_mc5:MovieClip;
public var l2_th_mc6:MovieClip;
public var bombarea:MovieClip;
public var l2_th_mc8:MovieClip;
public var l2_th_mc9:MovieClip;
public var l2_th_mc7:MovieClip;
public var fire:MovieClip;
public var ballsamountarea:MovieClip;
public var alarm:MovieClip;
public var bigmonsterarea:MovieClip;
public var hole_fire:MovieClip;
var isfire:Boolean;// = false
var timesep:Boolean;// = true
var crazyyto:uint;// = 150
public var l7_th_mc1:MovieClip;
public var l7_th_mc2:MovieClip;
public var l7_th_mc3:MovieClip;
public var l7_th_mc4:MovieClip;
public var l7_th_mc5:MovieClip;
public var l2_seatarea1:MovieClip;
public var l2_seatarea2:MovieClip;
public var l2_seatarea3:MovieClip;
public var l2_seatarea4:MovieClip;
public var l2_seatarea5:MovieClip;
public var l10_seatarea1:MovieClip;
public var l10_seatarea2:MovieClip;
public var monsterscountvar:uint;// = 10
var crazyxto:uint;// = 300
public var ceilingarea:MovieClip;
public var hammer:MovieClip;
public var l2_floorarea:MovieClip;
var superholecounter:uint;// = 0
public var l5_seatarea1:MovieClip;
var crazyboom:Boolean;// = false
public var l3_th_mc1:MovieClip;
public var l3_th_mc2:MovieClip;
public var l3_th_mc4:MovieClip;
public var l3_th_mc5:MovieClip;
public var l3_th_mc6:MovieClip;
public var l3_th_mc7:MovieClip;
public var l3_th_mc3:MovieClip;
var crazylives:uint;// = 10
public var l2_th_mc10:MovieClip;
public var l2_th_mc12:MovieClip;
public var l2_th_mc13:MovieClip;
public var l6_th_mc10:MovieClip;
public var l8_seatarea1:MovieClip;
public var l8_seatarea2:MovieClip;
public var l8_seatarea3:MovieClip;
public var l2_th_mc11:MovieClip;
public var l6_th_mc11:MovieClip;
public var l8_seatarea4:MovieClip;
public var l8_seatarea5:MovieClip;
public var l6_th_mc12:MovieClip;
public var musicchannel;
public var levelcountvar:uint;// = 0
var scrollx;
var scrolly:uint;
public var l8_th_mc4:MovieClip;
public var monsterarea:MovieClip;
public var l8_th_mc1:MovieClip;
public var l8_th_mc2:MovieClip;
public var l8_th_mc5:MovieClip;
public var l8_th_mc3:MovieClip;
var draggedmonsters:Array;
public var redbtn10:MovieClip;
public var bigone1:MovieClip;
public var bigone2:MovieClip;
public var levelid:uint;// = 1
public var blast_1:MovieClip;
public var blast_2:MovieClip;
public var ballsamount:TextField;
public var blast_4:MovieClip;
public var blast_6:MovieClip;
public var blast_7:MovieClip;
public var blast_8:MovieClip;
public var blast_9:MovieClip;
public var blast_3:MovieClip;
var mcholereset:MovieClip;
public var bombarea2:MovieClip;
public var l1_seatarea1:MovieClip;
public var l1_seatarea2:MovieClip;
public var l4_th_mc1:MovieClip;
public var l4_th_mc2:MovieClip;
public var l4_th_mc3:MovieClip;
public var l4_th_mc6:MovieClip;
public var l4_th_mc7:MovieClip;
public var l4_th_mc8:MovieClip;
public var l1_seatarea4:MovieClip;
public var l1_seatarea5:MovieClip;
public var l1_seatarea6:MovieClip;
public var l4_th_mc5:MovieClip;
public var l1_seatarea3:MovieClip;
public var l4_th_mc4:MovieClip;
public var bombarea1:MovieClip;
public function room():void{
var maintimerEvent:Function;
var ballsTimer:Timer;
var ballsTimerEvent:Function;
var BallBoomEvent:Function;
var ballsholeMD:Function;
var ballMU:Function;
var stageСLICK:Function;
var keyDownHandler:Function;
var MM:Function;
var mdHole:Function;
afterbang = false;
bigbaraboomcounter = 0;
monsters = [];
bigmonsters = [];
draggedmonsters = [];
holeisdrag = false;
bigkicks = 0;
bombpos = [[505, 156], [485, 350], [653, 362], [258, 348], [1000, 1000], [287, 0x0100], [83, 370], [535, 350], [567, 400], [1000, 1000]];
superholecounter = 0;
shinaction = false;
maintimer = new Timer(1000, 0);
mousey = 0;
ballcurcor = false;
isfire = false;
gamepause = false;
phase = 1;
l5a = 35;
levelеtimer = new Timer(1000, 0);
levelcountvar = 0;
monsterscountvar = 10;
timesep = true;
animscale = false;
firstkill = false;
crazyxto = 300;
crazyyto = 150;
crazyboom = false;
crazylives = 10;
areas = [[15, ["l1_seatarea1", 3, 200, 0, true], ["l1_seatarea2", 1, 100, 140, true], ["l1_seatarea3", 1, 100, 120, true], ["l1_seatarea4", 1, 100, 350, false], ["l1_seatarea5", 1, 200, 0, false], ["l1_seatarea6", 1, 200, 20, false]], [20, ["l2_floorarea", 2, 200, 0, true], ["l2_seatarea1", 1, 100, 0, false], ["l2_seatarea2", 1, 100, 0, false], ["l2_seatarea3", 1, 100, 125, true], ["l2_seatarea4", 1, 250, 0, false], ["l2_seatarea5", 1, 200, 100, false]], [25, ["l3_seatarea1", 3, 200, 0, true], ["l3_seatarea2", 2, 150, 75, true], ["l3_seatarea3", 1, 150, 0, false], ["l3_seatarea4", 1, 150, 95, true], ["l3_seatarea5", 2, 300, 0, false], ["l3_seatarea6", 1, 75, 190, true], ["l3_seatarea7", 1, 150, 0, false]], [30, ["l4_seatarea1", 3, 200, 0, true], ["l4_seatarea2", 1, 200, 0, true], ["l4_seatarea3", 2, 150, 350, false], ["l4_seatarea4", 2, 200, 300, false], ["l4_seatarea5", 1, 100, 150, false], ["l4_seatarea6", 0, 150, 260, false], ["l4_seatarea7", 1, 150, 350, false]], [9, ["l5_seatarea1", 9, 40, 0, true]], [40, ["l6_seatarea1", 4, 200, 0, true], ["l6_seatarea2", 1, 250, 0, false], ["l6_seatarea3", 2, 200, 100, false], ["l6_seatarea4", 1, 15, 300, false], ["l6_seatarea5", 1, 100, 100, false], ["l6_seatarea6", 1, 200, 0, false], ["l6_seatarea7", 1, 100, 150, false], ["l6_seatarea8", 1, 300, 0, false]], [45, ["l7_seatarea1", 1, 200, 50, true], ["l7_seatarea2", 1, 150, 100, false], ["l7_seatarea3", 4, 200, 0, true], ["l7_seatarea4", 1, 200, 100, false], ["l7_seatarea5", 1, 200, 100, false]], [50, ["l8_seatarea1", 4, 200, 0, true], ["l8_seatarea2", 1, 200, 100, false], ["l8_seatarea3", 1, 150, 200, false], ["l8_seatarea4", 1, 150, 100, false], ["l8_seatarea5", 1, 200, 100, false]], [55, ["l9_seatarea1", 5, 200, 0, false], ["l9_seatarea2", 1, 50, 150, false], ["l9_seatarea3", 1, 75, 150, false], ["l9_seatarea4", 2, 200, 400, false], ["l9_seatarea5", 2, 150, 400, false], ["l9_seatarea6", 1, 200, 50, false]], [30, ["l10_seatarea1", 9, 200, 0, true], ["l10_seatarea2", 3, 400, 200, true]]];
thingsinevel = [4, 13, 7, 8, 0, 12, 5, 5, 18];
defaultpos = [[[200, 200], [520, 305], [585, 367], [580, 190], [515, 470], [150, 385]], [[270, 465], [90, 305], [535, 316], [285, 300], [], [300, 360]], [[140, 430], [300, 400], [250, 315], [645, 420], [250, 460], [5, 290], [110, 150]], [[300, 450], [100, 600], [250, 140], [250, 165], [600, 350], [600, 240], [665, 120]], [[300, 200]], [[250, 400], [520, 450], [555, 375], [500, 240], [80, 340], [250, 350], [175, 0xFF], [300, 230]], [[500, 400], [500, 310], [0, 0], [350, 310], [350, 290]], [[350, 400], [130, 350], [370, 280], [100, 400], [520, 267]], [[350, 400], [300, 260], [350, 280], [100, 90], [100, 160], [115, 350]], [[100, 400], [120, 280]]];
levelid = 1;
super();
maintimerEvent = function (_arg1:TimerEvent):void{
var _local2:uint;
var _local3:*;
var _local4:String;
var _local5:uint;
if (!gamepause){
(parent as MovieClip).maintime--;
if ((parent as MovieClip).maintime <= 0){
gamepause = true;
maintimer.stop();
alarm.visible = true;
alarm.gotoAndPlay(1);
musicchannel.stop();
_local5 = 0;
while (_local5 < monsters.length) {
monsters[_local5].ltpause = true;
_local5++;
};
_local5 = 0;
while (_local5 < bigmonsters.length) {
bigmonsters[_local5].ltpause = true;
_local5++;
};
};
_local2 = (parent as MovieClip).maintime;
_local3 = String(int((_local2 / 60)));
_local4 = String((_local2 % 60));
if (_local3.length == 1){
_local3 = ("0" + _local3);
};
if (_local4.length == 1){
_local4 = ("0" + _local4);
};
(parent as MovieClip).maintimedig.text = ((_local3 + ":") + _local4);
};
};
ballsTimerEvent = function (_arg1:TimerEvent):void{
if (levelid == 9){
_arg1.target.delay = 2500;
};
if ((((int(ballsamount.text) < 9)) && ((((((((findmonsters()[0] == 0)) && ((findmonsters()[1] > 0)))) || (((bigone1.visible) || (bigone2.visible))))) || (crazy.visible))))){
firstkill = true;
ballsamount.text = String((int(ballsamount.text) + 1));
if ((((((int(ballsamount.text) < 2)) && (!(bigone1.visible)))) && (!(bigone2.visible)))){
ballsamount.visible = false;
} else {
ballsamount.visible = true;
};
};
};
BallBoomEvent = function (_arg1:Event):void{
ball.visible = false;
ball.old.hit.visible = false;
ball.old.hit.gotoAndStop(1);
ball.old.ballbg.visible = true;
ball.old.hit.stop();
};
ballsholeMD = function (_arg1:MouseEvent):void{
if (!gamepause){
if (int(ballsamount.text) > 0){
new ball_grag().play();
ball.startDrag(false, new Rectangle(0, 0, 700, 500));
ballcurcor = true;
ball.visible = true;
ball.old.gotoAndStop(1);
ball.old.circ.visible = false;
ball.old.ballbg.gotoAndStop(1);
ball.x = mousex;
ball.y = mousey;
ballsamount.text = String((int(ballsamount.text) - 1));
if (int(ballsamount.text) < 2){
ballsamount.visible = false;
};
if (int(ballsamount.text) == 0){
firstkill = false;
ballsamountarea.visible = false;
ballshole.visible = false;
ballsamountarea.alpha = 0;
ballshole.alpha = 0;
ballsamount.alpha = 0;
};
};
};
};
ballMU = function (_arg1:MouseEvent):void{
if (ballcurcor){
new ball_drop().play();
ball.stopDrag();
Mouse.show();
ball.old.gotoAndPlay(2);
ball.old.ballbg.gotoAndPlay(2);
ballcurcor = false;
};
};
stageСLICK = function (_arg1:MouseEvent):void{
if (((((!(shinaction)) && (ceilingarea_tmp.hitTestPoint(_arg1.stageX, _arg1.stageY, true)))) && (!(hole.hitTestPoint(_arg1.stageX, _arg1.stageY, true))))){
scrollx = int((_arg1.stageX - 15));
scrolly = int((_arg1.stageY - 15));
mmHole(null);
};
};
keyDownHandler = function (_arg1:KeyboardEvent):void{
var _local2:uint;
if ((((_arg1.keyCode == 27)) && ((monsterscountvar > 0)))){
gamepause = !(gamepause);
if (gamepause){
_local2 = 0;
while (_local2 < monsters.length) {
monsters[_local2].ltpause = true;
_local2++;
};
_local2 = 0;
while (_local2 < bigmonsters.length) {
bigmonsters[_local2].ltpause = true;
_local2++;
};
levelеtimer.stop();
dispatchEvent(new Event("PAUSE"));
} else {
resume();
levelеtimer.start();
dispatchEvent(new Event("PAUSEEXIT"));
};
};
if ((((((((_arg1.keyCode == 32)) && ((hammer.currentFrame == 1)))) && (!(gamepause)))) && (((((!((levelid == 5))) && (!(getChildByName(("blast_" + levelid)).visible)))) || ((levelid == 5)))))){
new hamm_0().play();
Mouse.hide();
hammer.visible = true;
hammer.gotoAndPlay(2);
};
};
MM = function (_arg1:MouseEvent):void{
mousex = _arg1.stageX;
mousey = _arg1.stageY;
if (ballcurcor){
ball.x = mousex;
ball.y = mousey;
};
if (!hammer.visible){
hammer.x = (mousex - 50);
hammer.y = (mousey - 80);
if (hammer.y < 100){
hammer.y = 100;
};
};
};
mdHole = function (_arg1:MouseEvent):void{
if (!gamepause){
hole.startDrag(true, new Rectangle(ceilingarea.x, ceilingarea.y, ceilingarea.width, ceilingarea.height));
holeisdrag = true;
};
};
maintimer.addEventListener("timer", maintimerEvent);
mmHole(null);
hammer.visible = false;
ballsTimer = new Timer(5000, 0);
ballsTimer.addEventListener("timer", ballsTimerEvent);
ballsTimer.start();
ball.scaleX = 0.5;
ball.scaleY = 0.5;
ball.visible = false;
ball.old.hit.visible = false;
ball.old.hit.stop();
ball.old.hit.addEventListener("BallBoom", BallBoomEvent);
ballshole.useHandCursor = true;
ballshole.buttonMode = true;
ballsamountarea.useHandCursor = true;
ballsamountarea.buttonMode = true;
ballshole.addEventListener(MouseEvent.MOUSE_DOWN, ballsholeMD);
ballsamountarea.addEventListener(MouseEvent.MOUSE_DOWN, ballsholeMD);
ball.addEventListener(MouseEvent.MOUSE_UP, ballMU);
stage.addEventListener(MouseEvent.CLICK, stageСLICK);
whitehole.visible = false;
stage.addEventListener(MouseEvent.MOUSE_UP, captureMouseUp);
stage.addEventListener(MouseEvent.MOUSE_UP, captureMouseUp, true);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
stage.addEventListener(MouseEvent.MOUSE_MOVE, MM);
hole_fire.addEventListener(MouseEvent.MOUSE_DOWN, mdHole);
hole_fire.addEventListener(MouseEvent.MOUSE_UP, muHole);
hole_fire.addEventListener(MouseEvent.CLICK, muHole);
hole_fire.addEventListener(MouseEvent.MOUSE_MOVE, mmHole);
hole.addEventListener(MouseEvent.MOUSE_DOWN, mdHole);
hole.addEventListener(MouseEvent.MOUSE_UP, muHole);
hole.addEventListener(MouseEvent.CLICK, muHole);
hole.addEventListener(MouseEvent.MOUSE_MOVE, mmHole);
}
function captureMouseUp(_arg1:MouseEvent):void{
if (_arg1.eventPhase == EventPhase.BUBBLING_PHASE){
return;
};
muMonstra(_arg1);
}
function EF(_arg1:Event):void{
var mess:Boolean;
var soundmess:Boolean;
var showit:Boolean;
var now:Boolean;
var i:uint;
var tx:*;
var ty:Number;
var mtransform:SoundTransform;
var timerh:*;
var hh:Function;
var msg:Function;
var msg1:Function;
var s:Sound;
var m:monster;
var ShowedEvent:Function;
var side:uint;
var i1:Number;
var s1:Sound;
var sch:SoundChannel;
var pan:Number;
var transform:SoundTransform;
var s2:Sound;
var rnd:uint;
var e = _arg1;
if (((firstkill) && (!(ballsamountarea.visible)))){
ballsamountarea.visible = true;
ballshole.visible = true;
if (((bigone1.visible) || ((levelid == 9)))){
ballsamount.visible = true;
};
};
if (((ballsamountarea.visible) && ((ballsamountarea.alpha < 1)))){
ballsamountarea.alpha = (ballsamountarea.alpha + 0.02);
ballshole.alpha = (ballshole.alpha + 0.02);
ballsamount.alpha = (ballsamount.alpha + 0.02);
};
if ((((crazy.scaleX < 1)) && (crazyboom))){
if (crazy.scaleX > 0.75){
crazy.scaleX = (crazy.scaleX + -0.05);
crazy.scaleY = (crazy.scaleY + -0.05);
} else {
crazyboom = false;
};
};
if ((((crazy.scaleX < 1)) && (!(crazyboom)))){
crazy.scaleX = (crazy.scaleX + 0.05);
crazy.scaleY = (crazy.scaleY + 0.05);
};
if (monsterscountvar > 100){
monsterscountvar = 0;
dispatchEvent(new Event("SETSCORE"));
};
if (((crazy.visible) && ((crazy.scaleX > 0.95)))){
crazy.x = int(crazy.x);
crazy.y = int(crazy.y);
if (((!((crazyxto == crazy.x))) || (!((crazyyto == crazy.y))))){
crazy.x = (crazy.x + (Math.ceil(Math.abs(((crazyxto - crazy.x) / 10))) * sign((crazyxto - crazy.x))));
crazy.y = (crazy.y + (Math.ceil(Math.abs(((crazyyto - crazy.y) / 10))) * sign((crazyyto - crazy.y))));
} else {
crazyxto = int(((Math.random() * 500) + 100));
crazyyto = int(((Math.random() * 300) + 100));
};
};
if ((((((monsterscountvar == 0)) && ((levelid == 9)))) && (!(crazy.visible)))){
crazy.visible = true;
if (!ballsamountarea.visible){
firstkill = true;
};
crazy.old.gotoAndPlay(1);
};
if ((((bigbaraboomcounter > 0)) && ((bigbaraboomcounter < 30)))){
x = ((Math.random() * 4) + 8);
y = ((Math.random() * 4) + 8);
};
if ((((((bigbaraboomcounter > 10)) && ((bigbaraboomcounter < 21)))) && (((bigbaraboomcounter / 2) == int((bigbaraboomcounter / 2)))))){
x = ((Math.random() * 8) + 7);
y = ((Math.random() * 8) + 7);
};
if ((((((bigbaraboomcounter == 23)) || ((bigbaraboomcounter == 26)))) || ((bigbaraboomcounter == 29)))){
x = ((Math.random() * 4) + 8);
y = ((Math.random() * 4) + 8);
};
if (bigbaraboomcounter > 0){
bigbaraboomcounter++;
};
if (bigbaraboomcounter > 29){
bigbaraboomcounter = 0;
x = 12;
y = 12;
};
if (!gamepause){
if (((!(shinaction)) && (hole_fire.visible))){
i = 0;
while (i < monsters.length) {
tx = ((monsters[i].x + (monsters[i].width / 2)) - 2.5);
ty = ((500 - monsters[i].y) - monsters[i].upheight);
if ((((((((((((((((monsters[i] is monster)) && (monsters[i].visible))) && ((monsters[i].ct < monsters[i].lifetime)))) && (!(monsters[i].killed)))) && ((tx > (hole_fire.x - (hole_fire.width / 2)))))) && ((tx < (hole_fire.x + (hole_fire.width / 2)))))) && ((ty > (hole_fire.y - (hole_fire.height / 2)))))) && ((ty < (hole_fire.y + (hole_fire.height / 2)))))){
monsters[i].superholed = true;
monsters[i].visible = false;
monsters[i].dispatchEvent(new Event("FalledEvent"));
monsters[i].ct = (monsters[i].lifetime - 5);
ReSort();
hole.x = tx;
hole.y = ty;
hole_fire.stopDrag();
scrolly = hole.y;
scrollx = hole.x;
shinaction = true;
fire.visible = true;
flamechn = new flame().play(0, 1000);
fire_back.visible = true;
fire_back.x = tx;
fire_back.y = ty;
fire.x = hole.x;
fire.y = (hole.y - (hole.height / 2));
fire.height = (monsters[i].y - fire.y);
if (fire.scaleY > 1){
fire.scaleY = 1;
};
fire_back.height = fire.height;
fire.scaleX = fire.scaleY;
fire_back.scaleX = fire.scaleY;
fire.gotoAndStop(1);
skeleton.scaleX = (monsters[i].scaleX + 0.15);
skeleton.scaleY = (monsters[i].scaleY + 0.15);
skeleton.x = monsters[i].x;
skeleton.y = (monsters[i].y - skeleton.height);
skeleton.visible = true;
skeleton.gotoAndPlay(1);
monsterscountvar = (monsterscountvar + -1);
levelcountvar = (levelcountvar + 300);
dispatchEvent(new Event("SETSCORE"));
break;
};
i = (i + 1);
};
};
if ((((bigone2.currentFrame == 33)) && ((bigkicks < 10)))){
bigone2.gotoAndStop(1);
bigone2.visible = false;
bigone1.visible = true;
bigone1.gotoAndPlay(1);
};
if (((((!((currdraggedmonster == null))) && (animscale))) && ((levelid == 5)))){
if (int((currdraggedmonster.scaleX * 100)) < 90){
currdraggedmonster.scaleX = (currdraggedmonster.scaleX + 0.05);
currdraggedmonster.scaleY = (currdraggedmonster.scaleY + 0.05);
} else {
currdraggedmonster.scaleX = 0.9;
currdraggedmonster.scaleY = 0.9;
animscale = false;
};
};
if (((((!((currdraggedmonster == null))) && (animscale))) && ((levelid == 10)))){
if (int((currdraggedmonster.scaleX * 100)) > 50){
currdraggedmonster.scaleX = (currdraggedmonster.scaleX - 0.05);
currdraggedmonster.scaleY = (currdraggedmonster.scaleY - 0.05);
} else {
currdraggedmonster.scaleX = 0.5;
currdraggedmonster.scaleY = 0.5;
animscale = false;
};
};
if (musicchannel.soundTransform.volume < 1){
mtransform = musicchannel.soundTransform;
mtransform.volume = (Number(mtransform.volume) + 0.02);
musicchannel.soundTransform = mtransform;
};
if (((!((scrollx == hole.x))) && (!(holeisdrag)))){
hole.x = (hole.x + int(((scrollx - hole.x) / 10)));
mmHole(null);
};
if (((!((scrolly == hole.y))) && (!(holeisdrag)))){
hole.y = (hole.y + int(((scrolly - hole.y) / 10)));
mmHole(null);
};
hole_fire.x = hole.x;
hole_fire.y = hole.y;
if ((((monsterscountvar == 0)) && ((levelid == 10)))){
hh = function (_arg1:TimerEvent):void{
if (bg.lasthole.alpha > 0){
bg.lasthole.alpha = (bg.lasthole.alpha + -0.01);
} else {
rainbow.gotoAndPlay(2);
};
};
msg = function (_arg1:TimerEvent):void{
Mouse.show();
d_level10_1.visible = true;
d_level10_1.gotoAndPlay(2);
maintimer.stop();
gamepause = true;
};
removeEventListener(Event.ENTER_FRAME, EF);
maintimer.stop();
rainbow.visible = true;
timerh = new Timer(30, 101);
timerh.addEventListener("timer", hh);
timerh.start();
timer1 = new Timer(7000, 1);
timer1.addEventListener("timer", msg);
timer1.start();
};
if ((((((((monsterscountvar == 0)) && (!((levelid == 10))))) && (((!((levelid == 5))) || ((((levelid == 5)) && ((phase == 2)))))))) && (((!(crazy.visible)) || (((crazy.visible) && ((crazylives == 0)))))))){
Mouse.show();
removeEventListener(Event.ENTER_FRAME, EF);
SoundMixer.stopAll();
dispatchEvent(new Event("LEVELDONE"));
maintimer.stop();
musicchannel.stop();
levelеtimer.stop();
};
if ((((((monsterscountvar == 0)) && ((levelid == 5)))) && ((phase == 1)))){
if ((((timer1 == null)) || (!(timer1.running)))){
msg1 = function (_arg1:TimerEvent):void{
Mouse.show();
d_level5_2.visible = true;
d_level5_2.gotoAndPlay(2);
gamepause = true;
};
timer1 = new Timer(5000, 1);
timer1.addEventListener("timer", msg1);
timer1.start();
};
};
mess = true;
soundmess = true;
i = 0;
while (i < bigmonsters.length) {
bigmonsters[i].hole.visible = false;
if (bigmonsters[i].hideonnextframe){
bigmonsters[i].hideonnextframe = false;
};
i = (i + 1);
};
if (hammer.currentFrame == 7){
i = 0;
while (i < bigmonsters.length) {
if (((((((!((bigmonsters[i] == null))) && ((bigmonsters[i].alpha == 1)))) && ((bigmonsters[i].ct < bigmonsters[i].lifetime)))) && (bigmonsters[i].hitTestPoint((hammer.x + 50), (hammer.y + 80), true)))){
bigmonsters[i].killed = true;
soundmess = false;
};
i = (i + 1);
};
if (!soundmess){
s = new hamm_1();
s.play();
if (levelid != 5){
levelcountvar = (levelcountvar + 25);
} else {
if (monsterscountvar > 0){
monsterscountvar = (monsterscountvar - 1);
levelcountvar = (levelcountvar + 100);
};
};
dispatchEvent(new Event("SETSCORE"));
} else {
s = new hamm_2();
s.play();
if (levelid != 5){
if (levelcountvar > 10){
levelcountvar = (levelcountvar - 10);
} else {
levelcountvar = 0;
};
};
dispatchEvent(new Event("SETSCORE"));
};
};
if (hammer.currentFrame == 9){
i = 0;
while (i < bigmonsters.length) {
if (bigmonsters[i].killed){
bigmonsters[i].scaleX = (bigmonsters[i].scaleX * 0.75);
bigmonsters[i].scaleY = (bigmonsters[i].scaleY * 0.75);
};
i = (i + 1);
};
};
if (hammer.currentFrame > 9){
i = 0;
while (i < bigmonsters.length) {
if (bigmonsters[i].killed){
bigmonsters[i].scaleX = (bigmonsters[i].scaleX - (bigmonsters[i].scaleX * 0.05));
bigmonsters[i].scaleY = (bigmonsters[i].scaleY - (bigmonsters[i].scaleY * 0.05));
};
i = (i + 1);
};
};
if ((((hammer.currentFrame > 9)) && ((hammer.currentFrame < 13)))){
x = ((Math.random() * 6) + 9);
y = ((Math.random() * 6) + 9);
} else {
if (bigbaraboomcounter == 0){
x = 12;
y = 12;
};
};
mess = true;
if (hammer.currentFrame == 16){
i = 0;
while (i < bigmonsters.length) {
if (bigmonsters[i].killed){
mess = false;
bigmonsters[i].ct = bigmonsters[i].lifetime;
};
i = (i + 1);
};
hammer.gotoAndStop(1);
hammer.visible = false;
Mouse.show();
};
i = 0;
while (i < bigmonsters.length) {
if (((((bigmonsterarea.contains(bigmonsters[i])) && ((bigmonsters[i].old.y > 30)))) && ((bigmonsters[i].ct == bigmonsters[i].lifetime)))){
bigmonsterarea.removeChild(bigmonsters[i]);
};
i = (i + 1);
};
showit = false;
now = false;
if ((((((int((Math.random() * 100)) == 50)) && ((monsterscountvar > 1)))) && (!((levelid == 5))))){
showit = true;
};
if ((((((int((Math.random() * 20)) == 10)) && ((levelid == 5)))) && ((phase == 2)))){
showit = true;
};
if ((((((((int((Math.random() * 8)) == 4)) && ((levelid == 5)))) && ((monsterscountvar == 0)))) && ((phase == 1)))){
showit = true;
now = true;
};
if ((((((((levelid == 10)) || ((levelid == 9)))) || (bigone1.visible))) || (bigone2.visible))){
showit = false;
};
if (showit){
ShowedEvent = function (_arg1:Event):void{
var _local2:Sound;
var _local3:SoundChannel;
var _local4:Number;
var _local5:SoundTransform;
_local2 = new wtf();
_local3 = _local2.play();
_local4 = 0;
if (_arg1.target.x < 240){
_local4 = (-((240 - _arg1.target.x)) / 240);
};
if (_arg1.target.x > 480){
_local4 = (-((480 - _arg1.target.x)) / 240);
};
_local5 = _local3.soundTransform;
_local5.pan = _local4;
_local3.soundTransform = _local5;
_arg1.target.old.mouth.gotoAndPlay(128);
_arg1.target.old.body.gotoAndPlay(128);
_arg1.target.old.eyes.gotoAndPlay(128);
};
if (levelid == 5){
m = createBIGmonster5(now);
} else {
m = createBIGmonster();
};
m.addEventListener("Showed", ShowedEvent);
m.transform.colorTransform = new ColorTransform();
m.alpha = 1;
m.filters = [];
m.scaleX = (2 + int((Math.random() * 2)));
m.scaleY = m.scaleX;
side = int((Math.random() * 3));
if (side == 0){
m.x = (Math.random() * 500);
m.y = (500 + ((m.scaleX * 75) / ((Math.random() * 2) + 1)));
if (m.x < 250){
m.rotation = (Math.random() * 30);
} else {
m.rotation = (Math.random() * -30);
if (m.y < 620){
m.y = 620;
};
};
};
if (side == 1){
m.scaleX = (m.scaleX - 1);
m.scaleY = m.scaleX;
m.x = (-30 * m.scaleX);
m.y = (200 + (Math.random() * 100));
m.rotation = ((Math.random() * 60) + 70);
if (m.rotation < 90){
m.x = (m.x - 10);
};
};
if (side == 2){
m.scaleX = (m.scaleX - 1);
m.scaleY = m.scaleX;
m.x = (725 + (30 * m.scaleX));
m.y = (200 + (Math.random() * 100));
m.rotation = ((-(Math.random()) * 60) - 70);
if (m.rotation > -90){
m.x = (m.x + 10);
};
};
bigmonsterarea.addChild(m);
m.showmonster(50);
bigmonsters.push(m);
};
if (ball.visible){
if ((((ball.old.currentFrame == 25)) && ((ball.old.hit.currentFrame == 1)))){
ball.old.hit.visible = true;
ball.old.hit.gotoAndPlay(2);
ball.old.ballbg.visible = false;
};
if ((((ball.old.currentFrame > 5)) && (crazy.visible))){
if (crazy.hitTestPoint(ball.x, ((ball.y + (ball.old.ballbg.body.y / 2)) - 10), true)){
if (ball.old.hit.currentFrame == 1){
crazy.scaleX = 0.95;
crazy.scaleY = 0.95;
crazyboom = true;
new ball_fall().play();
new catchsound().play();
ball.old.stop();
ball.old.hit.visible = true;
ball.old.hit.gotoAndPlay(2);
ball.old.ballbg.visible = false;
if (int(ballsamount.text) < 9){
ballsamount.text = String((int(ballsamount.text) + 1));
if (int(ballsamount.text) < 2){
ballsamount.visible = false;
};
};
crazylives--;
levelcountvar = (levelcountvar + 100);
dispatchEvent(new Event("SETSCORE"));
};
};
};
if (ball.old.currentFrame > 5){
if (((bigone1.hitTestPoint(ball.x, ((ball.y + (ball.old.ballbg.body.y / 2)) - 10), true)) && (bigone1.visible))){
if (ball.old.hit.currentFrame == 1){
new ball_fall().play();
new catchsound().play();
ball.old.stop();
ball.old.hit.visible = true;
ball.old.hit.gotoAndPlay(2);
ball.old.ballbg.visible = false;
bigkicks++;
bigone1.visible = false;
bigone1.sch1.stop();
bigone1.sch2.stop();
bigone1.gotoAndStop(1);
bigone2.visible = true;
bigone2.gotoAndPlay(1);
bigone1.y = (bigone1.y - 3.5);
bigone2.y = (bigone2.y - 3.5);
if (int(ballsamount.text) < 2){
ballsamount.visible = false;
} else {
ballsamount.visible = true;
};
if (bigkicks == 10){
bigfall.visible = true;
bigfall.gotoAndPlay(1);
bigone2.visible = false;
bigone2.gotoAndStop(1);
};
};
};
};
if (ball.old.currentFrame > 1){
i1 = (monsters.length - 1);
while (i1 >= 0) {
if ((((monsters[i1] is monster)) || ((monsters[i1] is monster_yl)))){
trace(ball);
trace(ball.old);
trace(ball.old.ballbg);
trace(ball.old.ballbg.body);
if (((((monsters[i1].ballarea.hitTestPoint(ball.x, ((ball.y + (ball.old.ballbg.body.y / 2)) - 10), true)) && (!(monsters[i1].killed)))) && (!(monsters[i1].hole.visible)))){
if ((ball.old.currentFrame * 4) >= int((monsters[i1].scaleX * 100))){
if (ball.old.hit.currentFrame == 1){
new ball_fall().play();
new catchsound().play();
ball.old.stop();
ball.old.hit.visible = true;
ball.old.hit.gotoAndPlay(2);
ball.old.ballbg.visible = false;
monsters[i1].killed = true;
levelcountvar = (levelcountvar + (100 - int((monsters[i1].scaleX * 100))));
monsterscountvar--;
superholecounter++;
if (superholecounter == 3){
superholecounter = 0;
dispatchEvent(new Event("SUPERHOLE"));
};
s1 = new catchsound();
sch = s1.play();
pan = 0;
if (monsters[i1].x < 240){
pan = (-((240 - monsters[i1].x)) / 240);
};
if (monsters[i1].x > 480){
pan = (-((480 - monsters[i1].x)) / 240);
};
transform = sch.soundTransform;
transform.pan = pan;
sch.soundTransform = transform;
dispatchEvent(new Event("SETSCORE"));
monsters[i1].old.visible = true;
monsters[i1].oldturn.visible = false;
monsters[i1].old.mouth.gotoAndPlay(31);
monsters[i1].old.body.gotoAndPlay(31);
monsters[i1].old.eyes.gotoAndPlay(31);
};
};
};
if (((monsters[i1].killed) && ((monsters[i1].old.mouth.currentFrame == 39)))){
monsters[i1].ct = monsters[i1].lifetime;
monsters[i1].ltpause = false;
};
};
i1 = (i1 - 1);
};
};
};
if (currdraggedmonster != null){
whitehole.alpha = (0.75 - (((currdraggedmonster.y - currdraggedmonster.curr_monster_drop_y) / ((currdraggedmonster.curr_monster_y - currdraggedmonster.curr_monster_drop_y) / 100)) / 100));
whitehole.width = (((currdraggedmonster.width * (currdraggedmonster.y - currdraggedmonster.curr_monster_drop_y)) / ((currdraggedmonster.curr_monster_y - currdraggedmonster.curr_monster_drop_y) / 100)) / 100);
whitehole.scaleY = whitehole.scaleX;
};
if (((holeisdrag) && (((!(ceilingarea_tmp.hitTestPoint((mousex - 10), mousey, true))) || (!(ceilingarea_tmp.hitTestPoint((mousex + 10), mousey, true))))))){
muHole(null);
};
i = 0;
while (i < draggedmonsters.length) {
if (((!(draggedmonsters[i].slowdown)) && (!(draggedmonsters[i].fallingdown)))){
if ((((draggedmonsters[i].y < (draggedmonsters[i].curr_monster_y - 1))) && ((((draggedmonsters[i].old.mouth.currentFrame < 81)) || ((draggedmonsters[i].old.mouth.currentFrame == 90)))))){
draggedmonsters[i].old.mouth.gotoAndPlay(81);
draggedmonsters[i].old.body.gotoAndPlay(81);
draggedmonsters[i].old.eyes.gotoAndPlay(81);
};
};
if (draggedmonsters[i].slowdown){
if (draggedmonsters[i].y < draggedmonsters[i].curr_monster_y){
draggedmonsters[i].y = (draggedmonsters[i].y + 5);
draggedmonsters[i].old.mouth.gotoAndStop(1);
draggedmonsters[i].old.body.gotoAndStop(1);
draggedmonsters[i].old.eyes.gotoAndStop(1);
} else {
draggedmonsters[i].y = draggedmonsters[i].curr_monster_y;
draggedmonsters[i].slowdown = false;
stopdrag(draggedmonsters[i]);
break;
};
};
if (draggedmonsters[i].fallingdown){
if (draggedmonsters[i].y > (draggedmonsters[i].curr_monster_drop_y + ((draggedmonsters[i].curr_monster_y - draggedmonsters[i].curr_monster_drop_y) * 0.9))){
if (draggedmonsters[i].old.mouth.currentFrame == 95){
s2 = new fall2();
sch = s2.play();
pan = 0;
if (draggedmonsters[i].x < 240){
pan = (-((240 - draggedmonsters[i].x)) / 240);
};
if (draggedmonsters[i].x > 480){
pan = (-((480 - draggedmonsters[i].x)) / 240);
};
transform = sch.soundTransform;
transform.pan = pan;
sch.soundTransform = transform;
draggedmonsters[i].old.mouth.gotoAndPlay(96);
draggedmonsters[i].old.body.gotoAndPlay(96);
draggedmonsters[i].old.eyes.gotoAndPlay(96);
};
if (draggedmonsters[i].old.mouth.currentFrame == 126){
draggedmonsters[i].y = draggedmonsters[i].curr_monster_y;
draggedmonsters[i].old.mouth.gotoAndPlay(1);
draggedmonsters[i].old.body.gotoAndPlay(1);
draggedmonsters[i].old.eyes.gotoAndPlay(1);
draggedmonsters[i].ltpause = false;
stopdrag(draggedmonsters[i]);
};
} else {
draggedmonsters[i].y = (draggedmonsters[i].y + ((draggedmonsters[i].curr_monster_y - draggedmonsters[i].curr_monster_drop_y) * 0.05));
};
};
i = (i + 1);
};
i = 0;
while (i < monsters.length) {
if ((((monsters[i] is monster)) || ((monsters[i] is monster_yl)))){
if (((((!(isdrag(monsters[i]))) && (!(monsters[i].killed)))) && (monsters[i].visible))){
if (monsters[i].fxid != 0){
if ((((((monsters[i].old.eyes.currentFrame == 40)) || ((monsters[i].old.eyes.currentFrame == 60)))) || ((monsters[i].old.eyes.currentFrame == 80)))){
monsters[i].old.visible = true;
monsters[i].oldturn.visible = false;
};
};
if ((((int((Math.random() * 50)) == 20)) || ((monsters[i].fxid == 1)))){
if (monsters[i].old.eyes.currentFrame == 70){
monsters[i].fxid = 1;
monsters[i].old.eyes.gotoAndPlay(71);
monsters[i].oldturn.gotoAndPlay(31);
};
if (monsters[i].old.eyes.currentFrame == 50){
monsters[i].fxid = 1;
monsters[i].old.eyes.gotoAndPlay(51);
monsters[i].oldturn.gotoAndPlay(11);
};
if ((((((monsters[i].old.eyes.currentFrame == 1)) || ((monsters[i].old.eyes.currentFrame == 60)))) || ((monsters[i].old.eyes.currentFrame == 80)))){
monsters[i].old.mouth.gotoAndPlay(128);
monsters[i].old.body.gotoAndPlay(128);
monsters[i].old.eyes.gotoAndPlay(128);
};
if (monsters[i].old.eyes.currentFrame == 139){
if (((((!((monsters[i].roar == null))) && (!(monsters[i].oldturn.visible)))) && ((int(monsters[i].old.y) == -122)))){
monsters[i].roar.stop();
monsters[i].roar = null;
};
monsters[i].fxid = 0;
monsters[i].oldturn.gotoAndStop(1);
monsters[i].old.mouth.gotoAndStop(1);
monsters[i].old.body.gotoAndStop(1);
monsters[i].old.eyes.gotoAndStop(1);
};
};
if ((((int((Math.random() * 50)) == 25)) || ((monsters[i].fxid == 2)))){
if (monsters[i].old.eyes.currentFrame == 70){
monsters[i].fxid = 2;
monsters[i].old.eyes.gotoAndPlay(71);
monsters[i].oldturn.gotoAndPlay(31);
};
if (monsters[i].old.eyes.currentFrame == 50){
monsters[i].fxid = 2;
monsters[i].old.eyes.gotoAndPlay(51);
monsters[i].oldturn.gotoAndPlay(11);
};
if ((((((monsters[i].old.eyes.currentFrame == 1)) || ((monsters[i].old.eyes.currentFrame == 60)))) || ((monsters[i].old.eyes.currentFrame == 80)))){
if ((((((monsters[i].zevok == null)) && (!(monsters[i].oldturn.visible)))) && ((int(monsters[i].old.y) == -122)))){
monsters[i].zevok = new zevok().play();
};
monsters[i].old.mouth.gotoAndPlay(151);
monsters[i].old.body.gotoAndPlay(151);
monsters[i].old.eyes.gotoAndPlay(151);
};
if ((((monsters[i].old.eyes.currentFrame == 165)) && ((int((Math.random() * 4)) == 2)))){
monsters[i].old.mouth.gotoAndPlay(160);
monsters[i].old.body.gotoAndPlay(160);
monsters[i].old.eyes.gotoAndPlay(160);
};
if (monsters[i].old.eyes.currentFrame == 169){
if (monsters[i].zevok != null){
monsters[i].zevok.stop();
monsters[i].zevok = null;
};
monsters[i].fxid = 0;
monsters[i].old.mouth.gotoAndStop(1);
monsters[i].old.body.gotoAndStop(1);
monsters[i].old.eyes.gotoAndStop(1);
monsters[i].oldturn.gotoAndStop(1);
};
};
if (monsters[i].fxid == 0){
monsters[i].old.visible = false;
monsters[i].oldturn.visible = true;
rnd = (int((Math.random() * 100)) + 100);
if ((((monsters[i].oldturn.currentFrame == 1)) && ((rnd == 120)))){
monsters[i].old.eyes.gotoAndPlay(61);
monsters[i].oldturn.gotoAndPlay(41);
};
if ((((monsters[i].oldturn.currentFrame == 10)) && ((rnd == 120)))){
monsters[i].old.eyes.gotoAndPlay(51);
monsters[i].oldturn.gotoAndPlay(51);
};
if ((((monsters[i].oldturn.currentFrame == 1)) && ((rnd == 130)))){
monsters[i].old.eyes.gotoAndPlay(41);
monsters[i].oldturn.gotoAndPlay(1);
};
if ((((monsters[i].oldturn.currentFrame == 30)) && ((rnd == 130)))){
monsters[i].old.eyes.gotoAndPlay(71);
monsters[i].oldturn.gotoAndPlay(31);
};
};
};
if (monsters[i].killed){
monsters[i].old.visible = true;
monsters[i].oldturn.visible = false;
};
};
i = (i + 1);
};
};
}
public function initlevel(_arg1:uint):void{
var bic:Function;
var bac:Function;
var done:Function;
var sk:Function;
var shc:Function;
var transform:SoundTransform;
var playnext:Function;
var i:uint;
var ggg:Function;
var mtimer:Timer;
var mtimerEvent:Function;
var shl:Function;
var catsDone:Function;
var fd1:Function;
var smm1:Function;
var redbtn10CLICK:Function;
var baf:Function;
var fd:Function;
var smm:Function;
var anim2:Function;
var catDone:Function;
var redbtn5CLICK:Function;
var k:uint;
var lid = _arg1;
bic = function (_arg1:Event):void{
var ble:Function;
var e = _arg1;
ble = function (_arg1:Event):void{
afterbang = true;
ReSort();
};
bigbaraboomcounter = 1;
bombitem.visible = false;
getChildByName(("blast_" + levelid)).visible = true;
(getChildByName(("blast_" + levelid)) as MovieClip).gotoAndPlay(2);
getChildByName(("blast_" + levelid)).addEventListener("BLAST", ble);
};
bac = function (_arg1:Event):void{
if (((!(bigone1.visible)) && (!(bombitem.visible)))){
if (levelid != 9){
monsterarea.getChildByName(((("l" + levelid) + "_th_mc") + thingsinevel[(levelid - 1)])).visible = false;
} else {
if (_arg1.target.name == "bombarea"){
monsterarea.getChildByName("l9_th_mc18").visible = false;
};
if (_arg1.target.name == "bombarea2"){
monsterarea.getChildByName("l9_th_mc16").visible = false;
};
if (_arg1.target.name == "bombarea1"){
monsterarea.getChildByName("l9_th_mc17").visible = false;
};
};
_arg1.target.visible = false;
bombitem.visible = true;
};
};
done = function (_arg1:Event):void{
flamechn.stop();
hole_fire.visible = false;
hole.visible = true;
hole.mask = ceilingarea;
hole_fire.mask = null;
shinaction = false;
};
sk = function (_arg1:Event):void{
fire.gotoAndPlay(2);
fire_back.gotoAndPlay(2);
};
shc = function (_arg1:MouseEvent):void{
superholeicon.visible = false;
superholeicon.gotoAndStop(1);
hole_fire.visible = true;
hole.visible = false;
hole.mask = null;
hole_fire.mask = ceilingarea;
};
playnext = function (_arg1:Event):void{
musicchannel = new music().play();
musicchannel.addEventListener(Event.SOUND_COMPLETE, playnext);
};
ggg = function (_arg1:Event):void{
var _local2:MovieClip;
_local2 = catapult;
if (levelid == 10){
_local2 = catapult_sml;
};
_local2.sit1.area = null;
_local2.sit1.inftime = true;
_local2.sit1.old.visible = false;
_local2.sit2.area = null;
_local2.sit2.inftime = true;
_local2.sit2.old.visible = false;
_local2.sit3.area = null;
_local2.sit3.inftime = true;
_local2.sit3.old.visible = false;
monsters.push(_local2.sit1);
monsters.push(_local2.sit2);
monsters.push(_local2.sit3);
};
mtimerEvent = function (_arg1:TimerEvent):void{
if (monsterscountvar < alivemonsteramount()){
i = 0;
while (i < monsters.length) {
if (((((((monsters[i].visible) && ((monsters[i].ct < monsters[i].lifetime)))) && (!(monsters[i].catched)))) && (!(monsters[i].killed)))){
monsters[i].ct = (monsters[i].lifetime - 5);
break;
};
i++;
};
};
};
ballsamountarea.visible = false;
ballshole.visible = false;
ballsamount.visible = false;
ballsamountarea.alpha = 0;
ballshole.alpha = 0;
ballsamount.alpha = 0;
if ((((lid == 3)) || ((lid == 9)))){
firstkill = true;
};
alarm.visible = false;
alarm.gotoAndStop(1);
crazy.visible = false;
crazy.old.gotoAndStop(1);
maintimer.start();
pilesch = null;
blast_1.visible = false;
blast_2.visible = false;
blast_3.visible = false;
blast_4.visible = false;
blast_6.visible = false;
blast_7.visible = false;
blast_8.visible = false;
blast_9.visible = false;
bombitem.visible = false;
bombitem.useHandCursor = true;
bombitem.buttonMode = true;
bombitem.addEventListener(MouseEvent.CLICK, bic);
if (lid == 5){
bombarea.visible = false;
};
if (lid != 9){
bombarea1.visible = false;
bombarea2.visible = false;
};
bombarea.x = bombpos[(lid - 1)][0];
bombarea.y = bombpos[(lid - 1)][1];
bombarea.useHandCursor = true;
bombarea.buttonMode = true;
bombarea.addEventListener(MouseEvent.CLICK, bac);
bombarea1.useHandCursor = true;
bombarea1.buttonMode = true;
bombarea1.addEventListener(MouseEvent.CLICK, bac);
bombarea2.useHandCursor = true;
bombarea2.buttonMode = true;
bombarea2.addEventListener(MouseEvent.CLICK, bac);
fire_back.visible = false;
fire_back.addEventListener("DONE", done);
skeleton.visible = false;
skeleton.gotoAndStop(1);
skeleton.addEventListener("SKELETON", sk);
fire.visible = false;
fire.gotoAndStop(1);
superholeicon.buttonMode = true;
superholeicon.useHandCursor = true;
superholeicon.visible = false;
superholeicon.gotoAndStop(1);
superholeicon.addEventListener(MouseEvent.CLICK, shc);
if (((!((lid == 1))) && (!((lid == 5))))){
shl = function (_arg1:Event):void{
if (((((((((!((levelid == 1))) && (!((levelid == 5))))) && ((monsterscountvar > 0)))) && ((findmonsters()[0] > 0)))) && (!(hole_fire.visible)))){
superholeicon.visible = true;
superholeicon.gotoAndPlay(1);
};
};
addEventListener("SUPERHOLE", shl);
};
bigfall.visible = false;
bigfall.gotoAndStop(1);
bigfall.bigone1.gotoAndStop(1);
bigone1.visible = false;
bigone1.gotoAndStop(1);
bigone2.visible = false;
bigone2.gotoAndStop(1);
friends2.visible = false;
phase = 1;
d_level5_1.visible = false;
d_level5_2.visible = false;
d_level10_1.visible = false;
if ((((lid == 10)) || ((lid == 5)))){
ballsamountarea.visible = false;
ballshole.visible = false;
ballsamount.visible = false;
};
if (lid != 10){
rainbow.visible = false;
catapult_sml.visible = false;
} else {
catsDone = function (_arg1:Event):void{
redbtn10.gotoAndStop(1);
monsterscountvar = (monsterscountvar + -3);
levelcountvar = (levelcountvar + 450);
dispatchEvent(new Event("SETSCORE"));
};
fd1 = function (_arg1:Event):void{
switch (_arg1.target.name.substr(5, 1)){
case "1":
catapult_sml.sit1.ltpause = false;
catapult_sml.sit1.old.visible = true;
catapult_sml.sit1.oldturn.visible = false;
catapult_sml.sit1.old.gotoAndStop(1);
catapult_sml.sit1.oldturn.gotoAndStop(1);
break;
case "2":
catapult_sml.sit2.ltpause = false;
catapult_sml.sit2.old.visible = true;
catapult_sml.sit2.oldturn.visible = false;
catapult_sml.sit2.old.gotoAndStop(1);
catapult_sml.sit2.oldturn.gotoAndStop(1);
break;
case "3":
catapult_sml.sit3.ltpause = false;
catapult_sml.sit3.old.visible = true;
catapult_sml.sit3.oldturn.visible = false;
catapult_sml.sit3.old.gotoAndStop(1);
catapult_sml.sit3.oldturn.gotoAndStop(1);
break;
};
};
smm1 = function (_arg1:Event):void{
switch (_arg1.target.name.substr(5, 1)){
case "1":
catapult_sml.sit1.visible = true;
catapult_sml.sit1.old.visible = true;
catapult_sml.sit1.oldturn.visible = false;
break;
case "2":
catapult_sml.sit2.visible = true;
catapult_sml.sit2.old.visible = true;
catapult_sml.sit2.oldturn.visible = false;
break;
case "3":
catapult_sml.sit3.visible = true;
catapult_sml.sit3.old.visible = true;
catapult_sml.sit3.oldturn.visible = false;
break;
};
};
redbtn10CLICK = function (_arg1:MouseEvent):void{
var _local2:uint;
if ((((((((catapult_sml.currentFrame == 1)) && (catapult_sml.sit1.visible))) && (catapult_sml.sit2.visible))) && (catapult_sml.sit3.visible))){
redbtn10.gotoAndPlay(11);
catapult_sml.gotoAndPlay(2);
_local2 = 0;
while (_local2 < monsters.length) {
if (((monsters[_local2].sitincat) && ((((monsterscountvar - 3) - alivemonsteramount()) > 0)))){
monsters[_local2].setpos();
monsters[_local2].showmonster(int((300 + (Math.random() * 300))));
};
_local2++;
};
ReSort();
};
};
catapult_sml.addEventListener("done", catsDone);
catapult_sml.flash1.addEventListener("FlashDone", fd1);
catapult_sml.flash2.addEventListener("FlashDone", fd1);
catapult_sml.flash3.addEventListener("FlashDone", fd1);
catapult_sml.flash1.addEventListener("ShowMeMonster", smm1);
catapult_sml.flash2.addEventListener("ShowMeMonster", smm1);
catapult_sml.flash3.addEventListener("ShowMeMonster", smm1);
d_level10_1.nextbtn.useHandCursor = true;
d_level10_1.nextbtn.buttonMode = true;
d_level10_1.nextbtn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
d_level10_1.nextbtn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
d_level10_1.nextbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
d_level10_1.gotoAndPlay((d_level10_1.currentFrame + 1));
});
redbtn10.useHandCursor = true;
redbtn10.buttonMode = true;
redbtn10.addEventListener(MouseEvent.CLICK, redbtn10CLICK);
};
if (lid == 3){
baf = function (_arg1:Event):void{
var bangtimer:Timer;
var bangtimerEvent:Function;
var e = _arg1;
bangtimerEvent = function (_arg1:TimerEvent):void{
if (bangtimer.currentCount < 5){
x = ((Math.random() * 6) + 9);
y = ((Math.random() * 6) + 9);
} else {
x = 12;
y = 12;
};
};
setmonsters();
bangtimer = new Timer(100, 5);
bangtimer.addEventListener("timer", bangtimerEvent);
bangtimer.start();
};
bigone1.visible = true;
bigone1.gotoAndPlay(1);
bigfall.addEventListener("bigatfloor", baf);
};
if (lid != 5){
redbtn5.visible = false;
catapult.visible = false;
} else {
fd = function (_arg1:Event):void{
switch (_arg1.target.name.substr(5, 1)){
case "1":
catapult.sit1.ltpause = false;
catapult.sit1.old.visible = true;
catapult.sit1.oldturn.visible = false;
catapult.sit1.old.gotoAndStop(1);
catapult.sit1.oldturn.gotoAndStop(1);
break;
case "2":
catapult.sit2.ltpause = false;
catapult.sit2.old.visible = true;
catapult.sit2.oldturn.visible = false;
catapult.sit2.old.gotoAndStop(1);
catapult.sit2.oldturn.gotoAndStop(1);
break;
case "3":
catapult.sit3.ltpause = false;
catapult.sit3.old.visible = true;
catapult.sit3.oldturn.visible = false;
catapult.sit3.old.gotoAndStop(1);
catapult.sit3.oldturn.gotoAndStop(1);
break;
};
};
smm = function (_arg1:Event):void{
switch (_arg1.target.name.substr(5, 1)){
case "1":
catapult.sit1.visible = true;
catapult.sit1.old.visible = true;
catapult.sit1.oldturn.visible = false;
break;
case "2":
catapult.sit2.visible = true;
catapult.sit2.old.visible = true;
catapult.sit2.oldturn.visible = false;
break;
case "3":
catapult.sit3.visible = true;
catapult.sit3.old.visible = true;
catapult.sit3.oldturn.visible = false;
break;
};
};
anim2 = function (_arg1:Event):void{
friends2.visible = true;
friends1.visible = false;
friends2.gotoAndPlay(2);
gamepause = false;
phase = 2;
redbtn5.visible = false;
monsterscountvar = l5a;
dispatchEvent(new Event("SETSCORE"));
};
catDone = function (_arg1:Event):void{
monsterscountvar = (monsterscountvar + -3);
levelcountvar = (levelcountvar + 450);
dispatchEvent(new Event("SETSCORE"));
};
redbtn5CLICK = function (_arg1:MouseEvent):void{
if ((((((((catapult.currentFrame == 1)) && (catapult.sit1.visible))) && (catapult.sit2.visible))) && (catapult.sit3.visible))){
redbtn5.gotoAndPlay(11);
catapult.gotoAndPlay(2);
};
};
catapult.flash1.addEventListener("FlashDone", fd);
catapult.flash2.addEventListener("FlashDone", fd);
catapult.flash3.addEventListener("FlashDone", fd);
catapult.flash1.addEventListener("ShowMeMonster", smm);
catapult.flash2.addEventListener("ShowMeMonster", smm);
catapult.flash3.addEventListener("ShowMeMonster", smm);
gamepause = true;
d_level5_1.visible = true;
d_level5_1.gotoAndPlay(2);
d_level5_1.nextbtn.useHandCursor = true;
d_level5_1.nextbtn.buttonMode = true;
d_level5_1.nextbtn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
d_level5_1.nextbtn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
d_level5_1.nextbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
d_level5_1.gotoAndPlay(11);
gamepause = false;
});
d_level5_2.nextbtn.useHandCursor = true;
d_level5_2.nextbtn.buttonMode = true;
d_level5_2.nextbtn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:Event):void{
_arg1.target.gotoAndStop(2);
});
d_level5_2.nextbtn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:Event):void{
_arg1.target.gotoAndStop(1);
});
d_level5_2.nextbtn.addEventListener(MouseEvent.CLICK, function (_arg1:Event):void{
d_level5_2.gotoAndPlay((d_level5_2.currentFrame + 1));
});
d_level5_2.addEventListener("anim1", function (_arg1:Event):void{
friends1.gotoAndPlay(2);
friends2.visible = true;
});
d_level5_2.addEventListener("anim2", anim2);
catapult.addEventListener("done", catDone);
redbtn5.useHandCursor = true;
redbtn5.buttonMode = true;
redbtn5.addEventListener(MouseEvent.CLICK, redbtn5CLICK);
};
SoundMixer.stopAll();
musicchannel = new music().play();
transform = musicchannel.soundTransform;
transform.volume = 0;
musicchannel.soundTransform = transform;
musicchannel.addEventListener(Event.SOUND_COMPLETE, playnext);
levelеtimer.reset();
levelеtimer.start();
levelcountvar = 0;
scrollx = hole.x;
scrolly = hole.y;
addEventListener(Event.ENTER_FRAME, EF);
levelid = lid;
i = 0;
while (i < areas.length) {
if (i == (levelid - 1)){
monsterscountvar = areas[i][0];
};
k = 1;
while (k < areas[i].length) {
getChildByName(areas[i][k][0]).visible = false;
k = (k + 1);
};
i = (i + 1);
};
ceilingarea_tmp.gotoAndStop(levelid);
ceilingarea.gotoAndStop(levelid);
bg.gotoAndStop(levelid);
i = 0;
while (i < monsters.length) {
if (monsterarea.contains(monsters[i])){
monsterarea.removeChild(monsters[i]);
};
i = (i + 1);
};
monsters = [];
if (lid != 3){
setmonsters();
} else {
k = 0;
while (k < thingsinevel.length) {
i = 0;
while (i < thingsinevel[k]) {
if ((levelid - 1) != k){
if (getChildByName(((("l" + (k + 1)) + "_th_mc") + (i + 1))) != null){
getChildByName(((("l" + (k + 1)) + "_th_mc") + (i + 1))).visible = false;
};
};
i = (i + 1);
};
k = (k + 1);
};
ReSort();
};
catapult.addEventListener("pushsits", ggg);
catapult_sml.addEventListener("pushsits", ggg);
ggg(null);
catapult.sit1.ltpause = true;
catapult.sit2.ltpause = true;
catapult.sit3.ltpause = true;
catapult_sml.sit1.ltpause = true;
catapult_sml.sit2.ltpause = true;
catapult_sml.sit3.ltpause = true;
hole.mask = ceilingarea;
ceilingarea_tmp.visible = false;
if ((((lid == 3)) || ((lid == 9)))){
ballsamount.text = "9";
} else {
ballsamount.text = "0";
};
dispatchEvent(new Event("SETSCORE"));
new fx().play();
hole_fire.visible = false;
mtimer = new Timer(1000, 0);
mtimer.addEventListener("timer", mtimerEvent);
mtimer.start();
}
function findmonsters():Array{
var _local1:uint;
var _local2:uint;
var _local3:uint;
_local1 = 0;
_local2 = 0;
_local3 = 0;
while (_local3 < monsters.length) {
if (((((((monsters[_local3].visible) && ((monsters[_local3].ct < monsters[_local3].lifetime)))) && (!(monsters[_local3].catched)))) && (!(monsters[_local3].killed)))){
if ((monsters[_local3] is monster)){
_local1++;
};
if ((monsters[_local3] is monster_yl)){
_local2++;
};
};
_local3++;
};
return ([_local1, _local2]);
}
public function resume():void{
var _local1:uint;
gamepause = false;
_local1 = 0;
while (_local1 < monsters.length) {
monsters[_local1].ltpause = false;
_local1++;
};
_local1 = 0;
while (_local1 < bigmonsters.length) {
bigmonsters[_local1].ltpause = false;
_local1++;
};
}
function stopdrag(_arg1:MovieClip):void{
var _local2:uint;
_local2 = 0;
while (_local2 < draggedmonsters.length) {
if (draggedmonsters[_local2] == _arg1){
draggedmonsters[_local2] = null;
_arg1.fallingdown = false;
_arg1.slowdown = false;
_arg1.fixheight = 0;
};
_local2++;
};
draggedmonsters = draggedmonsters.filter(notnull);
}
function createBIGmonster():monster{
var _local1:monster;
_local1 = new monster(int((300 + (Math.random() * 300))), null, 1);
_local1.old.mouth.stop();
_local1.old.body.stop();
_local1.old.eyes.stop();
return (_local1);
}
function alivemonsteramount():uint{
var _local1:uint;
var _local2:uint;
_local1 = 0;
_local2 = 0;
while (_local2 < monsters.length) {
if ((((monsters[_local2] is monster)) || ((monsters[_local2] is monster_yl)))){
if (((((((monsters[_local2].visible) && ((monsters[_local2].ct < monsters[_local2].lifetime)))) && (!(monsters[_local2].catched)))) && (!(monsters[_local2].killed)))){
_local1++;
};
};
_local2++;
};
return (_local1);
}
function FalledEvent(_arg1:Event):void{
var tt:uint;
var t:Timer;
var tel:Function;
var e = _arg1;
tel = function (_arg1:TimerEvent):void{
if (fire.visible){
t.reset();
t.start();
} else {
if ((monsterscountvar - alivemonsteramount()) > 0){
e.target.setpos();
e.target.afterbang = false;
if ((((levelid == 5)) && ((e.target.scaleX < 0.3)))){
e.target.scaleX = 0.3;
e.target.scaleY = 0.3;
};
ReSort();
e.target.showmonster(int((300 + (Math.random() * 300))));
};
};
};
tt = (3000 * Math.random());
if ((e.target is monster)){
trace(e.target.area.name, e.target.superholed);
};
if (((((monsterscountvar - alivemonsteramount()) == 1)) || (e.target.afterbang))){
tt = 500;
};
t = new Timer(tt, 1);
t.addEventListener("timer", tel);
t.start();
}
function isdrag(_arg1:MovieClip):Boolean{
var _local2:uint;
_local2 = 0;
while (_local2 < draggedmonsters.length) {
if (draggedmonsters[_local2] == _arg1){
return (true);
};
_local2++;
};
return (false);
}
function sign(_arg1:Number):Number{
if (_arg1 > 0){
return (1);
};
return (-1);
}
function createBIGmonster5(_arg1:Boolean):monster{
var _local2:monster;
if (_arg1){
_local2 = new monster(0, null, 1);
} else {
_local2 = new monster(int((150 + (Math.random() * 90))), null, 1);
};
_local2.old.mouth.stop();
_local2.old.body.stop();
_local2.old.eyes.stop();
return (_local2);
}
function setmonsters():void{
var _local1:*;
var _local2:uint;
var _local3:uint;
var _local4:MovieClip;
var _local5:MovieClip;
_local1 = 0;
while (_local1 < areas.length) {
if (levelid == (_local1 + 1)){
_local2 = 1;
while (_local2 < areas[_local1].length) {
_local3 = 0;
while (_local3 < areas[_local1][_local2][1]) {
_local4 = createmonster((getChildByName(areas[_local1][_local2][0]) as MovieClip), areas[_local1][_local2][2], areas[_local1][_local2][4]);
_local4.upheight = areas[_local1][_local2][3];
_local4.dragble = areas[_local1][_local2][4];
_local4.defx = defaultpos[_local1][(_local2 - 1)][0];
_local4.defy = defaultpos[_local1][(_local2 - 1)][1];
_local4.setpos();
if ((((((levelid == 5)) || ((levelid == 10)))) && ((_local4.scaleX < 0.2)))){
_local4.scaleX = 0.2;
_local4.scaleY = 0.2;
};
monsters.push(_local4);
_local3++;
};
_local2++;
};
};
_local1++;
};
_local2 = 0;
while (_local2 < thingsinevel.length) {
_local1 = 0;
while (_local1 < thingsinevel[_local2]) {
if ((levelid - 1) == _local2){
_local5 = (getChildByName(((("l" + levelid) + "_th_mc") + (_local1 + 1))) as MovieClip);
(getChildByName(((("l" + levelid) + "_th_mc") + (_local1 + 1))) as MovieClip).curr_monster_y = _local5.y;
_local5.visible = true;
monsters.push(_local5);
} else {
if (getChildByName(((("l" + (_local2 + 1)) + "_th_mc") + (_local1 + 1))) != null){
getChildByName(((("l" + (_local2 + 1)) + "_th_mc") + (_local1 + 1))).visible = false;
};
};
_local1++;
};
_local2++;
};
ReSort();
}
function mmHole(_arg1:MouseEvent):void{
var _local2:Number;
_local2 = ((1.5 * (25 + ((100 - int((hole.y / 1.8))) * 0.75))) / 100);
hole.scaleX = _local2;
hole.scaleY = _local2;
if (_local2 > 1){
_local2 = 1;
};
hole_fire.scaleX = _local2;
hole_fire.scaleY = _local2;
}
function muMonstra(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:uint;
var _local4:Number;
var _local5:uint;
var _local6:Sound;
var _local7:SoundChannel;
var _local8:Number;
var _local9:SoundTransform;
if (((!((_arg1.target.parent == null))) && ((((_arg1.target.parent is monster)) || ((_arg1.target.parent is monster_yl)))))){
_local2 = _arg1.target.parent.parent;
} else {
_local2 = currdraggedmonster;
};
_local3 = 0;
if (((((isdrag(_local2)) && ((_local2 == currdraggedmonster)))) && ((levelid == 10)))){
if (catapult_sml.sitarea1.hitTestObject(_local2)){
if (!catapult_sml.sit1.visible){
catapult_sml.flash1.visible = true;
catapult_sml.flash1.pan = -1;
catapult_sml.flash1.gotoAndPlay(2);
catapult_sml.sit1.old.visible = false;
_local2.stopDrag();
_local2.visible = false;
_local2.sitincat = true;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (((catapult_sml.sitarea2.hitTestObject(_local2)) && (_local2.visible))){
if (!catapult_sml.sit2.visible){
catapult_sml.flash2.visible = true;
catapult_sml.flash2.pan = 0;
catapult_sml.flash2.gotoAndPlay(2);
catapult_sml.sit2.old.visible = false;
_local2.stopDrag();
_local2.sitincat = true;
_local2.visible = false;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (((catapult_sml.sitarea3.hitTestObject(_local2)) && (_local2.visible))){
if (!catapult_sml.sit3.visible){
catapult_sml.flash3.visible = true;
catapult_sml.flash3.pan = 1;
catapult_sml.flash3.gotoAndPlay(2);
catapult_sml.sit3.old.visible = false;
_local2.stopDrag();
_local2.visible = false;
_local2.sitincat = true;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (catapult_sml.sit1.visible){
_local3++;
};
if (catapult_sml.sit2.visible){
_local3++;
};
if (catapult_sml.sit3.visible){
_local3++;
};
if (_local3 > 2){
redbtn10.gotoAndPlay(2);
};
};
if (((((isdrag(_local2)) && ((_local2 == currdraggedmonster)))) && ((levelid == 5)))){
if (catapult.sitarea1.hitTestObject(_local2)){
if (!catapult.sit1.visible){
catapult.flash1.visible = true;
catapult.flash1.pan = -1;
catapult.flash1.gotoAndPlay(2);
catapult.sit1.old.visible = false;
_local2.visible = false;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (((catapult.sitarea2.hitTestObject(_local2)) && (_local2.visible))){
if (!catapult.sit2.visible){
catapult.flash2.visible = true;
catapult.flash2.pan = 0;
catapult.flash2.gotoAndPlay(2);
catapult.sit2.old.visible = false;
_local2.visible = false;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (((catapult.sitarea3.hitTestObject(_local2)) && (_local2.visible))){
if (!catapult.sit3.visible){
catapult.flash3.visible = true;
catapult.flash3.pan = 1;
catapult.flash3.gotoAndPlay(2);
catapult.sit3.old.visible = false;
_local2.visible = false;
stopdrag(_local2);
_local3++;
currdraggedmonster = null;
};
};
if (catapult.sit1.visible){
_local3++;
};
if (catapult.sit2.visible){
_local3++;
};
if (catapult.sit3.visible){
_local3++;
};
if (_local3 > 2){
redbtn5.gotoAndPlay(2);
};
};
if (((((isdrag(_local2)) && (!((levelid == 5))))) && (!((levelid == 10))))){
whitehole.visible = false;
if (_local2 != null){
if (_local2.y < (_local2.curr_monster_y - ((_local2.curr_monster_y - _local2.curr_monster_drop_y) / 2))){
if ((((_local2.fixheight == 0)) || ((_local2.fixheight == undefined)))){
_local2.fixheight = _local2.initheight;
_local4 = _local2.curr_monster_drop_y;
_local5 = (Math.ceil((_local2.y - _local4)) / ((_local2.curr_monster_y - _local4) * 0.05));
if (_local2.y <= (500 - ((_local2.curr_monster_y - _local2.height) + 10))){
_local2.y = (_local4 + (((_local2.curr_monster_y - _local4) * 0.05) * _local5));
};
};
_local2.stopDrag();
if (((((((((((_local2.y - _local2.height) < (whitehole.y + 15))) && ((whitehole.x > (hole.x - (hole.width / 2)))))) && ((whitehole.x < ((hole.x + (hole.width / 4)) - 10))))) && ((whitehole.y > (hole.y - (hole.height / 4)))))) && ((whitehole.y < (hole.y + (hole.height / 2)))))){
bulk.x = (_local2.x + (_local2.width / 2));
bulk.y = (hole.y + 15);
bulk.scaleX = (hole.scaleX * 0.6);
bulk.scaleY = (hole.scaleY * 0.6);
bulk.old.gotoAndPlay(2);
new bulk_sound().play();
stopdrag(_local2);
if (_local2.y > (hole.y + 10)){
_local2.y = (_local2.y - 20);
};
_local2.catched = true;
if (int(ballsamount.text) < 9){
ballsamount.text = String((int(ballsamount.text) + 1));
if (int(ballsamount.text) < 2){
ballsamount.visible = false;
} else {
ballsamount.visible = true;
};
};
levelcountvar = (levelcountvar + (200 - int((_local2.scaleX * 100))));
monsterscountvar--;
firstkill = true;
superholecounter++;
if (superholecounter >= 3){
superholecounter = 0;
dispatchEvent(new Event("SUPERHOLE"));
};
dispatchEvent(new Event("SETSCORE"));
_local6 = new disapear();
_local7 = _local6.play();
_local8 = 0;
if (_local2.x < 240){
_local8 = (-((240 - _local2.x)) / 240);
};
if (_local2.x > 480){
_local8 = (-((480 - _local2.x)) / 240);
};
_local9 = _local7.soundTransform;
_local9.pan = _local8;
_local7.soundTransform = _local9;
currdraggedmonster = null;
} else {
_local2.fallingdown = true;
_local2.old.mouth.gotoAndPlay(91);
_local2.old.body.gotoAndPlay(91);
_local2.old.eyes.gotoAndPlay(91);
ReSort();
currdraggedmonster = null;
};
} else {
_local2.stopDrag();
_local2.slowdown = true;
currdraggedmonster = null;
};
};
};
}
function muHole(_arg1:MouseEvent):void{
scrollx = hole.x;
scrolly = hole.y;
hole.stopDrag();
holeisdrag = false;
}
function ReSort():void{
var i:uint;
var tmp:Array;
var ms:uint;
var m:MovieClip;
var rm:Function;
tmp = [];
i = 0;
while (i < monsters.length) {
if (((!((monsters[i] == null))) && (monsterarea.contains(monsters[i])))){
monsterarea.removeChild(monsters[i]);
};
i = (i + 1);
};
bubbleSortOn(monsters, "curr_monster_y");
ms = 0;
i = 0;
while (i < monsters.length) {
if (!monsters[i].inftime){
if (!afterbang){
if (!monsters[i].superholed){
monsterarea.addChild(monsters[i]);
} else {
monsters[i].superholed = false;
monsterarea.addChild(fire_back);
monsterarea.addChild(skeleton);
monsterarea.addChild(hole_fire);
monsterarea.addChild(fire);
};
} else {
gamepause = true;
m = null;
if ((monsters[i] is monster)){
m = new skeleton2();
} else {
if ((monsters[i] is monster_yl)){
m = new skeleton2yl();
} else {
monsterarea.addChild(monsters[i]);
};
};
if (((((!((m == null))) && (monsters[i].visible))) && ((monsters[i].old.mask == null)))){
rm = function (_arg1:Event):void{
var _local2:uint;
monsterarea.removeChild((_arg1.target as MovieClip));
gamepause = false;
_local2 = 0;
while (_local2 < monsters.length) {
monsters[_local2].ltpause = false;
_local2++;
};
};
ms = (ms + 1);
m.addEventListener("RemoveMe", rm);
m.addEventListener("PILE", function (_arg1:Event):void{
if (pilesch == null){
pilesch = new pile1_loud().play();
};
});
monsters[i].ct = (monsters[i].lifetime - (Math.random() * 100));
monsters[i].afterbang = true;
monsters[i].visible = false;
m.scaleX = (monsters[i].scaleY + 0.15);
m.scaleY = (monsters[i].scaleY + 0.15);
m.x = monsters[i].x;
m.y = (monsters[i].y + ((monsters[i].old.y * monsters[i].scaleY) * 1.075));
m.gotoAndPlay(2);
monsterarea.addChild(m);
};
};
};
i = (i + 1);
};
if (afterbang){
monsterscountvar = (monsterscountvar + -(ms));
levelcountvar = (levelcountvar + (ms * 50));
dispatchEvent(new Event("SETSCORE"));
};
afterbang = false;
}
function notnull(_arg1, _arg2:int, _arg3:Array):Boolean{
if (_arg1 != null){
return (true);
};
return (false);
}
function createmonster(_arg1:MovieClip, _arg2:Number, _arg3:Boolean):MovieClip{
var _local4:MovieClip;
if (_arg3){
_local4 = new monster(int((300 + (Math.random() * 300))), _arg1, _arg2);
} else {
_local4 = new monster_yl(int((300 + (Math.random() * 300))), _arg1, _arg2);
};
_local4.old.mouth.stop();
_local4.old.body.stop();
_local4.old.eyes.stop();
_local4.addEventListener(MouseEvent.MOUSE_DOWN, mdMonstra);
_local4.addEventListener(MouseEvent.MOUSE_UP, muMonstra);
_local4.addEventListener(MouseEvent.CLICK, muMonstra);
_local4.addEventListener("Falled", FalledEvent);
return (_local4);
}
function mdMonstra(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:Boolean;
var _local4:Number;
var _local5:Sound;
var _local6:SoundChannel;
var _local7:Number;
var _local8:SoundTransform;
if (!gamepause){
_local2 = _arg1.target.parent.parent;
if (!(((_local2 is monster)) || ((_local2 is monster_yl)))){
_local2 = _arg1.target.parent;
};
if ((((((((((currdraggedmonster == null)) && (!(isdrag(_local2))))) && (!(holeisdrag)))) && (!(_local2.goout)))) && (_local2.dragble))){
_local3 = false;
_local4 = (_local2.y - 250);
whitehole.width = _local2.width;
whitehole.scaleY = whitehole.scaleX;
whitehole.x = ((_local2.x + (whitehole.width / 2)) - 2.5);
whitehole.y = (((250 - _local4) + (whitehole.width / 4)) - _local2.upheight);
if (((!((levelid == 5))) && (!((levelid == 10))))){
whitehole.visible = true;
};
if (((!((levelid == 5))) && (!((levelid == 10))))){
_local2.startDrag(true, new Rectangle(_local2.x, (((250 - _local4) - _local2.upheight) + _local2.height), 1, (((2 * _local4) + _local2.upheight) - _local2.height)));
_local3 = true;
} else {
if ((((catapult.currentFrame == 1)) && ((levelid == 5)))){
if (((((!(catapult.sit1.visible)) || (!(catapult.sit2.visible)))) || (!(catapult.sit3.visible)))){
_local3 = true;
_local2.startDrag(false, new Rectangle(0, 250, 700, 250));
animscale = true;
};
};
if ((((catapult_sml.currentFrame == 1)) && ((levelid == 10)))){
if (((((!(catapult_sml.sit1.visible)) || (!(catapult_sml.sit2.visible)))) || (!(catapult_sml.sit3.visible)))){
_local3 = true;
_local2.startDrag(false, new Rectangle(0, 250, 700, 250));
animscale = true;
};
};
};
if (_local3){
_local2.ltpause = true;
currdraggedmonster = _local2;
_local2.curr_monster_y = _local2.y;
_local2.curr_monster_drop_y = (((250 - _local4) - _local2.upheight) + _local2.height);
draggedmonsters.push(_local2);
_local2.old.visible = true;
_local2.oldturn.visible = false;
_local2.old.mouth.gotoAndPlay(81);
_local2.old.body.gotoAndPlay(81);
_local2.old.eyes.gotoAndPlay(81);
_local5 = new catchsound();
_local6 = _local5.play();
_local7 = 0;
if (_local2.x < 240){
_local7 = (-((240 - _local2.x)) / 240);
};
if (_local2.x > 480){
_local7 = (-((480 - _local2.x)) / 240);
};
_local8 = _local6.soundTransform;
_local8.pan = _local7;
_local6.soundTransform = _local8;
};
};
};
}
function bubbleSortOn(_arg1:Array, _arg2:String):void{
var _local3:Boolean;
var _local4:*;
var _local5:*;
do {
_local3 = false;
_local4 = 1;
while (_local4 < _arg1.length) {
if (_arg1[(_local4 - 1)][_arg2] > _arg1[_local4][_arg2]){
_local5 = _arg1[(_local4 - 1)];
_arg1[(_local4 - 1)] = _arg1[_local4];
_arg1[_local4] = _local5;
_local3 = true;
};
_local4++;
};
} while (_local3);
}
}
}//package
Section 134
//skeleton2 (skeleton2)
package {
import flash.display.*;
import flash.events.*;
public dynamic class skeleton2 extends MovieClip {
public function skeleton2(){
addFrameScript(0, frame1, 19, frame20, 49, frame50);
}
function frame1(){
stop();
}
function frame20(){
dispatchEvent(new Event("PILE"));
}
function frame50(){
dispatchEvent(new Event("RemoveMe"));
}
}
}//package
Section 135
//skeleton2yl (skeleton2yl)
package {
import flash.display.*;
import flash.events.*;
public dynamic class skeleton2yl extends MovieClip {
public function skeleton2yl(){
addFrameScript(0, frame1, 19, frame20, 49, frame50);
}
function frame1(){
stop();
}
function frame20(){
dispatchEvent(new Event("PILE"));
}
function frame50(){
dispatchEvent(new Event("RemoveMe"));
}
}
}//package
Section 136
//snore (snore)
package {
import flash.media.*;
public dynamic class snore extends Sound {
}
}//package
Section 137
//things (things)
package {
import flash.display.*;
public class things extends MovieClip {
var curr_monster_y:uint;
public function things():void{
}
}
}//package
Section 138
//wtf (wtf)
package {
import flash.media.*;
public dynamic class wtf extends Sound {
}
}//package
Section 139
//zevok (zevok)
package {
import flash.media.*;
public dynamic class zevok extends Sound {
}
}//package