Section 1
//_keygamesBar_7 (TornadoRanch_keygames_fla._keygamesBar_7)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class _keygamesBar_7 extends MovieClip {
public function _keygamesBar_7(){
addFrameScript(0, frame1, 99, frame100);
}
function frame100(){
stop();
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 2
//bonusInfo_sub_115 (TornadoRanch_keygames_fla.bonusInfo_sub_115)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class bonusInfo_sub_115 extends MovieClip {
public function bonusInfo_sub_115(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 3
//btn_Back_136 (TornadoRanch_keygames_fla.btn_Back_136)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Back_136 extends MovieClip {
public var pencet:Boolean;
public function btn_Back_136(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 4
//btn_BonusLevel_130 (TornadoRanch_keygames_fla.btn_BonusLevel_130)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_BonusLevel_130 extends MovieClip {
public var pencet:Boolean;
public function btn_BonusLevel_130(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 5
//btn_Help_133 (TornadoRanch_keygames_fla.btn_Help_133)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Help_133 extends MovieClip {
public var pencet:Boolean;
public function btn_Help_133(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.15){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 6
//btn_MoreGames_128 (TornadoRanch_keygames_fla.btn_MoreGames_128)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_MoreGames_128 extends MovieClip {
public var pencet:Boolean;
public function btn_MoreGames_128(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 7
//btn_Next_151 (TornadoRanch_keygames_fla.btn_Next_151)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Next_151 extends MovieClip {
public var pencet:Boolean;
public function btn_Next_151(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 8
//btn_No_93 (TornadoRanch_keygames_fla.btn_No_93)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_No_93 extends MovieClip {
public var pencet:Boolean;
public function btn_No_93(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.3){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 9
//btn_Play_127 (TornadoRanch_keygames_fla.btn_Play_127)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Play_127 extends MovieClip {
public var pencet:Boolean;
public function btn_Play_127(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.3){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 10
//btn_Resetdata_149 (TornadoRanch_keygames_fla.btn_Resetdata_149)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Resetdata_149 extends MovieClip {
public var pencet:Boolean;
public function btn_Resetdata_149(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 11
//btn_Score_129 (TornadoRanch_keygames_fla.btn_Score_129)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Score_129 extends MovieClip {
public var pencet:Boolean;
public function btn_Score_129(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 12
//btn_Submit_153 (TornadoRanch_keygames_fla.btn_Submit_153)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Submit_153 extends MovieClip {
public var pencet:Boolean;
public function btn_Submit_153(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 13
//btn_Submitcopy_156 (TornadoRanch_keygames_fla.btn_Submitcopy_156)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Submitcopy_156 extends MovieClip {
public var pencet:Boolean;
public function btn_Submitcopy_156(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.2){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 14
//btn_Yes_94 (TornadoRanch_keygames_fla.btn_Yes_94)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class btn_Yes_94 extends MovieClip {
public var pencet:Boolean;
public function btn_Yes_94(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.3){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.05);
this.scaleY = (this.scaleY - 0.05);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 15
//Health_80 (TornadoRanch_keygames_fla.Health_80)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class Health_80 extends MovieClip {
public function Health_80(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 16
//Level_mc1_137 (TornadoRanch_keygames_fla.Level_mc1_137)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc1_137 extends MovieClip {
public var aktif:Boolean;
public function Level_mc1_137(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 1){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 1;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 17
//Level_mc10_146 (TornadoRanch_keygames_fla.Level_mc10_146)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc10_146 extends MovieClip {
public var aktif:Boolean;
public function Level_mc10_146(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 10){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 10;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 18
//Level_mc11_147 (TornadoRanch_keygames_fla.Level_mc11_147)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc11_147 extends MovieClip {
public var aktif:Boolean;
public function Level_mc11_147(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 11){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 11;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 19
//Level_mc12_148 (TornadoRanch_keygames_fla.Level_mc12_148)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc12_148 extends MovieClip {
public var aktif:Boolean;
public function Level_mc12_148(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 12){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 12;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 20
//Level_mc2_138 (TornadoRanch_keygames_fla.Level_mc2_138)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc2_138 extends MovieClip {
public var aktif:Boolean;
public function Level_mc2_138(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 2){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 2;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 21
//Level_mc3_139 (TornadoRanch_keygames_fla.Level_mc3_139)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc3_139 extends MovieClip {
public var aktif:Boolean;
public function Level_mc3_139(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 3){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 3;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 22
//Level_mc4_140 (TornadoRanch_keygames_fla.Level_mc4_140)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc4_140 extends MovieClip {
public var aktif:Boolean;
public function Level_mc4_140(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 4){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 4;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 23
//Level_mc5_141 (TornadoRanch_keygames_fla.Level_mc5_141)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc5_141 extends MovieClip {
public var aktif:Boolean;
public function Level_mc5_141(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 5){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 5;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 24
//Level_mc6_142 (TornadoRanch_keygames_fla.Level_mc6_142)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc6_142 extends MovieClip {
public var aktif:Boolean;
public function Level_mc6_142(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 6){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 6;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 25
//Level_mc7_143 (TornadoRanch_keygames_fla.Level_mc7_143)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc7_143 extends MovieClip {
public var aktif:Boolean;
public function Level_mc7_143(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 7){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 7;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 26
//Level_mc8_144 (TornadoRanch_keygames_fla.Level_mc8_144)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc8_144 extends MovieClip {
public var aktif:Boolean;
public function Level_mc8_144(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 8){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 8;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 27
//Level_mc9_145 (TornadoRanch_keygames_fla.Level_mc9_145)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Level_mc9_145 extends MovieClip {
public var aktif:Boolean;
public function Level_mc9_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
if (MovieClip(root).levelReached >= 9){
aktif = true;
} else {
aktif = false;
};
if (aktif){
gotoAndStop(2);
} else {
gotoAndStop(1);
};
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(MouseEvent.CLICK, clickbtn);
}
public function thisf1(_arg1:MouseEvent){
if (aktif){
gotoAndStop(3);
};
}
public function thisf2(_arg1:MouseEvent){
if (aktif){
gotoAndStop(2);
};
}
public function clickbtn(_arg1:MouseEvent){
if (aktif){
MovieClip(parent).level = 9;
MovieClip(parent).gotoAndStop("preplay");
};
}
}
}//package TornadoRanch_keygames_fla
Section 28
//mc_container_11 (TornadoRanch_keygames_fla.mc_container_11)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class mc_container_11 extends MovieClip {
public function mc_container_11(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 29
//preplayText_157 (TornadoRanch_keygames_fla.preplayText_157)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class preplayText_157 extends MovieClip {
public function preplayText_157(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 30
//ResultMc_154 (TornadoRanch_keygames_fla.ResultMc_154)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class ResultMc_154 extends MovieClip {
public var JumlahduitTxt:TextField;
public var tornado5Txt:TextField;
public var tornado3Txt:TextField;
public var duitTxt:TextField;
public var tornado1Txt:TextField;
public var tornado4Txt:TextField;
public var tornado2Txt:TextField;
public var skorTxt:TextField;
public var treesTxt:TextField;
public function ResultMc_154(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 13, frame14);
}
function frame10(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
tornado5Txt.text = String(MovieClip(parent).tornadoDuit5);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame11(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame12(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
tornado5Txt.text = String(MovieClip(parent).tornadoDuit5);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame14(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
duitTxt.text = String(MovieClip(parent).bestSkor);
}
function frame2(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame4(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame6(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame1(){
stop();
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame9(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
tornado5Txt.text = String(MovieClip(parent).tornadoDuit5);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame3(){
treesTxt.text = String(MovieClip(parent).treeDuit);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame8(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame5(){
treesTxt.text = String(MovieClip(parent).treeDuit);
tornado1Txt.text = String(MovieClip(parent).tornadoDuit1);
tornado2Txt.text = String(MovieClip(parent).tornadoDuit2);
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
tornado4Txt.text = String(MovieClip(parent).tornadoDuit4);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
function frame7(){
tornado3Txt.text = String(MovieClip(parent).tornadoDuit3);
skorTxt.text = String(MovieClip(parent).skor);
duitTxt.text = String(MovieClip(parent).duit[(MovieClip(parent).level - 2)]);
JumlahduitTxt.text = String(MovieClip(parent).Jumlahduit);
}
}
}//package TornadoRanch_keygames_fla
Section 31
//Score_sub_120 (TornadoRanch_keygames_fla.Score_sub_120)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class Score_sub_120 extends MovieClip {
public function Score_sub_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 32
//Symbol12_132 (TornadoRanch_keygames_fla.Symbol12_132)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Symbol12_132 extends MovieClip {
public var pencet:Boolean;
public function Symbol12_132(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.06){
this.scaleX = (this.scaleX + 0.03);
this.scaleY = (this.scaleY + 0.03);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.03);
this.scaleY = (this.scaleY - 0.03);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 33
//Symbol6_124 (TornadoRanch_keygames_fla.Symbol6_124)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class Symbol6_124 extends MovieClip {
public function Symbol6_124(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 34
//Timeline_134 (TornadoRanch_keygames_fla.Timeline_134)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_134 extends MovieClip {
public var pencet:Boolean;
public function Timeline_134(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.06){
this.scaleX = (this.scaleX + 0.03);
this.scaleY = (this.scaleY + 0.03);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.03);
this.scaleY = (this.scaleY - 0.03);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 35
//Timeline_91 (TornadoRanch_keygames_fla.Timeline_91)
package TornadoRanch_keygames_fla {
import flash.events.*;
import flash.display.*;
public dynamic class Timeline_91 extends MovieClip {
public var pencet:Boolean;
public function Timeline_91(){
addFrameScript(0, frame1);
}
public function S_enterframe(_arg1:Event){
if (pencet){
if (this.scaleX < 1.06){
this.scaleX = (this.scaleX + 0.03);
this.scaleY = (this.scaleY + 0.03);
};
} else {
if (this.scaleX > 1){
this.scaleX = (this.scaleX - 0.03);
this.scaleY = (this.scaleY - 0.03);
};
};
}
function frame1(){
stop();
this.buttonMode = true;
this.addEventListener(MouseEvent.ROLL_OVER, thisf1);
this.addEventListener(MouseEvent.ROLL_OUT, thisf2);
this.addEventListener(Event.ENTER_FRAME, S_enterframe);
}
public function thisf1(_arg1:MouseEvent){
pencet = true;
}
public function thisf2(_arg1:MouseEvent){
pencet = false;
}
}
}//package TornadoRanch_keygames_fla
Section 36
//warning_83 (TornadoRanch_keygames_fla.warning_83)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class warning_83 extends MovieClip {
public function warning_83(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 37
//warning2_90 (TornadoRanch_keygames_fla.warning2_90)
package TornadoRanch_keygames_fla {
import flash.display.*;
public dynamic class warning2_90 extends MovieClip {
public function warning2_90(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package TornadoRanch_keygames_fla
Section 38
//Bar (Bar)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Bar extends MovieClip {
public var warning:MovieClip;
public var sTxt:TextField;
public var sfxBtn:BtnSfx;
public var timerTxt:TextField;
public var musicBtn:BtnMusic;
public var levelTxt:TextField;
public var warning2:MovieClip;
public var happyBtn3:MovieClip;
public var HealthBar:MovieClip;
public var scoreTxt:TextField;
}
}//package
Section 39
//Bbomb (Bbomb)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bbomb extends Sprite {
public var die:Boolean;
private var stepp:int;// = 0
private var nn:Number;
public var born;
public var live;
private var mm;
public function Bbomb(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
addEventListener(Event.ENTER_FRAME, moveBbomb);
}
public function removeMoveBbomb(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBbomb);
}
public function deleteBbomb(){
MovieClip(parent).removeBbomb(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBbomb);
}
public function moveBbomb(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (((MovieClip(parent).liveHero) && (MovieClip(parent).heros[0].hitTestObject(this)))){
MovieClip(parent).bombAmount++;
MovieClip(parent).addMiniBomb();
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 3);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundGet2.play();
};
die = true;
live = false;
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBbomb();
die = false;
};
};
}
}
}//package
Section 40
//Bflash (Bflash)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bflash extends Sprite {
public var die:Boolean;
private var stepp:int;// = 0
private var nn:Number;
public var born;
public var live;
private var mm;
public function Bflash(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
addEventListener(Event.ENTER_FRAME, moveBflash);
}
public function removeMoveBflash(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBflash);
}
public function moveBflash(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (MovieClip(parent).heros[0].hitTestObject(this)){
MovieClip(parent).flashStep = 0;
MovieClip(parent).flashAllowed = true;
MovieClip(parent).speedEnemy = 30;
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 7);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundFlash.play();
};
die = true;
live = false;
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBflash();
die = false;
};
};
}
public function deleteBflash(){
MovieClip(parent).removeBflash(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBflash);
}
}
}//package
Section 41
//Blife (Blife)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Blife extends Sprite {
public var die:Boolean;
private var stepp:int;// = 0
private var nn:Number;
public var born;
public var live;
private var mm;
public function Blife(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
addEventListener(Event.ENTER_FRAME, moveBlife);
}
public function removeMoveBlife(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBlife);
}
public function moveBlife(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (((MovieClip(parent).liveHero) && (MovieClip(parent).heros[0].hitTestObject(this)))){
MovieClip(parent).Health++;
if (MovieClip(parent).Health > 6){
MovieClip(parent).Health = 6;
};
MovieClip(parent).bar.HealthBar.gotoAndStop(MovieClip(parent).Health);
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 6);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHealth.play();
};
die = true;
live = false;
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBlife();
die = false;
};
};
}
public function deleteBlife(){
MovieClip(parent).removeBlife(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBlife);
}
}
}//package
Section 42
//Bmines (Bmines)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bmines extends Sprite {
public var die:Boolean;
private var mm;
private var stepp:int;// = 0
public var born;
public var live;
private var nn:Number;
public var hit:Boolean;
public function Bmines(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
hit = true;
addEventListener(Event.ENTER_FRAME, moveBmines);
}
public function removeMoveBmines(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBmines);
}
public function deleteBmines(){
MovieClip(parent).removeBmines(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBmines);
}
public function moveBmines(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
if (MovieClip(parent).level == 14){
this.scaleX = 1.2;
this.scaleY = 1.2;
};
live = true;
born = false;
};
};
if (live){
if (hit){
if (((this.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) && (MovieClip(parent).liveHero))){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).liveHero = false;
MovieClip(parent).dieHero = true;
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 1);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
};
};
};
if (((hit) && ((MovieClip(parent).level < 14)))){
_local2 = (MovieClip(parent).enemies1.length - 1);
while (_local2 >= 0) {
if (((MovieClip(parent).enemies1[_local2].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies1[_local2].live))){
MovieClip(parent).enemies1[_local2].die = true;
MovieClip(parent).enemies1[_local2].live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
break;
};
_local2--;
};
};
if (((hit) && ((MovieClip(parent).level < 14)))){
_local3 = (MovieClip(parent).enemies2.length - 1);
while (_local3 >= 0) {
if (((MovieClip(parent).enemies2[_local3].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies2[_local3].live))){
MovieClip(parent).enemies2[_local3].die = true;
MovieClip(parent).enemies2[_local3].live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
break;
};
_local3--;
};
};
if (((hit) && ((MovieClip(parent).level < 14)))){
_local4 = (MovieClip(parent).enemies3.length - 1);
while (_local4 >= 0) {
if (((MovieClip(parent).enemies3[_local4].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies3[_local4].live))){
MovieClip(parent).enemies3[_local4].die = true;
MovieClip(parent).enemies3[_local4].live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
break;
};
_local4--;
};
};
if (((hit) && ((MovieClip(parent).level < 14)))){
_local5 = (MovieClip(parent).enemies4.length - 1);
while (_local5 >= 0) {
if (((MovieClip(parent).enemies4[_local5].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies4[_local5].live))){
MovieClip(parent).enemies4[_local5].die = true;
MovieClip(parent).enemies4[_local5].live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
break;
};
_local5--;
};
};
if (((hit) && ((MovieClip(parent).level < 14)))){
_local6 = (MovieClip(parent).enemies5.length - 1);
while (_local6 >= 0) {
if (((MovieClip(parent).enemies5[_local6].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies5[_local6].live))){
MovieClip(parent).enemies5[_local6].die = true;
MovieClip(parent).enemies5[_local6].live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundMines.play();
};
die = true;
live = false;
hit = false;
break;
};
_local6--;
};
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBmines();
die = false;
};
};
}
}
}//package
Section 43
//BombRadius (BombRadius)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class BombRadius extends MovieClip {
public function BombRadius(){
addEventListener(Event.ENTER_FRAME, moveBombRadius);
}
public function moveBombRadius(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
if (MovieClip(parent).win == false){
this.x = MovieClip(parent).heros[0].x;
this.y = MovieClip(parent).heros[0].y;
_local2 = (MovieClip(parent).enemies1.length - 1);
while (_local2 >= 0) {
if (((this.hitTestObject(MovieClip(parent).enemies1[_local2].spin2)) && (MovieClip(parent).enemies1[_local2].live))){
if (MovieClip(parent).enemies1[_local2].thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 20));
};
MovieClip(parent).addScore(MovieClip(parent).enemies1[_local2].globalPointx, (MovieClip(parent).enemies1[_local2].globalPointy - 20), 1);
MovieClip(parent).skor = (MovieClip(parent).skor + 100);
MovieClip(parent).tornadoDuit1 = (MovieClip(parent).tornadoDuit1 + 100);
MovieClip(parent).enemies1[_local2].die = true;
MovieClip(parent).enemies1[_local2].live = false;
};
_local2--;
};
_local3 = (MovieClip(parent).enemies2.length - 1);
while (_local3 >= 0) {
if (((((this.hitTestObject(MovieClip(parent).enemies2[_local3].spin1)) || (this.hitTestObject(MovieClip(parent).enemies2[_local3].spin2)))) && (MovieClip(parent).enemies2[_local3].live))){
if (MovieClip(parent).enemies2[_local3].thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 17));
};
MovieClip(parent).addScore(MovieClip(parent).enemies2[_local3].globalPointx, (MovieClip(parent).enemies2[_local3].globalPointy - 20), 2);
MovieClip(parent).skor = (MovieClip(parent).skor + 200);
MovieClip(parent).tornadoDuit2 = (MovieClip(parent).tornadoDuit2 + 200);
MovieClip(parent).enemies2[_local3].die = true;
MovieClip(parent).enemies2[_local3].live = false;
};
_local3--;
};
_local4 = (MovieClip(parent).enemies3.length - 1);
while (_local4 >= 0) {
if (((((this.hitTestObject(MovieClip(parent).enemies3[_local4].spin1)) || (this.hitTestObject(MovieClip(parent).enemies3[_local4].spin3)))) && (MovieClip(parent).enemies3[_local4].live))){
if (MovieClip(parent).enemies3[_local4].thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 15));
};
MovieClip(parent).addScore(MovieClip(parent).enemies3[_local4].globalPointx, (MovieClip(parent).enemies3[_local4].globalPointy - 20), 3);
MovieClip(parent).skor = (MovieClip(parent).skor + 300);
MovieClip(parent).tornadoDuit3 = (MovieClip(parent).tornadoDuit3 + 300);
MovieClip(parent).enemies3[_local4].die = true;
MovieClip(parent).enemies3[_local4].live = false;
};
_local4--;
};
_local5 = (MovieClip(parent).enemies4.length - 1);
while (_local5 >= 0) {
if (((((this.hitTestObject(MovieClip(parent).enemies4[_local5].spin2)) || (this.hitTestObject(MovieClip(parent).enemies4[_local5].spin4)))) && (MovieClip(parent).enemies4[_local5].live))){
if (MovieClip(parent).enemies4[_local5].thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 13));
};
MovieClip(parent).addScore(MovieClip(parent).enemies4[_local5].globalPointx, (MovieClip(parent).enemies4[_local5].globalPointy - 20), 4);
MovieClip(parent).skor = (MovieClip(parent).skor + 400);
MovieClip(parent).tornadoDuit4 = (MovieClip(parent).tornadoDuit4 + 400);
MovieClip(parent).enemies4[_local5].die = true;
MovieClip(parent).enemies4[_local5].live = false;
};
_local5--;
};
_local6 = (MovieClip(parent).enemies5.length - 1);
while (_local6 >= 0) {
if (((((this.hitTestObject(MovieClip(parent).enemies5[_local6].spin2)) || (this.hitTestObject(MovieClip(parent).enemies5[_local6].spin4)))) && (MovieClip(parent).enemies5[_local6].live))){
if (MovieClip(parent).enemies5[_local6].thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 10));
};
MovieClip(parent).addScore(MovieClip(parent).enemies5[_local6].globalPointx, (MovieClip(parent).enemies5[_local6].globalPointy - 20), 5);
MovieClip(parent).skor = (MovieClip(parent).skor + 500);
MovieClip(parent).tornadoDuit5 = (MovieClip(parent).tornadoDuit5 + 500);
MovieClip(parent).enemies5[_local6].die = true;
MovieClip(parent).enemies5[_local6].live = false;
};
_local6--;
};
};
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundBomb.play();
};
if (this.currentFrame == 60){
MovieClip(parent).removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBombRadius);
};
}
}
}//package
Section 44
//BonusInfo (BonusInfo)
package {
import flash.display.*;
public dynamic class BonusInfo extends MovieClip {
public var sub:MovieClip;
public function BonusInfo(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
parent.removeChild(this);
}
}
}//package
Section 45
//Bscore (Bscore)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bscore extends Sprite {
public var die:Boolean;
private var stepp:int;// = 0
private var nn:Number;
public var born;
public var live;
private var mm;
public function Bscore(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
addEventListener(Event.ENTER_FRAME, moveBscore);
}
public function moveBscore(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (((this.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) && (MovieClip(parent).liveHero))){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY - 0.05);
if (MovieClip(parent).energy.scaleY < 0){
MovieClip(parent).energy.scaleY = 0;
};
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 4);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundLostenergy.play();
};
die = true;
live = false;
};
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2500){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBscore();
die = false;
};
};
}
public function removeMoveBscore(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBscore);
}
public function deleteBscore(){
MovieClip(parent).removeBscore(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBscore);
}
}
}//package
Section 46
//Bshield (Bshield)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bshield extends Sprite {
public var die:Boolean;
private var stepp:int;// = 0
private var nn:Number;
public var born;
public var live;
private var mm;
public function Bshield(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
addEventListener(Event.ENTER_FRAME, moveBshield);
}
public function removeMoveBshield(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBshield);
}
public function deleteBshield(){
MovieClip(parent).removeBshield(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBshield);
}
public function moveBshield(_arg1:Event){
var _local2:int;
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (((MovieClip(parent).liveHero) && (MovieClip(parent).heros[0].hitTestObject(this)))){
MovieClip(parent).shieldStep = 0;
MovieClip(parent).shieldAllowed = true;
_local2 = 0;
while (_local2 < MovieClip(parent).heros.length) {
MovieClip(parent).heros[_local2].alpha = 0.4;
_local2++;
};
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 8);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundShield.play();
};
die = true;
live = false;
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBshield();
die = false;
};
};
}
}
}//package
Section 47
//Bspeedown (Bspeedown)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bspeedown extends Sprite {
public var die:Boolean;
private var nn:Number;
private var stepp:int;// = 0
public var born;
public var live;
public var hit:Boolean;
private var mm;
public function Bspeedown(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
hit = true;
addEventListener(Event.ENTER_FRAME, moveBspeedown);
}
public function moveBspeedown(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (hit){
if (((this.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) && (MovieClip(parent).liveHero))){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).speed = 100;
MovieClip(parent).speedDownStep = 0;
MovieClip(parent).speedUpAllowed = false;
MovieClip(parent).speedDownAllowed = true;
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 5);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundSpeeddown.play();
};
die = true;
live = false;
hit = false;
};
};
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2500){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBspeedown();
die = false;
};
};
}
public function deleteBspeedown(){
MovieClip(parent).removeBspeedown(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBspeedown);
}
public function removeMoveBspeedown(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBspeedown);
}
}
}//package
Section 48
//Bspeedup (Bspeedup)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class Bspeedup extends Sprite {
public var die:Boolean;
private var mm;
private var stepp:int;// = 0
public var born;
public var live;
private var nn:Number;
public var hit:Boolean;
public function Bspeedup(){
born = true;
live = false;
die = false;
this.scaleX = 0;
this.scaleY = 0;
var _local1:int = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
mm = 0.5;
} else {
mm = -0.5;
};
_local1 = Math.round(((Math.random() * 1) + 1));
if (_local1 == 1){
nn = 0.5;
} else {
nn = -0.5;
};
hit = true;
addEventListener(Event.ENTER_FRAME, moveBspeedup);
}
public function deleteBspeedup(){
MovieClip(parent).removeBspeedup(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveBspeedup);
}
public function moveBspeedup(_arg1:Event){
if (born){
this.scaleX = (this.scaleX + 0.05);
this.scaleY = (this.scaleY + 0.05);
if (this.scaleX >= 1){
this.scaleX = 1;
this.scaleY = 1;
live = true;
born = false;
};
};
if (live){
if (hit){
if (MovieClip(parent).heros[0].hitTestObject(this)){
MovieClip(parent).speed = 250;
MovieClip(parent).speedUpStep = 0;
MovieClip(parent).speedDownAllowed = false;
MovieClip(parent).speedUpAllowed = true;
MovieClip(parent).addBonusInfo(this.x, (this.y - 20), 2);
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundSpeedup.play();
};
die = true;
live = false;
hit = false;
};
};
if (MovieClip(parent).pausegame){
} else {
this.x = (this.x + mm);
this.y = (this.y + nn);
if ((((this.x < 40)) || ((this.x > 560)))){
mm = -(mm);
};
if ((((this.y < 30)) || ((this.y > 450)))){
nn = -(nn);
};
};
stepp++;
if (stepp > 2000){
die = true;
live = false;
};
};
if (die){
this.scaleX = (this.scaleX - 0.2);
this.scaleY = (this.scaleY - 0.2);
if (this.scaleX <= 0){
this.scaleX = 0;
this.scaleY = 0;
deleteBspeedup();
die = false;
};
};
}
public function removeMoveBspeedup(){
trace("klklklklklk");
removeEventListener(Event.ENTER_FRAME, moveBspeedup);
}
}
}//package
Section 49
//BtnMusic (BtnMusic)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
public class BtnMusic extends MovieClip {
private var pausePosition:Number;
public function BtnMusic(){
addFrameScript(0, frame1);
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clickMusic);
}
function frame1(){
stop();
}
private function clickMusic(_arg1:MouseEvent):void{
if (this.currentFrame == 2){
this.gotoAndStop(1);
if (MovieClip(root).currentLabel == "main"){
if (MovieClip(root).level == 1){
MovieClip(root).BGMchannel = MovieClip(root).soundGame1.play(0, 100);
};
if (MovieClip(root).level == 2){
MovieClip(root).BGMchannel = MovieClip(root).soundGame2.play(0, 100);
};
if (MovieClip(root).level == 3){
MovieClip(root).BGMchannel = MovieClip(root).soundGame3.play(0, 100);
};
if (MovieClip(root).level == 4){
MovieClip(root).BGMchannel = MovieClip(root).soundGame4.play(0, 100);
};
if (MovieClip(root).level == 5){
MovieClip(root).BGMchannel = MovieClip(root).soundGame1.play(0, 100);
};
if (MovieClip(root).level == 6){
MovieClip(root).BGMchannel = MovieClip(root).soundGame2.play(0, 100);
};
if (MovieClip(root).level == 7){
MovieClip(root).BGMchannel = MovieClip(root).soundGame3.play(0, 100);
};
if (MovieClip(root).level == 8){
MovieClip(root).BGMchannel = MovieClip(root).soundGame4.play(0, 100);
};
if (MovieClip(root).level == 9){
MovieClip(root).BGMchannel = MovieClip(root).soundGame1.play(0, 100);
};
if (MovieClip(root).level == 10){
MovieClip(root).BGMchannel = MovieClip(root).soundGame2.play(0, 100);
};
if (MovieClip(root).level == 11){
MovieClip(root).BGMchannel = MovieClip(root).soundGame3.play(0, 100);
};
if (MovieClip(root).level == 12){
MovieClip(root).BGMchannel = MovieClip(root).soundGame1.play(0, 100);
};
if (MovieClip(root).level == 14){
MovieClip(root).BGMchannel = MovieClip(root).soundGame3.play(0, 100);
};
} else {
if (MovieClip(root).currentLabel == "preplay"){
} else {
MovieClip(root).BGMchannel = MovieClip(root).soundMenu.play(0, 100);
};
};
MovieClip(root).musicActive = true;
} else {
this.gotoAndStop(2);
MovieClip(root).BGMchannel.stop();
MovieClip(root).musicActive = false;
};
}
}
}//package
Section 50
//BtnSfx (BtnSfx)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
public class BtnSfx extends MovieClip {
public function BtnSfx(){
addFrameScript(0, frame1);
this.buttonMode = true;
this.addEventListener(MouseEvent.CLICK, clickSfx);
}
function frame1(){
stop();
}
private function clickSfx(_arg1:MouseEvent):void{
if (this.currentFrame == 2){
MovieClip(root).sfxActive = true;
this.gotoAndStop(1);
} else {
MovieClip(root).sfxActive = false;
this.gotoAndStop(2);
};
}
}
}//package
Section 51
//DisplayHint (DisplayHint)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class DisplayHint extends MovieClip {
public var sub:MovieClip;
public var j:int;
public var k:int;
public function DisplayHint(){
addFrameScript(0, frame1, 34, frame35, 87, frame88);
}
function frame1(){
sub.gotoAndStop(MovieClip(parent).hintIndex);
}
function frame88(){
stop();
MovieClip(parent).hintIndex++;
if (MovieClip(parent).hintIndex > 6){
j = (MovieClip(parent).enemies1.length - 1);
while (j >= 0) {
MovieClip(parent).enemies1[j].lastTime = getTimer();
j--;
};
k = (MovieClip(parent).enemies2.length - 1);
while (k >= 0) {
MovieClip(parent).enemies2[k].lastTime = getTimer();
k--;
};
MovieClip(parent).lastTime = getTimer();
MovieClip(parent).firstInfoPause = false;
MovieClip(parent).pausegame = false;
parent.removeChild(this);
} else {
gotoAndPlay(1);
};
}
function frame35(){
stop();
}
}
}//package
Section 52
//DisplayPause (DisplayPause)
package {
import flash.display.*;
public dynamic class DisplayPause extends MovieClip {
public var noBtn:MovieClip;
public var yesBtn:MovieClip;
}
}//package
Section 53
//Effect1 (Effect1)
package {
import flash.display.*;
public dynamic class Effect1 extends MovieClip {
public function Effect1(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
parent.removeChild(this);
}
}
}//package
Section 54
//Enemy1 (Enemy1)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy1 extends MovieClip {
public var lastTime;
private var valueY:Array;
public var born;
private var valueX;
private var dx;
public var thisLevel:int;
private var rotasi;
private var stepbelok;
public var idle:Boolean;
private var dy;
private var xx;
private var rotstep;
private var yy;
public var globalPointx;
public var live;
public var die;
public var spin1:MovieClip;
public var spin2:MovieClip;
public var globalPointy:Number;
private var distance:Number;
public function Enemy1(){
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 1;
spin1.x = (Math.floor((Math.random() * 510)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 5) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy1);
lastTime = getTimer();
spin1.scaleX = 0;
spin1.scaleY = 0;
spin2.scaleX = 0;
spin2.scaleY = 0;
born = true;
live = false;
die = false;
}
public function moveEnemy1(_arg1:Event){
var _local2:int;
var _local3:Point;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (born){
spin1.scaleX = (spin1.scaleX + (0.8 * 0.025));
spin1.scaleY = (spin1.scaleY + (0.8 * 0.025));
spin2.scaleX = (spin2.scaleX + (1.5 * 0.025));
spin2.scaleY = (spin2.scaleY + (1.5 * 0.025));
if (spin1.scaleX >= 0.8){
live = true;
born = false;
};
};
if (live){
_local3 = new Point(this.spin1.x, this.spin1.y);
globalPointx = this.localToGlobal(_local3).x;
globalPointy = this.localToGlobal(_local3).y;
xx = Math.abs((globalPointx - MovieClip(parent).heros[0].x));
yy = Math.abs((globalPointy - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if ((((distance < MovieClip(parent).sensorRadius)) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - globalPointy), (MovieClip(parent).heros[0].x - globalPointx))) / _local8);
};
dx = (MovieClip(parent).speedEnemy * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (MovieClip(parent).speedEnemy * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
_local4 = (MovieClip(parent).fields.length - 1);
while (_local4 >= 0) {
if (MovieClip(parent).fields[_local4].hitTestPoint(globalPointx, globalPointy, true)){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).centerPointy[_local4] - globalPointy), (MovieClip(parent).centerPointx[_local4] - globalPointx))) / _local8);
break;
};
_local4--;
};
_local5 = -10;
_local6 = -10;
if ((((((((globalPointx < _local5)) || ((globalPointy < _local6)))) || ((globalPointx > 640)))) || ((globalPointy > 490)))){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((240 - globalPointy), (320 - globalPointx))) / _local8);
};
_local7 = 4;
while (_local7 > 0) {
valueX[_local7] = valueX[(_local7 - 1)];
valueY[_local7] = valueY[(_local7 - 1)];
_local7--;
};
valueX[0] = spin1.x;
valueY[0] = spin1.y;
spin2.x = valueX[4];
spin2.y = valueY[4];
if (((MovieClip(parent).liveHero) && (((spin1.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) || (spin2.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))))){
MovieClip(parent).addScore(globalPointx, (globalPointy - 20), 1);
MovieClip(parent).skor = (MovieClip(parent).skor + 100);
MovieClip(parent).tornadoDuit1 = (MovieClip(parent).tornadoDuit1 + 100);
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 20));
die = true;
live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHit.play();
};
};
};
if (die){
spin1.scaleX = (spin1.scaleX - ((3 * 0.8) * 0.025));
spin1.scaleY = (spin1.scaleY - ((3 * 0.8) * 0.025));
spin2.scaleX = (spin2.scaleX - ((3 * 1.5) * 0.025));
spin2.scaleY = (spin2.scaleY - ((3 * 1.5) * 0.025));
if (spin1.scaleX <= 0){
deleteEnemy1();
die = false;
};
};
};
}
public function deleteEnemy1(){
MovieClip(parent).enemyExist1--;
MovieClip(parent).removeEnemy1(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy1);
}
public function removeMoveEnemy1(){
removeEventListener(Event.ENTER_FRAME, moveEnemy1);
}
}
}//package
Section 55
//Enemy2 (Enemy2)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy2 extends MovieClip {
private var rotasi;
public var lastTime;
private var valueY:Array;
public var born;
public var thisLevel:int;
private var valueX;
private var dx;
private var stepbelok;
public var idle;
private var dy;
private var rotstep;
public var globalPointy:Number;
private var yy;
public var globalPointx;
public var live;
private var xx;
public var spin1:tornado2;
public var spin2:tornado2;
public var spin3:tornado2;
public var die;
private var distance:Number;
public var fieldhit:Boolean;
public function Enemy2(){
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 2;
spin1.x = (Math.floor((Math.random() * 510)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 9) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy2);
lastTime = getTimer();
spin1.scaleX = 0;
spin1.scaleY = 0;
spin2.scaleX = 0;
spin2.scaleY = 0;
spin3.scaleX = 0;
spin3.scaleY = 0;
born = true;
live = false;
die = false;
}
public function deleteEnemy2(){
MovieClip(parent).enemyExist2--;
MovieClip(parent).removeEnemy2(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy2);
}
public function moveEnemy2(_arg1:Event){
var _local2:int;
var _local3:Point;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (born){
spin1.scaleX = (spin1.scaleX + (0.8 * 0.025));
spin1.scaleY = (spin1.scaleY + (0.8 * 0.025));
spin2.scaleX = (spin2.scaleX + (1.5 * 0.025));
spin2.scaleY = (spin2.scaleY + (1.5 * 0.025));
spin3.scaleX = (spin3.scaleX + (2.3 * 0.025));
spin3.scaleY = (spin3.scaleY + (2.3 * 0.025));
if (spin1.scaleX >= 0.8){
live = true;
born = false;
};
};
if (live){
_local3 = new Point(this.spin1.x, this.spin1.y);
globalPointx = this.localToGlobal(_local3).x;
globalPointy = this.localToGlobal(_local3).y;
xx = Math.abs((globalPointx - MovieClip(parent).heros[0].x));
yy = Math.abs((globalPointy - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if (((((((fieldhit) && (MovieClip(parent).liveHero))) && ((distance < MovieClip(parent).sensorRadius)))) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
if (Math.round((Math.random() * 5)) == 1){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - globalPointy), (MovieClip(parent).heros[0].x - globalPointx))) / _local8);
} else {
rotasi = (rotasi + ((rotstep * _local2) / 1000));
};
};
dx = (MovieClip(parent).speedEnemy * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (MovieClip(parent).speedEnemy * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
fieldhit = true;
_local4 = (MovieClip(parent).fields.length - 1);
while (_local4 >= 0) {
if (MovieClip(parent).fields[_local4].hitTestPoint(globalPointx, globalPointy, true)){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).centerPointy[_local4] - globalPointy), (MovieClip(parent).centerPointx[_local4] - globalPointx))) / _local8);
fieldhit = false;
break;
};
_local4--;
};
_local5 = -10;
_local6 = -10;
if ((((((((globalPointx < _local5)) || ((globalPointy < _local6)))) || ((globalPointx > 640)))) || ((globalPointy > 490)))){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((240 - globalPointy), (320 - globalPointx))) / _local8);
};
_local7 = 8;
while (_local7 > 0) {
valueX[_local7] = valueX[(_local7 - 1)];
valueY[_local7] = valueY[(_local7 - 1)];
_local7--;
};
valueX[0] = spin1.x;
valueY[0] = spin1.y;
spin2.x = valueX[4];
spin2.y = valueY[4];
spin3.x = valueX[8];
spin3.y = valueY[8];
if (((MovieClip(parent).liveHero) && (((((spin1.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) || (spin2.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin3.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))))){
if (thisLevel > MovieClip(parent).heroLevel){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).liveHero = false;
MovieClip(parent).dieHero = true;
};
die = true;
live = false;
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).addScore(globalPointx, (globalPointy - 20), 2);
MovieClip(parent).skor = (MovieClip(parent).skor + 200);
MovieClip(parent).tornadoDuit2 = (MovieClip(parent).tornadoDuit2 + 200);
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 17));
die = true;
live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHit.play();
};
};
};
};
};
if (die){
spin1.scaleX = (spin1.scaleX - ((3 * 0.8) * 0.025));
spin1.scaleY = (spin1.scaleY - ((3 * 0.8) * 0.025));
spin2.scaleX = (spin2.scaleX - ((3 * 1.5) * 0.025));
spin2.scaleY = (spin2.scaleY - ((3 * 1.5) * 0.025));
spin3.scaleX = (spin3.scaleX - ((3 * 2.3) * 0.025));
spin3.scaleY = (spin3.scaleY - ((3 * 2.3) * 0.025));
if (spin1.scaleX <= 0){
deleteEnemy2();
die = false;
};
};
};
}
public function removeMoveEnemy2(){
removeEventListener(Event.ENTER_FRAME, moveEnemy2);
}
}
}//package
Section 56
//Enemy3 (Enemy3)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy3 extends MovieClip {
private var rotasi;
public var lastTime;
private var xx;
private var valueY:Array;
public var born;
public var thisLevel:int;
private var valueX;
private var dx;
private var stepbelok;
public var idle;
private var dy;
private var rotstep;
public var globalPointy:Number;
private var yy;
public var globalPointx;
public var live;
public var spin1:MovieClip;
public var spin2:MovieClip;
public var spin3:MovieClip;
public var die;
private var distance:Number;
public var spin4:MovieClip;
public var fieldhit:Boolean;
public function Enemy3(){
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 3;
spin1.x = (Math.floor((Math.random() * 510)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
spin4.x = spin1.x;
spin4.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 13) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy3);
lastTime = getTimer();
spin1.scaleX = 0;
spin1.scaleY = 0;
spin2.scaleX = 0;
spin2.scaleY = 0;
spin3.scaleX = 0;
spin3.scaleY = 0;
spin4.scaleX = 0;
spin4.scaleY = 0;
born = true;
live = false;
die = false;
}
public function removeMoveEnemy3(){
removeEventListener(Event.ENTER_FRAME, moveEnemy3);
}
public function moveEnemy3(_arg1:Event){
var _local2:int;
var _local3:Point;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (born){
spin1.scaleX = (spin1.scaleX + (0.8 * 0.025));
spin1.scaleY = (spin1.scaleY + (0.8 * 0.025));
spin2.scaleX = (spin2.scaleX + (1.5 * 0.025));
spin2.scaleY = (spin2.scaleY + (1.5 * 0.025));
spin3.scaleX = (spin3.scaleX + (2.1 * 0.025));
spin3.scaleY = (spin3.scaleY + (2.1 * 0.025));
spin4.scaleX = (spin4.scaleX + (3.1 * 0.025));
spin4.scaleY = (spin4.scaleY + (3.1 * 0.025));
if (spin1.scaleX >= 0.8){
live = true;
born = false;
};
};
if (live){
_local3 = new Point(this.spin1.x, this.spin1.y);
globalPointx = this.localToGlobal(_local3).x;
globalPointy = this.localToGlobal(_local3).y;
xx = Math.abs((globalPointx - MovieClip(parent).heros[0].x));
yy = Math.abs((globalPointy - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if (((((((fieldhit) && (MovieClip(parent).liveHero))) && ((distance < MovieClip(parent).sensorRadius)))) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
if (Math.round((Math.random() * 5)) == 1){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - globalPointy), (MovieClip(parent).heros[0].x - globalPointx))) / _local8);
} else {
rotasi = (rotasi + ((rotstep * _local2) / 1000));
};
};
dx = (MovieClip(parent).speedEnemy * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (MovieClip(parent).speedEnemy * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
fieldhit = true;
_local4 = (MovieClip(parent).fields.length - 1);
while (_local4 >= 0) {
if (MovieClip(parent).fields[_local4].hitTestPoint(globalPointx, globalPointy, true)){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).centerPointy[_local4] - globalPointy), (MovieClip(parent).centerPointx[_local4] - globalPointx))) / _local8);
fieldhit = false;
break;
};
_local4--;
};
_local5 = -10;
_local6 = -10;
if ((((((((globalPointx < _local5)) || ((globalPointy < _local6)))) || ((globalPointx > 640)))) || ((globalPointy > 490)))){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((240 - globalPointy), (320 - globalPointx))) / _local8);
};
_local7 = 12;
while (_local7 > 0) {
valueX[_local7] = valueX[(_local7 - 1)];
valueY[_local7] = valueY[(_local7 - 1)];
_local7--;
};
valueX[1] = spin1.x;
valueY[1] = spin1.y;
spin2.x = valueX[4];
spin2.y = valueY[4];
spin3.x = valueX[8];
spin3.y = valueY[8];
spin4.x = valueX[12];
spin4.y = valueY[12];
if (((MovieClip(parent).liveHero) && (((((((spin1.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) || (spin2.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin3.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin4.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))))){
if (thisLevel > MovieClip(parent).heroLevel){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).liveHero = false;
MovieClip(parent).dieHero = true;
};
die = true;
live = false;
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
if ((((((MovieClip(parent).level == 7)) || ((MovieClip(parent).level == 11)))) || ((MovieClip(parent).level == 14)))){
} else {
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 15));
};
MovieClip(parent).addScore(globalPointx, (globalPointy - 20), 3);
MovieClip(parent).skor = (MovieClip(parent).skor + 300);
MovieClip(parent).tornadoDuit3 = (MovieClip(parent).tornadoDuit3 + 300);
die = true;
live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHit.play();
};
};
};
};
};
if (die){
spin1.scaleX = (spin1.scaleX - ((3 * 0.8) * 0.025));
spin1.scaleY = (spin1.scaleY - ((3 * 0.8) * 0.025));
spin2.scaleX = (spin2.scaleX - ((3 * 1.5) * 0.025));
spin2.scaleY = (spin2.scaleY - ((3 * 1.5) * 0.025));
spin3.scaleX = (spin3.scaleX - ((3 * 2.1) * 0.025));
spin3.scaleY = (spin3.scaleY - ((3 * 2.1) * 0.025));
spin4.scaleX = (spin4.scaleX - ((3 * 3.1) * 0.025));
spin4.scaleY = (spin4.scaleY - ((3 * 3.1) * 0.025));
if (spin1.scaleX <= 0){
deleteEnemy3();
die = false;
};
};
};
}
public function deleteEnemy3(){
MovieClip(parent).enemyExist3--;
MovieClip(parent).removeEnemy3(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy3);
}
}
}//package
Section 57
//Enemy4 (Enemy4)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy4 extends MovieClip {
public var die;
public var lastTime;
private var xx;
private var valueY:Array;
public var thisLevel:int;
private var valueX;
private var dx;
private var dy;
private var yy;
private var rotstep;
public var spin1:MovieClip;
public var spin2:MovieClip;
public var spin3:MovieClip;
public var spin5:MovieClip;
private var rotasi;
public var spin4:MovieClip;
public var born;
public var idle;
private var stepbelok;
public var fieldhit:Boolean;
public var globalPointx;
public var globalPointy:Number;
public var live;
private var distance:Number;
public function Enemy4(){
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 4;
spin1.x = (Math.floor((Math.random() * 510)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
spin4.x = spin1.x;
spin4.y = spin1.y;
spin5.x = spin1.x;
spin5.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 17) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy4);
lastTime = getTimer();
spin1.scaleX = 0;
spin1.scaleY = 0;
spin2.scaleX = 0;
spin2.scaleY = 0;
spin3.scaleX = 0;
spin3.scaleY = 0;
spin4.scaleX = 0;
spin4.scaleY = 0;
spin5.scaleX = 0;
spin5.scaleY = 0;
born = true;
live = false;
die = false;
}
public function removeMoveEnemy4(){
removeEventListener(Event.ENTER_FRAME, moveEnemy4);
}
public function deleteEnemy4(){
MovieClip(parent).enemyExist4--;
MovieClip(parent).removeEnemy4(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy4);
}
public function moveEnemy4(_arg1:Event){
var _local2:int;
var _local3:Point;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (born){
spin1.scaleX = (spin1.scaleX + (0.8 * 0.025));
spin1.scaleY = (spin1.scaleY + (0.8 * 0.025));
spin2.scaleX = (spin2.scaleX + (1.5 * 0.025));
spin2.scaleY = (spin2.scaleY + (1.5 * 0.025));
spin3.scaleX = (spin3.scaleX + (2.2 * 0.025));
spin3.scaleY = (spin3.scaleY + (2.2 * 0.025));
spin4.scaleX = (spin4.scaleX + (3 * 0.025));
spin4.scaleY = (spin4.scaleY + (3 * 0.025));
spin5.scaleX = (spin5.scaleX + (3.8 * 0.025));
spin5.scaleY = (spin5.scaleY + (3.8 * 0.025));
if (spin1.scaleX >= 0.8){
live = true;
born = false;
};
};
if (live){
_local3 = new Point(this.spin1.x, this.spin1.y);
globalPointx = this.localToGlobal(_local3).x;
globalPointy = this.localToGlobal(_local3).y;
xx = Math.abs((globalPointx - MovieClip(parent).heros[0].x));
yy = Math.abs((globalPointy - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if (((((((fieldhit) && (MovieClip(parent).liveHero))) && ((distance < MovieClip(parent).sensorRadius)))) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
if (Math.round((Math.random() * 5)) == 1){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - globalPointy), (MovieClip(parent).heros[0].x - globalPointx))) / _local8);
} else {
rotasi = (rotasi + ((rotstep * _local2) / 1000));
};
};
dx = (MovieClip(parent).speedEnemy * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (MovieClip(parent).speedEnemy * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
fieldhit = true;
_local4 = (MovieClip(parent).fields.length - 1);
while (_local4 >= 0) {
if (MovieClip(parent).fields[_local4].hitTestPoint(globalPointx, globalPointy, true)){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).centerPointy[_local4] - globalPointy), (MovieClip(parent).centerPointx[_local4] - globalPointx))) / _local8);
fieldhit = false;
break;
};
_local4--;
};
_local5 = -10;
_local6 = -10;
if ((((((((globalPointx < _local5)) || ((globalPointy < _local6)))) || ((globalPointx > 640)))) || ((globalPointy > 490)))){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((240 - globalPointy), (320 - globalPointx))) / _local8);
};
_local7 = 16;
while (_local7 > 0) {
valueX[_local7] = valueX[(_local7 - 1)];
valueY[_local7] = valueY[(_local7 - 1)];
_local7--;
};
valueX[1] = spin1.x;
valueY[1] = spin1.y;
spin2.x = valueX[4];
spin2.y = valueY[4];
spin3.x = valueX[8];
spin3.y = valueY[8];
spin4.x = valueX[12];
spin4.y = valueY[12];
spin5.x = valueX[16];
spin5.y = valueY[16];
if (((MovieClip(parent).liveHero) && (((((((((spin1.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) || (spin2.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin3.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin4.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin5.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))))){
if (thisLevel > MovieClip(parent).heroLevel){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).liveHero = false;
MovieClip(parent).dieHero = true;
};
die = true;
live = false;
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
if ((((((MovieClip(parent).level == 7)) || ((MovieClip(parent).level == 11)))) || ((MovieClip(parent).level == 14)))){
} else {
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 13));
};
MovieClip(parent).addScore(globalPointx, (globalPointy - 20), 4);
MovieClip(parent).skor = (MovieClip(parent).skor + 400);
MovieClip(parent).tornadoDuit4 = (MovieClip(parent).tornadoDuit4 + 400);
die = true;
live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHit.play();
};
};
};
};
};
if (die){
spin1.scaleX = (spin1.scaleX - ((3 * 0.8) * 0.025));
spin1.scaleY = (spin1.scaleY - ((3 * 0.8) * 0.025));
spin2.scaleX = (spin2.scaleX - ((3 * 1.5) * 0.025));
spin2.scaleY = (spin2.scaleY - ((3 * 1.5) * 0.025));
spin3.scaleX = (spin3.scaleX - ((3 * 2.2) * 0.025));
spin3.scaleY = (spin3.scaleY - ((3 * 2.2) * 0.025));
spin4.scaleX = (spin4.scaleX - ((3 * 3) * 0.025));
spin4.scaleY = (spin4.scaleY - ((3 * 3) * 0.025));
spin5.scaleX = (spin5.scaleX - ((3 * 3.8) * 0.025));
spin5.scaleY = (spin5.scaleY - ((3 * 3.8) * 0.025));
if (spin1.scaleX <= 0){
deleteEnemy4();
die = false;
};
};
};
}
}
}//package
Section 58
//Enemy5 (Enemy5)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy5 extends MovieClip {
public var die;
public var lastTime;
private var xx;
private var valueY:Array;
public var thisLevel:int;
private var valueX;
private var dx;
private var dy;
private var yy;
private var rotstep;
public var spin1:MovieClip;
public var spin2:MovieClip;
public var spin3:MovieClip;
public var spin5:MovieClip;
private var rotasi;
public var spin4:MovieClip;
public var born;
public var idle;
private var stepbelok;
public var fieldhit:Boolean;
public var globalPointx;
public var globalPointy:Number;
public var live;
private var distance:Number;
public function Enemy5(){
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 5;
spin1.x = (Math.floor((Math.random() * 510)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
spin4.x = spin1.x;
spin4.y = spin1.y;
spin5.x = spin1.x;
spin5.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 21) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy5);
lastTime = getTimer();
spin1.scaleX = 0;
spin1.scaleY = 0;
spin2.scaleX = 0;
spin2.scaleY = 0;
spin3.scaleX = 0;
spin3.scaleY = 0;
spin4.scaleX = 0;
spin4.scaleY = 0;
spin5.scaleX = 0;
spin5.scaleY = 0;
born = true;
live = false;
die = false;
}
public function removeMoveEnemy5(){
removeEventListener(Event.ENTER_FRAME, moveEnemy5);
}
public function deleteEnemy5(){
MovieClip(parent).enemyExist5--;
MovieClip(parent).removeEnemy5(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy5);
}
public function moveEnemy5(_arg1:Event){
var _local2:int;
var _local3:Point;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:Number;
if (MovieClip(parent).pausegame){
} else {
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (born){
spin1.scaleX = (spin1.scaleX + (0.8 * 0.025));
spin1.scaleY = (spin1.scaleY + (0.8 * 0.025));
spin2.scaleX = (spin2.scaleX + (1.5 * 0.025));
spin2.scaleY = (spin2.scaleY + (1.5 * 0.025));
spin3.scaleX = (spin3.scaleX + (2.7 * 0.025));
spin3.scaleY = (spin3.scaleY + (2.7 * 0.025));
spin4.scaleX = (spin4.scaleX + (3.8 * 0.025));
spin4.scaleY = (spin4.scaleY + (3.8 * 0.025));
spin5.scaleX = (spin5.scaleX + (4.7 * 0.025));
spin5.scaleY = (spin5.scaleY + (4.7 * 0.025));
if (spin1.scaleX >= 0.8){
live = true;
born = false;
};
};
if (live){
_local3 = new Point(this.spin1.x, this.spin1.y);
globalPointx = this.localToGlobal(_local3).x;
globalPointy = this.localToGlobal(_local3).y;
xx = Math.abs((globalPointx - MovieClip(parent).heros[0].x));
yy = Math.abs((globalPointy - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if (((((((fieldhit) && (MovieClip(parent).liveHero))) && ((distance < MovieClip(parent).sensorRadius)))) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
if (Math.round((Math.random() * 5)) == 1){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - globalPointy), (MovieClip(parent).heros[0].x - globalPointx))) / _local8);
} else {
rotasi = (rotasi + ((rotstep * _local2) / 1000));
};
};
dx = (MovieClip(parent).speedEnemy * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (MovieClip(parent).speedEnemy * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
fieldhit = true;
_local4 = (MovieClip(parent).fields.length - 1);
while (_local4 >= 0) {
if (MovieClip(parent).fields[_local4].hitTestPoint(globalPointx, globalPointy, true)){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).centerPointy[_local4] - globalPointy), (MovieClip(parent).centerPointx[_local4] - globalPointx))) / _local8);
fieldhit = false;
break;
};
_local4--;
};
_local5 = -10;
_local6 = -10;
if ((((((((globalPointx < _local5)) || ((globalPointy < _local6)))) || ((globalPointx > 640)))) || ((globalPointy > 490)))){
_local8 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((240 - globalPointy), (320 - globalPointx))) / _local8);
};
_local7 = 20;
while (_local7 > 0) {
valueX[_local7] = valueX[(_local7 - 1)];
valueY[_local7] = valueY[(_local7 - 1)];
_local7--;
};
valueX[1] = spin1.x;
valueY[1] = spin1.y;
spin2.x = valueX[5];
spin2.y = valueY[5];
spin3.x = valueX[10];
spin3.y = valueY[10];
spin4.x = valueX[15];
spin4.y = valueY[15];
spin5.x = valueX[20];
spin5.y = valueY[20];
if (((MovieClip(parent).liveHero) && (((((((((spin1.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) || (spin2.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin3.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin4.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))) || (spin5.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)))))){
if (thisLevel > MovieClip(parent).heroLevel){
if (MovieClip(parent).shieldAllowed == false){
MovieClip(parent).liveHero = false;
MovieClip(parent).dieHero = true;
};
die = true;
live = false;
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
if ((((((MovieClip(parent).level == 7)) || ((MovieClip(parent).level == 11)))) || ((MovieClip(parent).level == 14)))){
} else {
MovieClip(parent).energy.scaleY = (MovieClip(parent).energy.scaleY + ((1 / MovieClip(parent).energyScale.length) / 10));
};
MovieClip(parent).addScore(globalPointx, (globalPointy - 20), 5);
MovieClip(parent).skor = (MovieClip(parent).skor + 500);
MovieClip(parent).tornadoDuit5 = (MovieClip(parent).tornadoDuit5 + 500);
die = true;
live = false;
if (MovieClip(parent).sfxActive){
MovieClip(parent).SFXchannel = MovieClip(parent).soundHit.play();
};
};
};
};
};
if (die){
spin1.scaleX = (spin1.scaleX - ((3 * 0.8) * 0.025));
spin1.scaleY = (spin1.scaleY - ((3 * 0.8) * 0.025));
spin2.scaleX = (spin2.scaleX - ((3 * 1.5) * 0.025));
spin2.scaleY = (spin2.scaleY - ((3 * 1.5) * 0.025));
spin3.scaleX = (spin3.scaleX - ((3 * 2.7) * 0.025));
spin3.scaleY = (spin3.scaleY - ((3 * 2.7) * 0.025));
spin4.scaleX = (spin4.scaleX - ((3 * 3.8) * 0.025));
spin4.scaleY = (spin4.scaleY - ((3 * 3.8) * 0.025));
spin5.scaleX = (spin5.scaleX - ((3 * 4.7) * 0.025));
spin5.scaleY = (spin5.scaleY - ((3 * 4.7) * 0.025));
if (spin1.scaleX <= 0){
deleteEnemy5();
die = false;
};
};
};
}
}
}//package
Section 59
//Enemy6 (Enemy6)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy6 extends MovieClip {
private var xx;
private var lastTime;
private var speed;
private var valueY:Array;
private var thisLevel:int;
private var rotasi;
private var dx;
private var valueX;
private var stepbelok;
private var idle:Boolean;
private var dy;
private var rotstep;
private var yy;
public var spin1:MovieClip;
public var spin2:MovieClip;
public var spin3:MovieClip;
private var distance:Number;
public var spin4:MovieClip;
public function Enemy6(){
speed = 80;
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 6;
spin1.x = (Math.floor((Math.random() * 560)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
spin4.x = spin1.x;
spin4.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 10) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy6);
lastTime = getTimer();
}
public function removeMoveEnemy6(){
removeEventListener(Event.ENTER_FRAME, moveEnemy6);
}
public function deleteEnemy6(){
MovieClip(parent).enemyExist6--;
MovieClip(parent).removeEnemy6(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy6);
}
public function moveEnemy6(_arg1:Event){
var _local9:Number;
var _local2:int = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
var _local3:Point = new Point(this.spin1.x, this.spin1.y);
var _local4:Number = this.localToGlobal(_local3).x;
var _local5:Number = this.localToGlobal(_local3).y;
xx = Math.abs((_local4 - MovieClip(parent).heros[0].x));
yy = Math.abs((_local5 - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if ((((distance < MovieClip(parent).sensorRadius)) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
_local9 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - _local5), (MovieClip(parent).heros[0].x - _local4))) / _local9);
};
dx = (speed * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
var _local6:Number = -280;
var _local7:Number = -200;
if ((((((((spin1.x < _local6)) || ((spin1.x > 280)))) || ((spin1.y < _local7)))) || ((spin1.y > 200)))){
_local9 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - _local5), (MovieClip(parent).heros[0].x - _local4))) / _local9);
};
var _local8 = 9;
while (_local8 > 0) {
valueX[_local8] = valueX[(_local8 - 1)];
valueY[_local8] = valueY[(_local8 - 1)];
_local8--;
};
valueX[0] = spin1.x;
valueY[0] = spin1.y;
spin2.x = valueX[3];
spin2.y = valueY[3];
spin3.x = valueX[6];
spin3.y = valueY[6];
spin4.x = valueX[9];
spin4.y = valueY[9];
if (((spin4.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)) || (spin2.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)))){
if (thisLevel > MovieClip(parent).heroLevel){
trace("loose Health");
deleteEnemy6();
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleX = (MovieClip(parent).energy.scaleX + 0.05);
deleteEnemy6();
};
};
};
}
}
}//package
Section 60
//Enemy7 (Enemy7)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class Enemy7 extends MovieClip {
private var rotasi;
private var lastTime;
private var speed;
private var valueY:Array;
private var dx;
private var thisLevel:int;
private var valueX;
private var xx;
private var stepbelok;
private var idle:Boolean;
private var dy;
private var rotstep;
private var yy;
public var spin1:tornado2;
public var spin2:tornado2;
public var spin3:tornado2;
public var spin4:tornado2;
public var spin5:tornado2;
private var distance:Number;
public function Enemy7(){
speed = 80;
rotasi = (Math.floor((Math.random() * 360)) + 0);
rotstep = 60;
stepbelok = 0;
idle = true;
thisLevel = 7;
spin1.x = (Math.floor((Math.random() * 560)) + -280);
spin1.y = (Math.floor((Math.random() * 400)) + -200);
spin2.x = spin1.x;
spin2.y = spin1.y;
spin3.x = spin1.x;
spin3.y = spin1.y;
spin4.x = spin1.x;
spin4.y = spin1.y;
spin5.x = spin1.x;
spin5.y = spin1.y;
valueX = new Array();
valueY = new Array();
var _local1:int;
while (_local1 < 13) {
valueX[_local1] = spin1.x;
valueY[_local1] = spin1.y;
_local1++;
};
addEventListener(Event.ENTER_FRAME, moveEnemy7);
lastTime = getTimer();
}
public function deleteEnemy7(){
MovieClip(parent).enemyExist7--;
MovieClip(parent).removeEnemy7(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveEnemy7);
}
public function removeMoveEnemy7(){
removeEventListener(Event.ENTER_FRAME, moveEnemy7);
}
public function moveEnemy7(_arg1:Event){
var _local9:Number;
var _local2:int = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
var _local3:Point = new Point(this.spin1.x, this.spin1.y);
var _local4:Number = this.localToGlobal(_local3).x;
var _local5:Number = this.localToGlobal(_local3).y;
xx = Math.abs((_local4 - MovieClip(parent).heros[0].x));
yy = Math.abs((_local5 - MovieClip(parent).heros[0].y));
distance = Math.sqrt(((xx * xx) + (yy * yy)));
if ((((distance < MovieClip(parent).sensorRadius)) && ((thisLevel > MovieClip(parent).heroLevel)))){
idle = false;
} else {
idle = true;
};
if (idle){
stepbelok = (stepbelok + ((30 * _local2) / 1000));
if (stepbelok > 100){
rotstep = -(rotstep);
stepbelok = 0;
};
rotasi = (rotasi + ((rotstep * _local2) / 1000));
} else {
_local9 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - _local5), (MovieClip(parent).heros[0].x - _local4))) / _local9);
};
dx = (speed * Math.cos((((2 * Math.PI) * rotasi) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rotasi) / 360)));
spin1.x = (spin1.x + ((dx * _local2) / 1000));
spin1.y = (spin1.y + ((dy * _local2) / 1000));
var _local6:Number = -280;
var _local7:Number = -200;
if ((((((((spin1.x < _local6)) || ((spin1.x > 280)))) || ((spin1.y < _local7)))) || ((spin1.y > 200)))){
_local9 = (2 * Math.PI);
rotasi = ((360 * Math.atan2((MovieClip(parent).heros[0].y - _local5), (MovieClip(parent).heros[0].x - _local4))) / _local9);
};
var _local8 = 12;
while (_local8 > 0) {
valueX[_local8] = valueX[(_local8 - 1)];
valueY[_local8] = valueY[(_local8 - 1)];
_local8--;
};
valueX[0] = spin1.x;
valueY[0] = spin1.y;
spin2.x = valueX[3];
spin2.y = valueY[3];
spin3.x = valueX[6];
spin3.y = valueY[6];
spin4.x = valueX[9];
spin4.y = valueY[9];
spin5.x = valueX[12];
spin5.y = valueY[12];
if (((spin4.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)) || (spin2.hitTestPoint(MovieClip(parent).hero.x, MovieClip(parent).hero.y, true)))){
if (thisLevel > MovieClip(parent).heroLevel){
trace("loose Health");
deleteEnemy7();
} else {
if (thisLevel <= MovieClip(parent).heroLevel){
MovieClip(parent).energy.scaleX = (MovieClip(parent).energy.scaleX + 0.05);
deleteEnemy7();
};
};
};
}
}
}//package
Section 61
//Energy (Energy)
package {
import flash.display.*;
public dynamic class Energy extends MovieClip {
}
}//package
Section 62
//EnergyMask (EnergyMask)
package {
import flash.display.*;
public dynamic class EnergyMask extends MovieClip {
}
}//package
Section 63
//ExplodeCow (ExplodeCow)
package {
import flash.display.*;
public dynamic class ExplodeCow extends MovieClip {
public function ExplodeCow(){
addFrameScript(58, frame59);
}
function frame59(){
stop();
parent.removeChild(this);
}
}
}//package
Section 64
//ExplodeHouse (ExplodeHouse)
package {
import flash.display.*;
public dynamic class ExplodeHouse extends MovieClip {
public function ExplodeHouse(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
parent.removeChild(this);
}
}
}//package
Section 65
//ExplodeSheep (ExplodeSheep)
package {
import flash.display.*;
public dynamic class ExplodeSheep extends MovieClip {
public function ExplodeSheep(){
addFrameScript(63, frame64);
}
function frame64(){
stop();
parent.removeChild(this);
}
}
}//package
Section 66
//ExplodeTree (ExplodeTree)
package {
import flash.display.*;
public dynamic class ExplodeTree extends MovieClip {
public function ExplodeTree(){
addFrameScript(24, frame25);
}
function frame25(){
stop();
parent.removeChild(this);
}
}
}//package
Section 67
//Field1 (Field1)
package {
import flash.display.*;
public dynamic class Field1 extends MovieClip {
public var sub1:MovieClip;
}
}//package
Section 68
//Field10 (Field10)
package {
import flash.display.*;
public dynamic class Field10 extends MovieClip {
public var sub1:MovieClip;
public var sub2:MovieClip;
public var sub3:MovieClip;
public var sub4:MovieClip;
public var sub5:MovieClip;
public var sub6:MovieClip;
public var sub7:MovieClip;
public var sub8:MovieClip;
public var sub9:MovieClip;
}
}//package
Section 69
//Field12 (Field12)
package {
import flash.display.*;
public dynamic class Field12 extends MovieClip {
public var sub1:MovieClip;
public var sub2:MovieClip;
public var sub3:MovieClip;
public var sub4:MovieClip;
public var sub5:MovieClip;
public var sub6:MovieClip;
}
}//package
Section 70
//Field14 (Field14)
package {
import flash.display.*;
public dynamic class Field14 extends MovieClip {
public var sub1:MovieClip;
}
}//package
Section 71
//Field2 (Field2)
package {
import flash.display.*;
public dynamic class Field2 extends MovieClip {
public var sub1:MovieClip;
public var sub2:MovieClip;
}
}//package
Section 72
//Field3 (Field3)
package {
import flash.display.*;
public dynamic class Field3 extends MovieClip {
public var sub1:MovieClip;
}
}//package
Section 73
//Field4 (Field4)
package {
import flash.display.*;
public dynamic class Field4 extends MovieClip {
public var sub1:MovieClip;
public var sub3:MovieClip;
public var sub5:MovieClip;
public var sub2:MovieClip;
public var sub4:MovieClip;
}
}//package
Section 74
//Field5 (Field5)
package {
import flash.display.*;
public dynamic class Field5 extends MovieClip {
public var sub1:MovieClip;
public var sub3:MovieClip;
public var sub2:MovieClip;
public var sub4:MovieClip;
}
}//package
Section 75
//Field6 (Field6)
package {
import flash.display.*;
public dynamic class Field6 extends MovieClip {
public var sub1:MovieClip;
public var sub3:MovieClip;
public var sub5:MovieClip;
public var sub2:MovieClip;
public var sub4:MovieClip;
}
}//package
Section 76
//Field8 (Field8)
package {
import flash.display.*;
public dynamic class Field8 extends MovieClip {
public var sub1:MovieClip;
public var sub2:MovieClip;
public var sub3:MovieClip;
public var sub4:MovieClip;
public var sub5:MovieClip;
public var sub6:MovieClip;
}
}//package
Section 77
//Field9 (Field9)
package {
import flash.display.*;
public dynamic class Field9 extends MovieClip {
public var sub1:MovieClip;
public var sub3:MovieClip;
public var sub2:MovieClip;
public var sub4:MovieClip;
}
}//package
Section 78
//GameOverMc (GameOverMc)
package {
import flash.display.*;
public dynamic class GameOverMc extends MovieClip {
public function GameOverMc(){
addFrameScript(102, frame103);
}
function frame103(){
stop();
parent.removeChild(this);
}
}
}//package
Section 79
//Hero (Hero)
package {
import flash.display.*;
public dynamic class Hero extends MovieClip {
}
}//package
Section 80
//Line (Line)
package {
import flash.display.*;
public dynamic class Line extends MovieClip {
public function Line(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 81
//MiniBomb (MiniBomb)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class MiniBomb extends MovieClip {
private var stepp:int;// = 0
public function MiniBomb(){
addEventListener(Event.ENTER_FRAME, moveMiniBomb);
}
public function moveMiniBomb(_arg1:Event){
this.rotation = (this.rotation + 5);
this.x = MovieClip(parent).heros[0].x;
this.y = MovieClip(parent).heros[0].y;
}
public function deleteMiniBomb(){
MovieClip(parent).removeMiniBomb(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveMiniBomb);
}
}
}//package
Section 82
//Path (Path)
package {
import flash.display.*;
public dynamic class Path extends MovieClip {
public function Path(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
parent.removeChild(this);
}
}
}//package
Section 83
//ScoreInfo (ScoreInfo)
package {
import flash.display.*;
public dynamic class ScoreInfo extends MovieClip {
public var sub:MovieClip;
public function ScoreInfo(){
addFrameScript(30, frame31);
}
function frame31(){
stop();
parent.removeChild(this);
}
}
}//package
Section 84
//SoundBomb (SoundBomb)
package {
import flash.media.*;
public dynamic class SoundBomb extends Sound {
}
}//package
Section 85
//SoundCow (SoundCow)
package {
import flash.media.*;
public dynamic class SoundCow extends Sound {
}
}//package
Section 86
//SoundFlash (SoundFlash)
package {
import flash.media.*;
public dynamic class SoundFlash extends Sound {
}
}//package
Section 87
//SoundGame1 (SoundGame1)
package {
import flash.media.*;
public dynamic class SoundGame1 extends Sound {
}
}//package
Section 88
//SoundGame2 (SoundGame2)
package {
import flash.media.*;
public dynamic class SoundGame2 extends Sound {
}
}//package
Section 89
//SoundGame3 (SoundGame3)
package {
import flash.media.*;
public dynamic class SoundGame3 extends Sound {
}
}//package
Section 90
//SoundGame4 (SoundGame4)
package {
import flash.media.*;
public dynamic class SoundGame4 extends Sound {
}
}//package
Section 91
//SoundGet2 (SoundGet2)
package {
import flash.media.*;
public dynamic class SoundGet2 extends Sound {
}
}//package
Section 92
//SoundHealth (SoundHealth)
package {
import flash.media.*;
public dynamic class SoundHealth extends Sound {
}
}//package
Section 93
//SoundHit (SoundHit)
package {
import flash.media.*;
public dynamic class SoundHit extends Sound {
}
}//package
Section 94
//SoundLostenergy (SoundLostenergy)
package {
import flash.media.*;
public dynamic class SoundLostenergy extends Sound {
}
}//package
Section 95
//SoundMenu (SoundMenu)
package {
import flash.media.*;
public dynamic class SoundMenu extends Sound {
}
}//package
Section 96
//SoundMines (SoundMines)
package {
import flash.media.*;
public dynamic class SoundMines extends Sound {
}
}//package
Section 97
//SoundSheep (SoundSheep)
package {
import flash.media.*;
public dynamic class SoundSheep extends Sound {
}
}//package
Section 98
//SoundShield (SoundShield)
package {
import flash.media.*;
public dynamic class SoundShield extends Sound {
}
}//package
Section 99
//SoundSpeeddown (SoundSpeeddown)
package {
import flash.media.*;
public dynamic class SoundSpeeddown extends Sound {
}
}//package
Section 100
//SoundSpeedup (SoundSpeedup)
package {
import flash.media.*;
public dynamic class SoundSpeedup extends Sound {
}
}//package
Section 101
//SoundTree (SoundTree)
package {
import flash.media.*;
public dynamic class SoundTree extends Sound {
}
}//package
Section 102
//Thunder (Thunder)
package {
import flash.display.*;
public dynamic class Thunder extends MovieClip {
public function Thunder(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
parent.removeChild(this);
}
}
}//package
Section 103
//tornado2 (tornado2)
package {
import flash.display.*;
public dynamic class tornado2 extends MovieClip {
}
}//package
Section 104
//TornadoRanch (TornadoRanch)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
public class TornadoRanch extends MovieClip {
public var soundHit:SoundHit;
public var score5:TextField;
public var backBtn:MovieClip;
public var loader:MovieClip;
public var bar:Bar;
private var gameOverMc:GameOverMc;
public var shoot;
public var soundFlash:SoundFlash;
private var path:Path;
private var minibombs:Array;
public var explodeTree:ExplodeTree;
public var bspeedownS;
public var bonusx;
public var bonusy:int;
public var masuq;
private var enemyExistMax1;
public var Result:MovieClip;
private var enemyExistMax4;
private var enemyExistMax5;
private var enemyExistMax6;
private var enemyExistMax2;
public var speed;
private var enemyExistMax7:int;
public var soundHealth:SoundHealth;
private var enemyExistMax3;
public var enemyExist;
private var bspeedown:Bspeedown;
public var soundBomb:SoundBomb;
public var happyBtn2:MovieClip;
private var SpeedEnemyInit;
public var displayBonus:MovieClip;
public var barIndex;
public var displayWarning:MovieClip;
private var selisihTime;
private var dx;
public var trees:Array;
private var dt;
private var field10:Field10;
public var dieHero:Boolean;
private var field12:Field12;
private var dy;
public var bombStep;
public var masuqBonus;
public var endStatus;
public var bminesS;
private var field14:Field14;
private var effect1:Effect1;
private var winStep;
private var bflash:Bflash;
public var clearBtn:MovieClip;
private var vol;
private var thunder:Thunder;
public var explodeCow:ExplodeCow;
public var sensorRadius;
public var backBtn25:MovieClip;
public var heroIndex;
public var explodeSheep:ExplodeSheep;
public var SFXchannel:SoundChannel;
public var valueX;
public var valueY;
private var yy2;
public var soundSpeedup:SoundSpeedup;
public var firstInfoPause:Boolean;
public var soundSpeeddown:SoundSpeeddown;
public var soundLostenergy:SoundLostenergy;
public var DataSkor:SharedObject;
public var levelReached;
private var xx2;
public var ibonusStep;
public var bflashS;
public var soundGet2:SoundGet2;
public var soundTree:SoundTree;
public var firstMusic;
public var soundShield:SoundShield;
public var bonusInfo:BonusInfo;
public var duit:Array;
public var nameMc:MovieClip;
private var secondTime;
private var current;
public var musicActive;
public var soundSheep:SoundSheep;
private var energyMask:EnergyMask;
public var bombAmount;
public var centerPointx;
private var firstTime:int;
public var centerPointy;
private var enemy1:Enemy1;
private var enemy2:Enemy2;
private var enemy3:Enemy3;
private var enemy4:Enemy4;
private var enemy6:Enemy6;
private var enemy7:Enemy7;
public var donix:MovieClip;
private var enemy5:Enemy5;
public var blifeS;
public var bonusBtn:MovieClip;
public var enemyExist2;
public var enemyExist4;
public var enemyExist5;
public var enemyExist6;
public var enemyExist1;
public var enemyExist3;
public var enemyExist7;
public var bspeedupS;
private var bombRadius:BombRadius;
public var shieldStep;
public var backgBtn1:MovieClip;
private var pi;
public var soundCow:SoundCow;
public var musicBtn:BtnMusic;
public var shieldAllowed;
private var bbomb:Bbomb;
public var speedUpAllowed;
private var mute;
private var treeWarning:TreeWarning;
public var preplayText:MovieClip;
public var treeDuit:int;
public var skor:int;
public var bestSkor;
private var bshield:Bshield;
public var energyScaleIndex;
public var sd:ExplodeTree;
private var displayPause:DisplayPause;
private var blife:Blife;
public var scoreInfo:ScoreInfo;
public var nextBtn:MovieClip;
public var scoreBtn:MovieClip;
private var displayHint:DisplayHint;
private var field1:Field1;
private var field2:Field2;
private var field3:Field3;
private var field4:Field4;
private var field5:Field5;
public var Health;
private var nextEnemy2;
private var field8:Field8;
private var bspeedup:Bspeedup;
private var nextEnemy6;
private var nextEnemy7:int;
public var lastTime;
private var nextEnemy3;
private var field9:Field9;
public var nama:String;
public var playBtn:MovieClip;
public var hintIndex:int;
private var nextEnemy4;
public var treesx;
public var treesy;
private var field6:Field6;
public var enemyExistMax;
public var energy:Energy;
private var nextEnemy5;
private var winMc:WinMc;
public var startBtn:MovieClip;
private var nextEnemy1;
public var growHero;
public var soundGame1:SoundGame1;
public var soundGame2:SoundGame2;
public var soundGame3:SoundGame3;
public var soundGame4:SoundGame4;
public var secretLevel;
public var fields;
public var explodeHouse:ExplodeHouse;
private var newY;
public var moreBtn:MovieClip;
public var soundMines:SoundMines;
public var enemies1;
public var enemies2;
public var enemies3;
public var enemies4;
public var bbombS;
public var enemies7:Array;
public var enemies5;
public var enemies6;
public var flashStep;
public var backBtn2:MovieClip;
public var bscoreS;
private var newX;
public var pausegame;
public var Jumlahduit;
private var lines:Array;
public var name1:TextField;
public var name2:TextField;
public var name3:TextField;
public var name4:TextField;
public var name5:TextField;
public var name6:TextField;
public var name7:TextField;
public var name8:TextField;
public var soundMenu:SoundMenu;
public var liveHero;
public var submitBtn:MovieClip;
public var speedUpStep;
public var unlock:Boolean;
private var firstBonus:Boolean;
public var displayBonus2:MovieClip;
public var helpBtn:MovieClip;
public var happyBtn:MovieClip;
public var BGMchannel:SoundChannel;
private var bmines:Bmines;
public var bshieldS:Array;
private var bscore:Bscore;
public var myData:SharedObject;
public var firstInfo;
public var speedEnemy;
private var rotDegree;
public var level;
public var playButton:SimpleButton;
public var bonusStep;
public var sfxBtn:BtnSfx;
public var flashAllowed;
public var miniBomb:MiniBomb;
private var tree:TRee;
public var energyScale;
private var inextEnemy1;
private var inextEnemy3;
private var inextEnemy5;
private var inextEnemy7:int;
private var inextEnemy2;
private var inextEnemy4;
public var heros;
private var mouseDistance:Number;
public var heroLevel;
public var speleLinkButton:SimpleButton;
private var inextEnemy6;
public var win;
public var speedDownAllowed;
public var tornadoDuit1;
public var tornadoDuit2;
public var score4:TextField;
public var treeIndex;
public var score6:TextField;
public var score7:TextField;
public var gameOver;
public var score2:TextField;
public var tornadoDuit3;
public var tornadoDuit4;
public var sfxActive;
public var score8:TextField;
public var score1:TextField;
public var score3:TextField;
public var tornadoDuit5;
public var hero:Hero;
private var line:Line;
public var speedDownStep;
public function TornadoRanch(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10);
sfxActive = true;
musicActive = true;
firstMusic = true;
}
public function removeBbomb(_arg1:Bbomb){
var _local2:*;
for (_local2 in bbombS) {
if (bbombS[_local2] == _arg1){
bbombS.splice(_local2, 1);
break;
};
};
}
public function removeBspeedown(_arg1:Bspeedown){
var _local2:*;
for (_local2 in bspeedownS) {
if (bspeedownS[_local2] == _arg1){
bspeedownS.splice(_local2, 1);
break;
};
};
}
public function removeMiniBomb(_arg1:MiniBomb){
var _local2:*;
for (_local2 in minibombs) {
if (minibombs[_local2] == _arg1){
minibombs.splice(_local2, 1);
break;
};
};
}
public function removeBlife(_arg1:Blife){
var _local2:*;
for (_local2 in blifeS) {
if (blifeS[_local2] == _arg1){
blifeS.splice(_local2, 1);
break;
};
};
}
function frame10(){
stop();
mainTornadoRanch();
bar.levelTxt.text = String(level);
bar.happyBtn3.addEventListener(MouseEvent.CLICK, happyBtnf3);
}
function frame2(){
stop();
removeEventListener(Event.ENTER_FRAME, loadProgress);
}
function frame3(){
stop();
gotoAndStop(1);
}
function frame4(){
stop();
soundMenu = new SoundMenu();
soundGame1 = new SoundGame1();
soundGame2 = new SoundGame2();
soundGame3 = new SoundGame3();
soundGame4 = new SoundGame4();
myData = SharedObject.getLocal("userdata");
masuq = myData.data.infmasuq;
masuqBonus = myData.data.infmasuqBonus;
if ((((musicBtn.currentFrame == 1)) && (firstMusic))){
BGMchannel = soundMenu.play(0, 100);
firstMusic = false;
};
displayBonus.visible = false;
bonusBtn.addEventListener(MouseEvent.ROLL_OVER, bonusBtnf1);
bonusBtn.addEventListener(MouseEvent.ROLL_OUT, bonusBtnf2);
bonusBtn.addEventListener(MouseEvent.CLICK, bonusBtnf);
playBtn.addEventListener(MouseEvent.CLICK, clickPlayBtn);
helpBtn.addEventListener(MouseEvent.CLICK, helpBtnf);
DataSkor = SharedObject.getLocal("skorList");
scoreBtn.addEventListener(MouseEvent.CLICK, wq);
happyBtn.addEventListener(MouseEvent.CLICK, happyBtnf);
moreBtn.addEventListener(MouseEvent.CLICK, moreBtnf);
if (unlock){
displayBonus2.visible = false;
} else {
displayBonus2.visible = true;
displayBonus2.buttonMode = true;
};
displayBonus2.addEventListener(MouseEvent.CLICK, displayBonus2f);
if (musicActive == false){
musicBtn.gotoAndStop(2);
};
if (sfxActive == false){
sfxBtn.gotoAndStop(2);
};
}
function frame5(){
stop();
backBtn2.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
gotoAndStop("menu");
});
}
function frame6(){
stop();
DataSkor.data.pemain.sortOn("skornya", (Array.DESCENDING | Array.NUMERIC));
if (!DataSkor.data.pemain){
DataSkor.data.pemain = new Array();
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.sortOn("skornya", (Array.DESCENDING | Array.NUMERIC));
};
name1.text = String(DataSkor.data.pemain[0].namanya);
name2.text = String(DataSkor.data.pemain[1].namanya);
name3.text = String(DataSkor.data.pemain[2].namanya);
name4.text = String(DataSkor.data.pemain[3].namanya);
name5.text = String(DataSkor.data.pemain[4].namanya);
name6.text = String(DataSkor.data.pemain[5].namanya);
name7.text = String(DataSkor.data.pemain[6].namanya);
name8.text = String(DataSkor.data.pemain[7].namanya);
score1.text = String(DataSkor.data.pemain[0].skornya);
score2.text = String(DataSkor.data.pemain[1].skornya);
score3.text = String(DataSkor.data.pemain[2].skornya);
score4.text = String(DataSkor.data.pemain[3].skornya);
score5.text = String(DataSkor.data.pemain[4].skornya);
score6.text = String(DataSkor.data.pemain[5].skornya);
score7.text = String(DataSkor.data.pemain[6].skornya);
score8.text = String(DataSkor.data.pemain[7].skornya);
backBtn25.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
gotoAndStop("menu");
});
}
function frame7(){
stop();
displayWarning.visible = false;
backBtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
gotoAndStop("menu");
});
clearBtn.addEventListener(MouseEvent.CLICK, clearBtnf);
displayWarning.yesBtn.addEventListener(MouseEvent.CLICK, yesBtnff);
displayWarning.noBtn.addEventListener(MouseEvent.CLICK, noBtnff);
if (musicActive == false){
musicBtn.gotoAndStop(2);
};
if (sfxActive == false){
sfxBtn.gotoAndStop(2);
};
}
public function helpBtnf(_arg1:MouseEvent){
bonusBtn.removeEventListener(MouseEvent.ROLL_OUT, bonusBtnf2);
gotoAndStop("help");
}
function frame9(){
stop();
BGMchannel.stop();
preplayText.gotoAndStop(level);
startBtn.addEventListener(MouseEvent.CLICK, startBtnf);
if (musicActive == false){
musicBtn.gotoAndStop(2);
};
if (sfxActive == false){
sfxBtn.gotoAndStop(2);
};
}
function frame1(){
stop();
if (((((((((((((((is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "happytree.com")) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "spele.nl")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "spielspiele.de")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "spiels.at")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "spiels.ch")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "spele.be")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "keygames.com")))) || (is_domain_allowed(this.root.loaderInfo.url.split("/")[2], "minigioco.it")))){
unlock = true;
} else {
unlock = false;
};
playButton.visible = false;
playButton.addEventListener(MouseEvent.CLICK, loadplayBtnf);
addEventListener(Event.ENTER_FRAME, loadProgress);
speleLinkButton.addEventListener(MouseEvent.CLICK, callLink);
}
function frame8(){
stop();
nameMc.visible = false;
Result.gotoAndStop((level - 1));
if (level == 15){
submitBtn.visible = false;
backgBtn1.visible = false;
};
nextBtn.addEventListener(MouseEvent.CLICK, nextBtnf);
submitBtn.addEventListener(MouseEvent.CLICK, submitBtnf);
nameMc.total_txt.text = String(Jumlahduit);
nameMc.submit.addEventListener(MouseEvent.CLICK, nameMcf);
happyBtn2.addEventListener(MouseEvent.CLICK, happyBtnf2);
if (musicActive == false){
musicBtn.gotoAndStop(2);
};
if (sfxActive == false){
sfxBtn.gotoAndStop(2);
};
}
public function happyBtnf(_arg1:MouseEvent){
getURL("http://www.keygames.com/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
}
public function useBomb(_arg1:MouseEvent){
if (pausegame){
} else {
if ((((((((bombAmount > 0)) && (liveHero))) && ((bombStep > 10)))) && ((win == false)))){
bombRadius = new BombRadius();
bombRadius.x = heros[0].x;
bombRadius.y = heros[0].y;
addChild(bombRadius);
minibombs[(bombAmount - 1)].deleteMiniBomb();
bombAmount--;
};
};
}
public function newBonusFlash(){
bflash = new Bflash();
bflash.x = (Math.floor((Math.random() * 500)) + 50);
bflash.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bflash);
bflashS.push(bflash);
}
public function is_domain_allowed(_arg1:String, _arg2:String):Boolean{
return (array_has_prefix(reversed_domain_parts(_arg1), reversed_domain_parts(_arg2)));
}
public function happyBtnf2(_arg1:MouseEvent){
getURL("http://www.keygames.com/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
}
public function happyBtnf3(_arg1:MouseEvent){
getURL("http://www.keygames.com/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
}
public function startBtnf(_arg1:MouseEvent){
if (level == 13){
if (musicActive){
BGMchannel = soundMenu.play(0, 100);
};
gotoAndStop("menu");
} else {
gotoAndStop("main");
};
}
public function yesBtnf(_arg1:MouseEvent){
endStatus = 2;
endGame();
}
public function removeBscore(_arg1:Bscore){
var _local2:*;
for (_local2 in bscoreS) {
if (bscoreS[_local2] == _arg1){
bscoreS.splice(_local2, 1);
break;
};
};
}
public function loadProgress(_arg1:Event){
var _local2:int = this.root.loaderInfo.bytesLoaded;
var _local3:int = this.root.loaderInfo.bytesTotal;
var _local4:int = int(((_local2 / _local3) * 100));
loader.bar.gotoAndStop(int(_local4));
loader.loadTxt.text = (String(int(_local4)) + " %");
var _local5:int = (_local2 / 0x0400);
var _local6:int = (_local3 / 0x0400);
if (_local2 >= _local3){
loader.visible = false;
playButton.visible = true;
};
}
public function xyCalculation(){
var _local1:int;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
switch (level){
case 1:
bonusx = (Math.floor((Math.random() * 420)) + 90);
bonusy = (Math.floor((Math.random() * 340)) + 70);
break;
case 2:
_local1 = 0;
while (_local1 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field2.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local1++;
};
break;
case 3:
bonusx = (Math.floor((Math.random() * 420)) + 90);
bonusy = (Math.floor((Math.random() * 340)) + 70);
break;
case 4:
_local2 = 0;
while (_local2 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field4.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local2++;
};
break;
case 5:
_local3 = 0;
while (_local3 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field5.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local3++;
};
break;
case 6:
_local4 = 0;
while (_local4 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field6.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local4++;
};
break;
case 7:
bonusx = (Math.floor((Math.random() * 420)) + 90);
bonusy = (Math.floor((Math.random() * 340)) + 70);
break;
case 8:
_local5 = 0;
while (_local5 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field8.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local5++;
};
break;
case 9:
_local6 = 0;
while (_local6 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field9.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local6++;
};
break;
case 10:
_local7 = 0;
while (_local7 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field10.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local7++;
};
break;
case 11:
bonusx = (Math.floor((Math.random() * 420)) + 90);
bonusy = (Math.floor((Math.random() * 340)) + 70);
break;
case 12:
_local8 = 0;
while (_local8 < 30) {
bonusx = (Math.floor((Math.random() * 540)) + 30);
bonusy = (Math.floor((Math.random() * 420)) + 30);
if (field12.hitTestPoint(bonusx, bonusy, true)){
} else {
break;
};
_local8++;
};
break;
case 14:
bonusx = (Math.floor((Math.random() * 540)) + 40);
bonusy = (Math.floor((Math.random() * 400)) + 40);
break;
};
}
public function stopShoot(_arg1:MouseEvent){
shoot = false;
}
public function removeBshield(_arg1:Bshield){
var _local2:*;
for (_local2 in bshieldS) {
if (bshieldS[_local2] == _arg1){
bshieldS.splice(_local2, 1);
break;
};
};
}
public function removeBmines(_arg1:Bmines){
var _local2:*;
for (_local2 in bminesS) {
if (bminesS[_local2] == _arg1){
bminesS.splice(_local2, 1);
break;
};
};
}
public function newBonusSpeedown(){
bspeedown = new Bspeedown();
bspeedown.x = (Math.floor((Math.random() * 500)) + 50);
bspeedown.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bspeedown);
bspeedownS.push(bspeedown);
}
public function yesBtnff(_arg1:MouseEvent){
if (displayWarning.visible){
myData.clear();
gotoAndStop("menu");
};
}
public function clearBtnf(_arg1:MouseEvent){
displayWarning.visible = true;
}
public function array_has_prefix(_arg1:Array, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
if (_arg1.length < _local3){
return (false);
};
var _local4:uint;
while (_local4 < _local3) {
if (_arg1[_local4] !== _arg2[_local4]){
return (false);
};
_local4++;
};
return (true);
}
public function enterFrame(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Number;
var _local13:int;
var _local14:Number;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
var _local22:int;
var _local23:int;
var _local24:int;
var _local25:int;
var _local26:int;
var _local27:int;
var _local28:int;
var _local29:int;
var _local30:int;
var _local31:int;
var _local32:SoundTransform;
var _local33:int;
var _local34:int;
var _local35:Number;
var _local36:int;
var _local37:int;
if ((((((((level == 3)) || ((level == 7)))) || ((level == 11)))) || ((level == 14)))){
current = (getTimer() - firstTime);
if (pausegame){
dt = (current - secondTime);
} else {
secondTime = (current - dt);
if ((((((level == 3)) || ((level == 7)))) || ((level == 11)))){
selisihTime = (46 - Math.ceil((secondTime / 1000)));
};
if (level == 14){
selisihTime = (121 - Math.ceil((secondTime / 1000)));
};
if (selisihTime <= 0){
selisihTime = 0;
};
bar.timerTxt.text = String(selisihTime);
bar.sTxt.text = "sec";
if (selisihTime <= 0){
energy.scaleY = 1.1;
};
};
};
if (pausegame){
} else {
bar.scoreTxt.text = String(skor);
if (bombStep < 11){
bombStep++;
};
_local2 = (getTimer() - lastTime);
lastTime = (lastTime + _local2);
if (growHero){
_local3 = 0;
while (_local3 < heros.length) {
heros[_local3].scaleX = (heros[_local3].scaleX + ((_local3 + 1) * 0.025));
heros[_local3].scaleY = (heros[_local3].scaleY + ((_local3 + 1) * 0.025));
_local3++;
};
if (heros[0].scaleX >= 1){
liveHero = true;
growHero = false;
};
};
if (liveHero){
if (speedUpAllowed){
speedUpStep++;
path = new Path();
path.x = heros[0].x;
path.y = heros[0].y;
addChild(path);
setChildIndex(path, heroIndex);
if (speedUpStep > 280){
speed = 170;
speedUpAllowed = false;
};
};
if (speedDownAllowed){
speedDownStep++;
if (speedDownStep > 280){
speed = 170;
speedDownAllowed = false;
};
};
if (flashAllowed){
if (flashStep == 0){
thunder = new Thunder();
addChild(thunder);
thunder.x = 320;
thunder.y = 240;
};
flashStep++;
if (flashStep > 200){
speedEnemy = SpeedEnemyInit;
flashAllowed = false;
};
};
if (shieldAllowed){
shieldStep++;
if (shieldStep > 400){
_local11 = 0;
while (_local11 < heros.length) {
heros[_local11].alpha = 1;
_local11++;
};
shieldAllowed = false;
};
};
xx2 = Math.abs((mouseX - heros[0].x));
yy2 = Math.abs((mouseY - heros[0].y));
mouseDistance = (Math.sqrt(((xx2 * xx2) + (yy2 * yy2))) * 3);
if (mouseDistance > speed){
mouseDistance = speed;
};
pi = (2 * Math.PI);
rotDegree = ((360 * Math.atan2((mouseY - heros[0].y), (mouseX - heros[0].x))) / pi);
_local4 = (fields.length - 1);
while (_local4 >= 0) {
if (fields[_local4].hitTestPoint(heros[0].x, heros[0].y, true)){
rotDegree = ((360 * Math.atan2((centerPointy[_local4] - heros[0].y), (centerPointx[_local4] - heros[0].x))) / pi);
};
_local4--;
};
dx = (mouseDistance * Math.cos((((2 * Math.PI) * rotDegree) / 360)));
dy = (mouseDistance * Math.sin((((2 * Math.PI) * rotDegree) / 360)));
heros[0].x = (heros[0].x + ((dx * _local2) / 1000));
heros[0].y = (heros[0].y + ((dy * _local2) / 1000));
_local5 = -10;
_local6 = -10;
if (heros[0].x < _local5){
heros[0].x = _local5;
};
if (heros[0].y < _local6){
heros[0].y = _local6;
};
if (heros[0].x > 640){
heros[0].x = 640;
};
if (heros[0].y > 490){
heros[0].y = 490;
};
_local7 = (heros.length - 1);
_local8 = (_local7 * 3);
while (_local8 > 0) {
valueX[_local8] = valueX[(_local8 - 1)];
valueY[_local8] = valueY[(_local8 - 1)];
_local8--;
};
valueX[0] = heros[0].x;
valueY[0] = heros[0].y;
_local9 = 1;
while (_local9 < heros.length) {
heros[_local9].x = valueX[((_local9 * 3) - 1)];
heros[_local9].y = valueY[((_local9 * 3) - 1)];
_local9++;
};
if (energy.scaleY > energyScale[energyScaleIndex]){
if (energy.scaleY < energyScale[(energyScale.length - 1)]){
hero = new Hero();
addChild(hero);
heros.push(hero);
_local12 = (heros.length - 2);
_local13 = ((_local12 * 3) + 1);
while (_local13 < ((_local7 * 3) + 1)) {
valueX[_local13] = valueX[(_local13 - 1)];
valueY[_local13] = valueY[(_local13 - 1)];
_local13++;
};
_local14 = (heros.length - 1);
hero.x = valueX[((_local14 * 3) - 1)];
hero.y = valueY[((_local14 * 3) - 1)];
hero.scaleX = heros.length;
hero.scaleY = heros.length;
effect1 = new Effect1();
effect1.x = heros[(heros.length - 2)].x;
effect1.y = heros[(heros.length - 2)].y;
effect1.scaleX = (heros.length + 1);
effect1.scaleY = (heros.length + 1);
addChild(effect1);
heroLevel++;
bar.warning.gotoAndStop(heroLevel);
if (heroLevel == energyScale.length){
if (level == 7){
} else {
treeWarning = new TreeWarning();
treeWarning.x = 750;
treeWarning.y = 50;
addChild(treeWarning);
bar.warning2.gotoAndStop(5);
};
} else {
bar.warning2.gotoAndStop(heroLevel);
};
};
if (energyScaleIndex < (energyScale.length - 2)){
if (heroLevel == 2){
if (level == 3){
enemyExistMax1 = 15;
enemyExistMax2 = 0;
enemyExistMax3 = 0;
} else {
enemyExistMax1 = 2;
enemyExistMax2 = 2;
enemyExistMax3 = 4;
};
};
if (heroLevel == 3){
if (level == 7){
enemyExistMax1 = 0;
enemyExistMax2 = 0;
enemyExistMax3 = 7;
enemyExistMax4 = 0;
} else {
enemyExistMax1 = 1;
enemyExistMax2 = 2;
enemyExistMax3 = 3;
enemyExistMax4 = 5;
};
};
if (heroLevel == 4){
if (level == 11){
enemyExistMax1 = 16;
enemyExistMax2 = 0;
enemyExistMax3 = 3;
enemyExistMax4 = 0;
enemyExistMax5 = 0;
} else {
if (level == 14){
enemyExistMax1 = 16;
enemyExistMax2 = 0;
enemyExistMax3 = 5;
enemyExistMax4 = 4;
enemyExistMax5 = 0;
} else {
enemyExistMax1 = 0;
enemyExistMax2 = 1;
enemyExistMax3 = 2;
enemyExistMax4 = 3;
enemyExistMax5 = 6;
};
};
};
};
energyScaleIndex++;
enemyExistMax = ((energyScaleIndex * 2) + 6);
};
newEnemy();
if (bonusStep == 100){
if (firstInfo){
hintIndex = 1;
displayHint = new DisplayHint();
displayHint.x = 320;
displayHint.y = -60;
addChild(displayHint);
pausegame = true;
firstInfoPause = true;
firstInfo = false;
};
};
if ((((((level == 3)) || ((level == 7)))) || ((level == 11)))){
} else {
if (win == false){
bonusStep++;
if (bonusStep == (ibonusStep * 250)){
newBonus();
ibonusStep++;
};
};
};
setChildIndex(bar, (numChildren - 1));
setChildIndex(energy, (numChildren - 1));
_local10 = 0;
while (_local10 < lines.length) {
setChildIndex(lines[_local10], (numChildren - 1));
_local10++;
};
if (energy.scaleY >= 1){
if (endStatus == 0){
winMc = new WinMc();
winMc.x = 320;
winMc.y = 240;
addChild(winMc);
win = true;
energy.scaleY = 1;
_local15 = (trees.length - 1);
while (_local15 >= 0) {
trees[_local15].deleteTreeGameOver();
_local15--;
};
_local16 = (minibombs.length - 1);
while (_local16 >= 0) {
minibombs[_local16].deleteMiniBomb();
_local16--;
};
_local17 = (bminesS.length - 1);
while (_local17 >= 0) {
bminesS[_local17].live = false;
bminesS[_local17].die = true;
_local17--;
};
_local18 = (bbombS.length - 1);
while (_local18 >= 0) {
bbombS[_local18].live = false;
bbombS[_local18].die = true;
_local18--;
};
_local19 = (bscoreS.length - 1);
while (_local19 >= 0) {
bscoreS[_local19].live = false;
bscoreS[_local19].die = true;
_local19--;
};
_local20 = (bspeedownS.length - 1);
while (_local20 >= 0) {
bspeedownS[_local20].live = false;
bspeedownS[_local20].die = true;
_local20--;
};
_local21 = (blifeS.length - 1);
while (_local21 >= 0) {
blifeS[_local21].live = false;
blifeS[_local21].die = true;
_local21--;
};
_local22 = (bflashS.length - 1);
while (_local22 >= 0) {
bflashS[_local22].live = false;
bflashS[_local22].die = true;
_local22--;
};
_local23 = (bshieldS.length - 1);
while (_local23 >= 0) {
bshieldS[_local23].live = false;
bshieldS[_local23].die = true;
_local23--;
};
_local24 = (bspeedupS.length - 1);
while (_local24 >= 0) {
bspeedupS[_local24].live = false;
bspeedupS[_local24].die = true;
_local24--;
};
_local25 = (enemies1.length - 1);
while (_local25 >= 0) {
enemies1[_local25].live = false;
enemies1[_local25].die = true;
_local25--;
};
_local26 = (enemies2.length - 1);
while (_local26 >= 0) {
enemies2[_local26].live = false;
enemies2[_local26].die = true;
_local26--;
};
_local27 = (enemies3.length - 1);
while (_local27 >= 0) {
enemies3[_local27].live = false;
enemies3[_local27].die = true;
_local27--;
};
_local28 = (enemies4.length - 1);
while (_local28 >= 0) {
enemies4[_local28].live = false;
enemies4[_local28].die = true;
_local28--;
};
_local29 = (enemies5.length - 1);
while (_local29 >= 0) {
enemies5[_local29].live = false;
enemies5[_local29].die = true;
_local29--;
};
_local30 = (enemies6.length - 1);
while (_local30 >= 0) {
enemies6[_local30].live = false;
enemies6[_local30].die = true;
_local30--;
};
_local31 = (enemies7.length - 1);
while (_local31 >= 0) {
enemies7[_local31].live = false;
enemies7[_local31].die = true;
_local31--;
};
minibombs = null;
bminesS = null;
bspeedupS = null;
bbombS = null;
bscoreS = null;
bspeedownS = null;
blifeS = null;
bflashS = null;
bshieldS = null;
enemies1 = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
mute = true;
win = true;
winStep = 0;
endStatus = 1;
trace(" W I N ");
};
};
if (mute){
vol = (vol - 0.01);
_local32 = BGMchannel.soundTransform;
_local32.volume = vol;
BGMchannel.soundTransform = _local32;
if (vol < 0.1){
trace("kena");
mute = false;
};
};
if (win){
winStep++;
if (winStep > 200){
endGame();
win = false;
};
};
};
if (dieHero){
_local33 = 0;
while (_local33 < heros.length) {
heros[_local33].scaleX = (heros[_local33].scaleX - ((_local33 + 1) * 0.025));
heros[_local33].scaleY = (heros[_local33].scaleY - ((_local33 + 1) * 0.025));
_local33++;
};
if (heros[0].scaleX <= 0){
_local34 = 0;
while (_local34 < heros.length) {
heros[_local34].x = mouseX;
heros[_local34].y = mouseY;
_local34++;
};
_local35 = (heros.length - 1);
_local36 = 0;
while (_local36 < ((_local35 * 3) + 1)) {
valueX[_local36] = heros[0].x;
valueY[_local36] = heros[0].y;
_local36++;
};
Health--;
bar.HealthBar.gotoAndStop(Health);
if (Health > 1){
growHero = true;
dieHero = false;
} else {
_local37 = 0;
while (_local37 < heros.length) {
heros[_local37].scaleX = 0;
heros[_local37].scaleY = 0;
_local37++;
};
endStatus = 2;
gameOverMc = new GameOverMc();
gameOverMc.x = 320;
gameOverMc.y = 240;
addChild(gameOverMc);
gameOver = true;
dieHero = false;
};
};
};
if (gameOver){
vol = (vol - 0.005);
_local32 = BGMchannel.soundTransform;
_local32.volume = vol;
BGMchannel.soundTransform = _local32;
if (vol < 0.1){
endGame();
gameOver = false;
};
};
};
}
public function newBonusBomb(){
bbomb = new Bbomb();
bbomb.x = (Math.floor((Math.random() * 500)) + 50);
bbomb.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bbomb);
bbombS.push(bbomb);
}
public function submitBtnf(_arg1:MouseEvent){
if (nameMc.visible){
} else {
nameMc.visible = true;
};
}
public function loadplayBtnf(_arg1:MouseEvent){
removeEventListener(Event.ENTER_FRAME, loadProgress);
gotoAndStop("menu");
}
public function newBonusSpeedup(){
bspeedup = new Bspeedup();
bspeedup.x = (Math.floor((Math.random() * 500)) + 50);
bspeedup.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bspeedup);
bspeedupS.push(bspeedup);
}
public function simpanScore(_arg1:Number, _arg2:String){
if (!DataSkor.data.pemain){
DataSkor.data.pemain = new Array();
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
};
DataSkor.data.pemain.push({skornya:_arg1, namanya:_arg2});
DataSkor.flush();
}
public function newEnemy():void{
var _local1:*;
if ((((enemyExist1 < enemyExistMax1)) && ((win == false)))){
nextEnemy1++;
if ((((((level == 3)) || ((level == 11)))) || ((level == 14)))){
if (nextEnemy1 == (inextEnemy1 * 20)){
xyCalculation();
tree = new TRee();
tree.x = bonusx;
tree.y = bonusy;
_local1 = ((Math.random() * 0.3) + 0.8);
tree.gotoAndStop(Math.round(((Math.random() * 5) + 1)));
tree.id = tree.currentFrame;
addChild(tree);
if (tree.id > 4){
setChildIndex(tree, (heroIndex - 1));
} else {
setChildIndex(tree, heroIndex);
};
tree.xtemp = bonusx;
tree.ytemp = bonusy;
trees.push(tree);
treeIndex = getChildIndex(trees[(trees.length - 1)]);
enemyExist1++;
inextEnemy1++;
};
} else {
if (nextEnemy1 == (inextEnemy1 * 50)){
enemy1 = new Enemy1();
enemy1.x = 320;
enemy1.y = 240;
addChild(enemy1);
setChildIndex(enemy1, heroIndex);
enemies1.push(enemy1);
enemyExist1++;
inextEnemy1++;
};
};
} else {
nextEnemy1 = 0;
inextEnemy1 = 1;
};
if ((((enemyExist2 < enemyExistMax2)) && ((win == false)))){
nextEnemy2++;
if (nextEnemy2 == (inextEnemy2 * 50)){
enemy2 = new Enemy2();
enemy2.x = 320;
enemy2.y = 240;
addChild(enemy2);
setChildIndex(enemy2, heroIndex);
enemies2.push(enemy2);
enemyExist2++;
inextEnemy2++;
};
} else {
nextEnemy2 = 0;
inextEnemy2 = 1;
};
if ((((enemyExist3 < enemyExistMax3)) && ((win == false)))){
nextEnemy3++;
if (nextEnemy3 == (inextEnemy3 * 50)){
enemy3 = new Enemy3();
enemy3.x = 320;
enemy3.y = 240;
addChild(enemy3);
if (level == 11){
trace("kjhkjhkhj");
} else {
setChildIndex(enemy3, (heroIndex + 1));
};
enemies3.push(enemy3);
enemyExist3++;
inextEnemy3++;
};
} else {
nextEnemy3 = 0;
inextEnemy3 = 1;
};
if ((((enemyExist4 < enemyExistMax4)) && ((win == false)))){
nextEnemy4++;
if (nextEnemy4 == (inextEnemy4 * 50)){
enemy4 = new Enemy4();
enemy4.x = 320;
enemy4.y = 240;
addChild(enemy4);
setChildIndex(enemy4, (heroIndex + 1));
enemies4.push(enemy4);
enemyExist4++;
inextEnemy4++;
};
} else {
nextEnemy4 = 0;
inextEnemy4 = 1;
};
if ((((enemyExist5 < enemyExistMax5)) && ((win == false)))){
nextEnemy5++;
if (nextEnemy5 == (inextEnemy5 * 50)){
enemy5 = new Enemy5();
enemy5.x = 320;
enemy5.y = 240;
addChild(enemy5);
setChildIndex(enemy5, heroIndex);
enemies5.push(enemy5);
enemyExist5++;
inextEnemy5++;
};
} else {
nextEnemy5 = 0;
inextEnemy5 = 1;
};
if ((((enemyExist6 < enemyExistMax6)) && ((win == false)))){
nextEnemy6++;
if (nextEnemy6 == (inextEnemy6 * 50)){
enemy6 = new Enemy6();
enemy6.x = 320;
enemy6.y = 240;
addChild(enemy6);
enemies6.push(enemy6);
enemyExist6++;
inextEnemy6++;
};
} else {
nextEnemy6 = 0;
inextEnemy6 = 1;
};
if ((((enemyExist7 < enemyExistMax7)) && ((win == false)))){
nextEnemy7++;
if (nextEnemy7 == (inextEnemy7 * 50)){
enemy7 = new Enemy7();
enemy7.x = 320;
enemy7.y = 240;
addChild(enemy7);
enemies7.push(enemy7);
enemyExist7++;
inextEnemy7++;
};
} else {
nextEnemy7 = 0;
inextEnemy7 = 1;
};
}
public function addBonusInfo(_arg1, _arg2, _arg3:Number){
bonusInfo = new BonusInfo();
bonusInfo.x = _arg1;
bonusInfo.y = _arg2;
addChild(bonusInfo);
bonusInfo.sub.gotoAndStop(_arg3);
}
public function newBonusLife(){
blife = new Blife();
blife.x = (Math.floor((Math.random() * 500)) + 50);
blife.y = (Math.floor((Math.random() * 400)) + 40);
addChild(blife);
blifeS.push(blife);
}
public function getURL(_arg1:String, _arg2:String){
var url = _arg1;
var method = _arg2;
var web:String = url;
var request:URLRequest = new URLRequest(web);
try {
navigateToURL(request, method);
} catch(e:Error) {
};
}
public function removeTree(_arg1:TRee){
var _local2:*;
for (_local2 in trees) {
if (trees[_local2] == _arg1){
trees.splice(_local2, 1);
break;
};
};
}
public function bonusBtnf(_arg1:MouseEvent){
if (unlock){
if (masuqBonus == 7302524082){
bestSkor = myData.data.infbonusskor;
} else {
bestSkor = 0;
};
bonusBtn.removeEventListener(MouseEvent.ROLL_OUT, bonusBtnf2);
BGMchannel.stop();
level = 14;
gotoAndStop("preplay");
} else {
getURL("http://files.happytree.com/games/tornadoranch/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
};
}
public function newBonus(){
var _local1:Number;
if ((((level == 1)) || ((level == 14)))){
newBonusMines();
if (level == 14){
newBonusMines();
};
};
if (level == 2){
_local1 = Math.round(((Math.random() * 1) + 1));
if (firstBonus){
_local1 = 2;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
newBonusSpeedup();
};
};
if (level == 4){
_local1 = Math.round(((Math.random() * 2) + 1));
if (firstBonus){
_local1 = 3;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
newBonusBomb();
};
};
};
if (level == 5){
_local1 = Math.round(((Math.random() * 3) + 1));
if (firstBonus){
_local1 = 4;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
if (_local1 == 3){
newBonusBomb();
} else {
newBonusScore();
};
};
};
};
if (level == 6){
_local1 = Math.round(((Math.random() * 4) + 1));
if (firstBonus){
_local1 = 5;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
if (_local1 == 3){
newBonusBomb();
} else {
if (_local1 == 4){
newBonusScore();
} else {
newBonusSpeedown();
};
};
};
};
};
if (level == 8){
if (Math.abs((Math.floor((bonusStep / 2500)) - (bonusStep / 2500))) == 0){
trace(bonusStep);
newBonusLife();
} else {
_local1 = Math.round(((Math.random() * 4) + 1));
if (firstBonus){
_local1 = 6;
newBonusLife();
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
if (_local1 == 3){
newBonusBomb();
} else {
if (_local1 == 4){
newBonusScore();
} else {
if (_local1 == 5){
newBonusSpeedown();
};
};
};
};
};
};
};
if (level == 9){
if (Math.abs((Math.floor((bonusStep / 3000)) - (bonusStep / 3000))) == 0){
trace(bonusStep);
newBonusLife();
} else {
_local1 = Math.round(((Math.random() * 5) + 1));
if (firstBonus){
_local1 = 6;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
if (_local1 == 3){
newBonusBomb();
} else {
if (_local1 == 4){
newBonusScore();
} else {
if (_local1 == 5){
newBonusSpeedown();
} else {
if (_local1 == 6){
newBonusFlash();
};
};
};
};
};
};
};
};
if (level == 10){
if (Math.abs((Math.floor((bonusStep / 3750)) - (bonusStep / 3750))) == 0){
trace(bonusStep);
newBonusLife();
} else {
_local1 = Math.round(((Math.random() * 6) + 1));
if (firstBonus){
_local1 = 7;
firstBonus = false;
};
if (_local1 == 1){
newBonusMines();
} else {
if (_local1 == 2){
newBonusSpeedup();
} else {
if (_local1 == 3){
newBonusBomb();
} else {
if (_local1 == 4){
newBonusScore();
} else {
if (_local1 == 5){
newBonusSpeedown();
} else {
if (_local1 == 6){
newBonusFlash();
} else {
if (_local1 == 7){
newBonusShield();
};
};
};
};
};
};
};
};
};
if (level == 12){
if (Math.abs((Math.floor((bonusStep / 5000)) - (bonusStep / 5000))) == 0){
trace(bonusStep);
newBonusLife();
} else {
_local1 = Math.round(((Math.random() * 6) + 1));
if (_local1 == 1){
newBonusMines();
};
if (_local1 == 2){
newBonusSpeedup();
};
if (_local1 == 3){
newBonusBomb();
};
if (_local1 == 4){
newBonusScore();
};
if (_local1 == 5){
newBonusSpeedown();
};
if (_local1 == 6){
newBonusFlash();
};
if (_local1 == 7){
newBonusShield();
};
};
};
}
public function addScore(_arg1, _arg2, _arg3:Number){
scoreInfo = new ScoreInfo();
scoreInfo.x = _arg1;
scoreInfo.y = _arg2;
addChild(scoreInfo);
scoreInfo.sub.gotoAndStop(_arg3);
}
public function removeBflash(_arg1:Bflash){
var _local2:*;
for (_local2 in bflashS) {
if (bflashS[_local2] == _arg1){
bflashS.splice(_local2, 1);
break;
};
};
}
public function moreBtnf(_arg1:MouseEvent){
getURL("http://www.keygames.com/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
}
public function hint(_arg1:MouseEvent){
if (firstInfoPause){
if ((((displayHint.currentFrame > 20)) && ((displayHint.currentFrame < 36)))){
displayHint.gotoAndPlay(40);
};
};
}
public function keyDownFunction(_arg1:KeyboardEvent){
if (((gameOver) || (win))){
} else {
if (_arg1.keyCode == 27){
if (firstInfoPause){
hintIndex = 7;
displayHint.gotoAndPlay(87);
} else {
pausegame = true;
setChildIndex(displayPause, (numChildren - 1));
displayPause.visible = true;
bombStep = 0;
};
};
};
}
public function newBonusShield(){
bshield = new Bshield();
bshield.x = (Math.floor((Math.random() * 500)) + 50);
bshield.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bshield);
bshieldS.push(bshield);
}
public function mainTornadoRanch(){
var _local5:int;
var _local6:*;
flashAllowed = false;
speedUpAllowed = false;
speedDownAllowed = false;
shieldAllowed = false;
growHero = true;
liveHero = false;
dieHero = false;
bombAmount = 0;
bombStep = 11;
mute = false;
vol = 1;
endStatus = 0;
win = false;
newX = 0;
newY = 0;
speed = 220;
bonusStep = 0;
ibonusStep = 1;
heroLevel = 1;
pausegame = false;
firstBonus = true;
tornadoDuit1 = 0;
tornadoDuit2 = 0;
tornadoDuit3 = 0;
tornadoDuit4 = 0;
tornadoDuit5 = 0;
treeDuit = 0;
dt = 0;
firstTime = getTimer();
enemies1 = new Array();
enemies2 = new Array();
enemies3 = new Array();
enemies4 = new Array();
enemies5 = new Array();
enemies6 = new Array();
enemies7 = new Array();
bminesS = new Array();
bspeedupS = new Array();
bbombS = new Array();
bscoreS = new Array();
bspeedownS = new Array();
blifeS = new Array();
bflashS = new Array();
bshieldS = new Array();
fields = new Array();
centerPointx = new Array();
centerPointy = new Array();
treesx = new Array();
treesy = new Array();
trees = new Array();
lines = new Array();
minibombs = new Array();
valueX = new Array();
valueY = new Array();
heros = new Array();
energyScaleIndex = 0;
if (level == 1){
Health = 6;
field1 = new Field1();
field1.x = 320;
field1.y = 240;
addChild(field1);
fields.push(field1.sub1);
centerPointx = [320];
centerPointy = [240];
treesx = [208, 579, 63, 572, 72, 64, 125, 530, 426, 493, 552, 120];
treesy = [29, 102, 189, 169, 284, 350, 385, 293, 445, 445, 414, 320];
energyScale = [0.333, 0.666, 1];
sensorRadius = 100;
SpeedEnemyInit = 60;
if (musicActive){
BGMchannel = soundGame1.play(0, 100);
};
};
if (level == 2){
Health = 6;
field2 = new Field2();
field2.x = 320;
field2.y = 240;
addChild(field2);
fields.push(field2.sub1);
fields.push(field2.sub2);
centerPointx = [100, 420];
centerPointy = [100, 340];
treesx = [220, 40, 40, 367, 335, 62, 113, 173, 310, 370, 430, 585, 585, 585];
treesy = [40, 100, 160, 150, 216, 400, 355, 304, 450, 450, 450, 230, 300, 371];
energyScale = [0.333, 0.666, 1];
sensorRadius = 100;
SpeedEnemyInit = 70;
if (musicActive){
BGMchannel = soundGame2.play(0, 100);
};
};
if (level == 3){
Health = 6;
field3 = new Field3();
field3.x = 320;
field3.y = 240;
addChild(field3);
fields.push(field3.sub1);
centerPointx = [320];
centerPointy = [240];
energyScale = [0.4, 0.4, 1];
sensorRadius = 100;
SpeedEnemyInit = 80;
if (musicActive){
BGMchannel = soundGame3.play(0, 100);
};
};
if (level == 4){
Health = 6;
field4 = new Field4();
field4.x = 320;
field4.y = 240;
addChild(field4);
fields.push(field4.sub1);
fields.push(field4.sub2);
fields.push(field4.sub3);
fields.push(field4.sub4);
fields.push(field4.sub5);
centerPointx = [75, 320, 580, 320, 320];
centerPointy = [240, 70, 240, 445, 240];
treesx = [200, 260, 324, 383, 502, 580, 147, 137, 203, 188, 204, 247, 42, 93, 160, 476, 537, 410];
treesy = [40, 40, 116, 118, 40, 40, 149, 200, 178, 235, 290, 317, 435, 435, 435, 435, 435, 435];
energyScale = [0.333, 0.666, 1];
sensorRadius = 100;
SpeedEnemyInit = 75;
if (musicActive){
BGMchannel = soundGame4.play(0, 100);
};
};
if (level == 5){
Health = 5;
field5 = new Field5();
field5.x = 320;
field5.y = 240;
addChild(field5);
fields.push(field5.sub1);
fields.push(field5.sub2);
fields.push(field5.sub3);
fields.push(field5.sub4);
centerPointx = [145, 490, 145, 490];
centerPointy = [120, 120, 370, 370];
treesx = [268, 203, 38, 461, 568, 568, 568, 242, 357, 242, 357, 45, 43, 108, 367, 442, 0x0202];
treesy = [40, 40, 108, 40, 39, 96, 152, 184, 184, 292, 292, 382, 442, 442, 442, 442, 442];
energyScale = [0.25, 0.5, 0.75, 1];
sensorRadius = 150;
SpeedEnemyInit = 80;
if (musicActive){
BGMchannel = soundGame1.play(0, 100);
};
};
if (level == 6){
Health = 5;
field6 = new Field6();
field6.x = 320;
field6.y = 240;
addChild(field6);
fields.push(field6.sub1);
fields.push(field6.sub2);
fields.push(field6.sub3);
fields.push(field6.sub4);
fields.push(field6.sub5);
centerPointx = [320, 75, 240, 410, 570];
centerPointy = [240, 240, 240, 240, 240];
treesx = [269, 331, 142, 121, 464, 464, 193, 319, 28, 80, 193, 517, 517, 517];
treesy = [42, 42, 96, 147, 99, 148, 324, 395, 435, 435, 435, 310, 373, 430];
energyScale = [0.25, 0.5, 0.75, 1];
sensorRadius = 150;
SpeedEnemyInit = 85;
if (musicActive){
BGMchannel = soundGame2.play(0, 100);
};
};
if (level == 7){
Health = 6;
field3 = new Field3();
field3.x = 320;
field3.y = 240;
addChild(field3);
fields.push(field3.sub1);
centerPointx = [320];
centerPointy = [240];
energyScale = [0.25, 0.5, 0.75, 1];
sensorRadius = 150;
SpeedEnemyInit = 80;
if (musicActive){
BGMchannel = soundGame3.play(0, 100);
};
};
if (level == 8){
Health = 4;
field8 = new Field8();
field8.x = 320;
field8.y = 240;
addChild(field8);
fields.push(field8.sub1);
fields.push(field8.sub2);
fields.push(field8.sub3);
fields.push(field8.sub4);
fields.push(field8.sub5);
fields.push(field8.sub6);
centerPointx = [320, 590, 320, 70, 320, 320];
centerPointy = [40, 240, 440, 300, 170, 290];
treesx = [53, 116, 178, 530, 575, 402, 460, 122, 113, 121, 208, 459, 546, 42, 240, 550];
treesy = [83, 91, 90, 36, 36, 138, 164, 247, 302, 362, 277, 334, 261, 445, 445, 445];
energyScale = [0.25, 0.5, 0.75, 1];
sensorRadius = 150;
SpeedEnemyInit = 90;
if (musicActive){
BGMchannel = soundGame4.play(0, 100);
};
};
if (level == 9){
Health = 4;
field9 = new Field9();
field9.x = 320;
field9.y = 240;
addChild(field9);
fields.push(field9.sub1);
fields.push(field9.sub2);
fields.push(field9.sub3);
fields.push(field9.sub4);
centerPointx = [320, 150, 320, 550];
centerPointy = [240, 240, 240, 240];
treesx = [69, 108, 306, 513, 540, 565, 164, 180, 225, 240, 0xFF, 37, 82, 441, 493, 536];
treesy = [143, 93, 134, 113, 37, 74, 252, 305, 344, 229, 282, 441, 442, 407, 380, 335];
energyScale = [0.2, 0.4, 0.6, 0.8, 1];
sensorRadius = 200;
SpeedEnemyInit = 95;
if (musicActive){
BGMchannel = soundGame1.play(0, 100);
};
};
if (level == 10){
Health = 3;
field10 = new Field10();
field10.x = 320;
field10.y = 240;
addChild(field10);
fields.push(field10.sub1);
fields.push(field10.sub2);
fields.push(field10.sub3);
fields.push(field10.sub4);
fields.push(field10.sub5);
fields.push(field10.sub6);
fields.push(field10.sub7);
fields.push(field10.sub8);
fields.push(field10.sub9);
centerPointx = [320, 0, 330, 640, 490, 640, 300, 0, 130];
centerPointy = [240, 0, 110, 0, 270, 480, 360, 480, 220];
treesx = [222, 220, 408, 416, 464, 507, 566, 35, 85, 39, 202, 199, 390, 380, 437, 570];
treesy = [72, 125, 98, 149, 180, 183, 27, 294, 294, 451, 337, 384, 397, 348, 343, 444];
energyScale = [0.2, 0.4, 0.6, 0.8, 1];
sensorRadius = 200;
SpeedEnemyInit = 100;
if (musicActive){
BGMchannel = soundGame2.play(0, 100);
};
};
if (level == 11){
Health = 3;
field3 = new Field3();
field3.x = 320;
field3.y = 240;
addChild(field3);
fields.push(field3.sub1);
centerPointx = [320];
centerPointy = [240];
energyScale = [0.2, 0.4, 0.6, 0.8, 1];
sensorRadius = 200;
SpeedEnemyInit = 80;
if (musicActive){
BGMchannel = soundGame3.play(0, 100);
};
};
if (level == 12){
Health = 2;
field12 = new Field12();
field12.x = 320;
field12.y = 240;
addChild(field12);
fields.push(field12.sub1);
fields.push(field12.sub2);
fields.push(field12.sub3);
fields.push(field12.sub4);
fields.push(field12.sub5);
fields.push(field12.sub6);
centerPointx = [150, 500, 640, 320, 0, 320];
centerPointy = [150, 150, 480, 360, 480, 240];
treesx = [30, 25, 72, 145, 83, 273, 330, 301, 309, 270, 328, 414, 460, 474, 509, 550];
treesy = [441, 271, 297, 304, 209, 44, 46, 99, 163, 223, 223, 355, 304, 352, 311, 126];
energyScale = [0.2, 0.4, 0.6, 0.8, 1];
sensorRadius = 200;
SpeedEnemyInit = 110;
if (musicActive){
BGMchannel = soundGame1.play(0, 100);
};
};
if (level == 14){
Health = 3;
field14 = new Field14();
field14.x = 320;
field14.y = 240;
addChild(field14);
fields.push(field14.sub1);
centerPointx = [320];
centerPointy = [240];
energyScale = [0.4, 0.6, 0.8, 0.2, 0.4, 0.6, 0.8, 0.2, 0.4, 0.6, 0.8, 1];
sensorRadius = 200;
SpeedEnemyInit = 80;
if (musicActive){
BGMchannel = soundGame3.play(0, 100);
};
};
if ((((((((level == 3)) || ((level == 7)))) || ((level == 11)))) || ((level == 14)))){
} else {
_local5 = 0;
while (_local5 < treesx.length) {
tree = new TRee();
tree.x = treesx[_local5];
tree.y = treesy[_local5];
_local6 = ((Math.random() * 0.3) + 0.8);
tree.gotoAndStop(Math.round(((Math.random() * 5) + 1)));
tree.id = tree.currentFrame;
addChild(tree);
tree.xtemp = treesx[_local5];
tree.ytemp = treesy[_local5];
trees.push(tree);
_local5++;
};
};
var _local1 = 1;
while (_local1 < 4) {
hero = new Hero();
addChild(hero);
hero.x = mouseX;
hero.y = mouseY;
hero.scaleX = 0;
hero.scaleY = 0;
heros.push(hero);
_local1++;
};
var _local2:Number = (heros.length - 1);
var _local3:int;
while (_local3 < ((_local2 * 3) + 1)) {
valueX[_local3] = heros[0].x;
valueY[_local3] = heros[0].y;
_local3++;
};
heroIndex = getChildIndex(heros[0]);
bar = new Bar();
addChild(bar);
barIndex = getChildIndex(bar);
bar.x = 621.5;
bar.y = 450;
bar.HealthBar.gotoAndStop(Health);
skor = 0;
bar.scoreTxt.text = String(skor);
if ((((((((level == 3)) || ((level == 7)))) || ((level == 11)))) || ((level == 14)))){
bar.warning.visible = false;
bar.warning2.visible = false;
} else {
bar.warning.gotoAndStop(heroLevel);
bar.warning2.gotoAndStop(heroLevel);
};
energy = new Energy();
addChild(energy);
energy.x = 621.5;
energy.y = 450;
if ((((((((level == 3)) || ((level == 7)))) || ((level == 11)))) || ((level == 14)))){
energy.scaleY = 0.98;
} else {
energy.scaleY = 0;
};
var _local4 = 1;
while (_local4 < energyScale.length) {
line = new Line();
line.x = 621.5;
line.y = (199 + int(((250 / energyScale.length) * _local4)));
addChild(line);
if (_local4 == 1){
line.gotoAndStop(2);
};
lines.push(line);
_local4++;
};
if (level == 1){
firstInfo = true;
};
firstInfoPause = false;
energyMask = new EnergyMask();
addChild(energyMask);
energyMask.x = 621.5;
energyMask.y = 450;
energy.mask = energyMask;
displayPause = new DisplayPause();
addChild(displayPause);
displayPause.x = 300;
displayPause.y = 240;
displayPause.visible = false;
speedEnemy = SpeedEnemyInit;
nextEnemy1 = 0;
nextEnemy2 = 0;
nextEnemy3 = 0;
nextEnemy4 = 0;
nextEnemy5 = 0;
nextEnemy6 = 0;
nextEnemy7 = 0;
inextEnemy1 = 1;
inextEnemy2 = 1;
inextEnemy3 = 1;
inextEnemy4 = 1;
inextEnemy5 = 1;
inextEnemy6 = 1;
inextEnemy7 = 1;
enemyExist1 = 0;
enemyExist2 = 0;
enemyExist3 = 0;
enemyExist4 = 0;
enemyExist5 = 0;
enemyExist6 = 0;
enemyExist7 = 0;
if ((((((((level == 3)) || ((level == 7)))) || ((level == 11)))) || ((level == 14)))){
enemyExistMax1 = 0;
enemyExistMax2 = 0;
} else {
enemyExistMax1 = 3;
enemyExistMax2 = 3;
};
enemyExistMax3 = null;
enemyExistMax4 = null;
enemyExistMax5 = null;
enemyExistMax6 = null;
soundHit = new SoundHit();
soundTree = new SoundTree();
soundCow = new SoundCow();
soundSheep = new SoundSheep();
soundFlash = new SoundFlash();
soundHealth = new SoundHealth();
soundShield = new SoundShield();
soundBomb = new SoundBomb();
soundSpeedup = new SoundSpeedup();
soundMines = new SoundMines();
soundGet2 = new SoundGet2();
soundSpeeddown = new SoundSpeeddown();
soundLostenergy = new SoundLostenergy();
if (musicActive == false){
bar.musicBtn.gotoAndStop(2);
};
if (sfxActive == false){
bar.sfxBtn.gotoAndStop(2);
};
addEventListener(Event.ENTER_FRAME, enterFrame);
stage.addEventListener(MouseEvent.CLICK, useBomb);
stage.addEventListener(MouseEvent.CLICK, hint);
stage.addEventListener(MouseEvent.MOUSE_UP, stopShoot);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
displayPause.yesBtn.addEventListener(MouseEvent.CLICK, yesBtnf);
displayPause.noBtn.addEventListener(MouseEvent.CLICK, noBtnf);
lastTime = getTimer();
}
public function wq(_arg1:MouseEvent){
if (!DataSkor.data.pemain){
DataSkor.data.pemain = new Array();
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.data.pemain.push({skornya:0, namanya:"None"});
DataSkor.flush();
};
bonusBtn.removeEventListener(MouseEvent.ROLL_OUT, bonusBtnf2);
gotoAndStop("scores");
}
public function noBtnff(_arg1:MouseEvent){
if (displayWarning.visible){
displayWarning.visible = false;
};
}
public function noBtnf(_arg1:MouseEvent){
var _local2:int = (enemies1.length - 1);
while (_local2 >= 0) {
enemies1[_local2].lastTime = getTimer();
_local2--;
};
var _local3:int = (enemies2.length - 1);
while (_local3 >= 0) {
enemies2[_local3].lastTime = getTimer();
_local3--;
};
var _local4:int = (enemies3.length - 1);
while (_local4 >= 0) {
enemies3[_local4].lastTime = getTimer();
_local4--;
};
var _local5:int = (enemies4.length - 1);
while (_local5 >= 0) {
enemies4[_local5].lastTime = getTimer();
_local5--;
};
var _local6:int = (enemies5.length - 1);
while (_local6 >= 0) {
enemies5[_local6].lastTime = getTimer();
_local6--;
};
lastTime = getTimer();
pausegame = false;
displayPause.visible = false;
}
public function nameMcf(_arg1:MouseEvent){
if (nameMc.visible){
if (musicActive){
BGMchannel = soundMenu.play(0, 100);
};
nama = nameMc.name_txt.text;
simpanScore(Jumlahduit, nama);
gotoAndStop("scores");
};
}
public function bonusBtnf1(_arg1:MouseEvent){
if (unlock){
} else {
displayBonus.visible = true;
};
}
public function bonusBtnf2(_arg1:MouseEvent){
if (unlock){
} else {
displayBonus.visible = false;
};
}
public function reversed_domain_parts(_arg1:String):Array{
var _local2:Array = _arg1.split(".");
_local2.reverse();
return (_local2);
}
public function nextBtnf(_arg1:MouseEvent){
if (nameMc.visible){
} else {
if (level == 15){
if (musicActive){
BGMchannel = soundMenu.play(0, 100);
};
gotoAndStop("menu");
} else {
gotoAndStop("preplay");
};
};
}
public function removeBspeedup(_arg1:Bspeedup){
var _local2:*;
for (_local2 in bspeedupS) {
if (bspeedupS[_local2] == _arg1){
bspeedupS.splice(_local2, 1);
break;
};
};
}
public function removeEnemy1(_arg1:Enemy1){
var _local2:*;
for (_local2 in enemies1) {
if (enemies1[_local2] == _arg1){
enemies1.splice(_local2, 1);
break;
};
};
}
public function removeEnemy5(_arg1:Enemy5){
var _local2:*;
for (_local2 in enemies5) {
if (enemies5[_local2] == _arg1){
enemies5.splice(_local2, 1);
break;
};
};
}
public function removeEnemy7(_arg1:Enemy7){
var _local2:*;
for (_local2 in enemies7) {
if (enemies7[_local2] == _arg1){
enemies7.splice(_local2, 1);
break;
};
};
}
public function removeEnemy4(_arg1:Enemy4){
var _local2:*;
for (_local2 in enemies4) {
if (enemies4[_local2] == _arg1){
enemies4.splice(_local2, 1);
break;
};
};
}
public function addMiniBomb(){
miniBomb = new MiniBomb();
miniBomb.x = heros[0].x;
miniBomb.y = heros[0].y;
addChild(miniBomb);
minibombs.push(miniBomb);
setChildIndex(miniBomb, heroIndex);
}
public function removeEnemy2(_arg1:Enemy2){
var _local2:*;
for (_local2 in enemies2) {
if (enemies2[_local2] == _arg1){
enemies2.splice(_local2, 1);
break;
};
};
}
public function removeEnemy3(_arg1:Enemy3){
var _local2:*;
for (_local2 in enemies3) {
if (enemies3[_local2] == _arg1){
enemies3.splice(_local2, 1);
break;
};
};
}
public function endGame(){
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local15:int;
var _local16:int;
var _local17:int;
var _local18:int;
var _local19:int;
var _local20:int;
var _local21:int;
BGMchannel.stop();
removeEventListener(Event.ENTER_FRAME, enterFrame);
stage.removeEventListener(MouseEvent.CLICK, useBomb);
stage.removeEventListener(MouseEvent.CLICK, hint);
stage.removeEventListener(MouseEvent.MOUSE_UP, stopShoot);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownFunction);
displayPause.yesBtn.removeEventListener(MouseEvent.CLICK, yesBtnf);
removeChild(displayPause);
pausegame = false;
displayPause = null;
removeChild(bar);
bar = null;
removeChild(energy);
energy = null;
removeChild(energyMask);
energyMask = null;
var _local1:int;
while (_local1 < lines.length) {
removeChild(lines[_local1]);
lines[_local1] = null;
_local1++;
};
switch (level){
case 1:
removeChild(field1);
field1 = null;
break;
case 2:
removeChild(field2);
field2 = null;
break;
case 3:
removeChild(field3);
field3 = null;
break;
case 4:
removeChild(field4);
field4 = null;
break;
case 5:
removeChild(field5);
field5 = null;
break;
case 6:
removeChild(field6);
field6 = null;
break;
case 7:
removeChild(field3);
field3 = null;
break;
case 8:
removeChild(field8);
field8 = null;
break;
case 9:
removeChild(field9);
field9 = null;
break;
case 10:
removeChild(field10);
field10 = null;
break;
case 11:
removeChild(field3);
field3 = null;
break;
case 12:
removeChild(field12);
field12 = null;
break;
case 14:
removeChild(field14);
field14 = null;
break;
};
var _local2:int = (trees.length - 1);
while (_local2 >= 0) {
trees[_local6].deleteTree();
_local2--;
};
var _local3:int;
while (_local3 < heros.length) {
removeChild(heros[_local3]);
heros[_local3] = null;
_local3++;
};
if (endStatus == 1){
if (level < 13){
_local4 = 1;
while (_local4 < 13) {
if (level == _local4){
if (skor > duit[(_local4 - 1)]){
duit[(_local4 - 1)] = skor;
};
break;
};
_local4++;
};
Jumlahduit = 0;
_local5 = 1;
while (_local5 < 13) {
if (level == _local5){
Jumlahduit = (Jumlahduit + skor);
} else {
Jumlahduit = (Jumlahduit + duit[(_local5 - 1)]);
};
_local5++;
};
trace(Jumlahduit);
};
if ((((level < 12)) && ((level == levelReached)))){
levelReached++;
trace(("rach " + levelReached));
};
if (level == 14){
Jumlahduit = skor;
if (skor > bestSkor){
bestSkor = skor;
myData.data.infbonusskor = bestSkor;
};
masuqBonus = 7302524082;
myData.data.infmasuqBonus = masuqBonus;
myData.flush();
} else {
masuq = 730252408;
myData.data.infmasuq = masuq;
myData.data.inflevel = levelReached;
myData.data.infduit = duit;
myData.flush();
};
level++;
gotoAndStop("submit");
};
if (endStatus == 2){
_local6 = (bminesS.length - 1);
while (_local6 >= 0) {
bminesS[_local6].deleteBmines();
_local6--;
};
_local7 = (bbombS.length - 1);
while (_local7 >= 0) {
bbombS[_local7].deleteBbomb();
_local7--;
};
_local8 = (bscoreS.length - 1);
while (_local8 >= 0) {
bscoreS[_local8].deleteBscore();
_local8--;
};
_local9 = (bspeedownS.length - 1);
while (_local9 >= 0) {
bspeedownS[_local9].deleteBspeedown();
_local9--;
};
_local10 = (blifeS.length - 1);
while (_local10 >= 0) {
blifeS[_local10].deleteBlife();
_local10--;
};
_local11 = (bflashS.length - 1);
while (_local11 >= 0) {
bflashS[_local11].deleteBflash();
_local11--;
};
_local12 = (bshieldS.length - 1);
while (_local12 >= 0) {
bshieldS[_local12].deleteBshield();
_local12--;
};
_local13 = (bspeedupS.length - 1);
while (_local13 >= 0) {
bspeedupS[_local13].deleteBspeedup();
_local13--;
};
_local14 = (enemies1.length - 1);
while (_local14 >= 0) {
enemies1[_local14].deleteEnemy1();
_local14--;
};
_local15 = (enemies2.length - 1);
while (_local15 >= 0) {
enemies2[_local15].deleteEnemy2();
_local15--;
};
_local16 = (enemies3.length - 1);
while (_local16 >= 0) {
enemies3[_local16].deleteEnemy3();
_local16--;
};
_local17 = (enemies4.length - 1);
while (_local17 >= 0) {
enemies4[_local17].deleteEnemy4();
_local17--;
};
_local18 = (enemies5.length - 1);
while (_local18 >= 0) {
enemies5[_local18].deleteEnemy5();
_local18--;
};
_local19 = (enemies6.length - 1);
while (_local19 >= 0) {
enemies6[_local19].deleteEnemy6();
_local19--;
};
_local20 = (enemies7.length - 1);
while (_local20 >= 0) {
enemies7[_local20].deleteEnemy7();
_local20--;
};
_local21 = (minibombs.length - 1);
while (_local21 >= 0) {
minibombs[_local21].deleteMiniBomb();
_local21--;
};
minibombs = null;
bminesS = null;
bspeedupS = null;
bbombS = null;
bscoreS = null;
bspeedownS = null;
blifeS = null;
bflashS = null;
bshieldS = null;
enemies1 = null;
enemies2 = null;
enemies3 = null;
enemies4 = null;
enemies5 = null;
enemies6 = null;
enemies7 = null;
if (level == 14){
Jumlahduit = skor;
if (skor > bestSkor){
bestSkor = skor;
myData.data.infbonusskor = bestSkor;
};
masuqBonus = 7302524082;
myData.data.infmasuqBonus = masuqBonus;
myData.flush();
level++;
gotoAndStop("submit");
} else {
if (musicActive){
BGMchannel = soundMenu.play(0, 100);
};
gotoAndStop("menu");
};
};
}
public function newBonusScore(){
bscore = new Bscore();
bscore.x = (Math.floor((Math.random() * 500)) + 50);
bscore.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bscore);
bscoreS.push(bscore);
}
public function callLink(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.keygames.com/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch");
navigateToURL(_local2, "_blank");
}
public function newBonusMines(){
bmines = new Bmines();
bmines.x = (Math.floor((Math.random() * 500)) + 50);
bmines.y = (Math.floor((Math.random() * 400)) + 40);
addChild(bmines);
bminesS.push(bmines);
}
public function removeEnemy6(_arg1:Enemy6){
var _local2:*;
for (_local2 in enemies6) {
if (enemies6[_local2] == _arg1){
enemies6.splice(_local2, 1);
break;
};
};
}
public function displayBonus2f(_arg1:MouseEvent){
getURL("http://files.happytree.com/games/tornadoranch/?utm_source=games&utm_medium=exclusives&utm_campaign=tornadoranch", "_blank");
}
public function addExplotion(_arg1, _arg2, _arg3:Number){
if ((((((_arg3 == 1)) || ((_arg3 == 2)))) || ((_arg3 == 3)))){
explodeTree = new ExplodeTree();
explodeTree.x = _arg1;
explodeTree.y = _arg2;
addChild(explodeTree);
};
if (_arg3 == 4){
explodeHouse = new ExplodeHouse();
explodeHouse.x = _arg1;
explodeHouse.y = _arg2;
addChild(explodeHouse);
};
if (_arg3 == 5){
explodeSheep = new ExplodeSheep();
explodeSheep.x = _arg1;
explodeSheep.y = _arg2;
addChild(explodeSheep);
};
if (_arg3 == 6){
explodeCow = new ExplodeCow();
explodeCow.x = _arg1;
explodeCow.y = _arg2;
addChild(explodeCow);
};
}
public function clickPlayBtn(_arg1:MouseEvent){
bonusBtn.removeEventListener(MouseEvent.ROLL_OUT, bonusBtnf2);
if (masuq == 730252408){
levelReached = myData.data.inflevel;
duit = myData.data.infduit;
} else {
levelReached = 1;
duit = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
};
gotoAndStop("levelSelect");
}
}
}//package
Section 105
//TRee (TRee)
package {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.utils.*;
public class TRee extends MovieClip {
public var xtemp;
public var ytemp;
public var shake;
public var hit:Boolean;
public var id:Number;
public function TRee(){
addFrameScript(0, frame1);
shake = false;
hit = true;
addEventListener(Event.ENTER_FRAME, moveTree);
}
public function deleteTree(){
if (((MovieClip(parent).sfxActive) && ((MovieClip(parent).endStatus == 0)))){
if (id < 5){
MovieClip(parent).SFXchannel = MovieClip(parent).soundTree.play();
};
if (id == 5){
MovieClip(parent).SFXchannel = MovieClip(parent).soundSheep.play();
};
if (id == 6){
MovieClip(parent).SFXchannel = MovieClip(parent).soundCow.play();
};
};
if ((((((MovieClip(parent).level == 3)) || ((MovieClip(parent).level == 11)))) || ((MovieClip(parent).level == 14)))){
MovieClip(parent).enemyExist1--;
};
MovieClip(parent).removeTree(this);
parent.removeChild(this);
removeEventListener(Event.ENTER_FRAME, moveTree);
}
function frame1(){
stop();
}
public function moveTree(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:int;
if (MovieClip(parent).pausegame){
} else {
if (shake){
this.x = (xtemp + (Math.random() * 5));
this.y = (ytemp + (Math.random() * 5));
} else {
this.x = xtemp;
this.y = ytemp;
};
shake = false;
if (hit){
if (((this.hitTestPoint(MovieClip(parent).heros[0].x, MovieClip(parent).heros[0].y, true)) && (MovieClip(parent).liveHero))){
shake = true;
if (MovieClip(parent).energyScaleIndex == (MovieClip(parent).energyScale.length - 1)){
MovieClip(parent).addExplotion(this.x, this.y, id);
MovieClip(parent).addScore(this.x, (this.y - 20), 3);
MovieClip(parent).skor = (MovieClip(parent).skor + 300);
MovieClip(parent).treeDuit = (MovieClip(parent).treeDuit + 300);
deleteTree();
hit = false;
};
};
};
if (hit){
_local2 = (MovieClip(parent).enemies1.length - 1);
while (_local2 >= 0) {
if (((MovieClip(parent).enemies1[_local2].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies1[_local2].live))){
shake = true;
break;
};
_local2--;
};
};
if (hit){
_local3 = (MovieClip(parent).enemies2.length - 1);
while (_local3 >= 0) {
if (((MovieClip(parent).enemies2[_local3].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies2[_local3].live))){
shake = true;
break;
};
_local3--;
};
};
if (hit){
_local4 = (MovieClip(parent).enemies3.length - 1);
while (_local4 >= 0) {
if (((MovieClip(parent).enemies3[_local4].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies3[_local4].live))){
shake = true;
break;
};
_local4--;
};
};
if (hit){
_local5 = (MovieClip(parent).enemies4.length - 1);
while (_local5 >= 0) {
if (((MovieClip(parent).enemies4[_local5].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies4[_local5].live))){
shake = true;
break;
};
_local5--;
};
};
if (hit){
_local6 = (MovieClip(parent).enemies5.length - 1);
while (_local6 >= 0) {
if (((MovieClip(parent).enemies5[_local6].hitTestPoint(this.x, this.y, true)) && (MovieClip(parent).enemies5[_local6].live))){
shake = true;
break;
};
_local6--;
};
};
};
}
public function deleteTreeGameOver(){
removeEventListener(Event.ENTER_FRAME, moveTree);
}
}
}//package
Section 106
//TreeWarning (TreeWarning)
package {
import flash.display.*;
public dynamic class TreeWarning extends MovieClip {
public function TreeWarning(){
addFrameScript(272, frame273);
}
function frame273(){
stop();
parent.removeChild(this);
}
}
}//package
Section 107
//WinMc (WinMc)
package {
import flash.display.*;
public dynamic class WinMc extends MovieClip {
public function WinMc(){
addFrameScript(102, frame103);
}
function frame103(){
stop();
parent.removeChild(this);
}
}
}//package