Section 1
//fairybody_10 (66_fla.fairybody_10)
package 66_fla {
import flash.display.*;
public dynamic class fairybody_10 extends MovieClip {
public function fairybody_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 2
//finalclock_160 (66_fla.finalclock_160)
package 66_fla {
import flash.display.*;
public dynamic class finalclock_160 extends MovieClip {
public var clockHand:MovieClip;
}
}//package 66_fla
Section 3
//lipsanimation_21 (66_fla.lipsanimation_21)
package 66_fla {
import flash.display.*;
public dynamic class lipsanimation_21 extends MovieClip {
public function lipsanimation_21(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package 66_fla
Section 4
//logoanimationmain_5 (66_fla.logoanimationmain_5)
package 66_fla {
import flash.display.*;
public dynamic class logoanimationmain_5 extends MovieClip {
public var linkBtn:SimpleButton;
public function logoanimationmain_5(){
addFrameScript(55, frame56);
}
function frame56(){
stop();
}
}
}//package 66_fla
Section 5
//Mc_4color_bucket_anim_209 (66_fla.Mc_4color_bucket_anim_209)
package 66_fla {
import flash.display.*;
public dynamic class Mc_4color_bucket_anim_209 extends MovieClip {
public var paint1:MovieClip;
public function Mc_4color_bucket_anim_209(){
addFrameScript(0, frame1, 4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
}
function frame5(){
stop();
this.paint1.gotoAndPlay(2);
}
}
}//package 66_fla
Section 6
//Mc_4color_bucket_animcopy1_388 (66_fla.Mc_4color_bucket_animcopy1_388)
package 66_fla {
import flash.display.*;
public dynamic class Mc_4color_bucket_animcopy1_388 extends MovieClip {
public var paint1:MovieClip;
public function Mc_4color_bucket_animcopy1_388(){
addFrameScript(0, frame1, 4, frame5, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame5(){
stop();
this.paint1.gotoAndPlay(2);
this.buttonMode = true;
}
}
}//package 66_fla
Section 7
//Mc_4color_buket_210 (66_fla.Mc_4color_buket_210)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_4color_buket_210 extends MovieClip {
public var greenPaint:MovieClip;
public var bluePaint:MovieClip;
public var brush2:MovieClip;
public var brush1:MovieClip;
public var brush3:MovieClip;
public var yellowPaint:MovieClip;
public var brush4:MovieClip;
public var redPaint:MovieClip;
public function Mc_4color_buket_210(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).tuto.inst.text = "Select your desired color to color the See-Saw.";
};
};
if (this.parent.parent != null){
if ((this.parent.parent is FenceScreen)){
(this.parent.parent as FenceScreen).tuto.inst.text = "Select your desired color to color the Fence.";
};
};
if (this.parent.parent != null){
if ((this.parent.parent is HouseScreen)){
(this.parent.parent as HouseScreen).tuto.inst.text = "Now color the house with your desired color from the bucket";
};
};
}
}
}//package 66_fla
Section 8
//Mc_arrow_181 (66_fla.Mc_arrow_181)
package 66_fla {
import flash.display.*;
public dynamic class Mc_arrow_181 extends MovieClip {
public var hitArea1:MovieClip;
public var hitArea2:MovieClip;
public var hitArea3:MovieClip;
}
}//package 66_fla
Section 9
//Mc_balon_text_129 (66_fla.Mc_balon_text_129)
package 66_fla {
import flash.display.*;
public dynamic class Mc_balon_text_129 extends MovieClip {
public function Mc_balon_text_129(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package 66_fla
Section 10
//Mc_balon_text_2_136 (66_fla.Mc_balon_text_2_136)
package 66_fla {
import flash.display.*;
public dynamic class Mc_balon_text_2_136 extends MovieClip {
public function Mc_balon_text_2_136(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package 66_fla
Section 11
//Mc_balon_text_3_138 (66_fla.Mc_balon_text_3_138)
package 66_fla {
import flash.display.*;
public dynamic class Mc_balon_text_3_138 extends MovieClip {
public function Mc_balon_text_3_138(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package 66_fla
Section 12
//Mc_balon_text_4_139 (66_fla.Mc_balon_text_4_139)
package 66_fla {
import flash.display.*;
public dynamic class Mc_balon_text_4_139 extends MovieClip {
public function Mc_balon_text_4_139(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package 66_fla
Section 13
//Mc_bg_for_6_level_152 (66_fla.Mc_bg_for_6_level_152)
package 66_fla {
import flash.display.*;
public dynamic class Mc_bg_for_6_level_152 extends MovieClip {
public function Mc_bg_for_6_level_152(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 14
//Mc_cement_masition_227 (66_fla.Mc_cement_masition_227)
package 66_fla {
import flash.display.*;
public dynamic class Mc_cement_masition_227 extends MovieClip {
public var cement:MovieClip;
public function Mc_cement_masition_227(){
addFrameScript(0, frame1, 18, frame19);
}
function frame1(){
stop();
}
function frame19(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is FountainScreen)){
(this.parent.parent as FountainScreen).nextDig();
};
};
}
}
}//package 66_fla
Section 15
//Mc_cement_masition2_244 (66_fla.Mc_cement_masition2_244)
package 66_fla {
import flash.display.*;
public dynamic class Mc_cement_masition2_244 extends MovieClip {
public var wheel1:MovieClip;
public var wheel2:MovieClip;
public function Mc_cement_masition2_244(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package 66_fla
Section 16
//Mc_cement_masition2copy_240 (66_fla.Mc_cement_masition2copy_240)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_cement_masition2copy_240 extends MovieClip {
public var wheel1:MovieClip;
public var wheel2:MovieClip;
public function Mc_cement_masition2copy_240(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is PoolScreen)){
(this.parent.parent as PoolScreen).tuto.inst.text = "Click again on cement machine to get back to its place.";
};
};
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 17
//Mc_cement_tween_366 (66_fla.Mc_cement_tween_366)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_cement_tween_366 extends MovieClip {
public var wheel1:MovieClip;
public var wheel2:MovieClip;
public var cement:MovieClip;
public function Mc_cement_tween_366(){
addFrameScript(14, frame15, 15, frame16, 16, frame17, 20, frame21, 29, frame30, 73, frame74, 79, frame80, 80, frame81, 93, frame94);
}
function frame74(){
if (this.wheel1 != null){
this.wheel1.gotoAndStop(1);
};
if (this.wheel2 != null){
this.wheel2.gotoAndStop(1);
};
}
function frame80(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextDig();
(this.parent as FountainScreen).tuto.inst.text = "click on machine again to replace it.";
};
};
this.cement.wheel1.gotoAndStop(1);
this.cement.wheel2.gotoAndStop(1);
}
function frame81(){
if (this.cement != null){
this.cement.wheel1.gotoAndPlay(2);
this.cement.wheel2.gotoAndPlay(2);
};
}
function frame94(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextStep();
(this.parent as FountainScreen).tuto.inst.text = "Now select Fountain from the panel";
};
};
}
function frame15(){
stop();
if (this.cement != null){
this.cement.mouseChildren = false;
};
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextStep();
(this.parent as FountainScreen).ready = 1;
(this.parent as FountainScreen).tuto.inst.text = "Click Cement machine to pour cement into the hole";
};
};
if (this.cement.wheel1 != null){
this.cement.wheel1.gotoAndStop(1);
};
if (this.cement.wheel2 != null){
this.cement.wheel2.gotoAndStop(1);
};
}
function frame16(){
if (this.wheel1 != null){
this.wheel1.gotoAndStop(1);
};
if (this.wheel2 != null){
this.wheel2.gotoAndStop(1);
};
}
function frame17(){
if (this.wheel1 != null){
this.wheel1.gotoAndStop(1);
};
if (this.wheel2 != null){
this.wheel2.gotoAndStop(1);
};
}
function frame21(){
if (this.wheel1 != null){
this.wheel1.gotoAndStop(1);
};
if (this.wheel2 != null){
this.wheel2.gotoAndStop(1);
};
}
function frame30(){
if (this.wheel1 != null){
this.wheel1.gotoAndStop(1);
};
if (this.wheel2 != null){
this.wheel2.gotoAndStop(1);
};
}
}
}//package 66_fla
Section 18
//Mc_cemet_for_pool_239 (66_fla.Mc_cemet_for_pool_239)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_cemet_for_pool_239 extends MovieClip {
public var wheel1:MovieClip;
public var wheel2:MovieClip;
public var cement:MovieClip;
public function Mc_cemet_for_pool_239(){
addFrameScript(0, frame1, 27, frame28, 28, frame29, 31, frame32, 116, frame117, 122, frame123, 149, frame150);
}
function frame1(){
if (this.cement != null){
this.cement.buttonMode = true;
};
}
function frame29(){
this.wheel1.gotoAndStop(1);
this.wheel2.gotoAndStop(1);
}
function frame117(){
}
function frame28(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextStep();
(this.parent as PoolScreen).ready = 1;
(this.parent as PoolScreen).tuto.inst.text = "Click Cement machine to pour cement into the hole.";
};
};
this.cement.wheel1.gotoAndStop(1);
this.cement.wheel2.gotoAndStop(1);
}
function frame123(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextDig();
(this.parent as PoolScreen).tuto.inst.text = "Click on cement machine again to replace it.";
};
};
this.cement.wheel1.gotoAndStop(1);
this.cement.wheel2.gotoAndStop(1);
}
function frame32(){
this.wheel1.gotoAndStop(1);
this.wheel2.gotoAndStop(1);
}
function frame150(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextStep();
(this.parent as PoolScreen).tuto.inst.text = "Select bricks from the panel.";
(this.parent as PoolScreen).btBrick.buttonMode = true;
};
};
}
}
}//package 66_fla
Section 19
//Mc_coloring_brush_314 (66_fla.Mc_coloring_brush_314)
package 66_fla {
import flash.display.*;
public dynamic class Mc_coloring_brush_314 extends MovieClip {
public function Mc_coloring_brush_314(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 20
//Mc_favda_178 (66_fla.Mc_favda_178)
package 66_fla {
import flash.display.*;
public dynamic class Mc_favda_178 extends MovieClip {
public var hitSpade:MovieClip;
}
}//package 66_fla
Section 21
//Mc_favda2_235 (66_fla.Mc_favda2_235)
package 66_fla {
import flash.display.*;
public dynamic class Mc_favda2_235 extends MovieClip {
public var hitSpade:MovieClip;
}
}//package 66_fla
Section 22
//Mc_feces_animation_11_402 (66_fla.Mc_feces_animation_11_402)
package 66_fla {
import flash.display.*;
public dynamic class Mc_feces_animation_11_402 extends MovieClip {
public function Mc_feces_animation_11_402(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 23
//Mc_fointan_11_445 (66_fla.Mc_fointan_11_445)
package 66_fla {
import flash.display.*;
public dynamic class Mc_fointan_11_445 extends MovieClip {
public function Mc_fointan_11_445(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 24
//Mc_fontain_fixing_367 (66_fla.Mc_fontain_fixing_367)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_fontain_fixing_367 extends MovieClip {
public var hitFountain:MovieClip;
public var part2:MovieClip;
public var part3:MovieClip;
public var part1:MovieClip;
public var hitPart2:MovieClip;
public var hitPart3:MovieClip;
public var hitPart1:MovieClip;
public function Mc_fontain_fixing_367(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
this.buttonMode = false;
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).done.visible = true;
(this.parent as FountainScreen).tuto.inst.text = "Good! Now click on done button";
};
};
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 25
//Mc_grass_cutter_267 (66_fla.Mc_grass_cutter_267)
package 66_fla {
import flash.display.*;
public dynamic class Mc_grass_cutter_267 extends MovieClip {
public var cutter1:MovieClip;
public function Mc_grass_cutter_267(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 26
//Mc_hatodi_196 (66_fla.Mc_hatodi_196)
package 66_fla {
import flash.display.*;
public dynamic class Mc_hatodi_196 extends MovieClip {
public var hitHammer:MovieClip;
}
}//package 66_fla
Section 27
//Mc_hatodi_house_305 (66_fla.Mc_hatodi_house_305)
package 66_fla {
import flash.display.*;
public dynamic class Mc_hatodi_house_305 extends MovieClip {
public function Mc_hatodi_house_305(){
addFrameScript(0, frame1, 7, frame8);
}
function frame1(){
stop();
}
function frame8(){
if (this.parent != null){
if ((this.parent is HouseScreen)){
(this.parent as HouseScreen).Hammering();
};
};
HouseScreen.counter1++;
this.gotoAndStop(1);
}
}
}//package 66_fla
Section 28
//Mc_heart_163 (66_fla.Mc_heart_163)
package 66_fla {
import flash.display.*;
public dynamic class Mc_heart_163 extends MovieClip {
public function Mc_heart_163(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
stop();
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 29
//Mc_house_2_frame_secound77_428 (66_fla.Mc_house_2_frame_secound77_428)
package 66_fla {
import flash.display.*;
public dynamic class Mc_house_2_frame_secound77_428 extends MovieClip {
public var wall:MovieClip;
}
}//package 66_fla
Section 30
//Mc_house_animation_11_418 (66_fla.Mc_house_animation_11_418)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_house_animation_11_418 extends MovieClip {
public var house1:MovieClip;
public function Mc_house_animation_11_418(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
if (HouseScreen.redColor1){
if (this.house1.wall != null){
this.house1.wall.gotoAndStop(1);
};
} else {
if (HouseScreen.blueColor1){
if (this.house1.wall != null){
this.house1.wall.gotoAndStop(3);
};
} else {
if (HouseScreen.yellowColor1){
if (this.house1.wall != null){
this.house1.wall.gotoAndStop(2);
};
} else {
if (HouseScreen.greenColor1){
if (this.house1.wall != null){
this.house1.wall.gotoAndStop(4);
};
};
};
};
};
}
}
}//package 66_fla
Section 31
//Mc_house_color_2_977_429 (66_fla.Mc_house_color_2_977_429)
package 66_fla {
import flash.display.*;
public dynamic class Mc_house_color_2_977_429 extends MovieClip {
public function Mc_house_color_2_977_429(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 32
//Mc_khadda_2_180 (66_fla.Mc_khadda_2_180)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_khadda_2_180 extends MovieClip {
public var spade:MovieClip;
public var arr:MovieClip;
public function Mc_khadda_2_180(){
addFrameScript(0, frame1, 13, frame14, 24, frame25, 36, frame37, 44, frame45, 60, frame61);
}
function frame14(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame1(){
stop();
}
function frame25(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame37(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame45(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame61(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextStep();
(this.parent as SeasawScreen).btBase.buttonMode = true;
(this.parent as SeasawScreen).tuto.inst.text = "Select hammer from the panel.";
};
};
}
}
}//package 66_fla
Section 33
//Mc_khadda_364 (66_fla.Mc_khadda_364)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_khadda_364 extends MovieClip {
public var favda:MovieClip;
public var arr:MovieClip;
public function Mc_khadda_364(){
addFrameScript(0, frame1, 12, frame13, 22, frame23, 33, frame34, 45, frame46, 61, frame62);
}
function frame1(){
stop();
}
function frame13(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextDig();
};
};
}
function frame23(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextDig();
};
};
}
function frame34(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextDig();
};
};
}
function frame46(){
stop();
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextDig();
};
};
}
function frame62(){
stop();
this.favda.hitSpade.buttonMode = false;
if (this.parent != null){
if ((this.parent is FountainScreen)){
(this.parent as FountainScreen).nextStep();
(this.parent as FountainScreen).btCement.buttonMode = true;
(this.parent as FountainScreen).tuto.inst.text = "Select Cement machine from the panel";
};
};
}
}
}//package 66_fla
Section 34
//Mc_khadda2_234 (66_fla.Mc_khadda2_234)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_khadda2_234 extends MovieClip {
public var spade:MovieClip;
public var arr:MovieClip;
public function Mc_khadda2_234(){
addFrameScript(0, frame1, 12, frame13, 22, frame23, 33, frame34, 44, frame45, 59, frame60);
}
function frame1(){
stop();
}
function frame13(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextDig();
};
};
}
function frame23(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextDig();
};
};
}
function frame34(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextDig();
};
};
}
function frame45(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextDig();
};
};
}
function frame60(){
stop();
if (this.spade.hitSpade != null){
this.spade.hitSpade.buttonMode = false;
};
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextStep();
(this.parent as PoolScreen).tuto.inst.text = "Select cement machine from the panel.";
};
};
}
}
}//package 66_fla
Section 35
//Mc_patch_grass_cutting_257 (66_fla.Mc_patch_grass_cutting_257)
package 66_fla {
import flash.display.*;
public dynamic class Mc_patch_grass_cutting_257 extends MovieClip {
public var p1:MovieClip;
public var p2:MovieClip;
public var p3:MovieClip;
public var p5:MovieClip;
public var p9:MovieClip;
public var p6:MovieClip;
public var p7:MovieClip;
public var p8:MovieClip;
public var p4:MovieClip;
public function Mc_patch_grass_cutting_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 36
//Mc_roof_10_c_290 (66_fla.Mc_roof_10_c_290)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_10_c_290 extends MovieClip {
public var w3:MovieClip;
public function Mc_roof_10_c_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 37
//Mc_roof_2_c_299 (66_fla.Mc_roof_2_c_299)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_2_c_299 extends MovieClip {
public var w8:MovieClip;
public function Mc_roof_2_c_299(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 38
//Mc_roof_3_c_301 (66_fla.Mc_roof_3_c_301)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_3_c_301 extends MovieClip {
public var w9:MovieClip;
public function Mc_roof_3_c_301(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 39
//Mc_roof_4_c_297 (66_fla.Mc_roof_4_c_297)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_4_c_297 extends MovieClip {
public var w7:MovieClip;
public function Mc_roof_4_c_297(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 40
//Mc_roof_5_c_295 (66_fla.Mc_roof_5_c_295)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_5_c_295 extends MovieClip {
public var w6:MovieClip;
public function Mc_roof_5_c_295(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 41
//Mc_roof_6_c_293 (66_fla.Mc_roof_6_c_293)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_6_c_293 extends MovieClip {
public var w5:MovieClip;
public function Mc_roof_6_c_293(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 42
//Mc_roof_7_c_291 (66_fla.Mc_roof_7_c_291)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_7_c_291 extends MovieClip {
public var w4:MovieClip;
public function Mc_roof_7_c_291(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 43
//Mc_roof_8_c_286 (66_fla.Mc_roof_8_c_286)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_8_c_286 extends MovieClip {
public var w2:MovieClip;
public function Mc_roof_8_c_286(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 44
//Mc_roof_9_c_288 (66_fla.Mc_roof_9_c_288)
package 66_fla {
import flash.display.*;
public dynamic class Mc_roof_9_c_288 extends MovieClip {
public var w1:MovieClip;
public function Mc_roof_9_c_288(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 45
//Mc_sea_saw_secound_412 (66_fla.Mc_sea_saw_secound_412)
package 66_fla {
import flash.display.*;
public dynamic class Mc_sea_saw_secound_412 extends MovieClip {
public var Seasaw2:MovieClip;
}
}//package 66_fla
Section 46
//Mc_seasaw_2_frame_final_409 (66_fla.Mc_seasaw_2_frame_final_409)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_seasaw_2_frame_final_409 extends MovieClip {
public var Seasaw1:MovieClip;
public function Mc_seasaw_2_frame_final_409(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
if (SeasawScreen.redColor2){
if (this.Seasaw1.Seasaw2 != null){
this.Seasaw1.Seasaw2.gotoAndStop(2);
};
} else {
if (SeasawScreen.blueColor2){
if (this.Seasaw1.Seasaw2 != null){
this.Seasaw1.Seasaw2.gotoAndStop(3);
};
} else {
if (SeasawScreen.yellowColor2){
if (this.Seasaw1.Seasaw2 != null){
this.Seasaw1.Seasaw2.gotoAndStop(1);
};
} else {
if (SeasawScreen.pinkColor2){
if (this.Seasaw1.Seasaw2 != null){
this.Seasaw1.Seasaw2.gotoAndStop(4);
};
};
};
};
};
}
}
}//package 66_fla
Section 47
//Mc_seasaw_appiar_199 (66_fla.Mc_seasaw_appiar_199)
package 66_fla {
import flash.display.*;
public dynamic class Mc_seasaw_appiar_199 extends MovieClip {
public var wood:MovieClip;
public var hitWood:MovieClip;
public function Mc_seasaw_appiar_199(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextStep();
};
};
}
function frame5(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextStep();
};
};
}
}
}//package 66_fla
Section 48
//Mc_seasaw_base_animation_194 (66_fla.Mc_seasaw_base_animation_194)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_seasaw_base_animation_194 extends MovieClip {
public var hammer:MovieClip;
public function Mc_seasaw_base_animation_194(){
addFrameScript(0, frame1, 6, frame7, 12, frame13, 20, frame21);
}
function frame7(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame1(){
stop();
}
function frame13(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextDig();
};
};
}
function frame21(){
stop();
if (this.parent != null){
if ((this.parent is SeasawScreen)){
(this.parent as SeasawScreen).nextStep();
(this.parent as SeasawScreen).btWood.buttonMode = true;
(this.parent as SeasawScreen).tuto.inst.text = "Now select See-saw board from the panel.";
};
};
}
}
}//package 66_fla
Section 49
//Mc_seasaw_color_202 (66_fla.Mc_seasaw_color_202)
package 66_fla {
import flash.display.*;
public dynamic class Mc_seasaw_color_202 extends MovieClip {
public var woodYellow:MovieClip;
public var woodBlue:MovieClip;
public var woodRed:MovieClip;
public var woodPink:MovieClip;
public function Mc_seasaw_color_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 50
//Mc_seasaw_plat_413 (66_fla.Mc_seasaw_plat_413)
package 66_fla {
import flash.display.*;
public dynamic class Mc_seasaw_plat_413 extends MovieClip {
public function Mc_seasaw_plat_413(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 51
//Mc_story_screen_animation_126 (66_fla.Mc_story_screen_animation_126)
package 66_fla {
import flash.display.*;
public dynamic class Mc_story_screen_animation_126 extends MovieClip {
public var skip:SimpleButton;
public function Mc_story_screen_animation_126(){
addFrameScript(415, frame416);
}
function frame416(){
stop();
}
}
}//package 66_fla
Section 52
//Mc_story_window_140 (66_fla.Mc_story_window_140)
package 66_fla {
import flash.display.*;
public dynamic class Mc_story_window_140 extends MovieClip {
public var continue1:SimpleButton;
}
}//package 66_fla
Section 53
//Mc_swiming_pool_frame_11_439 (66_fla.Mc_swiming_pool_frame_11_439)
package 66_fla {
import flash.display.*;
public dynamic class Mc_swiming_pool_frame_11_439 extends MovieClip {
public function Mc_swiming_pool_frame_11_439(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 54
//Mc_swiming_water_animation2_252 (66_fla.Mc_swiming_water_animation2_252)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_swiming_water_animation2_252 extends MovieClip {
public function Mc_swiming_water_animation2_252(){
addFrameScript(0, frame1, 78, frame79);
}
function frame79(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).done.visible = true;
(this.parent as PoolScreen).tuto.inst.text = "Click done button to continue.";
};
};
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 55
//Mc_swimingpool2_251 (66_fla.Mc_swimingpool2_251)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_swimingpool2_251 extends MovieClip {
public function Mc_swimingpool2_251(){
addFrameScript(38, frame39);
}
function frame39(){
stop();
if (this.parent != null){
if ((this.parent is PoolScreen)){
(this.parent as PoolScreen).nextStep();
(this.parent as PoolScreen).tuto.inst.text = "Now Select water pipe from the panel.";
};
};
}
}
}//package 66_fla
Section 56
//Mc_text_box_anim_454 (66_fla.Mc_text_box_anim_454)
package 66_fla {
import flash.display.*;
public dynamic class Mc_text_box_anim_454 extends MovieClip {
public var clip:MovieClip;
public function Mc_text_box_anim_454(){
addFrameScript(0, frame1, 4, frame5);
}
function frame1(){
stop();
}
function frame5(){
stop();
}
}
}//package 66_fla
Section 57
//Mc_text_clip_455 (66_fla.Mc_text_clip_455)
package 66_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Mc_text_clip_455 extends MovieClip {
public var inst:TextField;
}
}//package 66_fla
Section 58
//Mc_thapi_307 (66_fla.Mc_thapi_307)
package 66_fla {
import flash.display.*;
public dynamic class Mc_thapi_307 extends MovieClip {
public function Mc_thapi_307(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 59
//Mc_w_2_frame_383 (66_fla.Mc_w_2_frame_383)
package 66_fla {
import flash.display.*;
public dynamic class Mc_w_2_frame_383 extends MovieClip {
public function Mc_w_2_frame_383(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 60
//Mc_w2_2_frame_384 (66_fla.Mc_w2_2_frame_384)
package 66_fla {
import flash.display.*;
public dynamic class Mc_w2_2_frame_384 extends MovieClip {
public function Mc_w2_2_frame_384(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 61
//Mc_wood_fence_1_11_394 (66_fla.Mc_wood_fence_1_11_394)
package 66_fla {
import flash.display.*;
public dynamic class Mc_wood_fence_1_11_394 extends MovieClip {
public var colorF:MovieClip;
public function Mc_wood_fence_1_11_394(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
if (FenceScreen.redColor){
this.colorF.gotoAndStop(3);
} else {
if (FenceScreen.blueColor){
this.colorF.gotoAndStop(4);
} else {
if (FenceScreen.greenColor){
this.colorF.gotoAndStop(2);
} else {
if (FenceScreen.yellowColor){
this.colorF.gotoAndStop(1);
};
};
};
};
}
}
}//package 66_fla
Section 62
//Mc_wood_fence_11copy_385 (66_fla.Mc_wood_fence_11copy_385)
package 66_fla {
import flash.display.*;
public dynamic class Mc_wood_fence_11copy_385 extends MovieClip {
public function Mc_wood_fence_11copy_385(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 63
//Mc_wood_fence_376 (66_fla.Mc_wood_fence_376)
package 66_fla {
import flash.display.*;
public dynamic class Mc_wood_fence_376 extends MovieClip {
public function Mc_wood_fence_376(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 64
//Mc_wood_painting_203 (66_fla.Mc_wood_painting_203)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_wood_painting_203 extends MovieClip {
public function Mc_wood_painting_203(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).done.visible = true;
(this.parent.parent as SeasawScreen).tuto.inst.text = "Good job, now click on done button.";
};
};
}
function frame1(){
stop();
}
}
}//package 66_fla
Section 65
//Mc_wood_painting_blue_207 (66_fla.Mc_wood_painting_blue_207)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_wood_painting_blue_207 extends MovieClip {
public function Mc_wood_painting_blue_207(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).done.visible = true;
(this.parent.parent as SeasawScreen).tuto.inst.text = "Good job, now click on done button.";
};
};
}
}
}//package 66_fla
Section 66
//Mc_wood_painting_green_206 (66_fla.Mc_wood_painting_green_206)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_wood_painting_green_206 extends MovieClip {
public function Mc_wood_painting_green_206(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).done.visible = true;
(this.parent.parent as SeasawScreen).tuto.inst.text = "Good job, now click on done button.";
};
};
}
}
}//package 66_fla
Section 67
//Mc_wood_painting_red_205 (66_fla.Mc_wood_painting_red_205)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_wood_painting_red_205 extends MovieClip {
public function Mc_wood_painting_red_205(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).done.visible = true;
(this.parent.parent as SeasawScreen).tuto.inst.text = "Good job, now click on done button.";
};
};
}
}
}//package 66_fla
Section 68
//Mc_wood_paintingyellow_208 (66_fla.Mc_wood_paintingyellow_208)
package 66_fla {
import flash.media.*;
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class Mc_wood_paintingyellow_208 extends MovieClip {
public function Mc_wood_paintingyellow_208(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
if (this.parent.parent != null){
if ((this.parent.parent is SeasawScreen)){
(this.parent.parent as SeasawScreen).done.visible = true;
(this.parent.parent as SeasawScreen).tuto.inst.text = "Good job, now click on done button.";
};
};
}
function frame1(){
}
}
}//package 66_fla
Section 69
//Mc_you_win_2_53 (66_fla.Mc_you_win_2_53)
package 66_fla {
import flash.display.*;
public dynamic class Mc_you_win_2_53 extends MovieClip {
public var moregames:SimpleButton;
public var addgames:SimpleButton;
}
}//package 66_fla
Section 70
//Mc_you_win_Screen_26 (66_fla.Mc_you_win_Screen_26)
package 66_fla {
import flash.display.*;
public dynamic class Mc_you_win_Screen_26 extends MovieClip {
public function Mc_you_win_Screen_26(){
addFrameScript(107, frame108);
}
function frame108(){
stop();
}
}
}//package 66_fla
Section 71
//Mc_you_win_text_animation_80 (66_fla.Mc_you_win_text_animation_80)
package 66_fla {
import flash.display.*;
public dynamic class Mc_you_win_text_animation_80 extends MovieClip {
public function Mc_you_win_text_animation_80(){
addFrameScript(4, frame5);
}
function frame5(){
stop();
}
}
}//package 66_fla
Section 72
//mcClockHand_161 (66_fla.mcClockHand_161)
package 66_fla {
import flash.display.*;
public dynamic class mcClockHand_161 extends MovieClip {
public function mcClockHand_161(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
if (this.parent.parent.parent.parent != null){
if ((this.parent.parent.parent.parent is MainClass)){
(this.parent.parent.parent.parent as MainClass).createGameOver();
};
};
}
}
}//package 66_fla
Section 73
//mcMutething_144 (66_fla.mcMutething_144)
package 66_fla {
import flash.display.*;
public dynamic class mcMutething_144 extends MovieClip {
public var s1:MovieClip;
public function mcMutething_144(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 66_fla
Section 74
//mcTutorial_158 (66_fla.mcTutorial_158)
package 66_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcTutorial_158 extends MovieClip {
public var inst:TextField;
}
}//package 66_fla
Section 75
//mcTutorial_2_285 (66_fla.mcTutorial_2_285)
package 66_fla {
import flash.display.*;
import flash.text.*;
public dynamic class mcTutorial_2_285 extends MovieClip {
public var inst:TextField;
}
}//package 66_fla
Section 76
//pauseScr_254 (66_fla.pauseScr_254)
package 66_fla {
import flash.display.*;
public dynamic class pauseScr_254 extends MovieClip {
public var plaza:SimpleButton;
}
}//package 66_fla
Section 77
//cementWall (cementWall)
package {
import flash.display.*;
public class cementWall extends MovieClip {
public var hit3:Boolean;// = false
public var hit1:Boolean;// = false
var line:Sprite;
public var c1:MovieClip;
public var c3:MovieClip;
public var color4:uint;// = 0xFF00FF
public var color1:uint;// = 0xFF0000
public var c2:MovieClip;
public var color2:uint;// = 0xFFFF00
public var color3:uint;// = 0xFFFF
var prevy:Number;
var prevx:Number;
public var hit2:Boolean;// = false
public function cementWall(){
prevx = mouseX;
prevy = mouseY;
color1 = 0xFF0000;
color2 = 0xFFFF00;
color3 = 0xFFFF;
color4 = 0xFF00FF;
hit1 = false;
hit2 = false;
hit3 = false;
super();
line = new Sprite();
}
public function setValues(){
prevx = mouseX;
prevy = mouseY;
}
public function drawLine(){
if (HouseScreen.cementing){
line.graphics.lineStyle(30, 0xFFFFFF, 0.75);
};
line.graphics.moveTo(prevx, prevy);
line.graphics.lineTo(mouseX, mouseY);
if (!contains(line)){
this.addChild(line);
};
prevx = mouseX;
prevy = mouseY;
}
public function checkHits(){
if ((this.parent as HouseScreen).spade.hitTestObject(this.c1)){
hit1 = true;
};
if ((this.parent as HouseScreen).spade.hitTestObject(this.c2)){
hit2 = true;
};
if ((this.parent as HouseScreen).spade.hitTestObject(this.c3)){
hit3 = true;
};
if (((((hit1) && (hit2))) && (hit3))){
MainClass.hit4 = true;
if (this.parent != null){
if ((this.parent is HouseScreen)){
(this.parent as HouseScreen).tuto.inst.text = "Now select color bucket from the panel";
};
};
};
}
public function removeLine(){
if (contains(line)){
this.removeChild(line);
line = new Sprite();
};
}
}
}//package
Section 78
//colorGate (colorGate)
package {
import flash.display.*;
public class colorGate extends MovieClip {
public var counter:int;
var line:Sprite;
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c6:MovieClip;
public var c8:MovieClip;
public var c2:MovieClip;
public var color4:uint;// = 0xFF00FF
public var c7:MovieClip;
public var color2:uint;// = 0xFFFF00
public var color3:uint;// = 0xFFFF
public var c9:MovieClip;
public var color1:uint;// = 0xFF0000
public var colorFence1:MovieClip;
public var arr:Array;
var prevy:Number;
var prevx:Number;
public var c10:MovieClip;
public var c11:MovieClip;
public var c13:MovieClip;
public var c18:MovieClip;
public var c15:MovieClip;
public var c16:MovieClip;
public var c17:MovieClip;
public var c19:MovieClip;
public var c12:MovieClip;
public var c14:MovieClip;
public var c20:MovieClip;
public function colorGate(){
var _local1:int;
prevx = mouseX;
prevy = mouseY;
color1 = 0xFF0000;
color2 = 0xFFFF00;
color3 = 0xFFFF;
color4 = 0xFF00FF;
super();
line = new Sprite();
arr = new Array();
arr.push(c1);
arr.push(c2);
arr.push(c3);
arr.push(c4);
arr.push(c5);
arr.push(c6);
arr.push(c7);
arr.push(c8);
arr.push(c9);
arr.push(c10);
arr.push(c11);
arr.push(c12);
arr.push(c13);
arr.push(c14);
arr.push(c15);
arr.push(c16);
arr.push(c17);
arr.push(c18);
arr.push(c19);
arr.push(c20);
_local1 = 0;
while (_local1 < arr.length) {
_local1++;
};
}
public function resetPoints(){
this.c1.x = 11.95;
this.c1.y = 60;
this.c2.x = 49.95;
this.c2.y = 91;
this.c3.x = 42.95;
this.c3.y = 196;
this.c4.x = 135.95;
this.c4.y = 24;
this.c5.x = 133.95;
this.c5.y = 154;
this.c6.x = 205.95;
this.c6.y = 43;
this.c7.x = 233.95;
this.c7.y = 118;
this.c8.x = 213.95;
this.c8.y = 180;
this.c9.x = 283.95;
this.c9.y = 67;
this.c10.x = 307.95;
this.c10.y = 101;
this.c11.x = 298.95;
this.c11.y = 206;
this.c12.x = 348.9;
this.c12.y = 134;
this.c13.x = 398.9;
this.c13.y = 184;
this.c14.x = 464.95;
this.c14.y = 130;
this.c15.x = 641.9;
this.c15.y = 208;
this.c16.x = 534.9;
this.c16.y = 149;
this.c17.x = 540.95;
this.c17.y = 213;
this.c18.x = 602.95;
this.c18.y = 154;
this.c19.x = 639.9;
this.c19.y = 118;
this.c20.x = 692.95;
this.c20.y = 168;
counter = 0;
}
public function setValues(){
prevx = mouseX;
prevy = mouseY;
}
public function drawLine(){
if (!contains(line)){
this.colorFence1.addChild(line);
};
line.graphics.moveTo(prevx, prevy);
line.graphics.lineTo(mouseX, mouseY);
prevx = mouseX;
prevy = mouseY;
}
public function removeLine(){
if (contains(line)){
this.colorFence1.removeChild(line);
line = new Sprite();
};
}
public function setLine(){
switch (FenceScreen.getColor){
case 1:
line.graphics.lineStyle(30, color1, 0.75);
break;
case 2:
line.graphics.lineStyle(30, color2, 0.75);
break;
case 3:
line.graphics.lineStyle(30, color3, 0.75);
break;
case 4:
line.graphics.lineStyle(30, color4, 0.75);
break;
};
}
public function checkHits(){
var _local1:int;
_local1 = 0;
while (_local1 < arr.length) {
if (arr[_local1].hitTestObject((this.parent as FenceScreen).brush)){
arr[_local1].x = -100;
arr[_local1].y = -100;
counter++;
if (counter == 16){
(this.parent as FenceScreen).done.visible = true;
(this.parent as FenceScreen).tuto.inst.text = "click on the done button to continue or try another color .";
};
};
_local1++;
};
}
}
}//package
Section 79
//colorWall (colorWall)
package {
import flash.display.*;
public class colorWall extends MovieClip {
public var counter:int;
var line:Sprite;
public var c1:MovieClip;
public var c3:MovieClip;
public var c4:MovieClip;
public var c5:MovieClip;
public var c6:MovieClip;
public var c8:MovieClip;
public var c2:MovieClip;
public var color4:uint;// = 0xFF00FF
public var c7:MovieClip;
public var color2:uint;// = 0xFFFF00
public var color3:uint;// = 0xFFFF
public var c9:MovieClip;
public var color1:uint;// = 0xFF0000
var prevy:Number;
var prevx:Number;
public var c10:MovieClip;
public var c11:MovieClip;
public var c13:MovieClip;
public var c14:MovieClip;
public var c15:MovieClip;
public var c12:MovieClip;
public var arr1:Array;
public function colorWall(){
prevx = mouseX;
prevy = mouseY;
color1 = 0xFF0000;
color2 = 0xFFFF00;
color3 = 0xFFFF;
color4 = 0xFF00FF;
super();
line = new Sprite();
arr1 = new Array();
arr1.push(c1);
arr1.push(c2);
arr1.push(c3);
arr1.push(c4);
arr1.push(c5);
arr1.push(c6);
arr1.push(c7);
arr1.push(c8);
arr1.push(c9);
arr1.push(c10);
arr1.push(c11);
arr1.push(c12);
arr1.push(c13);
arr1.push(c14);
arr1.push(c15);
}
public function resetPoints(){
this.c1.x = 9.95;
this.c1.y = 246.95;
this.c2.x = 33.95;
this.c2.y = 324;
this.c3.x = 95.95;
this.c3.y = 289;
this.c4.x = 33.95;
this.c4.y = 277;
this.c5.x = 148.95;
this.c5.y = 332;
this.c6.x = 221.95;
this.c6.y = 190;
this.c7.x = 249.95;
this.c7.y = 260;
this.c8.x = 328.9;
this.c8.y = 301;
this.c9.x = 385.9;
this.c9.y = 258.95;
this.c10.x = 501.9;
this.c10.y = 317;
this.c11.x = 344.9;
this.c11.y = 357;
this.c12.x = 477.9;
this.c12.y = 260;
this.c13.x = 526.9;
this.c13.y = 202;
this.c14.x = 489.9;
this.c14.y = 132.8;
this.c15.x = 482.5;
this.c15.y = 30;
counter = 0;
}
public function setValues(){
prevx = mouseX;
prevy = mouseY;
}
public function drawLine(){
line.graphics.moveTo(prevx, prevy);
line.graphics.lineTo(mouseX, mouseY);
if (!contains(line)){
this.addChild(line);
};
prevx = mouseX;
prevy = mouseY;
}
public function removeLine(){
if (contains(line)){
this.removeChild(line);
line = new Sprite();
};
}
public function checkHits(){
var _local1:int;
_local1 = 0;
while (_local1 < arr1.length) {
if (arr1[_local1].hitTestObject((this.parent as HouseScreen).brush)){
arr1[_local1].x = -100;
arr1[_local1].y = -100;
counter++;
if (counter == 13){
if (this.parent != null){
if ((this.parent is HouseScreen)){
(this.parent as HouseScreen).done.visible = true;
(this.parent as HouseScreen).tuto.inst.text = "click on done button to continue or try another color.";
};
};
};
};
_local1++;
};
}
public function setLine(){
switch (HouseScreen.getColor1){
case 1:
line.graphics.lineStyle(30, color1, 0.75);
break;
case 2:
line.graphics.lineStyle(30, color2, 0.75);
break;
case 3:
line.graphics.lineStyle(30, color3, 0.75);
break;
case 4:
line.graphics.lineStyle(30, color4, 0.75);
break;
};
}
}
}//package
Section 80
//Container (Container)
package {
import flash.events.*;
import flash.display.*;
public class Container extends MovieClip {
var prevx1:Number;
var prevy1:Number;
private var task:Task;
var line1:Sprite;
public function onRoll(_arg1:MouseEvent){
task.onRoll(_arg1);
}
public function init(){
addListeners();
addLevel();
line1 = new Sprite();
}
public function removeListeners(){
if (this.hasEventListener(MouseEvent.MOUSE_DOWN)){
this.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
};
if (this.hasEventListener(MouseEvent.MOUSE_UP)){
this.removeEventListener(MouseEvent.MOUSE_UP, onUp);
};
if (this.hasEventListener(MouseEvent.MOUSE_MOVE)){
this.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
};
if (this.hasEventListener(MouseEvent.ROLL_OUT)){
this.removeEventListener(MouseEvent.ROLL_OUT, onRoll);
};
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, onEnter);
};
if (this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick);
};
if (this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
};
if (this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
};
}
public function onDown(_arg1:MouseEvent){
task.onDown(_arg1);
prevx1 = mouseX;
prevy1 = mouseY;
}
public function onEnter(_arg1:Event){
task.onEnter(_arg1);
}
public function onMove(_arg1:MouseEvent){
task.onMove(_arg1);
}
private function addLevel(){
switch (MainClass.currentLevel){
case 1:
task = new FenceScreen();
addChild(task);
task.gotoAndStop(1);
break;
case 2:
task = new LawnScreen();
addChild(task);
task.gotoAndStop(1);
break;
case 3:
task = new PoolScreen();
addChild(task);
task.gotoAndStop(1);
break;
case 4:
task = new HouseScreen();
addChild(task);
task.gotoAndStop(1);
break;
case 5:
task = new FountainScreen();
addChild(task);
task.gotoAndStop(1);
break;
case 6:
task = new SeasawScreen();
addChild(task);
break;
};
}
public function onOver(_arg1:MouseEvent){
task.onOver(_arg1);
}
public function drawLine(){
line1.graphics.lineStyle(8, 0, 0.75, true);
line1.graphics.beginFill(0);
line1.graphics.moveTo(prevx1, prevy1);
line1.graphics.lineTo(mouseX, mouseY);
if (line1 != null){
addChild(line1);
};
prevx1 = mouseX;
prevy1 = mouseY;
}
public function removeLine(){
if (contains(line1)){
removeChild(line1);
line1 = null;
line1 = new Sprite();
};
}
private function addListeners(){
if (!this.hasEventListener(MouseEvent.MOUSE_DOWN)){
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_UP)){
this.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_MOVE)){
this.addEventListener(MouseEvent.MOUSE_MOVE, onMove, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.ROLL_OUT)){
this.addEventListener(MouseEvent.ROLL_OUT, onRoll, false, 0, true);
};
if (!this.hasEventListener(Event.ENTER_FRAME)){
this.addEventListener(Event.ENTER_FRAME, onEnter, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
};
}
public function onUp(_arg1:MouseEvent){
task.onUp(_arg1);
}
public function onClick(_arg1:MouseEvent){
task.onClick(_arg1);
}
public function onOut(_arg1:MouseEvent){
task.onOut(_arg1);
}
}
}//package
Section 81
//CustomSound (CustomSound)
package {
import flash.media.*;
import flash.events.*;
public class CustomSound extends Sound {
public var _channel:SoundChannel;// = null
public var isLooping:Boolean;// = false
private var customVolumeMax:Number;// = 1
public var _transform:SoundTransform;// = null
public function CustomSound(){
_channel = null;
_transform = null;
isLooping = false;
customVolumeMax = 1;
super();
}
public function playSound(_arg1:SoundTransform, _arg2:Boolean=false){
if (_transform == null){
if (_channel != null){
_transform = new SoundTransform(customVolumeMax, _channel.position);
} else {
_transform = new SoundTransform(customVolumeMax, 0);
};
};
_transform.volume = (_arg1.volume * customVolumeMax);
if (((!((_channel == null))) && ((isLooping == false)))){
_channel.stop();
};
if ((((((isLooping == true)) && (!((_channel == null))))) && (!((_channel.position == 0))))){
return;
};
if (isLooping == true){
_channel = play(0, 9999, _transform);
} else {
_channel = play(0, 0, _transform);
};
_transform = _channel.soundTransform;
_channel.soundTransform = _transform;
}
public function setCustomVolume(_arg1:Number=1){
customVolumeMax = _arg1;
}
private function soundCompleteHandler(_arg1:Event):void{
_channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
_channel.stop();
replayLoop();
}
public function setVolume(_arg1:Number){
if (((!((_channel == null))) && (!((_transform == null))))){
_transform.volume = ((_arg1 * customVolumeMax) / 100);
_channel.soundTransform = _transform;
};
}
public function stopSound(){
if (_channel == null){
return;
};
if (isLooping == true){
_channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
_channel.stop();
}
public function replayLoop(){
_channel = play(0, 9999, _transform);
_transform = _channel.soundTransform;
_channel.soundTransform = _transform;
if (isLooping == true){
};
}
public function setLoop(_arg1:Boolean){
isLooping = _arg1;
}
}
}//package
Section 82
//disturbScreen (disturbScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class disturbScreen extends MovieClip {
public var House:MovieClip;
public var Fence:MovieClip;
public var Lawn:MovieClip;
public var Pool:MovieClip;
public var Seasaw:MovieClip;
public var heart:MovieClip;
public var Fountain:MovieClip;
public var tip:MovieClip;
public var grass:MovieClip;
public var plaza:SimpleButton;
public function disturbScreen(){
addFrameScript(0, frame1);
}
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
};
Mouse.show();
if (this.heart != null){
this.heart.visible = true;
};
if (this.plaza != null){
this.plaza.visible = true;
};
this.Lawn.mouseChildren = false;
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
if (!MainClass.lawn){
this.grass.gotoAndStop(1);
} else {
if (MainClass.lawn){
this.grass.gotoAndStop(2);
this.Lawn.visible = false;
};
};
this.Fountain.mouseChildren = false;
if (!MainClass.fountain){
this.Fountain.gotoAndStop(1);
} else {
if (MainClass.fountain){
this.Fountain.gotoAndStop(2);
};
};
this.House.mouseChildren = false;
if (!MainClass.house){
this.House.gotoAndStop(1);
} else {
if (MainClass.house){
this.House.gotoAndStop(2);
};
};
this.Fence.mouseChildren = false;
if (!MainClass.fence){
this.Fence.gotoAndStop(1);
} else {
if (MainClass.fence){
this.Fence.gotoAndStop(2);
};
};
this.Seasaw.mouseChildren = false;
if (!MainClass.seaSaw){
this.Seasaw.gotoAndStop(1);
} else {
if (MainClass.seaSaw){
this.Seasaw.gotoAndStop(2);
};
};
this.Pool.mouseChildren = false;
if (!MainClass.pool){
this.Pool.gotoAndStop(1);
} else {
if (MainClass.pool){
this.Pool.gotoAndStop(2);
};
};
if (HouseScreen.redColor1){
} else {
if (HouseScreen.blueColor1){
} else {
if (HouseScreen.yellowColor1){
} else {
if (HouseScreen.greenColor1){
};
};
};
};
if (this.Fountain.currentFrame == 1){
this.Fountain.buttonMode = true;
};
if (this.House.currentFrame == 1){
this.House.buttonMode = true;
};
if (this.Fence.currentFrame == 1){
this.Fence.buttonMode = true;
};
if (this.Seasaw.currentFrame == 1){
this.Seasaw.buttonMode = true;
};
if (this.Pool.currentFrame == 1){
this.Pool.buttonMode = true;
};
if (this.Lawn.currentFrame == 1){
this.Lawn.buttonMode = true;
};
}
public function onOver(_arg1:MouseEvent){
switch (_arg1.target.name){
case "Fence":
if (this.Fence.currentFrame == 1){
this.tip.x = 230;
this.tip.y = 120;
this.tip.clip.inst.text = " Click on fence to fix it.";
this.tip.gotoAndPlay(2);
};
break;
case "Lawn":
this.tip.x = 220;
this.tip.y = 330;
this.tip.clip.inst.text = "Click lawn mower to cut the grass.";
this.tip.gotoAndPlay(2);
break;
case "Pool":
if (this.Pool.currentFrame == 1){
this.tip.x = 100;
this.tip.y = 210;
this.tip.clip.inst.text = "Click to prepare swimming pool.";
this.tip.gotoAndPlay(2);
};
break;
case "House":
if (this.House.currentFrame == 1){
this.tip.x = 500;
this.tip.y = 50;
this.tip.clip.inst.text = "Click on house to repair.";
this.tip.gotoAndPlay(2);
};
break;
case "Fountain":
if (this.Fountain.currentFrame == 1){
this.tip.x = 100;
this.tip.y = 370;
this.tip.clip.inst.text = "Click on fountain to fix it.";
this.tip.gotoAndPlay(2);
};
break;
case "Seasaw":
if (this.Seasaw.currentFrame == 1){
this.tip.x = 630;
this.tip.y = 310;
this.tip.clip.inst.text = "Click on Seasaw to fix it.";
if (this.tip.currentFrame == 1){
this.tip.gotoAndPlay(2);
};
};
case "plaza":
break;
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
if (this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.removeEventListener(MouseEvent.MOUSE_OVER, onOver);
};
if (this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.removeEventListener(MouseEvent.MOUSE_OUT, onOut);
};
}
function frame1(){
if (this.tip != null){
this.tip.gotoAndStop(1);
this.tip.mouseChildren = false;
this.tip.mouseEnabled = false;
};
if (this.Fountain != null){
this.Fountain.mouseChildren = false;
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "Fence":
if (!MainClass.fence){
MainClass.currentLevel = 1;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "Lawn":
if (!MainClass.lawn){
MainClass.currentLevel = 2;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "Pool":
if (!MainClass.pool){
MainClass.currentLevel = 3;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "House":
if (!MainClass.house){
MainClass.currentLevel = 4;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "Fountain":
if (!MainClass.fountain){
MainClass.currentLevel = 5;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "Seasaw":
if (!MainClass.seaSaw){
MainClass.currentLevel = 6;
(this.parent as MainClass).startLevel();
(this.parent as MainClass).removeMidscreen();
};
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
public function onOut(_arg1:MouseEvent){
switch (_arg1.target.name){
case "Fence":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "Lawn":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "Pool":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "House":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "Fountain":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "Seasaw":
this.tip.x = -100;
this.tip.x = -100;
this.tip.gotoAndStop(1);
break;
case "plaza":
break;
};
}
}
}//package
Section 83
//FenceScreen (FenceScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class FenceScreen extends Task {
public var board1:MovieClip;
public var clock:MovieClip;
public var fence1:MovieClip;
public var fence2:MovieClip;
public var fence3:MovieClip;
private var Arr:Array;
public var heart:MovieClip;
public var currentDig:Number;// = 1
public var paint:MovieClip;
public var f3:Boolean;// = false
public var colorFence:colorGate;
public var f1:Boolean;// = false
public var f2:Boolean;// = false
private var Test:Boolean;// = false
public var tuto:MovieClip;
private var levelPause:Boolean;// = false
public var board:MovieClip;
public var back:SimpleButton;
public var btFence:MovieClip;
public var takeColor:Boolean;// = false
public var btPaint:MovieClip;
public var brush:MovieClip;
public var phase:Number;// = 1
public var done:SimpleButton;
public var ready:Number;// = 1
public var counter3:int;
public var currentTime:int;
public var counter:int;
public static var greenColor:Boolean = false;
public static var redColor:Boolean = false;
public static var blueColor:Boolean = false;
public static var getColor:int;
public static var yellowColor:Boolean = false;
public function FenceScreen(){
phase = 1;
ready = 1;
currentDig = 1;
levelPause = false;
Test = false;
takeColor = false;
f1 = false;
f2 = false;
f3 = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
override public function onEnter(_arg1:Event){
if (((!((this.clock == null))) && (!(MainClass.Paused)))){
counter3++;
if (counter3 == 30){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
}
override public function onMove(_arg1:MouseEvent){
if ((((((phase == 1)) && ((ready == 1)))) && ((this.currentFrame == 3)))){
if (_arg1.target.name == "colorFence1"){
if (_arg1.buttonDown){
(this.getChildByName("colorFence") as colorGate).drawLine();
(this.getChildByName("colorFence") as colorGate).checkHits();
};
(this.getChildByName("colorFence") as colorGate).setValues();
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame3(){
if (this.colorFence.colorFence1 != null){
this.colorFence.colorFence1.mouseChildren = false;
};
if (this.btPaint != null){
this.btPaint.mouseChildren = false;
this.btPaint.buttonMode = true;
};
if (this.paint != null){
this.paint.mouseChildren = false;
};
if (this.done != null){
this.done.visible = false;
};
}
function frame1(){
if (this.btFence != null){
this.btFence.buttonMode = true;
};
if (this.done != null){
this.done.visible = false;
};
if (this.tuto != null){
this.tuto.inst.text = "Select Wooden Fence from the panel.";
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
}
function frame2(){
stop();
nextStep();
if (this.fence1 != null){
this.fence1.buttonMode = true;
};
if (this.fence2 != null){
this.fence2.buttonMode = true;
};
if (this.fence3 != null){
this.fence3.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Click to drag the fence pieces and drop them on the blinking area.";
};
if (this.back != null){
this.back.visible = false;
};
}
public function nextDig(){
currentDig++;
ready = 1;
}
public function pickFence(){
if (this.btFence.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(2);
};
}
private function dropFence(){
if (this.currentFrame == 2){
this.fence1.stopDrag();
if (this.fence1.hitTestObject(this.board)){
f1 = true;
this.fence1.x = 82;
this.fence1.y = 113;
counter++;
} else {
f1 = false;
this.fence1.x = 17.95;
this.fence1.y = 344.05;
};
if (this.fence2.hitTestObject(this.board)){
f2 = true;
this.fence2.x = 250;
this.fence2.y = 112;
counter++;
} else {
f2 = false;
this.fence2.x = 183.05;
this.fence2.y = 307;
};
if (this.fence3.hitTestObject(this.board1)){
f3 = true;
this.fence3.x = 540;
this.fence3.y = 153;
counter++;
} else {
f3 = false;
this.fence3.x = 509.7;
this.fence3.y = 344.35;
};
};
}
public function nextWork(){
if (this.fence1 != null){
this.fence1.visible = false;
};
if (this.fence2 != null){
this.fence2.visible = false;
};
if (this.fence3 != null){
this.fence3.visible = false;
};
this.gotoAndStop(3);
if (this.tuto != null){
this.tuto.inst.text = "Select the color bucket from panel.";
};
}
private function pickPaint(){
if (this.btPaint.hitTestPoint(mouseX, mouseY)){
if (this.paint.currentFrame == 1){
this.paint.gotoAndPlay(2);
};
};
}
override public function onUp(_arg1:MouseEvent){
if (this.currentFrame == 2){
dropFence();
};
if ((((((((this.currentFrame == 2)) && (f1))) && (f2))) && (f3))){
nextWork();
};
}
private function setFence(){
}
override public function onOut(_arg1:MouseEvent){
if (_arg1.target.name == "done"){
Mouse.hide();
this.brush.visible = true;
};
}
override public function init(){
currentStep = 1;
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 1){
if (_arg1.target.name == "back"){
nextLevel();
};
};
if (this.currentFrame == 3){
if (_arg1.target.name == "btPaint"){
if (this.paint != null){
if (this.paint.currentFrame == 1){
this.paint.gotoAndPlay(2);
};
};
} else {
if (_arg1.target.name == "paint"){
if (this.paint.currentFrame == 5){
pickColor();
};
};
};
if (_arg1.target.name == "done"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.fence = true;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
};
if (this.currentFrame == 2){
pickFence1();
};
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
override public function onOver(_arg1:MouseEvent){
if (_arg1.target.name == "done"){
Mouse.show();
this.brush.visible = false;
};
if ((((_arg1.target.name == "colorFence1")) && (takeColor))){
};
}
private function pickFence1(){
if (((this.fence1.hitTestPoint(mouseX, mouseY)) && (!(f1)))){
this.fence1.startDrag(true);
this.fence1.gotoAndStop(2);
this.setChildIndex(this.fence1, (this.numChildren - 1));
} else {
if (((this.fence2.hitTestPoint(mouseX, mouseY)) && (!(f2)))){
this.fence2.startDrag(true);
this.fence2.gotoAndStop(2);
this.setChildIndex(this.fence2, (this.numChildren - 1));
} else {
if (((this.fence3.hitTestPoint(mouseX, mouseY)) && (!(f3)))){
this.fence3.startDrag(true);
this.fence3.gotoAndStop(2);
this.setChildIndex(this.fence3, (this.numChildren - 1));
};
};
};
}
private function pickColor(){
if (this.paint.paint1.currentFrame == 21){
takeColor = true;
if (this.paint.paint1.redPaint.hitTestPoint(mouseX, mouseY)){
redColor = true;
blueColor = false;
greenColor = false;
yellowColor = false;
getColor = 1;
this.brush.startDrag(true);
if (this.done != null){
this.done.visible = false;
};
this.brush.gotoAndStop(1);
Mouse.hide();
(this.getChildByName("colorFence") as colorGate).resetPoints();
(this.getChildByName("colorFence") as colorGate).removeLine();
(this.getChildByName("colorFence") as colorGate).setLine();
if (this.tuto != null){
this.tuto.inst.text = "Now brush on the fence to color it.";
};
} else {
if (this.paint.paint1.bluePaint.hitTestPoint(mouseX, mouseY)){
this.brush.startDrag(true);
blueColor = true;
redColor = false;
greenColor = false;
yellowColor = false;
getColor = 3;
Mouse.hide();
if (this.done != null){
this.done.visible = false;
};
this.brush.gotoAndStop(2);
(this.getChildByName("colorFence") as colorGate).resetPoints();
(this.getChildByName("colorFence") as colorGate).removeLine();
(this.getChildByName("colorFence") as colorGate).setLine();
if (this.tuto != null){
this.tuto.inst.text = "Now brush on the fence to color it.";
};
} else {
if (this.paint.paint1.yellowPaint.hitTestPoint(mouseX, mouseY)){
this.brush.startDrag(true);
yellowColor = true;
redColor = false;
blueColor = false;
greenColor = false;
getColor = 2;
Mouse.hide();
if (this.done != null){
this.done.visible = false;
};
this.brush.gotoAndStop(3);
(this.getChildByName("colorFence") as colorGate).resetPoints();
(this.getChildByName("colorFence") as colorGate).removeLine();
(this.getChildByName("colorFence") as colorGate).setLine();
if (this.tuto != null){
this.tuto.inst.text = "Now brush on the fence to color it.";
};
} else {
if (this.paint.paint1.greenPaint.hitTestPoint(mouseX, mouseY)){
this.brush.startDrag(true);
greenColor = true;
yellowColor = false;
redColor = false;
blueColor = false;
getColor = 4;
Mouse.hide();
if (this.done != null){
this.done.visible = false;
};
this.brush.gotoAndStop(4);
(this.getChildByName("colorFence") as colorGate).resetPoints();
(this.getChildByName("colorFence") as colorGate).removeLine();
(this.getChildByName("colorFence") as colorGate).setLine();
if (this.tuto != null){
this.tuto.inst.text = "Now brush on the fence to color it.";
};
};
};
};
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
pickFence();
break;
case 2:
setFence();
break;
case 3:
pickFence1();
break;
case 4:
pickPaint();
break;
};
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.btFence != null){
return (this.btFence.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
break;
case 3:
break;
case 4:
if (this.btPaint != null){
return (this.btPaint.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
}
}//package
Section 84
//FountainScreen (FountainScreen)
package {
import flash.events.*;
import flash.display.*;
public class FountainScreen extends Task {
public var clock:MovieClip;
public var pick1:Boolean;// = false
public var pick2:Boolean;// = false
public var pick3:Boolean;// = false
public var heart:MovieClip;
public var currentDig:Number;// = 1
public var fountain:MovieClip;
public var khadda:MovieClip;
public var tuto:MovieClip;
private var h1:Boolean;// = false
private var h2:Boolean;// = false
private var h3:Boolean;// = false
private var levelPause:Boolean;// = false
public var btFountain:MovieClip;
public var back:SimpleButton;
public var cementCar:MovieClip;
public var phase:Number;// = 1
private var LineDraw:Boolean;// = false
public var done:SimpleButton;
public var ready:Number;// = 1
public var btCement:MovieClip;
public var counter3:int;
public var currentTime:int;
public var btSpade:MovieClip;
public function FountainScreen(){
phase = 1;
ready = 1;
currentDig = 1;
levelPause = false;
pick1 = false;
pick2 = false;
pick3 = false;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
public function dropFountain2(){
if (this.currentFrame == 5){
if (this.fountain.part2 != null){
this.fountain.part2.stopDrag();
phase = 1;
};
if (this.fountain.part2.hitTestObject(this.fountain.hitPart2)){
this.fountain.part2.x = -146.55;
this.fountain.part2.y = 25.55;
pick2 = false;
nextStep();
} else {
this.fountain.part2.x = -279.55;
this.fountain.part2.y = 55.7;
};
};
}
public function dropFountain3(){
if (this.currentFrame == 5){
if (this.fountain.part1 != null){
this.fountain.part1.stopDrag();
phase = 1;
};
if (this.fountain.part1.hitTestObject(this.fountain.hitPart1)){
this.fountain.part1.x = -145.75;
this.fountain.part1.y = -13.45;
pick1 = false;
this.fountain.gotoAndPlay(2);
nextStep();
} else {
this.fountain.part1.x = -8.55;
this.fountain.part1.y = 49.05;
};
};
}
public function dropFountain1(){
if (this.currentFrame == 5){
if (this.fountain.part3 != null){
this.fountain.part3.stopDrag();
phase = 1;
};
if (this.fountain.part3.hitTestObject(this.fountain.hitPart3)){
this.fountain.part3.x = -143.55;
this.fountain.part3.y = 89;
pick3 = false;
nextStep();
} else {
this.fountain.part3.x = 46.95;
this.fountain.part3.y = 140.3;
};
};
}
override public function onEnter(_arg1:Event){
if (((!((this.clock == null))) && (!(MainClass.Paused)))){
counter3++;
if (counter3 == 30){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
if (((MainClass.Paused) && (!(levelPause)))){
if (this.currentFrame == 2){
levelPause = true;
this.khadda.gotoAndStop(this.khadda.currentFrame);
};
if (this.currentFrame == 3){
levelPause = true;
this.cementCar.gotoAndStop(this.cementCar.currentFrame);
};
};
if (((levelPause) && (!(MainClass.Paused)))){
levelPause = false;
if (this.currentFrame == 2){
if (((((((((((!((this.khadda.currentFrame == 1))) && (!((this.khadda.currentFrame == 13))))) && (!((this.khadda.currentFrame == 23))))) && (!((this.khadda.currentFrame == 34))))) && (!((this.khadda.currentFrame == 46))))) && (!((this.khadda.currentFrame == 62))))){
this.khadda.gotoAndPlay(this.khadda.currentFrame);
};
};
if (this.currentFrame == 3){
if (((((!((this.cementCar.currentFrame == 15))) && (!((this.cementCar.currentFrame == 80))))) && (!((this.cementCar.currentFrame == 94))))){
this.cementCar.gotoAndPlay(this.cementCar.currentFrame);
};
};
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if (this.currentFrame == 2){
checkHits();
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame2(){
nextStep();
if (this.btCement != null){
this.btCement.mouseChildren = false;
};
if (this.khadda.favda.hitSpade != null){
this.khadda.favda.hitSpade.buttonMode = true;
};
if (this.tuto.inst != null){
this.tuto.inst.text = "Draw line on arrow to dig a hole";
};
if (this.back != null){
this.back.visible = false;
};
}
function frame3(){
stop();
}
public function checkHits(){
if (this.currentFrame == 2){
if (this.khadda.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
};
if (this.khadda.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
};
if (this.khadda.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
};
};
}
function frame6(){
if (fountain != null){
fountain.buttonMode = true;
};
}
function frame4(){
if (this.cementCar.cement != null){
this.cementCar.buttonMode = true;
this.cementCar.mouseChildren = false;
};
if (this.btFountain != null){
this.btFountain.buttonMode = true;
};
}
function frame5(){
stop();
if (this.fountain != null){
this.fountain.buttonMode = true;
};
nextStep();
if (this.tuto.inst != null){
this.tuto.inst.text = "Fix the Fountain pieces over the cement.";
};
}
function frame1(){
if (this.btSpade != null){
this.btSpade.mouseChildren = false;
this.btSpade.buttonMode = true;
};
if (this.done != null){
this.done.visible = false;
};
if (this.tuto.inst != null){
this.tuto.inst.text = "Select spade from the panel";
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
}
public function dropCement(){
switch (currentDig){
case 5:
if (this.cementCar.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.cementCar.gotoAndPlay(16);
};
break;
case 6:
if (this.cementCar.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.cementCar.gotoAndPlay(81);
};
break;
};
}
public function nextDig(){
currentDig++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
override public function onUp(_arg1:MouseEvent){
if (this.currentFrame == 5){
if (pick3){
dropFountain1();
} else {
if (pick2){
dropFountain2();
} else {
if (pick1){
dropFountain3();
};
};
};
};
if (this.currentFrame == 2){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
override public function init(){
currentStep = 1;
}
public function pickFountain1(){
if (this.fountain.part3.hitTestPoint(mouseX, mouseY)){
phase = 0;
pick3 = true;
pick2 = false;
pick1 = false;
this.fountain.part3.startDrag();
this.fountain.setChildIndex(this.fountain.part3, (this.fountain.numChildren - 1));
};
}
public function pickFountain3(){
if (this.fountain.part1.hitTestPoint(mouseX, mouseY)){
phase = 0;
pick3 = false;
pick2 = false;
pick1 = true;
this.fountain.part1.startDrag();
this.fountain.setChildIndex(this.fountain.part1, (this.fountain.numChildren - 1));
};
}
public function pickFountain2(){
if (this.fountain.part2.hitTestPoint(mouseX, mouseY)){
phase = 0;
pick3 = false;
pick2 = true;
pick1 = false;
this.fountain.part2.startDrag();
this.fountain.setChildIndex(this.fountain.part2, (this.fountain.numChildren - 1));
};
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 1){
if (_arg1.target.name == "back"){
nextLevel();
};
};
if ((((this.currentFrame == 5)) && (!((this.done == null))))){
if (_arg1.target.name == "done"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.fountain = true;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
};
if (this.currentFrame != 2){
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
public function pickSpade(){
if (this.btSpade.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(2);
};
}
public function digging(){
switch (currentDig){
case 1:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.khadda.gotoAndPlay(2);
};
break;
case 2:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.khadda.gotoAndPlay(14);
};
break;
case 3:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.khadda.gotoAndPlay(24);
};
break;
case 4:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.khadda.gotoAndPlay(34);
};
break;
case 5:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.khadda.gotoAndPlay(47);
};
break;
};
}
public function pickFountain(){
if (this.btFountain.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(5);
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
pickSpade();
break;
case 2:
if (ready == 1){
digging();
};
break;
case 3:
pickCementcar();
break;
case 4:
if (ready == 1){
dropCement();
};
break;
case 5:
pickFountain();
break;
case 6:
pickFountain1();
break;
case 7:
pickFountain2();
break;
case 8:
pickFountain3();
break;
};
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.btSpade != null){
return (this.btSpade.hitTestPoint(mouseX, mouseY));
};
case 2:
if (this.currentFrame == 2){
if (this.khadda.favda.hitSpade != null){
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
};
};
break;
case 3:
if (this.btCement != null){
return (this.btCement.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (this.cementCar != null){
return (this.cementCar.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.btFountain != null){
return (this.btFountain.hitTestPoint(mouseX, mouseY));
};
case 6:
if (this.fountain.part3 != null){
return (this.fountain.part3.hitTestPoint(mouseX, mouseY));
};
break;
case 7:
if (this.fountain.part2 != null){
return (this.fountain.part2.hitTestPoint(mouseX, mouseY));
};
break;
case 8:
if (this.fountain.part1 != null){
return (this.fountain.part1.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
public function pickCementcar(){
if (this.btCement.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(4);
};
}
}
}//package
Section 85
//GameOver (GameOver)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class GameOver extends MovieClip {
public var girlGamesBtn:SimpleButton;
public var playAgain:SimpleButton;
public var plaza:SimpleButton;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
Mouse.show();
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playAgain":
(this.parent as MainClass).playAgain();
remove();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 86
//GameoverSound (GameoverSound)
package {
public dynamic class GameoverSound extends CustomSound {
}
}//package
Section 87
//HouseScreen (HouseScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class HouseScreen extends Task {
public var clock:MovieClip;
var start1:Boolean;// = false
var start2:Boolean;// = false
var start4:Boolean;// = false
var start5:Boolean;// = false
var start8:Boolean;// = false
var start3:Boolean;// = false
var start6:Boolean;// = false
public var pick:Boolean;// = false
var start7:Boolean;// = false
var pick1:Boolean;// = false
public var btColor:MovieClip;
public var spadeHit:MovieClip;
public var heart:MovieClip;
public var pickCement:Boolean;// = false
public var bricks:cementWall;
public var paint:MovieClip;
public var w1:MovieClip;
public var w2:MovieClip;
public var w4:MovieClip;
public var w6:MovieClip;
public var w8:MovieClip;
public var w3:MovieClip;
public var w5:MovieClip;
public var w7:MovieClip;
public var btTools:MovieClip;
public var w9:MovieClip;
public var hammer:MovieClip;
public var taken:Boolean;// = false
public var pickHammer1:Boolean;// = false
public var tuto:MovieClip;
public var w11:MovieClip;
public var back:SimpleButton;
public var w22:MovieClip;
public var w33:MovieClip;
var wood1:Boolean;// = false
var wood3:Boolean;// = false
var wood6:Boolean;// = false
var wood7:Boolean;// = false
var wood8:Boolean;// = false
public var spade:MovieClip;
var wood5:Boolean;// = false
public var brush:MovieClip;
var wood2:Boolean;// = false
var wood4:Boolean;// = false
public var w44:MovieClip;
var ww4:Boolean;// = false
var ww5:Boolean;// = false
var ww6:Boolean;// = false
public var w55:MovieClip;
var ww1:Boolean;// = false
var ww8:Boolean;// = false
var ww3:Boolean;// = false
var ww7:Boolean;// = false
var ww2:Boolean;// = false
public var w66:MovieClip;
public var phase:Number;// = 1
public var done:SimpleButton;
public var w77:MovieClip;
public var cementContainer:MovieClip;
public var btCement:MovieClip;
public var counter2:int;// = 0
public var w88:MovieClip;
public var counter3:int;
public var wall:colorWall;
public var w99:MovieClip;
public var currentTime:int;
public var counter:int;// = 0
public static var getColor1:int;
public static var blueColor1:Boolean = false;
public static var yellowColor1:Boolean = false;
public static var greenColor1:Boolean = false;
public static var counter1:int = 0;
public static var cementing:Boolean = false;
public static var redColor1:Boolean = false;
public function HouseScreen(){
phase = 1;
pick = false;
pickCement = false;
pickHammer1 = false;
counter = 0;
counter2 = 0;
ww1 = false;
ww2 = false;
ww3 = false;
ww4 = false;
ww5 = false;
ww6 = false;
ww7 = false;
ww8 = false;
wood1 = false;
wood2 = false;
wood3 = false;
wood4 = false;
wood5 = false;
wood6 = false;
wood7 = false;
wood8 = false;
start1 = false;
start2 = false;
start3 = false;
start4 = false;
start5 = false;
start6 = false;
start7 = false;
start8 = false;
pick1 = false;
taken = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function takeCement(){
if (this.spadeHit != null){
if (this.spadeHit.hitTestPoint(mouseX, mouseY)){
cementing = true;
pick1 = true;
this.spade.startDrag(true);
this.spade.gotoAndStop(2);
this.tuto.inst.text = "Click and apply the cement over the broken wall areas.";
this.setChildIndex(this.spade, (this.numChildren - 1));
Mouse.hide();
};
};
if (this.cementContainer != null){
if (this.cementContainer.hitTestPoint(mouseX, mouseY)){
pick1 = false;
if (this.spade.currentFrame == 2){
this.spade.stopDrag();
if (MainClass.hit4){
this.tuto.inst.text = "Now select color bucket from the panel";
};
this.spade.gotoAndStop(1);
this.spade.x = 497.5;
this.spade.y = 412.15;
};
Mouse.show();
};
};
}
private function dropWood(){
if (this.currentFrame == 2){
this.w1.stopDrag();
if (this.w1.hitTestPoint(this.w11.x, this.w11.y)){
ww1 = true;
this.w1.x = 72.7;
this.w1.y = 223.6;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww1 = false;
this.w1.x = 13.65;
this.w1.y = 427.35;
};
if (this.w2.hitTestPoint(this.w22.x, this.w22.y)){
ww2 = true;
this.w2.x = 208.4;
this.w2.y = 111.15;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww2 = false;
this.w2.x = 37.95;
this.w2.y = 408.65;
};
if (this.w3.hitTestPoint(this.w33.x, this.w33.y)){
ww3 = true;
this.w3.x = 167.85;
this.w3.y = 149.2;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww3 = false;
this.w3.x = 13.65;
this.w3.y = 380.5;
};
if (this.w4.hitTestPoint(this.w44.x, this.w44.y)){
ww4 = true;
this.w4.x = 152.55;
this.w4.y = 56.6;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww4 = false;
this.w4.x = 223.65;
this.w4.y = 441.95;
};
if (this.w5.hitTestPoint(this.w55.x, this.w55.y)){
ww5 = true;
this.w5.x = 410.75;
this.w5.y = -0.1;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww5 = false;
this.w5.x = 317.75;
this.w5.y = 397.7;
};
if (this.w6.hitTestPoint(this.w66.x, this.w66.y)){
ww6 = true;
this.w6.x = 300.7;
this.w6.y = 167.05;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww6 = false;
this.w6.x = 428.7;
this.w6.y = 430.05;
};
if (this.w7.hitTestPoint(this.w77.x, this.w77.y)){
ww7 = true;
this.w7.x = 375.55;
this.w7.y = 205.3;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww7 = false;
this.w7.x = 534.7;
this.w7.y = 402.5;
};
if (this.w8.hitTestPoint(this.w88.x, this.w88.y)){
ww8 = true;
this.w8.x = 433.05;
this.w8.y = 82.1;
counter++;
if (((((((((((((((ww1) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
this.hammer.buttonMode = true;
this.tuto.inst.text = "Click on Hammer and then keep clicking on the planks to fix them.";
};
} else {
ww8 = false;
this.w8.x = 601.05;
this.w8.y = 365.1;
};
};
}
override public function onEnter(_arg1:Event){
if (((!((this.clock == null))) && (!(MainClass.Paused)))){
counter3++;
if (counter3 == 35){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
if (counter1 > 3){
counter1 = 0;
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((this.currentFrame == 3)))){
if (_arg1.buttonDown){
if (_arg1.target.name == "bricks"){
if (pick1){
(this.getChildByName("bricks") as cementWall).drawLine();
(this.getChildByName("bricks") as cementWall).checkHits();
};
};
};
(this.getChildByName("bricks") as cementWall).setValues();
} else {
if ((((phase == 1)) && ((this.currentFrame == 4)))){
if (_arg1.buttonDown){
if (_arg1.target.name == "wall"){
(this.getChildByName("wall") as colorWall).drawLine();
(this.getChildByName("wall") as colorWall).checkHits();
};
};
(this.getChildByName("wall") as colorWall).setValues();
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function pickTools(){
phase = 0;
this.gotoAndStop(2);
}
private function pickHammer(){
if (this.hammer.hitTestPoint(mouseX, mouseY)){
this.hammer.startDrag();
this.setChildIndex(this.hammer, (this.numChildren - 1));
pickHammer1 = true;
};
}
public function counterIncreament(){
if (((((((((((((((this.w1.hitTestPoint(mouseX, mouseY)) || (this.w2.hitTestPoint(mouseX, mouseY)))) || (this.w3.hitTestPoint(mouseX, mouseY)))) || (this.w4.hitTestPoint(mouseX, mouseY)))) || (this.w5.hitTestPoint(mouseX, mouseY)))) || (this.w6.hitTestPoint(mouseX, mouseY)))) || (this.w7.hitTestPoint(mouseX, mouseY)))) || (this.w8.hitTestPoint(mouseX, mouseY)))){
counter1++;
};
}
function frame1(){
if (this.btTools != null){
this.btTools.buttonMode = true;
};
if (this.done != null){
this.done.visible = false;
};
if (this.tuto != null){
this.tuto.inst.text = "Click on Wood and Hammer from the panel.";
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
}
function frame3(){
if (this.bricks != null){
this.bricks.mouseChildren = false;
};
if (this.btColor != null){
this.btColor.buttonMode = true;
this.btColor.mouseChildren = false;
};
if (this.spadeHit != null){
this.spadeHit.buttonMode = true;
};
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame4(){
if (this.wall != null){
this.wall.mouseChildren = false;
};
if (this.paint != null){
this.paint.buttonMode = true;
this.paint.gotoAndPlay(2);
};
}
function frame2(){
if (this.w1 != null){
this.w1.buttonMode = true;
};
if (this.w2 != null){
this.w2.buttonMode = true;
};
if (this.w3 != null){
this.w3.buttonMode = true;
};
if (this.w4 != null){
this.w4.buttonMode = true;
};
if (this.w5 != null){
this.w5.buttonMode = true;
};
if (this.w6 != null){
this.w6.buttonMode = true;
};
if (this.w7 != null){
this.w7.buttonMode = true;
};
if (this.w8 != null){
this.w8.buttonMode = true;
};
if (this.w9 != null){
this.w9.buttonMode = true;
};
if (this.btCement != null){
this.btCement.mouseChildren = false;
};
if (this.tuto != null){
this.tuto.inst.text = "Click to drag the wood planks and drop them to its proper place on the roof.";
};
if (this.back != null){
this.back.visible = false;
};
nextStep();
}
private function dropHammer(){
if (this.hammer.hitTestObject(this.w1)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w2)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w3)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w4)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w5)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w6)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w7)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
if (this.hammer.hitTestObject(this.w8)){
this.hammer.gotoAndPlay(2);
} else {
this.hammer.gotoAndStop(1);
};
}
private function HitWood(){
if (pickHammer1){
if (((this.w1.hitTestPoint(mouseX, mouseY)) && (!(wood1)))){
this.hammer.x = ((this.w1.x + (this.w1.width / 2)) + 20);
this.hammer.y = ((this.w1.y - this.w1.height) - 10);
if (this.w1.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w1.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w2.hitTestPoint(mouseX, mouseY)) && (!(wood2)))){
this.hammer.x = ((this.w2.x + (this.w2.width / 2)) + 23);
this.hammer.y = ((this.w2.y - this.w2.height) - 10);
if (this.w2.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w2.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w3.hitTestPoint(mouseX, mouseY)) && (!(wood3)))){
this.hammer.x = ((this.w3.x + (this.w3.width / 2)) + 20);
this.hammer.y = ((this.w3.y - this.w3.height) - 10);
if (this.w3.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w3.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w4.hitTestPoint(mouseX, mouseY)) && (!(wood4)))){
this.hammer.x = ((this.w4.x + (this.w4.width / 2)) + 18);
this.hammer.y = ((this.w4.y - this.w4.height) - 10);
if (this.w4.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w4.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w5.hitTestPoint(mouseX, mouseY)) && (!(wood5)))){
this.hammer.x = ((this.w5.x + (this.w5.width / 2)) + 18);
this.hammer.y = ((this.w5.y - this.w5.height) + 30);
if (this.w5.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w5.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w6.hitTestPoint(mouseX, mouseY)) && (!(wood6)))){
this.hammer.x = ((this.w6.x + (this.w6.width / 2)) + 25);
this.hammer.y = ((this.w6.y - this.w6.height) - 10);
if (this.w6.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w6.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w7.hitTestPoint(mouseX, mouseY)) && (!(wood7)))){
this.hammer.x = ((this.w7.x + (this.w7.width / 2)) + 19);
this.hammer.y = ((this.w7.y - this.w7.height) - 10);
if (this.w7.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w7.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
} else {
if (((this.w8.hitTestPoint(mouseX, mouseY)) && (!(wood8)))){
this.hammer.x = ((this.w8.x + (this.w8.width / 2)) + 20);
this.hammer.y = ((this.w8.y - this.w8.height) - 10);
if (this.w8.currentFrame == 1){
};
if ((((this.hammer.currentFrame == 1)) && ((this.w8.currentFrame == 1)))){
this.hammer.gotoAndPlay(2);
};
};
};
};
};
};
};
};
};
};
}
override public function onUp(_arg1:MouseEvent){
if ((((this.currentFrame == 2)) && (!(pickHammer1)))){
dropWood();
};
if ((((((((((((((((((this.currentFrame == 2)) && (ww1))) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
};
}
override public function onOut(_arg1:MouseEvent){
if (_arg1.target.name == "done"){
Mouse.hide();
if (this.brush != null){
this.brush.visible = true;
};
};
}
override public function init(){
currentStep = 1;
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 1){
if (_arg1.target.name == "back"){
nextLevel();
};
};
if ((((((((((((((((((this.currentFrame == 2)) && (ww1))) && (ww2))) && (ww3))) && (ww4))) && (ww5))) && (ww6))) && (ww7))) && (ww8))){
pickHammer();
HitWood();
};
if ((((this.currentFrame == 2)) && (!(pick)))){
pickWoods();
};
if ((((this.currentFrame == 2)) && (pickCement))){
if (_arg1.target.name == "btCement"){
this.w1.visible = false;
this.w2.visible = false;
this.w3.visible = false;
this.w4.visible = false;
this.w5.visible = false;
this.w6.visible = false;
this.w7.visible = false;
this.w8.visible = false;
this.hammer.visible = false;
pickCement = false;
this.gotoAndStop(3);
this.tuto.inst.text = "Click and drag the cement over the broken wall areas.";
};
};
if ((((this.currentFrame == 3)) && (!(pickCement)))){
takeCement();
if ((((_arg1.target.name == "btColor")) && (MainClass.hit4))){
this.gotoAndStop(4);
Mouse.show();
if (this.spade != null){
this.spade.visible = false;
};
};
};
if (this.currentFrame == 4){
pickColor();
if (_arg1.target.name == "done"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.house = true;
MainClass.hit4 = false;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
};
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
public function Hammering(){
if (pickHammer1){
if (this.w1.hitTestPoint(mouseX, mouseY)){
if (!start1){
counter1 = 0;
start1 = true;
start2 = false;
start3 = false;
start4 = false;
start5 = false;
start6 = false;
start7 = false;
start8 = false;
};
if (counter1 == 2){
counter1 = 0;
if (this.w1.currentFrame == 1){
this.w1.gotoAndStop(2);
wood1 = true;
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w2.hitTestPoint(mouseX, mouseY)){
if (!start2){
counter1 = 0;
start1 = false;
start2 = true;
start3 = false;
start4 = false;
start5 = false;
start6 = false;
start7 = false;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w2.currentFrame == 1){
this.w2.gotoAndStop(2);
if (this.w1.currentFrame == 1){
wood1 = false;
};
wood2 = true;
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w3.hitTestPoint(mouseX, mouseY)){
if (!start3){
counter1 = 0;
start1 = false;
start2 = false;
start3 = true;
start4 = false;
start5 = false;
start6 = false;
start7 = false;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w3.currentFrame == 1){
this.w3.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
wood3 = true;
if (this.w1.currentFrame == 1){
wood1 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w4.hitTestPoint(mouseX, mouseY)){
if (!start4){
counter1 = 0;
start1 = false;
start2 = false;
start3 = false;
start4 = true;
start5 = false;
start6 = false;
start7 = false;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w4.currentFrame == 1){
this.w4.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
wood4 = true;
if (this.w1.currentFrame == 1){
wood1 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w2.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w5.hitTestPoint(mouseX, mouseY)){
if (!start5){
counter1 = 0;
start1 = false;
start2 = false;
start3 = false;
start4 = false;
start5 = true;
start6 = false;
start7 = false;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w5.currentFrame == 1){
this.w5.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
wood5 = true;
if (this.w1.currentFrame == 1){
wood1 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w6.hitTestPoint(mouseX, mouseY)){
if (!start6){
counter1 = 0;
start1 = false;
start2 = false;
start3 = false;
start4 = false;
start5 = false;
start6 = true;
start7 = false;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w6.currentFrame == 1){
this.w6.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
wood6 = true;
if (this.w1.currentFrame == 1){
wood1 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w7.hitTestPoint(mouseX, mouseY)){
if (!start7){
counter1 = 0;
start1 = false;
start2 = false;
start3 = false;
start4 = false;
start5 = false;
start6 = false;
start7 = true;
start8 = false;
};
if (counter1 == 3){
counter1 = 0;
if (this.w7.currentFrame == 1){
this.w7.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w1.currentFrame == 1){
wood1 = false;
};
wood7 = true;
if (this.w8.currentFrame == 1){
wood8 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
} else {
if (this.w8.hitTestPoint(mouseX, mouseY)){
if (!start8){
counter1 = 0;
start1 = false;
start2 = false;
start3 = false;
start4 = false;
start5 = false;
start6 = false;
start7 = true;
start8 = true;
};
if (counter1 == 3){
counter1 = 0;
if (this.w8.currentFrame == 1){
this.w8.gotoAndStop(2);
if (this.w2.currentFrame == 1){
wood2 = false;
};
if (this.w3.currentFrame == 1){
wood3 = false;
};
if (this.w4.currentFrame == 1){
wood4 = false;
};
if (this.w5.currentFrame == 1){
wood5 = false;
};
if (this.w6.currentFrame == 1){
wood6 = false;
};
if (this.w7.currentFrame == 1){
wood7 = false;
};
wood8 = true;
if (this.w1.currentFrame == 1){
wood1 = false;
};
counter2++;
};
if (counter2 >= 8){
if (this.tuto != null){
this.tuto.inst.text = "Select white cement from the panel.";
};
pickCement = true;
if (this.btCement != null){
this.btCement.buttonMode = true;
};
this.hammer.visible = false;
};
};
};
};
};
};
};
};
};
};
};
}
override public function onOver(_arg1:MouseEvent){
if (_arg1.target.name == "done"){
Mouse.show();
if (this.brush != null){
this.brush.visible = false;
};
};
}
private function pickColor(){
if (this.paint != null){
if (this.paint.paint1.currentFrame == 21){
if (this.paint.paint1.redPaint.hitTestPoint(mouseX, mouseY)){
this.tuto.inst.text = "Click and brush on the wall to apply the color.";
this.brush.startDrag(true);
this.brush.gotoAndStop(1);
Mouse.hide();
redColor1 = true;
blueColor1 = false;
greenColor1 = false;
yellowColor1 = false;
getColor1 = 1;
if (this.done != null){
this.done.visible = false;
};
(this.getChildByName("wall") as colorWall).removeLine();
(this.getChildByName("wall") as colorWall).setLine();
(this.getChildByName("wall") as colorWall).resetPoints();
} else {
if (this.paint.paint1.bluePaint.hitTestPoint(mouseX, mouseY)){
this.tuto.inst.text = "Click and brush on the wall to apply the color.";
this.brush.startDrag(true);
Mouse.hide();
blueColor1 = true;
redColor1 = false;
greenColor1 = false;
yellowColor1 = false;
getColor1 = 3;
this.brush.gotoAndStop(2);
if (this.done != null){
this.done.visible = false;
};
(this.getChildByName("wall") as colorWall).removeLine();
(this.getChildByName("wall") as colorWall).setLine();
(this.getChildByName("wall") as colorWall).resetPoints();
} else {
if (this.paint.paint1.yellowPaint.hitTestPoint(mouseX, mouseY)){
this.tuto.inst.text = "Click and brush on the wall to apply the color.";
this.brush.startDrag(true);
yellowColor1 = true;
redColor1 = false;
blueColor1 = false;
greenColor1 = false;
getColor1 = 2;
this.brush.gotoAndStop(3);
if (this.done != null){
this.done.visible = false;
};
(this.getChildByName("wall") as colorWall).removeLine();
(this.getChildByName("wall") as colorWall).setLine();
(this.getChildByName("wall") as colorWall).resetPoints();
} else {
if (this.paint.paint1.greenPaint.hitTestPoint(mouseX, mouseY)){
this.tuto.inst.text = "Click and brush on the wall to apply the color.";
this.brush.startDrag(true);
greenColor1 = true;
yellowColor1 = false;
redColor1 = false;
blueColor1 = false;
getColor1 = 4;
this.brush.gotoAndStop(4);
if (this.done != null){
this.done.visible = false;
};
(this.getChildByName("wall") as colorWall).removeLine();
(this.getChildByName("wall") as colorWall).setLine();
(this.getChildByName("wall") as colorWall).resetPoints();
};
};
};
};
};
};
}
private function pickWoods(){
if (((this.w1.hitTestPoint(mouseX, mouseY)) && (!(ww1)))){
this.w1.startDrag();
this.setChildIndex(this.w1, (this.numChildren - 1));
} else {
if (((this.w2.hitTestPoint(mouseX, mouseY)) && (!(ww2)))){
this.w2.startDrag();
this.setChildIndex(this.w2, (this.numChildren - 1));
} else {
if (((this.w3.hitTestPoint(mouseX, mouseY)) && (!(ww3)))){
this.w3.startDrag();
this.setChildIndex(this.w3, (this.numChildren - 1));
} else {
if (((this.w4.hitTestPoint(mouseX, mouseY)) && (!(ww4)))){
this.w4.startDrag();
this.setChildIndex(this.w4, (this.numChildren - 1));
} else {
if (((this.w5.hitTestPoint(mouseX, mouseY)) && (!(ww5)))){
this.w5.startDrag();
this.setChildIndex(this.w5, (this.numChildren - 1));
} else {
if (((this.w6.hitTestPoint(mouseX, mouseY)) && (!(ww6)))){
this.w6.startDrag();
this.setChildIndex(this.w6, (this.numChildren - 1));
} else {
if (((this.w7.hitTestPoint(mouseX, mouseY)) && (!(ww7)))){
this.w7.startDrag();
this.setChildIndex(this.w7, (this.numChildren - 1));
} else {
if (((this.w8.hitTestPoint(mouseX, mouseY)) && (!(ww8)))){
this.w8.startDrag();
this.setChildIndex(this.w8, (this.numChildren - 1));
};
};
};
};
};
};
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
pickTools();
break;
case 2:
break;
};
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.btTools != null){
return (this.btTools.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
}
}//package
Section 88
//IngameSound (IngameSound)
package {
public dynamic class IngameSound extends CustomSound {
}
}//package
Section 89
//Instructions (Instructions)
package {
import flash.events.*;
import flash.display.*;
public class Instructions extends MovieClip {
public var plaza:SimpleButton;
public var back:SimpleButton;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
addEventListener(MouseEvent.CLICK, handleClick, false, 0, true);
};
}
public function removeListeners(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, handleClick);
};
}
public function handleClick(_arg1:MouseEvent){
if (_arg1.target.name == "back"){
(this.parent as MainClass).removeInstruction();
} else {
if (_arg1.target.name == "plaza"){
(this.parent as MainClass).playMoreGames();
};
};
}
}
}//package
Section 90
//LawnScreen (LawnScreen)
package {
import flash.events.*;
import flash.display.*;
public class LawnScreen extends Task {
public var clock:MovieClip;
private var counter:int;
private var position:int;// = 0
private var easing:Number;// = 0.1
private var Speed:Number;// = 2
public var done1:SimpleButton;
private var p:int;
private var increment:int;// = 0
public var phase:Number;// = 1
private var dummy1:int;// = 0
private var wrongDirection:Boolean;// = false
public var heart:MovieClip;
public var cutter:MovieClip;
private var dummy:int;// = 0
private var done:Boolean;// = false
private var counter1:int;// = 0
private var counter3:int;
public var grass:MovieClip;
private var Test:int;// = 0
private var vx:int;
public var tuto:MovieClip;
private var counter2:int;// = 0
private var p1:int;
private var currentTime:int;
private var targetY:Number;
public var back:SimpleButton;
private var targetX:Number;
public function LawnScreen(){
phase = 1;
easing = 0.1;
targetX = (mouseX + 100);
targetY = mouseY;
Speed = 2;
position = 0;
Test = 0;
wrongDirection = false;
dummy = 0;
dummy1 = 0;
increment = 0;
counter1 = 0;
counter2 = 0;
done = false;
super();
addFrameScript(0, frame1);
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
override public function init(){
currentStep = 1;
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
break;
default:
return (false);
};
return (false);
}
override public function onEnter(_arg1:Event){
moveCutter();
if ((((((vx == 0)) && ((this.cutter.x > 0)))) && ((this.cutter.x < 670)))){
this.cutter.gotoAndStop(1);
};
if ((((mouseX > this.cutter.x)) && (wrongDirection))){
this.cutter.gotoAndStop(1);
};
if ((((mouseX < this.cutter.x)) && (!(wrongDirection)))){
this.cutter.gotoAndStop(1);
};
if (this.clock != null){
counter3++;
if (counter3 == 30){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
}
override public function onDown(_arg1:MouseEvent){
if (_arg1.target.name == "back"){
nextLevel();
};
if (_arg1.target.name == "done1"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.lawn = true;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
if (this.cutter.hitTestPoint(mouseX, mouseY)){
if ((((this.cutter.currentFrame == 1)) && ((this.grass.p9.width > 0)))){
this.cutter.gotoAndStop(2);
this.back.visible = false;
if (this.tuto != null){
this.tuto.inst.text = "click on machine to start or stop.";
};
} else {
if (this.cutter.currentFrame == 2){
this.cutter.gotoAndStop(1);
};
};
};
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame1(){
if (this.done1 != null){
this.done1.visible = false;
};
if (this.cutter != null){
this.cutter.buttonMode = true;
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
if (this.tuto != null){
this.tuto.inst.text = "Click on mower & move the mouse in front of it to make it follow.";
};
}
public function moveCutter(){
if (this.cutter.currentFrame == 2){
if ((((this.cutter.x < 750)) && (!(wrongDirection)))){
targetX = mouseX;
vx = ((targetX - this.cutter.x) * easing);
if (vx > 6){
vx = 6;
};
if (vx < -2){
vx = -2;
};
if (mouseX > this.cutter.x){
this.cutter.x = (this.cutter.x + vx);
if (((!((this.grass.p1 == null))) && ((counter2 == 0)))){
this.grass.p1.width = (this.grass.p1.width - vx);
};
if (((!((this.grass.p3 == null))) && ((counter1 == 1)))){
this.grass.p3.width = (this.grass.p3.width - vx);
};
if (((!((this.grass.p5 == null))) && ((counter2 == 2)))){
this.grass.p5.width = (this.grass.p5.width - vx);
};
if (((!((this.grass.p7 == null))) && ((counter2 == 3)))){
this.grass.p7.width = (this.grass.p7.width - vx);
};
if (((!((this.grass.p9 == null))) && ((counter2 == 4)))){
this.grass.p9.width = (this.grass.p9.width - vx);
};
};
};
if ((((this.cutter.x < 755)) && (wrongDirection))){
targetX = mouseX;
vx = ((targetX - (this.cutter.x - 680)) * easing);
if (vx > 5){
vx = 5;
};
if (vx < -2){
vx = -2;
};
if (mouseX < this.cutter.x){
this.cutter.x = (this.cutter.x - vx);
if (((!((this.grass.p2 == null))) && ((counter1 == 1)))){
this.cutter.y = 190;
this.grass.p2.width = (this.grass.p2.width - vx);
};
if (((!((this.grass.p4 == null))) && ((counter2 == 1)))){
this.grass.p4.width = (this.grass.p4.width - vx);
};
if (((!((this.grass.p6 == null))) && ((counter2 == 2)))){
this.grass.p6.width = (this.grass.p6.width - vx);
};
if (((!((this.grass.p8 == null))) && ((counter2 == 3)))){
this.grass.p8.width = (this.grass.p8.width - vx);
};
};
};
if ((((this.cutter.x > 670)) && (!(wrongDirection)))){
wrongDirection = true;
this.cutter.scaleX = -1;
counter1++;
if (counter1 == 1){
this.grass.p1.width = 0;
this.cutter.y = 190;
} else {
if (counter1 == 2){
this.grass.p3.width = 0;
this.cutter.y = 290;
} else {
if (counter1 == 3){
this.grass.p5.width = 0;
this.cutter.y = 390;
} else {
if (counter1 == 4){
this.grass.p7.width = 0;
this.cutter.y = 490;
} else {
if (counter1 == 5){
this.grass.p9.width = 0;
this.done1.visible = true;
if (this.tuto != null){
this.tuto.inst.text = "click on done button to continue.";
};
};
};
};
};
};
};
if ((((this.cutter.x < 22)) && (wrongDirection))){
this.cutter.scaleX = 1;
wrongDirection = false;
increment = (increment + 25);
counter2++;
if (counter2 == 1){
this.cutter.y = 250;
this.grass.p2.width = 0;
} else {
if (counter2 == 2){
this.grass.p4.width = 0;
this.cutter.y = 350;
} else {
if (counter2 == 3){
this.grass.p6.width = 0;
this.cutter.y = 450;
} else {
if (counter2 == 4){
this.grass.p8.width = 0;
this.cutter.y = 530;
};
};
};
};
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
};
}
override public function onRoll(_arg1:MouseEvent){
}
}
}//package
Section 91
//MainClass (MainClass)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class MainClass extends MovieClip {
public var pauseScreen:PauseScreen;
private var youWin:YouWin;
private var myContextMenu:ContextMenu;
private var welcome:Welcome;
private var pausedBmp:Bitmap;
private var bmpData1:BitmapData;
private var inst:Instructions;
private var container:Container;
private var transitionManager:MyTransitionManager;
private var disScreen:disturbScreen;
private var urlHandler:URLHandler;
public var chart:storyLine;
private var gameOver:GameOver;
public static var hit4:Boolean = false;
public static var currentLevel:int;
public static var lawn:Boolean = false;
public static var Paused:Boolean = false;
public static var seaSaw:Boolean = false;
public static var levelCounter:int;
public static var ss:soundSymbol;
public static var house:Boolean = false;
public static var pool:Boolean = false;
public static var totalScore:Number = 0;
public static var snd:SoundController;
public static var fence:Boolean = false;
public static var fountain:Boolean = false;
public static var current:int = 0;
public static var counter:int;
public function MainClass(){
snd = new SoundController();
addEventListener(Event.ENTER_FRAME, initialise, false, 0, true);
pauseScreen = new PauseScreen();
}
public function removeTransition(_arg1:int){
switch (_arg1){
case 1:
removeWelcome();
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
};
if (transitionManager != null){
removeChild(transitionManager);
transitionManager = null;
};
}
public function pauseGame(){
addChild(pauseScreen);
pauseScreen.init();
if (!pausedBmp){
pausedBmp = new Bitmap(new BitmapData(700, 550));
};
pausedBmp.bitmapData.draw(container);
if (!pauseScreen.contains(pausedBmp)){
pauseScreen.addChildAt(pausedBmp, 0);
};
}
private function initGame(){
createWelcome();
}
public function removeWelcome(){
if (welcome){
welcome.remove();
if (contains(welcome)){
removeChild(welcome);
};
welcome = null;
};
}
private function onDown(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 80:
if (container != null){
if (!Paused){
pauseGame();
Paused = true;
} else {
if (Paused){
unpauseGame();
Paused = false;
};
};
};
break;
};
}
public function createMidscreen(){
clearGraphics();
if (disScreen == null){
removeChart();
disScreen = new disturbScreen();
};
addChild(disScreen);
setChildIndex(disScreen, (numChildren - 1));
disScreen.init();
snd.playMusic(SoundController.MUSIC_INGAME);
if (ss == null){
ss = new soundSymbol();
};
addChildAt(ss, 1);
ss.x = 595;
ss.y = 25;
ss.scaleX = 0.3;
ss.scaleY = 0.3;
}
public function createGameOver(){
clearGraphics();
if (gameOver == null){
gameOver = new GameOver();
};
addChild(gameOver);
setChildIndex(gameOver, (numChildren - 1));
gameOver.init();
snd.playMusic(SoundController.MUSIC_GAMEOVER);
}
public function removeInstruction(){
if (inst != null){
removeChild(inst);
inst = null;
};
}
public function endLevel(_arg1:int){
}
public function startGame(){
removeMidscreen();
startLevel();
}
public function nextLevel(){
startLevel();
}
public function removeMidscreen(){
if (disScreen != null){
removeChild(disScreen);
disScreen = null;
};
}
public function createYouWin(){
clearGraphics();
if (youWin == null){
youWin = new YouWin();
};
if (!contains(youWin)){
addChild(youWin);
};
youWin.init();
setChildIndex(youWin, (numChildren - 1));
snd.playMusic(SoundController.MUSIC_YOUWIN);
}
public function gotoGirlGames(){
}
public function playTransition(_arg1:int){
transitionManager = new MyTransitionManager();
switch (_arg1){
case 1:
createMidscreen();
bmpData1.draw(disScreen);
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
};
transitionManager.init(bmpData1, _arg1);
addChild(transitionManager);
transitionManager.run();
}
public function removeGameover(){
if (gameOver != null){
removeChild(gameOver);
gameOver = null;
};
}
public function unpauseGame(){
if (contains(pauseScreen)){
removeChild(pauseScreen);
};
if (pausedBmp){
if (pauseScreen.contains(pausedBmp)){
pauseScreen.removeChild(pausedBmp);
};
pausedBmp = null;
};
}
public function startLevel(){
clearGraphics();
if (container == null){
container = new Container();
};
addChildAt(container, 0);
container.init();
stage.focus = container;
}
private function initialise(_arg1:Event){
if (stage != null){
if (!stage.hasEventListener(KeyboardEvent.KEY_DOWN)){
stage.addEventListener(KeyboardEvent.KEY_DOWN, onDown, false, 0, true);
};
if (!stage.hasEventListener(KeyboardEvent.KEY_UP)){
stage.addEventListener(KeyboardEvent.KEY_UP, onUp, false, 0, true);
};
stage.focus = this;
stage.stageFocusRect = false;
removeEventListener(Event.ENTER_FRAME, initialise);
bmpData1 = new BitmapData(700, 550, true, 0);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
this.contextMenu = myContextMenu;
urlHandler = new URLHandler();
initGame();
};
}
public function removeChart(){
if (chart != null){
removeChild(chart);
chart = null;
};
}
public function playAgain(){
MainClass.hit4 = false;
createWelcome();
removeGameover();
removeYouWin();
MainClass.counter = 0;
}
public function createWelcome(){
if (welcome == null){
welcome = new Welcome();
};
addChild(welcome);
setChildIndex(welcome, (numChildren - 1));
MainClass.seaSaw = false;
MainClass.pool = false;
MainClass.lawn = false;
MainClass.fountain = false;
MainClass.fence = false;
MainClass.house = false;
welcome.init();
snd.playMusic(SoundController.MUSIC_WELCOME);
}
public function playMoreGames(){
urlHandler.openPlayMoreGames();
}
public function addMoreGames(){
urlHandler.openAddMoreGames();
}
public function resetTime(){
}
private function onUp(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 80:
};
}
public function replayLevel(){
startLevel();
}
public function createChart(){
if (chart == null){
removeWelcome();
chart = new storyLine();
};
addChild(chart);
setChildIndex(chart, (numChildren - 1));
chart.init();
}
public function removeYouWin(){
if (youWin != null){
removeChild(youWin);
youWin = null;
};
}
public function createInstruction(){
if (inst == null){
inst = new Instructions();
};
addChild(inst);
inst.init();
}
private function clearGraphics(){
if (container){
if (contains(container)){
container.removeListeners();
removeChild(container);
};
container = null;
};
}
}
}//package
Section 92
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 93
//MyTransitionManager (MyTransitionManager)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class MyTransitionManager extends MovieClip {
private var size:int;// = 50
private var pt:Point;
private var rect:Rectangle;
private var typeNumber:int;
private var scaleArray:Array;
private var scaleFactor:Number;// = 0.1
private var yNum:int;
private var bmpDataArray:Array;
private var shrinkArray:Array;
private var xNum:int;
public function MyTransitionManager(){
size = 50;
scaleFactor = 0.1;
super();
bmpDataArray = new Array();
pt = new Point(0, 0);
xNum = (700 / size);
yNum = (500 / size);
shrinkArray = new Array();
scaleArray = new Array();
}
public function init(_arg1:BitmapData, _arg2:int){
var _local3:BitmapData;
var _local4:int;
var _local5:int;
var _local6:int;
typeNumber = _arg2;
_local4 = 0;
_local5 = 0;
while (_local5 < xNum) {
_local6 = 0;
while (_local6 < yNum) {
_local3 = new BitmapData(size, size, true, 0);
rect = new Rectangle((_local5 * size), (_local6 * size), size, size);
_local3.copyPixels(_arg1, rect, pt);
bmpDataArray[_local4] = new Bitmap(_local3);
addChild(bmpDataArray[_local4]);
bmpDataArray[_local4].x = ((_local5 * size) + (size / 2));
bmpDataArray[_local4].y = ((_local6 * size) + (size / 2));
bmpDataArray[_local4].scaleX = (bmpDataArray[_local4].scaleY = 0);
_local4++;
_local6++;
};
_local5++;
};
}
private function onEnter(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:Bitmap;
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (bmpDataArray.length > 0){
_local2 = int((Math.random() * bmpDataArray.length));
scaleArray.push(bmpDataArray[_local2]);
bmpDataArray.splice(_local2, 1);
};
if (scaleArray.length > 0){
_local3 = 0;
while (_local3 < scaleArray.length) {
_local4 = (scaleArray[_local3] as Bitmap);
if (_local4.scaleX < 1){
_local4.scaleX = (_local4.scaleX + scaleFactor);
_local4.scaleY = (_local4.scaleY + scaleFactor);
_local4.x = (_local4.x - ((scaleFactor * size) / 2));
_local4.y = (_local4.y - ((scaleFactor * size) / 2));
} else {
scaleArray.splice(_local3, 1);
_local3--;
};
_local3++;
};
};
if ((((shrinkArray.length <= 0)) && ((scaleArray.length <= 0)))){
removeEventListener(Event.ENTER_FRAME, onEnter);
(this.parent as MainClass).removeTransition(typeNumber);
};
}
public function run(){
addEventListener(Event.ENTER_FRAME, onEnter, false, 0, true);
}
}
}//package
Section 94
//PauseScreen (PauseScreen)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class PauseScreen extends MovieClip {
public var pauseSc:MovieClip;
public function init(){
Mouse.show();
if (!this.hasEventListener(MouseEvent.CLICK)){
addEventListener(MouseEvent.CLICK, handleClick, false, 0, true);
};
}
public function handleClick(_arg1:MouseEvent){
if (_arg1.target.name == "plaza"){
(this.parent as MainClass).playMoreGames();
};
}
}
}//package
Section 95
//PoolScreen (PoolScreen)
package {
import flash.events.*;
import flash.display.*;
public class PoolScreen extends Task {
public var clock:MovieClip;
public var heart:MovieClip;
public var currentDig:Number;// = 1
public var soil:MovieClip;
public var tuto:MovieClip;
private var h1:Boolean;// = false
private var h2:Boolean;// = false
private var h3:Boolean;// = false
private var levelPause:Boolean;// = false
public var back:SimpleButton;
public var cementCar:MovieClip;
public var water:MovieClip;
public var btBrick:MovieClip;
public var btPipe:MovieClip;
public var digOut:Boolean;// = false
public var phase:Number;// = 1
private var LineDraw:Boolean;// = false
public var done:SimpleButton;
public var ready:Number;// = 1
public var btCement:MovieClip;
private var counter3:int;
private var currentTime:int;
public var btSpade:MovieClip;
public function PoolScreen(){
phase = 1;
ready = 1;
currentDig = 1;
levelPause = false;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
digOut = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
override public function onEnter(_arg1:Event){
if (((!((this.clock == null))) && (!(MainClass.Paused)))){
counter3++;
if (counter3 == 30){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
if (((MainClass.Paused) && (!(levelPause)))){
if (this.currentFrame == 2){
levelPause = true;
this.soil.gotoAndStop(this.soil.currentFrame);
};
if (this.currentFrame == 3){
levelPause = true;
this.cementCar.gotoAndStop(this.cementCar.currentFrame);
};
};
if (((levelPause) && (!(MainClass.Paused)))){
levelPause = false;
if (this.currentFrame == 2){
if (((((((((((!((this.soil.currentFrame == 1))) && (!((this.soil.currentFrame == 13))))) && (!((this.soil.currentFrame == 23))))) && (!((this.soil.currentFrame == 34))))) && (!((this.soil.currentFrame == 45))))) && (!((this.soil.currentFrame == 60))))){
this.soil.gotoAndPlay(this.soil.currentFrame);
};
};
if (this.currentFrame == 3){
if (((((!((this.cementCar.currentFrame == 28))) && (!((this.cementCar.currentFrame == 123))))) && (!((this.cementCar.currentFrame == 150))))){
this.cementCar.gotoAndPlay(this.cementCar.currentFrame);
};
};
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if (this.currentFrame == 2){
checkHits();
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame2(){
stop();
nextStep();
if (this.soil.spade.hitSpade != null){
this.soil.spade.hitSpade.buttonMode = true;
};
if (this.btCement){
this.btCement.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Draw line on arrow to dig a hole.";
};
if (this.back != null){
this.back.visible = false;
};
}
function frame3(){
if (this.btBrick != null){
};
}
function frame4(){
if (this.btBrick != null){
this.btBrick.mouseChildren = false;
};
if (this.cementCar != null){
this.cementCar.buttonMode = true;
};
}
public function checkHits(){
if (this.currentFrame == 2){
if (this.soil.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
};
if (this.soil.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
};
if (this.soil.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
};
};
}
function frame6(){
if (this.water != null){
this.water.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Click Water pipe to fill water into the swimming pool.";
};
nextStep();
}
function frame1(){
if (this.btSpade != null){
this.btSpade.mouseChildren = false;
this.btSpade.buttonMode = true;
};
if (this.done != null){
this.done.visible = false;
};
if (this.tuto != null){
this.tuto.inst.text = "Select spade form the panel.";
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
}
function frame5(){
if (this.btPipe != null){
this.btPipe.buttonMode = true;
};
}
public function nextDig(){
currentDig++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
private function dropCement(){
switch (currentDig){
case 5:
if (this.cementCar.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.cementCar.gotoAndPlay(29);
};
break;
case 6:
if (this.cementCar.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.cementCar.gotoAndPlay(124);
};
break;
};
}
private function pickBrick(){
if (this.btBrick.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(5);
};
}
override public function onUp(_arg1:MouseEvent){
if (this.currentFrame == 2){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
override public function init(){
currentStep = 1;
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 1){
if (_arg1.target.name == "back"){
nextLevel();
};
};
if (this.currentFrame == 6){
if (_arg1.target.name == "done"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.pool = true;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
};
if (this.currentFrame != 2){
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
private function dropWater(){
if (this.water.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.water.gotoAndPlay(2);
};
}
private function pickPipe(){
if (this.btPipe.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(6);
};
}
private function pickSpade(){
if (this.btSpade.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(2);
};
}
public function digging(){
switch (currentDig){
case 1:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(2);
};
break;
case 2:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(14);
};
break;
case 3:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(24);
};
break;
case 4:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(34);
};
break;
case 5:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(47);
};
break;
};
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
pickSpade();
break;
case 2:
if (ready == 1){
digging();
};
break;
case 3:
pickcementCar();
break;
case 4:
if (ready == 1){
dropCement();
};
break;
case 5:
pickBrick();
break;
case 6:
pickPipe();
break;
case 7:
dropWater();
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.btSpade != null){
return (this.btSpade.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
if (this.soil.spade.hitSpade != null){
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
};
break;
case 3:
if (this.btCement != null){
return (this.btCement.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (this.cementCar != null){
return (this.cementCar.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.btBrick != null){
return (this.btBrick.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
if (this.btPipe != null){
return (this.btPipe.hitTestPoint(mouseX, mouseY));
};
case 7:
if (this.water != null){
return (this.water.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
private function pickcementCar(){
if (this.btCement.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(4);
};
}
}
}//package
Section 96
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
public class Preloader extends MovieClip {
private var percentText:TextField;
public var bar:MovieClip;
var urlPlayMore:String;// = "http://www.girlgamesplaza.com"
public var percent:TextField;
var requestPlayMore:URLRequest;// = null
private var myContextMenu:ContextMenu;
var timer:Timer;
private var progressBar:Sprite;
public var logo:MovieClip;
public static const startFrame:Number = 4;
public static const mainClass:String = "MainClass";
public function Preloader(){
requestPlayMore = null;
urlPlayMore = "http://www.girlgamesplaza.com";
addFrameScript(3, frame4);
stop();
super();
requestPlayMore = new URLRequest(urlPlayMore);
this.scrollRect = new Rectangle(0, 0, 700, 550);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
contextMenu = myContextMenu;
bar.gotoAndStop(1);
percentText = (getChildByName("percent") as TextField);
percentText.text = "0";
timer = new Timer(100, 0);
timer.addEventListener(TimerEvent.TIMER, afterSecond);
timer.start();
logo.buttonMode = true;
logo.addEventListener(MouseEvent.CLICK, handleClick);
}
private function enterFrameHandler(_arg1:Event):void{
if (currentFrame >= _slot1.startFrame){
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
stop();
initApp();
};
}
private function onComplete(_arg1:Event):void{
play();
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
public function handleClick(_arg1:MouseEvent){
var event = _arg1;
try {
navigateToURL(requestPlayMore, "_blank");
} catch(e:Error) {
};
}
function frame4(){
stop();
MochiBot.track(this, "676abd51");
}
public function afterSecond(_arg1:TimerEvent){
var _local2:uint;
var _local3:uint;
var _local4:Number;
_local2 = loaderInfo.bytesLoaded;
_local3 = loaderInfo.bytesTotal;
_local4 = (_local2 / _local3);
bar.gotoAndStop(Math.round((_local4 * 100)));
percentText.text = (Math.round((_local4 * 100)).toString() + "%");
if (_local2 >= _local3){
timer.stop();
play();
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
};
}
private function showProgress(_arg1:ProgressEvent):void{
var _local2:uint;
var _local3:uint;
var _local4:Number;
_local2 = _arg1.bytesLoaded;
_local3 = _arg1.bytesTotal;
_local4 = (_local2 / _local3);
bar.gotoAndStop(Math.round((_local4 * 100)));
percentText.text = (Math.round((_local4 * 100)).toString() + "%");
}
private function initApp():void{
var _local1:Boolean;
var _local2:Class;
var _local3:Sprite;
_local1 = loaderInfo.applicationDomain.hasDefinition(_slot1.mainClass);
_local2 = (loaderInfo.applicationDomain.getDefinition(_slot1.mainClass) as Class);
_local3 = (new (_local2) as Sprite);
addChild(_local3);
}
}
}//package
Section 97
//SeasawScreen (SeasawScreen)
package {
import flash.events.*;
import flash.display.*;
public class SeasawScreen extends Task {
public var clock:MovieClip;
public var btWood:MovieClip;
public var btColor:MovieClip;
public var btBase:MovieClip;
public var heart:MovieClip;
public var currentDig:Number;// = 1
public var paint:MovieClip;
public var soil:MovieClip;
private var picked:Boolean;// = false
public var wood:MovieClip;
private var h1:Boolean;// = false
private var h2:Boolean;// = false
private var h3:Boolean;// = false
public var base:MovieClip;
private var levelPause:Boolean;// = false
public var tuto:MovieClip;
public var back:SimpleButton;
public var phase:Number;// = 1
private var LineDraw:Boolean;// = false
public var done:SimpleButton;
public var ready:Number;// = 1
private var counter3:int;
private var currentTime:int;
public var btSpade:MovieClip;
public static var redColor2:Boolean = false;
public static var yellowColor2:Boolean = false;
public static var pinkColor2:Boolean = false;
public static var blueColor2:Boolean = false;
public function SeasawScreen(){
phase = 1;
ready = 1;
currentDig = 1;
picked = false;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
levelPause = false;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
public function dropWood(){
if (this.currentFrame == 4){
if (this.base.wood != null){
this.base.wood.stopDrag();
phase = 1;
};
if (this.base.wood.hitTestObject(this.base.hitWood)){
picked = false;
this.base.wood.x = 8.85;
this.base.wood.y = 205.95;
if (this.btColor != null){
this.btColor.buttonMode = true;
};
nextStep();
this.tuto.inst.text = "Select the color bucket from panel.";
} else {
this.base.wood.x = 80.2;
this.base.wood.y = 362.55;
};
};
}
override public function onEnter(_arg1:Event){
if (((!((this.clock == null))) && (!(MainClass.Paused)))){
counter3++;
if (counter3 == 30){
currentTime++;
this.clock.clockHand.gotoAndStop(currentTime);
counter3 = 0;
};
};
if (((MainClass.Paused) && (!(levelPause)))){
if (this.currentFrame == 2){
levelPause = true;
this.soil.gotoAndStop(this.soil.currentFrame);
};
};
if (((levelPause) && (!(MainClass.Paused)))){
levelPause = false;
if (this.currentFrame == 2){
if (((((((((((!((this.soil.currentFrame == 1))) && (!((this.soil.currentFrame == 14))))) && (!((this.soil.currentFrame == 25))))) && (!((this.soil.currentFrame == 37))))) && (!((this.soil.currentFrame == 45))))) && (!((this.soil.currentFrame == 61))))){
this.soil.gotoAndPlay(this.soil.currentFrame);
};
};
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if (this.currentFrame == 2){
checkHits();
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function nextLevel(){
(this.parent.parent as MainClass).createMidscreen();
}
function frame3(){
nextStep();
if (this.soil.hammer.hitHammer != null){
this.soil.hammer.hitHammer.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Click on the hammer to fix the see-saw base.";
};
ready = 1;
}
function frame4(){
if (this.base.wood != null){
this.base.wood.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Drag the See-saw board and place it on see-saw base.";
};
}
public function checkHits(){
if (this.currentFrame == 2){
if (this.soil.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
};
if (this.soil.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
};
if (this.soil.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
};
};
}
function frame1(){
stop();
if (this.done != null){
this.done.visible = false;
};
if (this.btSpade){
this.btSpade.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Select Spade from the panel";
};
if (MainClass.counter == 1){
this.heart.gotoAndStop(2);
} else {
if (MainClass.counter == 2){
this.heart.gotoAndStop(4);
} else {
if (MainClass.counter == 3){
this.heart.gotoAndStop(6);
} else {
if (MainClass.counter == 4){
this.heart.gotoAndStop(8);
} else {
if (MainClass.counter == 5){
this.heart.gotoAndStop(10);
} else {
if (MainClass.counter == 6){
this.heart.gotoAndStop(12);
} else {
this.heart.gotoAndStop(1);
};
};
};
};
};
};
if (this.clock != null){
this.clock.clockHand.gotoAndStop(1);
};
}
public function pickWood(){
if (this.btWood.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(4);
};
}
function frame5(){
if (this.paint != null){
this.paint.buttonMode = true;
};
if (this.tuto != null){
};
}
function frame2(){
nextStep();
if (this.soil.spade.hitSpade != null){
this.soil.spade.hitSpade.buttonMode = true;
};
if (this.tuto != null){
this.tuto.inst.text = "Draw line on arrow to dig the ground.";
};
if (this.back != null){
this.back.visible = false;
};
}
public function nextDig(){
currentDig++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
public function pickBase(){
if (this.btBase.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(3);
};
}
public function fixBase(){
switch (currentDig){
case 5:
if (this.soil.hammer.hitHammer.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.soil.gotoAndPlay(2);
};
break;
case 6:
if (this.soil.hammer.hitHammer.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.soil.gotoAndPlay(8);
};
break;
case 7:
if (this.soil.hammer.hitHammer.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.soil.gotoAndPlay(14);
};
break;
};
}
override public function onUp(_arg1:MouseEvent){
if ((((this.currentFrame == 4)) && (picked))){
dropWood();
};
if (this.currentFrame == 2){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
override public function init(){
currentStep = 1;
}
public function takeColor(){
if (this.btColor.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(5);
};
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 1){
if (_arg1.target.name == "back"){
nextLevel();
};
};
if (this.currentFrame == 5){
pickColor();
if (this.done != null){
if (_arg1.target.name == "done"){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.seaSaw = true;
if (((((((((((MainClass.lawn) && (MainClass.seaSaw))) && (MainClass.pool))) && (MainClass.fountain))) && (MainClass.fence))) && (MainClass.house))){
win();
} else {
MainClass.counter++;
nextLevel();
};
};
};
};
};
};
if (this.currentFrame != 2){
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
public function pickWood1(){
if (this.base.wood.hitTestPoint(mouseX, mouseY)){
phase = 0;
picked = true;
this.base.wood.startDrag();
};
}
public function pickSpade(){
if (this.btSpade.hitTestPoint(mouseX, mouseY)){
phase = 0;
this.gotoAndStop(2);
};
}
public function digging(){
switch (currentDig){
case 1:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(2);
};
break;
case 2:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(15);
};
break;
case 3:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(26);
};
break;
case 4:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(38);
};
break;
case 5:
if (((((((h1) && (h2))) && (h3))) && (LineDraw))){
ready = 0;
this.soil.gotoAndPlay(46);
};
break;
};
}
public function pickColor(){
if (this.paint.paint1 != null){
if (this.paint.paint1.currentFrame == 21){
if (this.paint.paint1.redPaint.hitTestPoint(mouseX, mouseY)){
redColor2 = true;
yellowColor2 = false;
pinkColor2 = false;
blueColor2 = false;
if (this.wood != null){
this.wood.gotoAndStop(2);
};
} else {
if (this.paint.paint1.bluePaint.hitTestPoint(mouseX, mouseY)){
redColor2 = false;
yellowColor2 = false;
pinkColor2 = false;
blueColor2 = true;
if (this.wood != null){
this.wood.gotoAndStop(4);
};
} else {
if (this.paint.paint1.yellowPaint.hitTestPoint(mouseX, mouseY)){
redColor2 = false;
yellowColor2 = true;
pinkColor2 = false;
blueColor2 = false;
if (this.wood != null){
this.wood.gotoAndStop(5);
};
} else {
if (this.paint.paint1.greenPaint.hitTestPoint(mouseX, mouseY)){
redColor2 = false;
yellowColor2 = false;
pinkColor2 = true;
blueColor2 = false;
if (this.wood != null){
this.wood.gotoAndStop(3);
};
};
};
};
};
};
};
}
public function win(){
(this.parent.parent as MainClass).createYouWin();
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
pickSpade();
break;
case 2:
if (ready == 1){
digging();
};
break;
case 3:
pickBase();
break;
case 4:
if (ready == 1){
fixBase();
};
break;
case 5:
pickWood();
break;
case 6:
pickWood1();
break;
case 7:
takeColor();
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.btSpade != null){
return (this.btSpade.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
if (this.soil.spade.hitSpade != null){
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
};
break;
case 3:
if (this.btBase != null){
return (this.btBase.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (this.soil.hammer.hitHammer != null){
return (this.soil.hammer.hitHammer.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.btWood != null){
return (this.btWood.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
if (this.base.wood != null){
return (this.base.wood.hitTestPoint(mouseX, mouseY));
};
break;
case 7:
if (this.btColor != null){
return (this.btColor.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
}
}//package
Section 98
//SoundController (SoundController)
package {
import flash.media.*;
public class SoundController {
public var isSoundOn:Boolean;// = false
public var currentMusicIndex:int;// = -1
public var soundVolume:Number;// = 0
public var sounds:Array;// = null
private var soundclassname:Class;// = null
public var isMusicOn:Boolean;// = false
public var musicVolume:Number;// = 0
public var currentSoundIndex:int;// = -1
public var _musicTransform:SoundTransform;// = null
public var musics:Array;// = null
public var _soundTransform:SoundTransform;// = null
public static var MUSIC_GAMEOVER:int = 2;
public static var MUSIC_INGAME:int = 1;
public static var MUSIC_WELCOME:int = 0;
public static var SOUND_ALERT:int = 0;
public static var MUSIC_YOUWIN:int = 3;
public function SoundController(){
isSoundOn = false;
isMusicOn = false;
soundVolume = 0;
musicVolume = 0;
currentSoundIndex = -1;
currentMusicIndex = -1;
sounds = null;
musics = null;
soundclassname = null;
_soundTransform = null;
_musicTransform = null;
super();
sounds = new Array(1);
musics = new Array(4);
currentMusicIndex = -1;
isMusicOn = true;
isSoundOn = true;
soundVolume = 0.7;
musicVolume = 0.7;
_soundTransform = new SoundTransform(0.7, 0);
_musicTransform = new SoundTransform(0.7, 0);
createMusicObject(MUSIC_WELCOME);
createMusicObject(MUSIC_INGAME);
createMusicObject(MUSIC_GAMEOVER);
createMusicObject(MUSIC_YOUWIN);
}
public function stopMusic(_arg1:int=-1){
_arg1 = currentMusicIndex;
if (currentMusicIndex == -1){
return;
};
(musics[_arg1] as CustomSound).stopSound();
}
public function stopAllMusics(){
var _local1:*;
_local1 = 0;
while (_local1 < musics.length) {
(musics[_local1] as CustomSound).stopSound();
_local1++;
};
}
public function stopCurrentMusic(){
stopMusic(currentMusicIndex);
}
public function stopCurrentSound(){
stopSound(currentSoundIndex);
}
public function playMusic(_arg1:int){
if (isMusicOn == true){
if (((!((currentMusicIndex == -1))) && (!((currentMusicIndex == _arg1))))){
stopMusic(currentMusicIndex);
};
if (currentMusicIndex != _arg1){
(musics[_arg1] as CustomSound).playSound(_musicTransform);
};
if ((musics[_arg1] as CustomSound)._channel == null){
(musics[_arg1] as CustomSound).playSound(_musicTransform);
};
};
currentMusicIndex = _arg1;
}
public function setSoundVolume(_arg1:int){
if (_arg1 < 0){
_arg1 = 0;
};
soundVolume = (_soundTransform.volume = (_arg1 / 100));
isSoundOn = true;
if (currentSoundIndex != -1){
(sounds[currentSoundIndex] as CustomSound).setVolume(_arg1);
};
}
public function createSoundObject(_arg1:int){
switch (_arg1){
case 0:
break;
};
}
public function toggleSound(){
if (isSoundOn == true){
isSoundOn = false;
} else {
isSoundOn = true;
};
}
public function setMusicVolume(_arg1:int){
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 100){
_arg1 = 100;
};
musicVolume = (_musicTransform.volume = (_arg1 / 100));
if (currentMusicIndex != -1){
(musics[currentMusicIndex] as CustomSound).setVolume(_arg1);
};
if (isMusicOn == false){
isMusicOn = true;
startCurrentMusic();
};
}
public function stopAllSoundEffects(){
var _local1:*;
_local1 = 0;
while (_local1 < sounds.length) {
(sounds[_local1] as CustomSound).stopSound();
_local1++;
};
}
public function reduseMusicVolume(_arg1:int, _arg2:Number=0){
var _local3:Number;
_arg1 = 5;
_local3 = (100 * (musics[currentMusicIndex]._transform.volume - ((musics[currentMusicIndex]._transform.volume * _arg1) / 100)));
_arg2 = (_musicTransform.volume * _arg2);
if (_local3 >= _arg2){
(musics[currentMusicIndex] as CustomSound).setVolume(_local3);
};
}
public function stopSound(_arg1:int){
(sounds[_arg1] as CustomSound).stopSound();
}
public function createMusicObject(_arg1:int){
switch (_arg1){
case 0:
musics[_arg1] = new WelcomeSound();
musics[_arg1].setCustomVolume(1);
break;
case 1:
musics[_arg1] = new IngameSound();
break;
case 2:
musics[_arg1] = new GameoverSound();
break;
case 3:
musics[_arg1] = new YouwinSound();
break;
};
musics[_arg1].setLoop(true);
}
public function toggleMusic(){
if (isMusicOn == true){
isMusicOn = false;
stopCurrentMusic();
} else {
isMusicOn = true;
startCurrentMusic();
};
}
public function startCurrentMusic(){
if (currentMusicIndex != -1){
(musics[currentMusicIndex] as CustomSound).playSound(_musicTransform);
};
}
public function setNormalMusicVolume(){
(musics[currentMusicIndex] as CustomSound).setVolume((_musicTransform.volume * 100));
}
public function playSound(_arg1:int){
currentSoundIndex = _arg1;
if (isSoundOn == true){
currentSoundIndex = _arg1;
(sounds[_arg1] as CustomSound).playSound(_soundTransform);
};
}
}
}//package
Section 99
//soundSymbol (soundSymbol)
package {
import flash.events.*;
import flash.display.*;
public class soundSymbol extends MovieClip {
public var s1:MovieClip;
public function soundSymbol(){
addFrameScript(0, frame1);
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
this.gotoAndStop(1);
};
}
function frame1(){
buttonMode = true;
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "s1":
if (this.s1.currentFrame < this.s1.totalFrames){
this.s1.gotoAndStop((currentFrame + 1));
MainClass.snd.setMusicVolume(0);
MainClass.snd.setSoundVolume(0);
} else {
this.s1.gotoAndStop(1);
MainClass.snd.setMusicVolume(80);
MainClass.snd.setSoundVolume(80);
};
break;
};
}
}
}//package
Section 100
//storyLine (storyLine)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class storyLine extends MovieClip {
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
Mouse.show();
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "continue1":
(this.parent as MainClass).createMidscreen();
remove();
break;
case "skip":
(this.parent as MainClass).createMidscreen();
remove();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 101
//Task (Task)
package {
import flash.events.*;
import flash.display.*;
public class Task extends MovieClip {
protected var currentStep:uint;// = 1
public static var EXECUTING:int = 1;
public static var READY:int = 0;
public function Task(){
currentStep = 1;
super();
}
public function onRoll(_arg1:MouseEvent){
}
public function init(){
currentStep = 1;
}
public function onDown(_arg1:MouseEvent){
}
public function onEnter(_arg1:Event){
}
public function onMove(_arg1:MouseEvent){
}
public function onOver(_arg1:MouseEvent){
}
public function onUp(_arg1:MouseEvent){
}
public function onClick(_arg1:MouseEvent){
}
public function onOut(_arg1:MouseEvent){
}
}
}//package
Section 102
//URLHandler (URLHandler)
package {
import flash.net.*;
public class URLHandler {
private var addgamesURL:String;// = "http://www.girlgamesplaza.com/free-games/"
private var addmoreURLRequest:URLRequest;// = null
private var playmoregamesURL:String;// = "http://www.girlgamesplaza.com"
private var playmoregamesURLRequest:URLRequest;// = null
public function URLHandler(){
playmoregamesURL = "http://www.girlgamesplaza.com";
addgamesURL = "http://www.girlgamesplaza.com/free-games/";
playmoregamesURLRequest = null;
addmoreURLRequest = null;
super();
playmoregamesURLRequest = new URLRequest(playmoregamesURL);
addmoreURLRequest = new URLRequest(addgamesURL);
}
public function openPlayMoreGames(){
try {
navigateToURL(playmoregamesURLRequest);
} catch(se:SecurityError) {
return;
};
}
public function openAddMoreGames(){
try {
navigateToURL(addmoreURLRequest);
} catch(se:SecurityError) {
return;
};
}
public function openPictureAuthorURL(_arg1:String){
var pictureAuthorURLRequest:URLRequest;
var url = _arg1;
url = url.substring(1, (url.length - 2));
pictureAuthorURLRequest = new URLRequest(url);
try {
navigateToURL(pictureAuthorURLRequest, "_blank");
} catch(se:SecurityError) {
return;
};
}
}
}//package
Section 103
//Welcome (Welcome)
package {
import flash.events.*;
import flash.display.*;
public class Welcome extends MovieClip {
public var playBn:SimpleButton;
public var moregames:SimpleButton;
public var plaza:SimpleButton;
public var addgames:SimpleButton;
public var ins:SimpleButton;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playBn":
remove();
(this.parent as MainClass).createChart();
break;
case "ins":
(this.parent as MainClass).createInstruction();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 104
//WelcomeSound (WelcomeSound)
package {
public dynamic class WelcomeSound extends CustomSound {
}
}//package
Section 105
//YouWin (YouWin)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class YouWin extends MovieClip {
public var counter:int;
public var screen1:MovieClip;
public var dis:disturbScreen;
public var playAgain:SimpleButton;
public var plaza:SimpleButton;
public function YouWin(){
addFrameScript(0, frame1, 1, frame2);
}
public function init(){
Mouse.show();
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
if (dis == null){
dis = new disturbScreen();
this.screen1.addChild(dis);
this.screen1.setChildIndex(dis, 0);
dis.x = -350;
dis.y = -280;
if (dis.Fountain != null){
dis.Fountain.gotoAndStop(2);
};
if (dis.heart != null){
this.dis.heart.visible = false;
};
if (dis.plaza != null){
this.dis.plaza.visible = false;
};
if (dis.grass != null){
dis.grass.gotoAndStop(2);
dis.Lawn.visible = false;
};
if (dis.Fence != null){
dis.Fence.gotoAndStop(2);
};
if (dis.Pool != null){
dis.Pool.gotoAndStop(2);
};
if (dis.House != null){
dis.House.gotoAndStop(2);
};
if (dis.Seasaw != null){
dis.Seasaw.gotoAndStop(2);
};
};
};
if (!this.hasEventListener(Event.ENTER_FRAME)){
this.addEventListener(Event.ENTER_FRAME, onEnter, false, 0, true);
};
}
public function remove1(){
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, onEnter);
};
}
public function onEnter(_arg1:Event){
counter++;
if (counter > 150){
party();
remove1();
};
}
function frame1(){
stop();
if (this.playAgain != null){
this.playAgain.visible = false;
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
function frame2(){
if (this.playAgain != null){
this.playAgain.visible = true;
};
}
public function party(){
this.gotoAndStop(2);
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playAgain":
(this.parent as MainClass).playAgain();
remove();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 106
//YouwinSound (YouwinSound)
package {
public dynamic class YouwinSound extends CustomSound {
}
}//package