Section 1
//arrowbend_156 (49_fla.arrowbend_156)
package 49_fla {
import flash.display.*;
public dynamic class arrowbend_156 extends MovieClip {
public var hit3:MovieClip;
public var hit1:MovieClip;
public var hit2:MovieClip;
}
}//package 49_fla
Section 2
//arrowstraight_108 (49_fla.arrowstraight_108)
package 49_fla {
import flash.display.*;
public dynamic class arrowstraight_108 extends MovieClip {
public var hit3:MovieClip;
public var hit1:MovieClip;
public var anim:MovieClip;
public var hit2:MovieClip;
}
}//package 49_fla
Section 3
//bowlwithbread_186 (49_fla.bowlwithbread_186)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithbread_186 extends MovieClip {
public function bowlwithbread_186(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 4
//bowlwithbuttercubes_120 (49_fla.bowlwithbuttercubes_120)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithbuttercubes_120 extends MovieClip {
public function bowlwithbuttercubes_120(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 5
//bowlwithchopedapple_133 (49_fla.bowlwithchopedapple_133)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedapple_133 extends MovieClip {
public var appleBowl:MovieClip;
public function bowlwithchopedapple_133(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 6
//bowlwithchopedbread_125 (49_fla.bowlwithchopedbread_125)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedbread_125 extends MovieClip {
public function bowlwithchopedbread_125(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 7
//bowlwithchopedcelery_127 (49_fla.bowlwithchopedcelery_127)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedcelery_127 extends MovieClip {
public function bowlwithchopedcelery_127(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 8
//bowlwithchopedolive_137 (49_fla.bowlwithchopedolive_137)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedolive_137 extends MovieClip {
public var oliveBowl:MovieClip;
public function bowlwithchopedolive_137(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 9
//bowlwithchopedonion_122 (49_fla.bowlwithchopedonion_122)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedonion_122 extends MovieClip {
public var onionBowl:MovieClip;
public function bowlwithchopedonion_122(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 10
//bowlwithchopedparshley_139 (49_fla.bowlwithchopedparshley_139)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithchopedparshley_139 extends MovieClip {
public var parshleyBowl:MovieClip;
public function bowlwithchopedparshley_139(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 11
//bowlwithcurrants_135 (49_fla.bowlwithcurrants_135)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithcurrants_135 extends MovieClip {
public var currantBowl:MovieClip;
public function bowlwithcurrants_135(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 12
//bowlwithgroundsage_143 (49_fla.bowlwithgroundsage_143)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithgroundsage_143 extends MovieClip {
public var sageBowl:MovieClip;
public function bowlwithgroundsage_143(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 13
//BOWLWITHLIQUIDBUTTER5_66 (49_fla.BOWLWITHLIQUIDBUTTER5_66)
package 49_fla {
import flash.display.*;
public dynamic class BOWLWITHLIQUIDBUTTER5_66 extends MovieClip {
public var butterBowl:MovieClip;
}
}//package 49_fla
Section 14
//bowlwithturkeygiblets_141 (49_fla.bowlwithturkeygiblets_141)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithturkeygiblets_141 extends MovieClip {
public var gibletBowl:MovieClip;
public function bowlwithturkeygiblets_141(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 15
//bowlwithwalnuts_130 (49_fla.bowlwithwalnuts_130)
package 49_fla {
import flash.display.*;
public dynamic class bowlwithwalnuts_130 extends MovieClip {
public var walnutBowl:MovieClip;
public function bowlwithwalnuts_130(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 16
//BTmicrowaveoff_62 (49_fla.BTmicrowaveoff_62)
package 49_fla {
import flash.display.*;
public dynamic class BTmicrowaveoff_62 extends MovieClip {
public function BTmicrowaveoff_62(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 49_fla
Section 17
//BTmicrowaveon_61 (49_fla.BTmicrowaveon_61)
package 49_fla {
import flash.display.*;
public dynamic class BTmicrowaveon_61 extends MovieClip {
public function BTmicrowaveon_61(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 49_fla
Section 18
//clock_step4_176 (49_fla.clock_step4_176)
package 49_fla {
import flash.display.*;
import flash.text.*;
public dynamic class clock_step4_176 extends MovieClip {
public var dishTimeText:TextField;
}
}//package 49_fla
Section 19
//fairybody_10 (49_fla.fairybody_10)
package 49_fla {
import flash.display.*;
public dynamic class fairybody_10 extends MovieClip {
public function fairybody_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 49_fla
Section 20
//fbowlwithcurrants_236 (49_fla.fbowlwithcurrants_236)
package 49_fla {
import flash.display.*;
public dynamic class fbowlwithcurrants_236 extends MovieClip {
public var currantBowl:MovieClip;
}
}//package 49_fla
Section 21
//fbowlwithorange_237 (49_fla.fbowlwithorange_237)
package 49_fla {
import flash.display.*;
public dynamic class fbowlwithorange_237 extends MovieClip {
public function fbowlwithorange_237(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 22
//fbowlwithspinach_235 (49_fla.fbowlwithspinach_235)
package 49_fla {
import flash.display.*;
public dynamic class fbowlwithspinach_235 extends MovieClip {
public var spinachBowl:MovieClip;
}
}//package 49_fla
Section 23
//finalturkeydecoration_32 (49_fla.finalturkeydecoration_32)
package 49_fla {
import flash.display.*;
public dynamic class finalturkeydecoration_32 extends MovieClip {
public function finalturkeydecoration_32(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 24
//FINALTURKEYRAW5_111 (49_fla.FINALTURKEYRAW5_111)
package 49_fla {
import flash.display.*;
public dynamic class FINALTURKEYRAW5_111 extends MovieClip {
public var initialTurkey:MovieClip;
}
}//package 49_fla
Section 25
//hintforstep01_213 (49_fla.hintforstep01_213)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep01_213 extends MovieClip {
public var paper1:MovieClip;
public function hintforstep01_213(){
addFrameScript(20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame40(){
stop();
}
}
}//package 49_fla
Section 26
//hintforstep02_203 (49_fla.hintforstep02_203)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep02_203 extends MovieClip {
public var paper2:MovieClip;
public function hintforstep02_203(){
addFrameScript(20, frame21, 37, frame38);
}
function frame21(){
stop();
}
function frame38(){
stop();
}
}
}//package 49_fla
Section 27
//hintforstep03_197 (49_fla.hintforstep03_197)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep03_197 extends MovieClip {
public var paper3:MovieClip;
public function hintforstep03_197(){
addFrameScript(20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame40(){
stop();
}
}
}//package 49_fla
Section 28
//hintforstep04_165 (49_fla.hintforstep04_165)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep04_165 extends MovieClip {
public var paper4:MovieClip;
public function hintforstep04_165(){
addFrameScript(20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame40(){
stop();
}
}
}//package 49_fla
Section 29
//hintforstep05_94 (49_fla.hintforstep05_94)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep05_94 extends MovieClip {
public var paper5:MovieClip;
public function hintforstep05_94(){
addFrameScript(20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame40(){
stop();
}
}
}//package 49_fla
Section 30
//hintforstep06_238 (49_fla.hintforstep06_238)
package 49_fla {
import flash.display.*;
public dynamic class hintforstep06_238 extends MovieClip {
public var paper6:MovieClip;
public function hintforstep06_238(){
addFrameScript(20, frame21, 39, frame40);
}
function frame21(){
stop();
}
function frame40(){
stop();
}
}
}//package 49_fla
Section 31
//instruction_40 (49_fla.instruction_40)
package 49_fla {
import flash.display.*;
public dynamic class instruction_40 extends MovieClip {
public var backBn:SimpleButton;
public var girlGamesBn:MovieClip;
}
}//package 49_fla
Section 32
//kadai_187 (49_fla.kadai_187)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 kadai_187 extends MovieClip {
public var b2:MovieClip;
public var b1:MovieClip;
public var b3:MovieClip;
public var arr2:MovieClip;
public function kadai_187(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 7, frame8);
}
function frame3(){
stop();
(this.parent as MovieClip).intro3.paper3.nextFrame();
}
function frame1(){
stop();
}
function frame4(){
stop();
(this.parent as MovieClip).intro3.paper3.nextFrame();
}
function frame5(){
(this.parent as MovieClip).intro3.paper3.nextFrame();
}
function frame8(){
stop();
(this.parent as Task3).prepared = true;
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 33
//kadai03_175 (49_fla.kadai03_175)
package 49_fla {
import flash.display.*;
public dynamic class kadai03_175 extends MovieClip {
public function kadai03_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 49_fla
Section 34
//levelUp_inner_230 (49_fla.levelUp_inner_230)
package 49_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelUp_inner_230 extends MovieClip {
public var Tmoney:TextField;
public var Lmoney:TextField;
public var girlGamesBn:MovieClip;
public var Bmoney:TextField;
public var gotoNext:SimpleButton;
}
}//package 49_fla
Section 35
//lidkadai_147 (49_fla.lidkadai_147)
package 49_fla {
import flash.display.*;
public dynamic class lidkadai_147 extends MovieClip {
public function lidkadai_147(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 36
//lipsanimation_21 (49_fla.lipsanimation_21)
package 49_fla {
import flash.display.*;
public dynamic class lipsanimation_21 extends MovieClip {
public function lipsanimation_21(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package 49_fla
Section 37
//logoanimationmain_5 (49_fla.logoanimationmain_5)
package 49_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 49_fla
Section 38
//MainLinkBtnPlace_42 (49_fla.MainLinkBtnPlace_42)
package 49_fla {
import flash.display.*;
public dynamic class MainLinkBtnPlace_42 extends MovieClip {
public var girlGamesBn:SimpleButton;
}
}//package 49_fla
Section 39
//Mc_sound_clip_91 (49_fla.Mc_sound_clip_91)
package 49_fla {
import flash.display.*;
public dynamic class Mc_sound_clip_91 extends MovieClip {
public var soundBn:MovieClip;
public function Mc_sound_clip_91(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
buttonMode = true;
}
function frame2(){
stop();
buttonMode = true;
}
}
}//package 49_fla
Section 40
//mcBreadCutting_190 (49_fla.mcBreadCutting_190)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 mcBreadCutting_190 extends MovieClip {
public var arr1:MovieClip;
public function mcBreadCutting_190(){
addFrameScript(0, frame1, 19, frame20, 29, frame30, 38, frame39, 48, frame49, 58, frame59, 69, frame70, 79, frame80, 89, frame90, 102, frame103, 116, frame117, 137, frame138);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame1(){
(this.parent as MovieClip).intro3.paper3.gotoAndStop(1);
}
function frame103(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame117(){
stop();
}
function frame39(){
stop();
}
function frame49(){
stop();
}
function frame138(){
stop();
(this.parent as MovieClip).intro3.paper3.nextFrame();
(this.parent as MovieClip).gotoAndPlay(2);
}
function frame59(){
stop();
}
}
}//package 49_fla
Section 41
//mcCeleryCutting_216 (49_fla.mcCeleryCutting_216)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 mcCeleryCutting_216 extends MovieClip {
public var knife:MovieClip;
public var arr1:MovieClip;
public function mcCeleryCutting_216(){
addFrameScript(24, frame25, 33, frame34, 43, frame44, 53, frame54, 63, frame64, 74, frame75, 84, frame85, 94, frame95, 164, frame165);
}
function frame75(){
stop();
}
function frame64(){
stop();
}
function frame165(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
(this.parent as MovieClip).gotoAndStop(3);
}
function frame85(){
stop();
}
function frame95(){
stop();
}
function frame25(){
stop();
}
function frame34(){
stop();
}
function frame44(){
stop();
}
function frame54(){
stop();
}
}
}//package 49_fla
Section 42
//mcClock_88 (49_fla.mcClock_88)
package 49_fla {
import flash.display.*;
public dynamic class mcClock_88 extends MovieClip {
public var clockHand:MovieClip;
}
}//package 49_fla
Section 43
//mcClockHand_89 (49_fla.mcClockHand_89)
package 49_fla {
import flash.display.*;
public dynamic class mcClockHand_89 extends MovieClip {
public function mcClockHand_89(){
addFrameScript(0, frame1, 99, frame100);
}
function frame1(){
stop();
}
function frame100(){
stop();
}
}
}//package 49_fla
Section 44
//mcFlame_157 (49_fla.mcFlame_157)
package 49_fla {
import flash.display.*;
public dynamic class mcFlame_157 extends MovieClip {
public function mcFlame_157(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 45
//mcKnife01_194 (49_fla.mcKnife01_194)
package 49_fla {
import flash.display.*;
public dynamic class mcKnife01_194 extends MovieClip {
public function mcKnife01_194(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package 49_fla
Section 46
//mcOliveCutting_223 (49_fla.mcOliveCutting_223)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 mcOliveCutting_223 extends MovieClip {
public var knife:MovieClip;
public var arr2:MovieClip;
public var arr1:MovieClip;
public function mcOliveCutting_223(){
addFrameScript(19, frame20, 29, frame30, 47, frame48, 66, frame67, 76, frame77, 87, frame88, 97, frame98, 107, frame108, 117, frame118, 128, frame129, 138, frame139, 149, frame150, 159, frame160, 169, frame170, 179, frame180, 191, frame192, 238, frame239, 244, frame245, 266, frame267);
}
function frame150(){
stop();
}
function frame77(){
stop();
}
function frame160(){
stop();
}
function frame88(){
stop();
}
function frame170(){
stop();
}
function frame98(){
stop();
}
function frame180(){
stop();
}
function frame20(){
stop();
}
function frame108(){
stop();
}
function frame192(){
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame30(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame118(){
stop();
}
function frame245(){
(this.parent as MovieClip).intro1.play();
}
function frame239(){
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame48(){
stop();
}
function frame129(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame139(){
stop();
}
function frame267(){
stop();
(this.parent as Task1).endCurrentLevel(1);
}
function frame67(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
}
}//package 49_fla
Section 47
//mcOnionCutting_211 (49_fla.mcOnionCutting_211)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 mcOnionCutting_211 extends MovieClip {
public var knife:MovieClip;
public var arr1:MovieClip;
public function mcOnionCutting_211(){
addFrameScript(19, frame20, 29, frame30, 38, frame39, 48, frame49, 58, frame59, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 110, frame111, 120, frame121, 131, frame132, 141, frame142, 151, frame152, 161, frame162, 168, frame169, 254, frame255);
}
function frame152(){
stop();
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame169(){
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame162(){
stop();
}
function frame90(){
stop();
}
function frame20(){
stop();
arr1.anim.mouseEnabled = false;
}
function frame100(){
stop();
}
function frame111(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame30(){
stop();
}
function frame39(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame49(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
}
function frame121(){
stop();
}
function frame132(){
stop();
}
function frame255(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
(this.parent as MovieClip).gotoAndStop(2);
}
function frame59(){
stop();
}
function frame142(){
stop();
}
}
}//package 49_fla
Section 48
//mcParshleyCutting_218 (49_fla.mcParshleyCutting_218)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 mcParshleyCutting_218 extends MovieClip {
public var knife:MovieClip;
public var arr1:MovieClip;
public function mcParshleyCutting_218(){
addFrameScript(23, frame24, 31, frame32, 41, frame42, 51, frame52, 61, frame62, 71, frame72, 81, frame82, 91, frame92, 160, frame161);
}
function frame72(){
stop();
}
function frame82(){
stop();
}
function frame161(){
stop();
(this.parent as MovieClip).intro1.paper1.nextFrame();
(this.parent as MovieClip).gotoAndStop(4);
}
function frame24(){
stop();
}
function frame92(){
stop();
}
function frame32(){
stop();
}
function frame42(){
stop();
}
function frame52(){
stop();
}
function frame62(){
stop();
}
}
}//package 49_fla
Section 49
//mcStove_148 (49_fla.mcStove_148)
package 49_fla {
import flash.display.*;
public dynamic class mcStove_148 extends MovieClip {
public var offBn:SimpleButton;
public var medBn:SimpleButton;
public var highBn:SimpleButton;
public var onBn:SimpleButton;
}
}//package 49_fla
Section 50
//McWelcome_43 (49_fla.McWelcome_43)
package 49_fla {
import flash.display.*;
public dynamic class McWelcome_43 extends MovieClip {
public var moreGamesBn:SimpleButton;
public var addGamesBn:SimpleButton;
public var welcomeScreen:MovieClip;
public var instructionBn:SimpleButton;
public var playBn:SimpleButton;
public var girlGamesBn:MovieClip;
}
}//package 49_fla
Section 51
//meltinganimation_155 (49_fla.meltinganimation_155)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 meltinganimation_155 extends MovieClip {
public function meltinganimation_155(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
(this.parent as MovieClip).intro4.paper4.nextFrame();
if ((this.parent as Task4).b3.currentFrame == 40){
(this.parent as Task4).gotoAndStop(3);
};
}
}
}//package 49_fla
Section 52
//meltinganimation03_188 (49_fla.meltinganimation03_188)
package 49_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
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 meltinganimation03_188 extends MovieClip {
public function meltinganimation03_188(){
addFrameScript(0, frame1, 39, frame40);
}
function frame1(){
stop();
}
function frame40(){
stop();
(this.parent.parent as MovieClip).intro3.paper3.nextFrame();
if ((this.parent as MovieClip).b3.currentFrame == 40){
(this.parent as MovieClip).gotoAndStop(2);
};
}
}
}//package 49_fla
Section 53
//microwavewithplateon_116 (49_fla.microwavewithplateon_116)
package 49_fla {
import flash.display.*;
public dynamic class microwavewithplateon_116 extends MovieClip {
public function microwavewithplateon_116(){
addFrameScript(126, frame127);
}
function frame127(){
stop();
(this.parent as MovieClip).nextFrame();
}
}
}//package 49_fla
Section 54
//microvenwithplate_113 (49_fla.microvenwithplate_113)
package 49_fla {
import flash.display.*;
public dynamic class microvenwithplate_113 extends MovieClip {
public var onBtn:MovieClip;
}
}//package 49_fla
Section 55
//oven_newclip01_112 (49_fla.oven_newclip01_112)
package 49_fla {
import flash.display.*;
public dynamic class oven_newclip01_112 extends MovieClip {
public var offBn:MovieClip;
public var onBn:MovieClip;
}
}//package 49_fla
Section 56
//ovenwithfriedturkey_117 (49_fla.ovenwithfriedturkey_117)
package 49_fla {
import flash.display.*;
public dynamic class ovenwithfriedturkey_117 extends MovieClip {
public var finalTurkey:MovieClip;
public var onBtn:MovieClip;
}
}//package 49_fla
Section 57
//PAPER01_214 (49_fla.PAPER01_214)
package 49_fla {
import flash.display.*;
public dynamic class PAPER01_214 extends MovieClip {
public function PAPER01_214(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13);
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package 49_fla
Section 58
//paper02_204 (49_fla.paper02_204)
package 49_fla {
import flash.display.*;
public dynamic class paper02_204 extends MovieClip {
public function paper02_204(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 59
//Paper03_198 (49_fla.Paper03_198)
package 49_fla {
import flash.display.*;
public dynamic class Paper03_198 extends MovieClip {
public function Paper03_198(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11);
}
function frame10(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package 49_fla
Section 60
//Paper04_166 (49_fla.Paper04_166)
package 49_fla {
import flash.display.*;
public dynamic class Paper04_166 extends MovieClip {
public function Paper04_166(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31);
}
function frame10(){
stop();
}
function frame14(){
stop();
}
function frame18(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame22(){
stop();
}
function frame25(){
stop();
}
function frame13(){
stop();
}
function frame17(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame16(){
stop();
}
function frame8(){
stop();
}
function frame21(){
stop();
}
function frame2(){
stop();
}
function frame15(){
stop();
}
function frame23(){
stop();
}
function frame24(){
stop();
}
function frame28(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame31(){
stop();
}
function frame27(){
stop();
}
function frame29(){
stop();
}
function frame26(){
stop();
}
}
}//package 49_fla
Section 61
//PAPER05_95 (49_fla.PAPER05_95)
package 49_fla {
import flash.display.*;
public dynamic class PAPER05_95 extends MovieClip {
public function PAPER05_95(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13);
}
function frame10(){
stop();
}
function frame12(){
stop();
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame13(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
function frame11(){
stop();
}
}
}//package 49_fla
Section 62
//PAPER06_239 (49_fla.PAPER06_239)
package 49_fla {
import flash.display.*;
public dynamic class PAPER06_239 extends MovieClip {
public function PAPER06_239(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 49_fla
Section 63
//Symbol15_97 (49_fla.Symbol15_97)
package 49_fla {
import flash.display.*;
public dynamic class Symbol15_97 extends MovieClip {
public function Symbol15_97(){
addFrameScript(57, frame58);
}
function frame58(){
stop();
(this.parent as MovieClip).gotoAndStop(3);
}
}
}//package 49_fla
Section 64
//traywithbutter5_98 (49_fla.traywithbutter5_98)
package 49_fla {
import flash.display.*;
public dynamic class traywithbutter5_98 extends MovieClip {
public var initialTurkey:MovieClip;
}
}//package 49_fla
Section 65
//walnut_group_131 (49_fla.walnut_group_131)
package 49_fla {
import flash.display.*;
public dynamic class walnut_group_131 extends MovieClip {
public var walnutBowl:MovieClip;
}
}//package 49_fla
Section 66
//youwin_clip01_26 (49_fla.youwin_clip01_26)
package 49_fla {
import flash.display.*;
import flash.text.*;
public dynamic class youwin_clip01_26 extends MovieClip {
public var moreGamesBn:SimpleButton;
public var welcomeScreen:MovieClip;
public var girlGamesBn:SimpleButton;
public var playAgain:SimpleButton;
public var finalScore:TextField;
public var finalTurkey:MovieClip;
}
}//package 49_fla
Section 67
//Container (Container)
package {
import flash.events.*;
import flash.display.*;
public class Container extends MovieClip {
public var pauseScreen:PauseScreen;
var line:Sprite;
public var task1:Task1;
public var task5:Task5;
public var task3:Task3;
public var moving:Boolean;
public var task4:Task4;
private var pausedBmp:Bitmap;
public var task2:Task2;
var prevy:Number;
public var decoration:Decoration;
var prevx:Number;
public var h1:Boolean;
public var h2:Boolean;
public var h4:Boolean;
public var h3:Boolean;
public function onRoll(_arg1:MouseEvent){
removeLine();
falsify();
if (task3){
task3.onRoll(_arg1);
};
if (task4){
task4.onRoll(_arg1);
};
if (task5){
task5.onRoll(_arg1);
};
if (decoration){
decoration.onRoll(_arg1);
};
}
public function init(){
line = new Sprite();
moving = false;
addLevel();
addListeners();
}
public function setVolume(){
if (MainClass.vol == 0){
MainClass.vol = 100;
(this.parent as MainClass).soundController.setMusicVolume(MainClass.vol);
(this.parent as MainClass).soundController.setSoundVolume(MainClass.vol);
} else {
MainClass.vol = 0;
(this.parent as MainClass).soundController.setMusicVolume(MainClass.vol);
(this.parent as MainClass).soundController.setSoundVolume(MainClass.vol);
};
}
public function falsify(){
h1 = false;
h2 = false;
h3 = false;
}
public function onDown(_arg1:MouseEvent){
prevx = mouseX;
prevy = mouseY;
if (task1){
task1.onDown(_arg1);
return;
};
if (task2){
task2.onDown(_arg1);
return;
};
if (task3){
task3.onDown(_arg1);
return;
};
if (task4){
task4.onDown(_arg1);
return;
};
if (task5){
task5.onDown(_arg1);
return;
};
if (decoration){
decoration.onDown(_arg1);
return;
};
}
public function chkHitArea2(){
if (task2.currentFrame < 47){
if (((task2.arr1.hit1.hitTestPoint(mouseX, mouseY)) || (task2.arr2.hit1.hitTestPoint(mouseX, mouseY)))){
h1 = true;
};
if (((task2.arr1.hit2.hitTestPoint(mouseX, mouseY)) || (task2.arr2.hit2.hitTestPoint(mouseX, mouseY)))){
h2 = true;
};
if (((task2.arr1.hit3.hitTestPoint(mouseX, mouseY)) || (task2.arr2.hit3.hitTestPoint(mouseX, mouseY)))){
h3 = true;
};
} else {
if (task2.currentFrame < (task2.totalFrames - 3)){
if (task2.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task2.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task2.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
};
}
public function chkHitArea5(){
if (task5.currentFrame < task5.totalFrames){
if (task5.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task5.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task5.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
}
public function onEnter(_arg1:Event){
if (task1){
task1.onEnter(_arg1);
return;
};
if (task2){
task2.onEnter(_arg1);
return;
};
if (task3){
task3.onEnter(_arg1);
return;
};
if (task4){
task4.onEnter(_arg1);
return;
};
if (task5){
task5.onEnter(_arg1);
return;
};
if (decoration){
decoration.onEnter(_arg1);
return;
};
}
public function onMove(_arg1:MouseEvent){
if (_arg1.buttonDown){
if (task1){
task1.onMove(_arg1);
return;
};
if (task2){
task2.onMove(_arg1);
return;
};
if (task3){
task3.onMove(_arg1);
return;
};
if (task4){
task4.onMove(_arg1);
return;
};
if (task5){
task5.onMove(_arg1);
return;
};
if (decoration){
decoration.onMove(_arg1);
return;
};
};
}
public function drawLine(){
line.graphics.lineStyle(8, 0, 0.75);
line.graphics.beginFill(0);
line.graphics.moveTo(prevx, prevy);
line.graphics.lineTo(mouseX, mouseY);
addChild(line);
prevx = mouseX;
prevy = mouseY;
}
public function addLevel(){
if (MainClass.currentLevel == 1){
if (task1 == null){
task1 = new Task1();
if (!contains(task1)){
addChild(task1);
};
task1.init();
};
};
if (MainClass.currentLevel == 2){
if (task2 == null){
task2 = new Task2();
if (!contains(task2)){
addChild(task2);
};
task2.init();
setChildIndex(task2, (numChildren - 1));
};
};
if (MainClass.currentLevel == 3){
if (task3 == null){
task3 = new Task3();
if (!contains(task3)){
addChild(task3);
};
task3.init();
setChildIndex(task3, (numChildren - 1));
};
};
if (MainClass.currentLevel == 4){
if (task4 == null){
task4 = new Task4();
if (!contains(task4)){
addChild(task4);
};
task4.init();
setChildIndex(task4, (numChildren - 1));
};
};
if (MainClass.currentLevel == 5){
if (task5 == null){
task5 = new Task5();
if (!contains(task5)){
addChild(task5);
};
task5.init();
setChildIndex(task5, (numChildren - 1));
};
};
if (MainClass.currentLevel == 6){
if (decoration == null){
decoration = new Decoration();
if (!contains(decoration)){
addChild(decoration);
};
decoration.init();
setChildIndex(decoration, (numChildren - 1));
};
};
}
public function chkHitArea4(){
if (task4.currentFrame < task4.totalFrames){
if (task4.arr2){
if (task4.arr2.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task4.arr2.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task4.arr2.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
};
}
public function chkHitArea3(){
if (task3.currentFrame == 1){
if (task3.Bread.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task3.Bread.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task3.Bread.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
if (task3.currentFrame == task3.totalFrames){
if (task3.kadai.currentFrame > 2){
if (task3.kadai.arr2.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task3.kadai.arr2.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task3.kadai.arr2.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
return;
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.MOUSE_DOWN)){
removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
};
if (this.hasEventListener(Event.ENTER_FRAME)){
removeEventListener(Event.ENTER_FRAME, onEnter);
};
if (this.hasEventListener(MouseEvent.MOUSE_UP)){
removeEventListener(MouseEvent.MOUSE_UP, onUp);
};
if (this.hasEventListener(MouseEvent.MOUSE_MOVE)){
removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
};
}
public function chkTaskCompletion(){
if (((((h1) && (h2))) && (h3))){
if (task1.currentFrame == 1){
task1.Onion.play();
};
if (task1.currentFrame == 2){
task1.Celery.play();
};
if (task1.currentFrame == 3){
task1.Parshley.play();
};
if (task1.currentFrame == 4){
task1.Olive.play();
};
};
}
public function chkTaskCompletion5(){
if (((((h1) && (h2))) && (h3))){
task5.play();
};
}
public function chkTaskCompletion4(){
if (((((h1) && (h2))) && (h3))){
if (task4.currentFrame < task4.totalFrames){
if (task4.currentFrame == 7){
task4.butterBowl.visible = false;
task4.celeryBowl.visible = false;
task4.onionBowl.visible = false;
task4.breadBowl.visible = false;
};
if (task4.currentFrame == 14){
task4.walnutBowl.visible = false;
task4.appleBowl.visible = false;
task4.parshleyBowl.visible = false;
task4.oliveBowl.visible = false;
task4.currantBowl.visible = false;
};
if (task4.currentFrame == 21){
task4.gibletBowl.visible = false;
task4.sageBowl.visible = false;
task4.salt.visible = false;
task4.pepper.visible = false;
};
if (task4.currentFrame == 22){
task4.lidKadai.visible = false;
};
task4.play();
};
};
}
public function chkTaskCompletion3(){
if (((((h1) && (h2))) && (h3))){
if (task3.currentFrame < task3.totalFrames){
task3.Bread.play();
};
if (task3.currentFrame == task3.totalFrames){
task3.kadai.play();
};
};
}
public function removeLine(){
if (contains(line)){
removeChild(line);
line = null;
line = new Sprite();
};
}
public function chkHitArea(){
if (task1.currentFrame == 1){
if (task1.Onion.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task1.Onion.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task1.Onion.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
if (task1.currentFrame == 2){
if (task1.Celery.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task1.Celery.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task1.Celery.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
if (task1.currentFrame == 3){
if (task1.Parshley.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task1.Parshley.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task1.Parshley.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
if (task1.currentFrame == 4){
if (task1.Olive.currentFrame < 49){
if (((task1.Olive.arr1.hit1.hitTestPoint(mouseX, mouseY)) || (task1.Olive.arr2.hit1.hitTestPoint(mouseX, mouseY)))){
h1 = true;
};
if (((task1.Olive.arr1.hit2.hitTestPoint(mouseX, mouseY)) || (task1.Olive.arr2.hit2.hitTestPoint(mouseX, mouseY)))){
h2 = true;
};
if (((task1.Olive.arr1.hit3.hitTestPoint(mouseX, mouseY)) || (task1.Olive.arr2.hit3.hitTestPoint(mouseX, mouseY)))){
h3 = true;
};
} else {
if (task1.Olive.arr1.hit1.hitTestPoint(mouseX, mouseY)){
h1 = true;
};
if (task1.Olive.arr1.hit2.hitTestPoint(mouseX, mouseY)){
h2 = true;
};
if (task1.Olive.arr1.hit3.hitTestPoint(mouseX, mouseY)){
h3 = true;
};
};
};
}
public function chkTaskCompletion2(){
if (((((h1) && (h2))) && (h3))){
if (task2.currentFrame < task2.totalFrames){
task2.play();
};
};
}
public function addListeners(){
if (!this.hasEventListener(MouseEvent.MOUSE_DOWN)){
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
};
if (!this.hasEventListener(Event.ENTER_FRAME)){
this.addEventListener(Event.ENTER_FRAME, onEnter);
};
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);
};
if (!this.hasEventListener(MouseEvent.ROLL_OUT)){
this.addEventListener(MouseEvent.ROLL_OUT, onRoll);
};
}
public function onUp(_arg1:MouseEvent){
if (task1){
task1.onUp(_arg1);
return;
};
if (task2){
task2.onUp(_arg1);
return;
};
if (task3){
task3.onUp(_arg1);
return;
};
if (task4){
task4.onUp(_arg1);
return;
};
if (task5){
task5.onUp(_arg1);
return;
};
if (decoration){
decoration.onUp(_arg1);
return;
};
}
public function clearGraphics(){
if (task1){
if (contains(task1)){
removeChild(task1);
};
task1 = null;
return;
};
if (task2){
if (contains(task2)){
removeChild(task2);
};
task2 = null;
return;
};
if (task3){
if (contains(task3)){
removeChild(task3);
};
task3 = null;
return;
};
if (task4){
if (contains(task4)){
removeChild(task4);
};
task4 = null;
return;
};
if (task5){
if (contains(task5)){
removeChild(task5);
};
task5 = null;
return;
};
if (decoration){
if (contains(decoration)){
removeChild(decoration);
};
decoration = null;
return;
};
}
}
}//package
Section 68
//CustomSound (CustomSound)
package {
import flash.events.*;
import flash.media.*;
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();
_channel = null;
}
public function replayLoop(){
_channel = play(0, 9999, _transform);
_transform = _channel.soundTransform;
_channel.soundTransform = _transform;
if (isLooping == true){
};
}
public function setVolumeOnPersonalTransform(_arg1:Number){
if (((!((_channel == null))) && (!((_transform == null))))){
_transform.volume = (_arg1 / 100);
_channel.soundTransform = _transform;
};
}
public function setLoop(_arg1:Boolean){
isLooping = _arg1;
}
}
}//package
Section 69
//Decoration (Decoration)
package {
import flash.events.*;
import flash.display.*;
public class Decoration extends MovieClip {
public var currantBowl:MovieClip;
public var spinachBowl:MovieClip;
public var clock:MovieClip;
public var dragObj:MovieClip;
public var orange:MovieClip;
public var orangeBowl:MovieClip;
public var intro6:MovieClip;
public var timer6:int;
public var dy:Number;// = 0
public var turkey:MovieClip;
public var soundBn:MovieClip;
public var dx:Number;// = 0
public var temp6:int;
public function Decoration(){
dx = 0;
dy = 0;
super();
addFrameScript(0, frame1, 31, frame32, 61, frame62, 62, frame63, 63, frame64, 64, frame65, 65, frame66, 74, frame75, 99, frame100);
}
function frame62(){
stop();
this.intro6.paper6.nextFrame();
}
function frame65(){
stop();
}
public function onRoll(_arg1:MouseEvent){
if (((!((dragObj == null))) && (!((dragObj == orange))))){
onUp(null);
};
if (dragObj == orange){
orange.x = -100;
dragObj = null;
orangeBowl.prevFrame();
};
}
public function init(){
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
this.gotoAndStop(1);
dragObj = new MovieClip();
timer6 = 0;
temp6 = 0;
this.spinachBowl.mouseChildren = false;
this.currantBowl.mouseChildren = false;
this.orangeBowl.mouseChildren = false;
this.spinachBowl.buttonMode = true;
this.currantBowl.buttonMode = true;
this.orangeBowl.buttonMode = true;
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
}
function frame75(){
this.intro6.play();
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 50;
} else {
if (timer6 <= 40){
MainClass.bonusScore = 100;
} else {
if (timer6 <= 60){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
MainClass.levelScore = 200;
};
(this.parent.parent as MainClass).endLevel(1);
}
function frame64(){
stop();
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
_local2 = _arg1.target.name;
switch (_local2){
case "soundBn":
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
break;
case "spinachBowl":
if (this.currentFrame == 1){
dragObj = spinachBowl;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "currantBowl":
if (this.currentFrame == 32){
dragObj = currantBowl;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "orangeBowl":
if (orangeBowl.currentFrame < 5){
if ((((this.currentFrame > 61)) && ((this.currentFrame < 66)))){
dragObj = this.orange;
orangeBowl.nextFrame();
};
};
break;
};
}
public function onEnter(_arg1:Event){
if (temp6 < 30){
temp6++;
} else {
timer6++;
clock.clockHand.gotoAndStop(timer6);
temp6 = 0;
if (timer6 == 100){
endCurrentLevel(0);
};
};
}
public function onMove(_arg1:MouseEvent){
if (dragObj != null){
if (_arg1.buttonDown){
dragObj.x = mouseX;
dragObj.y = mouseY;
return;
};
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
}
function frame1(){
stop();
this.intro6.paper6.gotoAndStop(1);
}
function frame32(){
stop();
this.intro6.paper6.nextFrame();
}
function frame100(){
stop();
this.endCurrentLevel(1);
}
public function onUp(_arg1:MouseEvent){
if (dragObj != null){
if ((((((this.currentFrame == 1)) || ((this.currentFrame == 32)))) && (dragObj.hitTestObject(turkey)))){
MainClass.finalTurkeyCount++;
dragObj.visible = false;
this.play();
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
return;
};
if ((((this.currentFrame > 61)) && ((this.currentFrame < 66)))){
if ((((dragObj == this.orange)) && (dragObj.hitTestObject(turkey)))){
this.play();
MainClass.finalTurkeyCount++;
orange.x = -100;
dragObj = null;
} else {
orangeBowl.prevFrame();
orange.x = -100;
dragObj = null;
};
} else {
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
};
}
function frame66(){
this.intro6.paper6.nextFrame();
}
function frame63(){
stop();
}
}
}//package
Section 70
//InGameSound (InGameSound)
package {
public dynamic class InGameSound extends CustomSound {
}
}//package
Section 71
//LevelUp (LevelUp)
package {
import flash.events.*;
import flash.display.*;
public class LevelUp extends MovieClip {
public var levelUpScreen:MovieClip;
public function init(){
setChildIndex(levelUpScreen, (numChildren - 1));
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
showLevelScore();
}
public function showLevelScore(){
levelUpScreen.Lmoney.text = MainClass.levelScore.toString();
levelUpScreen.Bmoney.text = MainClass.bonusScore.toString();
levelUpScreen.Tmoney.text = (MainClass.levelScore + MainClass.bonusScore).toString();
MainClass.totalScore = (MainClass.totalScore + (MainClass.levelScore + MainClass.bonusScore));
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "gotoNext":
remove();
(this.parent as MainClass).nextLevel();
break;
case "girlGamesBn":
(this.parent as MainClass).gotoGirlGames();
break;
case "moreGamesBn":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 72
//MainClass (MainClass)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class MainClass extends MovieClip {
public var soundController:SoundController;
public var levelUp:LevelUp;
public var youWin:YouWin;
private var myContextMenu:ContextMenu;
public var welcome:Welcome;
private var bmpData1:BitmapData;
private var maxLevel:int;
public var container:Container;
public var transitionManager:MyTransitionManager;
public static var currentLevel:int;
public static var satisfaction:int;
public static var totalScore:Number;
public static var finalTurkeyCount:int;
public static var vol:int;
public static var levelScore:Number;
public static var bonusScore:Number;
public function MainClass(){
soundController = new SoundController();
addEventListener(Event.ENTER_FRAME, initialise, false, 0, true);
}
private function initGame(){
totalScore = 0;
levelScore = 0;
bonusScore = 0;
vol = 100;
finalTurkeyCount = 0;
maxLevel = 6;
contextMenu = myContextMenu;
createWelcome();
}
public function clearTaskGraphics(){
container.clearGraphics();
}
private function onSelects1(_arg1:ContextMenuEvent){
if (container != null){
container.onUp(null);
};
}
public function endLevel(_arg1:int){
if (_arg1 == 0){
} else {
if (currentLevel < maxLevel){
createLevelUp();
} else {
createYouWin();
};
};
}
public function submitScore(){
}
public function startGame(){
currentLevel = 1;
startLevel();
}
public function nextLevel(){
currentLevel++;
if (levelUp){
if (contains(levelUp)){
removeChild(levelUp);
};
};
levelUp = null;
container.init();
soundController.playMusic(SoundController.MUSIC_INGAME);
setChildIndex(container, (numChildren - 1));
stage.focus = container;
}
private function createYouWin(){
if (youWin == null){
youWin = new YouWin();
};
if (!contains(youWin)){
addChild(youWin);
setChildIndex(youWin, 0);
youWin.init();
playTransition(3);
};
soundController.playMusic(SoundController.MUSIC_YOUWIN);
}
public function gotoGirlGames(){
URLHandler.openGirlGames();
}
public function playTransition(_arg1:int){
transitionManager = new MyTransitionManager();
switch (_arg1){
case 2:
bmpData1.draw(levelUp);
break;
case 3:
bmpData1.draw(youWin);
break;
case 5:
bmpData1.draw(welcome);
break;
case 6:
bmpData1.draw(welcome.instructionPage);
break;
case 7:
bmpData1.draw(welcome.welcomePage);
break;
};
transitionManager.init(bmpData1, _arg1);
addChild(transitionManager);
transitionManager.run();
}
public function playMoreGames(){
URLHandler.openPlayMoreGames();
}
public function startLevel(){
if (welcome){
welcome.remove();
if (contains(welcome)){
removeChild(welcome);
};
welcome = null;
};
if (container == null){
container = new Container();
};
addChild(container);
setChildIndex(container, 0);
container.init();
stage.focus = container;
soundController.playMusic(SoundController.MUSIC_INGAME);
}
public function playAgain(){
totalScore = 0;
levelScore = 0;
bonusScore = 0;
maxLevel = 6;
finalTurkeyCount = 0;
createWelcome();
playTransition(5);
}
public function createLevelUp(){
if (levelUp == null){
levelUp = new LevelUp();
};
if (!contains(levelUp)){
addChild(levelUp);
setChildIndex(levelUp, 0);
playTransition(2);
};
levelUp.init();
soundController.playMusic(SoundController.MUSIC_WELCOME);
}
private function initialise(_arg1:Event){
if (stage != null){
stage.focus = this;
stage.stageFocusRect = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
removeEventListener(Event.ENTER_FRAME, initialise);
new URLHandler();
bmpData1 = new BitmapData(600, 500, true, 0);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, onSelects1);
initGame();
};
}
public function createWelcome(){
if (welcome == null){
welcome = new Welcome();
};
addChild(welcome);
setChildIndex(welcome, 0);
welcome.init();
soundController.playMusic(SoundController.MUSIC_WELCOME);
}
public function addMoreGames(){
URLHandler.openAddMoreGames();
}
public function removeTransition(_arg1:int){
switch (_arg1){
case 2:
clearTaskGraphics();
break;
case 3:
clearGraphics();
container = null;
break;
case 5:
if (youWin){
youWin.remove();
if (contains(youWin)){
removeChild(youWin);
};
youWin = null;
};
break;
case 6:
welcome.changeLayer(6);
break;
case 7:
welcome.changeLayer(7);
break;
};
removeChild(transitionManager);
transitionManager = null;
}
private function clearGraphics(){
if (container){
if (contains(container)){
removeChild(container);
};
container.clearGraphics();
container = null;
};
}
}
}//package
Section 73
//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 74
//MyTransitionManager (MyTransitionManager)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class MyTransitionManager extends MovieClip {
private var size:int;// = 100
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 = 100;
scaleFactor = 0.1;
super();
bmpDataArray = new Array();
pt = new Point(0, 0);
xNum = (600 / 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 75
//PauseScreen (PauseScreen)
package {
import flash.display.*;
public class PauseScreen extends MovieClip {
public function init(){
}
}
}//package
Section 76
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.utils.*;
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
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);
bar.gotoAndStop(1);
percentText = (getChildByName("percent") as TextField);
percentText.text = "0";
timer = new Timer(100, 0);
timer.addEventListener(TimerEvent.TIMER, afterSecond);
timer.start();
logo.linkBtn.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(){
MochiBot.track(this, "cc090c31");
stop();
}
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 77
//SoundController (SoundController)
package {
import flash.events.*;
import flash.media.*;
public class SoundController {
public var currentMusicIndex:int;// = -1
public var soundVolume:Number;// = 0
public var musicVolume:Number;// = 0
public var fadeindelta:Number;// = 0.05
public var _soundTransform:SoundTransform;// = null
public var isSoundOn:Boolean;// = false
public var sounds:Array;// = null
public var fadeOutTo:Number;// = 0
private var soundclassname:Class;// = null
public var isMusicOn:Boolean;// = false
public var defaultSetVolume:Number;// = 0.8
public var currentSoundIndex:int;// = -1
public var _musicTransform:SoundTransform;// = null
public var defaultMax:Number;// = 1.25
public var musics:Array;// = null
public static var MUSIC_INGAME:int = 2;
public static var MUSIC_YOUWIN:int = 3;
public static var MUSIC_WELCOME:int = 1;
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;
fadeOutTo = 0;
defaultMax = 1.25;
defaultSetVolume = 0.8;
fadeindelta = 0.05;
super();
musics = new Array(3);
currentMusicIndex = -1;
isMusicOn = true;
isSoundOn = true;
soundVolume = defaultSetVolume;
musicVolume = defaultSetVolume;
_soundTransform = new SoundTransform(defaultSetVolume, 0);
_musicTransform = new SoundTransform(defaultSetVolume, 0);
createMusicObject(MUSIC_WELCOME);
createMusicObject(MUSIC_INGAME);
createMusicObject(MUSIC_YOUWIN);
}
public function fadeinMusic(_arg1:Event){
var _local2:Number;
var _local3:Number;
if (currentMusicIndex < 0){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeinMusic);
return;
};
if (musics[currentMusicIndex]._channel != null){
_local2 = (_musicTransform.volume * fadeindelta);
if (_musicTransform.volume > musics[currentMusicIndex]._transform.volume){
_local3 = (musics[currentMusicIndex]._transform.volume + _local2);
if (_local3 > _musicTransform.volume){
_local3 = _musicTransform.volume;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeinMusic);
};
musics[currentMusicIndex].setVolumeOnPersonalTransform((_local3 * 100));
};
};
}
public function stopAllMusics(){
var _local1:*;
_local1 = 0;
while (_local1 < musics.length) {
(musics[_local1] as CustomSound).stopSound();
_local1++;
};
}
public function toggleSound(){
if (isSoundOn == true){
isSoundOn = false;
} else {
isSoundOn = true;
};
}
public function stopSound(_arg1:int){
(sounds[_arg1] as CustomSound).stopSound();
(currentSoundIndex - 1);
}
public function startCurrentMusic(){
if (currentMusicIndex != -1){
(musics[currentMusicIndex] as CustomSound).playSound(_musicTransform);
};
}
public function createMusicObject(_arg1:int){
switch (_arg1){
case 1:
musics[_arg1] = new WelcomeSound();
musics[_arg1].setCustomVolume(1);
break;
case 2:
musics[_arg1] = new InGameSound();
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 stopCurrentSound(){
stopSound(currentSoundIndex);
}
public function playSound(_arg1:int, _arg2:int=-1){
var _local3:SoundTransform;
currentSoundIndex = _arg1;
if (isSoundOn == true){
currentSoundIndex = _arg1;
if (_arg2 != -1){
_local3 = new SoundTransform((_soundTransform.volume * _arg2), 0);
(sounds[_arg1] as CustomSound).playSound(_local3);
} else {
(sounds[_arg1] as CustomSound).playSound(_soundTransform);
};
};
}
public function stopMusic(_arg1:int=-1){
_arg1 = currentMusicIndex;
if (currentMusicIndex == -1){
return;
};
(musics[_arg1] as CustomSound).stopSound();
}
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 stopCurrentMusic(){
stopMusic(currentMusicIndex);
}
public function playMusic(_arg1:int, _arg2:Number=-1){
var _local3:SoundTransform;
if (isMusicOn == true){
if (((!((currentMusicIndex == -1))) && (!((currentMusicIndex == _arg1))))){
stopMusic(currentMusicIndex);
};
if (((!((currentMusicIndex == _arg1))) || (((musics[_arg1] as CustomSound)._channel == null)))){
if (_arg2 != -1){
_local3 = new SoundTransform((_musicTransform.volume * _arg2), _musicTransform.pan);
(musics[_arg1] as CustomSound).playSound(_local3);
} else {
(musics[_arg1] as CustomSound).playSound(_musicTransform);
};
};
};
currentMusicIndex = _arg1;
}
public function stopAllSoundEffects(){
var _local1:*;
_local1 = 0;
while (_local1 < sounds.length) {
(sounds[_local1] as CustomSound).stopSound();
_local1++;
};
}
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 fadeoutSound(_arg1:Event){
var _local2:Number;
var _local3:Number;
if (currentMusicIndex < 0){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeoutSound);
return;
};
_local2 = (_musicTransform.volume * 0.05);
if (musics[currentMusicIndex]._channel != null){
if (fadeOutTo < musics[currentMusicIndex]._transform.volume){
_local3 = (musics[currentMusicIndex]._transform.volume - _local2);
if (_local3 <= fadeOutTo){
_local3 = fadeOutTo;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeoutSound);
if (fadeOutTo == 0){
stopMusic();
} else {
musics[currentMusicIndex].setVolumeOnPersonalTransform((_local3 * 100));
};
} else {
musics[currentMusicIndex].setVolumeOnPersonalTransform((_local3 * 100));
};
} else {
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeoutSound);
};
};
}
public function reduseMusicVolume(_arg1:int, _arg2:Number=0){
var _local3:Number;
_arg1 = 5;
_arg2 = (_musicTransform.volume * _arg2);
_local3 = (100 * (musics[currentMusicIndex]._transform.volume - 0.05));
_arg2 = (_musicTransform.volume * _arg2);
if (_local3 >= _arg2){
(musics[currentMusicIndex] as CustomSound).setVolume(_local3);
};
}
public function setNormalMusicVolume(){
(musics[currentMusicIndex] as CustomSound).setVolume((_musicTransform.volume * 100));
}
public function fadeinSound(_arg1:Event){
var _local2:Number;
var _local3:Number;
if (currentSoundIndex < 0){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeinSound);
return;
};
if (sounds[currentSoundIndex]._channel != null){
if (_soundTransform.volume > sounds[currentSoundIndex]._transform.volume){
_local2 = (_soundTransform.volume * fadeindelta);
_local3 = (sounds[currentSoundIndex]._transform.volume + _local2);
if (_local3 > _soundTransform.volume){
_local3 = _soundTransform.volume;
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, fadeinSound);
};
sounds[currentSoundIndex].setVolumeOnPersonalTransform((_local3 * 100));
};
};
}
}
}//package
Section 78
//Task1 (Task1)
package {
import flash.events.*;
import flash.display.*;
public class Task1 extends MovieClip {
public var Celery:MovieClip;
public var clock:MovieClip;
public var intro1:MovieClip;
public var score;
public var Onion:MovieClip;
public var timer1:int;
public var soundBn:MovieClip;
public var Olive:MovieClip;
public var Parshley:MovieClip;
public var temp1:int;
public function Task1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 100;
} else {
if (timer1 <= 100){
MainClass.bonusScore = 100;
} else {
if (timer1 <= 140){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
MainClass.levelScore = 300;
};
(this.parent.parent as MainClass).endLevel(1);
}
public function init(){
timer1 = 0;
temp1 = 0;
this.gotoAndStop(1);
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
_local2 = _arg1.target.name;
if (_local2 == "soundBn"){
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
};
}
public function onEnter(_arg1:Event){
if (temp1 < 30){
temp1++;
} else {
timer1++;
clock.clockHand.gotoAndStop(int((timer1 / 2)));
temp1 = 0;
if (timer1 == 200){
endCurrentLevel(0);
};
};
}
public function onMove(_arg1:MouseEvent){
if (this.currentFrame == 1){
if ((((((((((((((((((((((((((((((Onion.currentFrame == 20)) || ((Onion.currentFrame == 30)))) || ((Onion.currentFrame == 39)))) || ((Onion.currentFrame == 49)))) || ((Onion.currentFrame == 59)))) || ((Onion.currentFrame == 70)))) || ((Onion.currentFrame == 80)))) || ((Onion.currentFrame == 90)))) || ((Onion.currentFrame == 100)))) || ((Onion.currentFrame == 111)))) || ((Onion.currentFrame == 121)))) || ((Onion.currentFrame == 132)))) || ((Onion.currentFrame == 142)))) || ((Onion.currentFrame == 152)))) || ((Onion.currentFrame == 162)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea();
};
};
if (this.currentFrame == 2){
if ((((((((((((((((Celery.currentFrame == 25)) || ((Celery.currentFrame == 34)))) || ((Celery.currentFrame == 44)))) || ((Celery.currentFrame == 54)))) || ((Celery.currentFrame == 64)))) || ((Celery.currentFrame == 75)))) || ((Celery.currentFrame == 85)))) || ((Celery.currentFrame == 95)))){
(this.parent as Container).chkHitArea();
(this.parent as Container).drawLine();
};
};
if (this.currentFrame == 3){
if ((((((((((((((((Parshley.currentFrame == 24)) || ((Parshley.currentFrame == 32)))) || ((Parshley.currentFrame == 42)))) || ((Parshley.currentFrame == 52)))) || ((Parshley.currentFrame == 62)))) || ((Parshley.currentFrame == 72)))) || ((Parshley.currentFrame == 82)))) || ((Parshley.currentFrame == 92)))){
(this.parent as Container).chkHitArea();
(this.parent as Container).drawLine();
};
};
if (this.currentFrame == 4){
if ((((((((((((((((((((((((((((((Olive.currentFrame == 20)) || ((Olive.currentFrame == 30)))) || ((Olive.currentFrame == 48)))) || ((Olive.currentFrame == 67)))) || ((Olive.currentFrame == 77)))) || ((Olive.currentFrame == 88)))) || ((Olive.currentFrame == 98)))) || ((Olive.currentFrame == 108)))) || ((Olive.currentFrame == 118)))) || ((Olive.currentFrame == 129)))) || ((Olive.currentFrame == 139)))) || ((Olive.currentFrame == 150)))) || ((Olive.currentFrame == 160)))) || ((Olive.currentFrame == 170)))) || ((Olive.currentFrame == 180)))){
(this.parent as Container).chkHitArea();
(this.parent as Container).drawLine();
};
};
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
public function onUp(_arg1:MouseEvent){
if (_arg1 == null){
return;
};
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion();
(this.parent as Container).falsify();
}
}
}//package
Section 79
//Task2 (Task2)
package {
import flash.events.*;
import flash.display.*;
public class Task2 extends MovieClip {
public var clock:MovieClip;
public var MCHit:MovieClip;
public var intro2:MovieClip;
public var timer2:int;
public var soundBn:MovieClip;
public var pArray:Array;
public var temp2:int;
public var arr2:MovieClip;
public var arr1:MovieClip;
public function Task2(){
addFrameScript(0, frame1, 22, frame23, 32, frame33, 45, frame46, 58, frame59, 69, frame70, 80, frame81, 92, frame93, 104, frame105, 117, frame118, 128, frame129, 139, frame140, 148, frame149, 181, frame182, 189, frame190, 208, frame209);
}
function frame149(){
this.intro2.paper2.nextFrame();
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 50;
} else {
if (timer2 <= 50){
MainClass.bonusScore = 100;
} else {
if (timer2 <= 70){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
MainClass.levelScore = 100;
};
(this.parent.parent as MainClass).endLevel(1);
}
function frame70(){
stop();
}
public function init(){
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
pArray = new Array();
MCHit = new MovieClip();
timer2 = 0;
temp2 = 0;
clock.clockHand.gotoAndStop(1);
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
}
function frame81(){
stop();
this.intro2.paper2.nextFrame();
}
function frame209(){
stop();
this.endCurrentLevel(1);
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
_local2 = _arg1.target.name;
if (_local2 == "soundBn"){
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
};
}
public function onEnter(_arg1:Event){
if (temp2 < 15){
temp2++;
} else {
timer2++;
clock.clockHand.gotoAndStop(timer2);
temp2 = 0;
if (timer2 == 100){
endCurrentLevel(0);
};
};
}
public function onMove(_arg1:MouseEvent){
if ((((((((((((((((((((((this.currentFrame == 23)) || ((this.currentFrame == 33)))) || ((this.currentFrame == 46)))) || ((this.currentFrame == 59)))) || ((this.currentFrame == 70)))) || ((this.currentFrame == 81)))) || ((this.currentFrame == 93)))) || ((this.currentFrame == 105)))) || ((this.currentFrame == 118)))) || ((this.currentFrame == 129)))) || ((this.currentFrame == 140)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea2();
};
}
function frame93(){
stop();
}
function frame105(){
stop();
}
function frame1(){
this.intro2.paper2.gotoAndStop(1);
}
function frame182(){
this.intro2.paper2.nextFrame();
}
function frame23(){
stop();
}
function frame190(){
this.intro2.play();
}
function frame118(){
stop();
this.intro2.paper2.nextFrame();
}
function frame33(){
stop();
this.intro2.paper2.nextFrame();
}
function frame46(){
stop();
}
function frame129(){
stop();
}
function frame59(){
stop();
this.intro2.paper2.nextFrame();
}
public function onUp(_arg1:MouseEvent){
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion2();
(this.parent as Container).falsify();
}
function frame140(){
stop();
}
}
}//package
Section 80
//Task3 (Task3)
package {
import flash.events.*;
import flash.display.*;
public class Task3 extends MovieClip {
public var butter:MovieClip;
public var breadBowl:MovieClip;
public var Bread:MovieClip;
public var butterBowl:MovieClip;
public var clock:MovieClip;
public var dragObj:MovieClip;
public var flame:MovieClip;
public var kadaiHit:MovieClip;
public var prepared:Boolean;
public var intro3:MovieClip;
public var kadai:MovieClip;
public var timer3:int;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var soundBn:MovieClip;
public var temp3:int;
public var arr2:MovieClip;
public function Task3(){
dx = 0;
dy = 0;
super();
addFrameScript(0, frame1, 19, frame20);
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 100;
} else {
if (timer3 <= 60){
MainClass.bonusScore = 100;
} else {
if (timer3 <= 100){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
MainClass.levelScore = 300;
};
(this.parent.parent as MainClass).endLevel(1);
}
public function init(){
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
this.butterBowl.mouseChildren = false;
this.breadBowl.mouseChildren = false;
kadai.b1.visible = false;
kadai.b2.visible = false;
kadai.b3.visible = false;
dragObj = new MovieClip();
butter.mouseEnabled = false;
timer3 = 0;
temp3 = 0;
kadai.gotoAndStop(1);
breadBowl.gotoAndStop(1);
butterBowl.gotoAndStop(1);
clock.clockHand.gotoAndStop(1);
prepared = false;
breadBowl.buttonMode = true;
butterBowl.buttonMode = true;
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
}
public function onRoll(_arg1:MouseEvent){
if (dragObj != null){
onUp(null);
};
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
_local2 = _arg1.target.name;
if (_local2 == "soundBn"){
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
return;
};
if (this.currentFrame == this.totalFrames){
switch (_local2){
case "onBn":
flame.gotoAndStop(2);
if (this.currentFrame == this.totalFrames){
if (this.intro3.paper3.currentFrame == 2){
this.intro3.paper3.nextFrame();
};
};
break;
case "offBn":
flame.gotoAndStop(1);
if (this.currentFrame == this.totalFrames){
if (this.intro3.paper3.currentFrame == 10){
this.intro3.paper3.nextFrame();
this.intro3.play();
};
};
if (prepared){
endCurrentLevel(1);
};
break;
case "medBn":
if ((((flame.currentFrame > 1)) && ((this.kadai.currentFrame >= 3)))){
flame.gotoAndStop(3);
};
break;
case "highBn":
if ((((flame.currentFrame > 1)) && ((this.kadai.currentFrame >= 3)))){
flame.gotoAndStop(4);
if (this.currentFrame == this.totalFrames){
if (this.intro3.paper3.currentFrame == 7){
this.intro3.paper3.nextFrame();
};
};
};
break;
case "butterBowl":
if (kadai.currentFrame < 2){
if (((((!(kadai.b1.visible)) || (!(kadai.b2.visible)))) || (!(kadai.b3.visible)))){
dragObj = butter;
setChildIndex(butter, (numChildren - 1));
butterBowl.nextFrame();
};
};
break;
case "breadBowl":
dragObj = breadBowl;
dx = breadBowl.x;
dy = breadBowl.y;
setChildIndex(breadBowl, (numChildren - 1));
break;
};
};
}
public function placeObject(){
if (dragObj == butter){
if ((((kadai.currentFrame == 1)) && ((flame.currentFrame == 2)))){
butter.x = -100;
if (!kadai.b1.visible){
kadai.b1.x = -20;
kadai.b1.visible = true;
kadai.b1.gotoAndPlay(2);
return;
};
if (!kadai.b2.visible){
kadai.b2.x = -5;
kadai.b2.visible = true;
kadai.b2.gotoAndPlay(2);
return;
};
if (!kadai.b3.visible){
kadai.b3.x = 9;
kadai.b3.visible = true;
kadai.b3.gotoAndPlay(2);
return;
};
} else {
butterBowl.prevFrame();
dragObj.x = -100;
};
};
if (dragObj == breadBowl){
if ((((kadai.currentFrame == 2)) && ((flame.currentFrame == 2)))){
breadBowl.nextFrame();
kadai.nextFrame();
breadBowl.x = dx;
breadBowl.y = dy;
} else {
breadBowl.x = dx;
breadBowl.y = dy;
};
};
}
public function onEnter(_arg1:Event){
if (temp3 < 30){
temp3++;
} else {
timer3++;
clock.clockHand.gotoAndStop(int(((timer3 / 120) * 100)));
temp3 = 0;
if (timer3 == 120){
endCurrentLevel(0);
};
};
}
public function onMove(_arg1:MouseEvent){
if (this.currentFrame == 1){
if ((((((((((((((((((((this.Bread.currentFrame == 20)) || ((this.Bread.currentFrame == 30)))) || ((this.Bread.currentFrame == 39)))) || ((this.Bread.currentFrame == 49)))) || ((this.Bread.currentFrame == 59)))) || ((this.Bread.currentFrame == 70)))) || ((this.Bread.currentFrame == 80)))) || ((this.Bread.currentFrame == 90)))) || ((this.Bread.currentFrame == 103)))) || ((this.Bread.currentFrame == 117)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea3();
return;
};
};
if (this.currentFrame == this.totalFrames){
if (((_arg1.buttonDown) && ((this.kadai.currentFrame < 3)))){
if (dragObj != null){
dragObj.x = mouseX;
dragObj.y = mouseY;
return;
};
};
if ((((((this.kadai.currentFrame == 3)) || ((this.kadai.currentFrame == 4)))) && ((flame.currentFrame > 3)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea3();
};
};
}
function frame1(){
stop();
this.intro3.paper3.gotoAndStop(1);
}
function frame20(){
stop();
}
public function onUp(_arg1:MouseEvent){
if (this.currentFrame == 1){
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion3();
(this.parent as Container).falsify();
return;
};
if (this.currentFrame == this.totalFrames){
if (dragObj != null){
if (dragObj.hitTestObject(this.kadaiHit)){
placeObject();
dragObj = null;
} else {
if (dragObj == butter){
butterBowl.prevFrame();
dragObj.x = -100;
};
if (dragObj == breadBowl){
dragObj.x = dx;
dragObj.y = dy;
};
dragObj = null;
};
} else {
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion3();
(this.parent as Container).falsify();
return;
};
};
}
}
}//package
Section 81
//Task4 (Task4)
package {
import flash.events.*;
import flash.display.*;
public class Task4 extends MovieClip {
public var butter:MovieClip;
public var butterBowl:MovieClip;
public var clock:MovieClip;
public var b1:MovieClip;
public var b2:MovieClip;
public var b3:MovieClip;
public var pepper:MovieClip;
public var lidKadai:MovieClip;
public var appleBowl:MovieClip;
public var salt:MovieClip;
public var oliveBowl:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var parshleyBowl:MovieClip;
public var gibletBowl:MovieClip;
public var temp4:int;
public var breadBowl:MovieClip;
public var dropableArray:Array;
public var dragObj:MovieClip;
public var flame:MovieClip;
public var kadaiHit:MovieClip;
public var intro4:MovieClip;
public var onionBowl:MovieClip;
public var dishTextTime:int;
public var wallHit:MovieClip;
public var dishTimeClip:MovieClip;
public var dishTime:int;
public var timer4:int;
public var flameCount:int;
public var sageBowl:MovieClip;
public var soundBn:MovieClip;
public var lidKadai1:MovieClip;
public var celeryBowl:MovieClip;
public var walnutBowl:MovieClip;
public var arr2:MovieClip;
public var currantBowl:MovieClip;
public function Task4(){
dx = 0;
dy = 0;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 24, frame25, 25, frame26, 30, frame31);
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 150;
} else {
if (timer4 <= 70){
MainClass.bonusScore = 100;
} else {
if (timer4 <= 100){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
if (dishTime == 250){
MainClass.levelScore = 400;
} else {
MainClass.levelScore = 350;
};
};
(this.parent.parent as MainClass).endLevel(1);
}
public function setChildrens(){
celeryBowl.mouseChildren = false;
butterBowl.mouseChildren = false;
onionBowl.mouseChildren = false;
gibletBowl.mouseChildren = false;
currantBowl.mouseChildren = false;
oliveBowl.mouseChildren = false;
breadBowl.mouseChildren = false;
walnutBowl.mouseChildren = false;
appleBowl.mouseChildren = false;
parshleyBowl.mouseChildren = false;
sageBowl.mouseChildren = false;
pepper.mouseChildren = false;
salt.mouseChildren = false;
breadBowl.mouseChildren = false;
}
public function placeLid(){
lidKadai1.visible = false;
this.play();
}
public function onEnter(_arg1:Event){
if (temp4 < 30){
temp4++;
} else {
timer4++;
clock.clockHand.gotoAndStop(int(((timer4 / 120) * 100)));
temp4 = 0;
if (timer4 == 120){
endCurrentLevel(0);
};
};
if ((((((this.currentFrame > 23)) && ((this.currentFrame < 26)))) && ((flame.currentFrame == 3)))){
dishTime++;
if ((dishTime % 25) == 0){
dishTextTime--;
this.dishTimeClip.dishTimeText.text = dishTextTime;
};
if (dishTime == 250){
this.dishTimeClip.visible = false;
this.nextFrame();
};
};
}
function frame10(){
stop();
this.intro4.paper4.nextFrame();
}
public function onMove(_arg1:MouseEvent){
if (this.currentFrame < this.totalFrames){
if (_arg1.buttonDown){
if (dragObj != null){
dragObj.x = mouseX;
dragObj.y = mouseY;
return;
};
};
if ((((((((((((((((this.currentFrame == 6)) || ((this.currentFrame == 7)))) || ((this.currentFrame == 13)))) || ((this.currentFrame == 14)))) || ((this.currentFrame == 19)))) || ((this.currentFrame == 20)))) || ((this.currentFrame == 21)))) && ((flame.currentFrame == flameCount)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea4();
};
};
}
function frame16(){
stop();
this.intro4.paper4.nextFrame();
}
function frame14(){
stop();
this.intro4.paper4.nextFrame();
}
function frame15(){
stop();
this.intro4.paper4.play();
}
function frame18(){
stop();
this.intro4.paper4.nextFrame();
}
function frame17(){
stop();
this.intro4.paper4.nextFrame();
}
function frame4(){
stop();
this.intro4.paper4.nextFrame();
}
function frame5(){
stop();
this.intro4.paper4.nextFrame();
}
function frame6(){
stop();
this.intro4.paper4.nextFrame();
}
function frame7(){
stop();
this.intro4.paper4.nextFrame();
}
function frame1(){
stop();
this.intro4.paper4.gotoAndStop(1);
}
function frame3(){
stop();
}
function frame23(){
this.lidKadai1.buttonMode = true;
}
function frame12(){
stop();
this.intro4.paper4.nextFrame();
}
function frame13(){
stop();
this.intro4.paper4.nextFrame();
}
function frame9(){
stop();
this.intro4.paper4.nextFrame();
}
function frame2(){
stop();
}
function frame19(){
stop();
this.intro4.paper4.nextFrame();
}
function frame21(){
stop();
this.intro4.paper4.nextFrame();
}
function frame22(){
stop();
this.lidKadai.buttonMode = true;
this.intro4.paper4.nextFrame();
}
function frame25(){
stop();
}
function frame26(){
stop();
}
function frame8(){
stop();
this.intro4.paper4.play();
}
function frame11(){
stop();
this.intro4.paper4.nextFrame();
}
function frame20(){
stop();
this.intro4.paper4.nextFrame();
}
function frame31(){
stop();
this.endCurrentLevel(1);
}
public function onUp(_arg1:MouseEvent){
if (dragObj != null){
if ((((this.currentFrame == 26)) && (dragObj.hitTestObject(this.wallHit)))){
placeLid();
if (this.intro4.paper4.currentFrame == 30){
this.intro4.paper4.nextFrame();
};
dragObj = null;
return;
};
if ((((this.currentFrame < 26)) && (dragObj.hitTestObject(this.kadaiHit)))){
placeObject();
dragObj = null;
} else {
if (dragObj == butter){
butterBowl.prevFrame();
dragObj.x = -100;
} else {
dragObj.x = dx;
dragObj.y = dy;
};
dragObj = null;
};
} else {
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion4();
(this.parent as Container).falsify();
return;
};
}
public function onRoll(_arg1:MouseEvent){
if (dragObj != null){
onUp(null);
};
}
public function disableChild(){
if (this.currentFrame == 1){
this.butterBowl.mouseChildren = false;
this.breadBowl.mouseChildren = false;
this.celeryBowl.mouseChildren = false;
this.onionBowl.mouseChildren = false;
return;
};
if (this.currentFrame == 2){
this.parshleyBowl.mouseChildren = false;
this.walnutBowl.mouseChildren = false;
this.currantBowl.mouseChildren = false;
this.oliveBowl.mouseChildren = false;
this.appleBowl.mouseChildren = false;
};
if (this.currentFrame == 3){
this.sageBowl.mouseChildren = false;
this.gibletBowl.mouseChildren = false;
};
}
public function init(){
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
flameCount = 2;
this.gotoAndStop(1);
disableChild();
b1.visible = false;
b2.visible = false;
b3.visible = false;
dragObj = new MovieClip();
butter.mouseEnabled = false;
timer4 = 0;
temp4 = 0;
clock.clockHand.gotoAndStop(1);
dishTime = 0;
dishTextTime = 10;
butterBowl.buttonMode = true;
onionBowl.buttonMode = true;
gibletBowl.buttonMode = true;
currantBowl.buttonMode = true;
oliveBowl.buttonMode = true;
breadBowl.buttonMode = true;
walnutBowl.buttonMode = true;
appleBowl.buttonMode = true;
parshleyBowl.buttonMode = true;
sageBowl.buttonMode = true;
pepper.buttonMode = true;
salt.buttonMode = true;
breadBowl.buttonMode = true;
celeryBowl.buttonMode = true;
lidKadai.buttonMode = true;
lidKadai1.buttonMode = true;
dropableArray = [onionBowl, celeryBowl, breadBowl, walnutBowl, appleBowl, currantBowl, oliveBowl, parshleyBowl, gibletBowl, sageBowl, salt, pepper];
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
setChildrens();
}
public function placeObject(){
if (dragObj == butter){
butter.x = -100;
if (!b1.visible){
b1.x = 130.6;
b1.visible = true;
b1.gotoAndPlay(2);
return;
};
if (!b2.visible){
b2.x = 159.6;
b2.visible = true;
b2.gotoAndPlay(2);
return;
};
if (!b3.visible){
b3.x = 145.6;
b3.visible = true;
b3.gotoAndPlay(2);
return;
};
} else {
if (dragObj == lidKadai){
this.play();
this.intro4.paper4.nextFrame();
this.kadaiHit.mouseEnabled = false;
dragObj.visible = false;
} else {
if ((((((dragObj == dropableArray[0])) && ((flame.currentFrame == flameCount)))) && ((this.currentFrame > 2)))){
if (dragObj == breadBowl){
flameCount = 4;
};
dragObj.nextFrame();
this.nextFrame();
dropableArray.splice(0, 1);
dragObj.x = dx;
dragObj.y = dy;
} else {
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
};
};
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
if (this.currentFrame < this.totalFrames){
_local2 = _arg1.target.name;
switch (_local2){
case "soundBn":
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
break;
case "onBn":
flame.gotoAndStop(2);
if (this.intro4.paper4.currentFrame == 1){
this.intro4.paper4.nextFrame();
};
break;
case "offBn":
flame.gotoAndStop(1);
if (this.intro4.paper4.currentFrame == 29){
this.intro4.paper4.nextFrame();
this.gotoAndStop(26);
this.dishTimeClip.visible = false;
};
break;
case "medBn":
if ((((flame.currentFrame > 1)) && ((this.currentFrame >= 22)))){
flame.gotoAndStop(3);
if (this.intro4.paper4.currentFrame == 27){
this.intro4.paper4.nextFrame();
};
};
break;
case "highBn":
if ((((flame.currentFrame > 1)) && ((this.currentFrame >= 6)))){
flame.gotoAndStop(4);
if (this.intro4.paper4.currentFrame == 8){
this.intro4.paper4.nextFrame();
};
};
break;
case "butterBowl":
if ((((currentFrame == 1)) && ((flame.currentFrame == 2)))){
if (((((!(b1.visible)) || (!(b2.visible)))) || (!(b3.visible)))){
dragObj = butter;
setChildIndex(butter, (numChildren - 1));
butterBowl.nextFrame();
};
};
break;
case "breadBowl":
dragObj = breadBowl;
dx = breadBowl.x;
dy = breadBowl.y;
setChildIndex(breadBowl, (numChildren - 1));
break;
case "celeryBowl":
dragObj = celeryBowl;
dx = celeryBowl.x;
dy = celeryBowl.y;
setChildIndex(celeryBowl, (numChildren - 1));
break;
case "onionBowl":
dragObj = onionBowl;
dx = onionBowl.x;
dy = onionBowl.y;
setChildIndex(onionBowl, (numChildren - 1));
break;
case "oliveBowl":
dragObj = oliveBowl;
dx = oliveBowl.x;
dy = oliveBowl.y;
setChildIndex(oliveBowl, (numChildren - 1));
break;
case "walnutBowl":
dragObj = walnutBowl;
dx = walnutBowl.x;
dy = walnutBowl.y;
setChildIndex(walnutBowl, (numChildren - 1));
break;
case "appleBowl":
dragObj = appleBowl;
dx = appleBowl.x;
dy = appleBowl.y;
setChildIndex(appleBowl, (numChildren - 1));
break;
case "currantBowl":
dragObj = currantBowl;
dx = currantBowl.x;
dy = currantBowl.y;
setChildIndex(currantBowl, (numChildren - 1));
break;
case "parshleyBowl":
dragObj = parshleyBowl;
dx = parshleyBowl.x;
dy = parshleyBowl.y;
setChildIndex(parshleyBowl, (numChildren - 1));
break;
case "gibletBowl":
dragObj = gibletBowl;
dx = gibletBowl.x;
dy = gibletBowl.y;
setChildIndex(gibletBowl, (numChildren - 1));
break;
case "sageBowl":
dragObj = sageBowl;
dx = sageBowl.x;
dy = sageBowl.y;
setChildIndex(sageBowl, (numChildren - 1));
break;
case "salt":
dragObj = salt;
dx = salt.x;
dy = salt.y;
setChildIndex(salt, (numChildren - 1));
break;
case "pepper":
dragObj = pepper;
dx = pepper.x;
dy = pepper.y;
setChildIndex(pepper, (numChildren - 1));
break;
case "lidKadai":
if ((((this.currentFrame == 22)) && ((flame.currentFrame == 3)))){
dragObj = lidKadai;
dx = lidKadai.x;
dy = lidKadai.y;
setChildIndex(lidKadai, (numChildren - 1));
};
break;
case "lidKadai1":
if ((((this.currentFrame == 26)) && ((flame.currentFrame == 1)))){
dragObj = lidKadai1;
dx = lidKadai1.x;
dy = lidKadai1.y;
setChildIndex(lidKadai1, (numChildren - 1));
};
break;
};
return;
};
}
}
}//package
Section 82
//Task5 (Task5)
package {
import flash.events.*;
import flash.display.*;
public class Task5 extends MovieClip {
public var butterBowl:MovieClip;
public var thread:MovieClip;
public var clock:MovieClip;
public var lLeg:MovieClip;
public var offBn:MovieClip;
public var hitTurkey:MovieClip;
public var pepper:MovieClip;
public var rLeg:MovieClip;
public var salt:MovieClip;
public var dx:Number;// = 0
public var dy:Number;// = 0
public var onBn:MovieClip;
public var ovenDoor:MovieClip;
public var turkey:MovieClip;
public var oven:MovieClip;
public var temp5:int;
public var dropableArray:Array;
public var initialTurkey:MovieClip;
public var spoon:MovieClip;
public var dragObj:MovieClip;
public var threadHit:MovieClip;
public var finalTurkeyHit:MovieClip;
public var initialTurkeyHit:MovieClip;
public var working:Boolean;
public var intro5:MovieClip;
public var dishTime:int;
public var timer5:int;
public var hitTurkeyPart:MovieClip;
public var soundBn:MovieClip;
public var finalTurkey:MovieClip;
public var stand:MovieClip;
public var arr1:MovieClip;
public function Task5(){
dx = 0;
dy = 0;
super();
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 20, frame21, 37, frame38, 54, frame55, 71, frame72, 75, frame76, 84, frame85, 94, frame95, 95, frame96, 145, frame146, 178, frame179, 204, frame205, 210, frame211, 211, frame212, 212, frame213, 213, frame214, 214, frame215, 215, frame216, 216, frame217, 217, frame218, 218, frame219, 224, frame225);
}
public function endCurrentLevel(_arg1:int){
onUp(null);
(this.parent as Container).remove();
if (_arg1 == 0){
MainClass.bonusScore = 0;
MainClass.levelScore = 200;
} else {
if (timer5 <= 120){
MainClass.bonusScore = 100;
} else {
if (timer5 <= 160){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
};
MainClass.levelScore = 500;
};
(this.parent.parent as MainClass).endLevel(1);
}
public function onEnter(_arg1:Event){
if (temp5 < 30){
temp5++;
} else {
timer5++;
clock.clockHand.gotoAndStop(int((timer5 / 2)));
temp5 = 0;
if (timer5 == 200){
endCurrentLevel(0);
};
};
}
public function onMove(_arg1:MouseEvent){
if ((((((this.currentFrame == 72)) || ((this.currentFrame == 76)))) || ((this.currentFrame == 85)))){
(this.parent as Container).drawLine();
(this.parent as Container).chkHitArea5();
return;
};
if (dragObj != null){
if (_arg1.buttonDown){
dragObj.x = mouseX;
dragObj.y = mouseY;
return;
};
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
}
function frame3(){
stop();
this.intro5.paper5.nextFrame();
this.butterBowl.buttonMode = true;
}
function frame4(){
stop();
this.spoon.buttonMode = true;
this.intro5.paper5.nextFrame();
}
function frame179(){
stop();
this.intro5.paper5.nextFrame();
}
function frame1(){
stop();
this.intro5.paper5.gotoAndStop(1);
}
function frame21(){
stop();
this.spoon.buttonMode = true;
this.working = false;
}
function frame2(){
stop();
}
function frame38(){
stop();
this.spoon.buttonMode = true;
this.working = false;
}
function frame55(){
stop();
this.spoon.buttonMode = true;
this.working = false;
}
public function onUp(_arg1:MouseEvent){
if ((((((this.currentFrame == 72)) || ((this.currentFrame == 76)))) || ((this.currentFrame == 85)))){
(this.parent as Container).removeLine();
(this.parent as Container).chkTaskCompletion5();
(this.parent as Container).falsify();
return;
};
if (dragObj != null){
if ((((((((((((this.currentFrame == 1)) || ((this.currentFrame == 3)))) || ((this.currentFrame == 96)))) || ((this.currentFrame == 146)))) || ((this.currentFrame == 179)))) && (dragObj.hitTestObject(hitTurkey)))){
if (dragObj.name == dropableArray[0].name){
dragObj.visible = false;
this.play();
dropableArray.splice(0, 1);
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
} else {
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
return;
};
if ((((((((((((this.currentFrame == 4)) || ((this.currentFrame == 21)))) || ((this.currentFrame == 38)))) || ((this.currentFrame == 55)))) || ((this.currentFrame == 95)))) && (dragObj.hitTestObject(hitTurkeyPart)))){
if ((((dragObj == spoon)) || ((dragObj == thread)))){
dragObj.visible = false;
working = true;
this.play();
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
} else {
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
return;
};
if ((((this.currentFrame == 213)) && (dragObj.hitTestObject(oven)))){
dragObj.visible = false;
this.play();
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
return;
};
if ((((this.currentFrame == 218)) && (dragObj.hitTestObject(stand)))){
dragObj.visible = false;
this.play();
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
return;
};
dragObj.x = dx;
dragObj.y = dy;
dragObj = null;
};
}
public function onRoll(_arg1:MouseEvent){
if (dragObj != null){
onUp(null);
};
}
function frame72(){
stop();
this.intro5.paper5.nextFrame();
this.working = false;
}
function frame76(){
stop();
this.working = false;
}
public function init(){
MainClass.levelScore = 0;
MainClass.bonusScore = 0;
this.gotoAndStop(1);
dragObj = new MovieClip();
timer5 = 0;
temp5 = 0;
working = false;
clock.clockHand.gotoAndStop(1);
dishTime = 0;
oven.mouseEnabled = false;
dropableArray = [butterBowl, turkey, butterBowl, salt, pepper];
threadHit.buttonMode = true;
butterBowl.buttonMode = true;
butterBowl.mouseChildren = false;
turkey.buttonMode = true;
salt.buttonMode = true;
pepper.buttonMode = true;
ovenDoor.buttonMode = true;
if (MainClass.vol == 100){
soundBn.gotoAndStop(1);
} else {
soundBn.gotoAndStop(2);
};
}
public function onDown(_arg1:MouseEvent){
var _local2:String;
_local2 = _arg1.target.name;
switch (_local2){
case "soundBn":
if (MainClass.vol == 100){
soundBn.gotoAndStop(2);
} else {
soundBn.gotoAndStop(1);
};
(this.parent as Container).setVolume();
break;
case "butterBowl":
if ((((((this.currentFrame < 72)) || ((this.currentFrame > 95)))) && (!(working)))){
dragObj = butterBowl;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "turkey":
dragObj = turkey;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
break;
case "spoon":
if ((((this.currentFrame > 3)) && ((this.currentFrame < 56)))){
dragObj = spoon;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "threadHit":
if ((((this.currentFrame == 95)) && (!(working)))){
dragObj = thread;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "salt":
if ((((((this.currentFrame < 72)) || ((this.currentFrame > 95)))) && (!(working)))){
dragObj = salt;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "pepper":
if ((((((this.currentFrame < 72)) || ((this.currentFrame > 95)))) && (!(working)))){
dragObj = pepper;
dx = dragObj.x;
dy = dragObj.y;
setChildIndex(dragObj, (numChildren - 1));
};
break;
case "ovenDoor":
if ((((((this.currentFrame == 212)) || ((this.currentFrame == 217)))) || ((this.currentFrame == 214)))){
this.nextFrame();
};
break;
case "onBn":
if (this.currentFrame == 215){
this.nextFrame();
};
break;
case "initialTurkeyHit":
if (this.currentFrame == 213){
dragObj = initialTurkey;
dx = initialTurkey.x;
dy = initialTurkey.y;
};
break;
case "finalTurkeyHit":
if (this.currentFrame == 218){
dragObj = finalTurkey;
dx = finalTurkey.x;
dy = finalTurkey.y;
};
break;
};
}
function frame85(){
stop();
}
function frame211(){
this.initialTurkey.buttonMode = true;
}
function frame213(){
stop();
}
function frame214(){
stop();
this.intro5.paper5.nextFrame();
}
function frame205(){
this.intro5.paper5.nextFrame();
this.hitTurkey.buttonMode = true;
}
function frame212(){
stop();
this.initialTurkeyHit.buttonMode = true;
}
function frame95(){
stop();
this.working = false;
}
function frame217(){
stop();
}
function frame218(){
stop();
this.finalTurkeyHit.buttonMode = true;
this.intro5.paper5.nextFrame();
}
function frame219(){
this.intro5.paper5.nextFrame();
}
function frame215(){
stop();
this.onBn.buttonMode = true;
this.intro5.paper5.nextFrame();
}
function frame96(){
stop();
this.intro5.paper5.nextFrame();
this.working = false;
}
function frame216(){
stop();
this.intro5.paper5.nextFrame();
}
function frame225(){
stop();
this.endCurrentLevel(1);
}
function frame146(){
stop();
this.intro5.paper5.nextFrame();
}
}
}//package
Section 83
//URLHandler (URLHandler)
package {
import flash.net.*;
public class URLHandler {
private static var girlgamesURLRequest:URLRequest = null;
private static var girlgamesURL:String = "http://www.girlgamesplaza.com";
private static var addgamesURL:String = "http://www.girlgamesplaza.com/free-games/";
private static var addmoreURLRequest:URLRequest = null;
private static var playmoregamesURL:String = "http://www.girlgamesplaza.com";
private static var playmoregamesURLRequest:URLRequest = null;
public function URLHandler(){
playmoregamesURLRequest = new URLRequest(playmoregamesURL);
addmoreURLRequest = new URLRequest(addgamesURL);
girlgamesURLRequest = new URLRequest(girlgamesURL);
}
public static function openPlayMoreGames(){
try {
navigateToURL(playmoregamesURLRequest);
} catch(se:SecurityError) {
return;
};
}
public static function openGirlGames(){
try {
navigateToURL(girlgamesURLRequest);
} catch(se:SecurityError) {
return;
};
}
public static function openAddMoreGames(){
try {
navigateToURL(addmoreURLRequest);
} catch(se:SecurityError) {
return;
};
}
}
}//package
Section 84
//Welcome (Welcome)
package {
import flash.events.*;
import flash.display.*;
public class Welcome extends MovieClip {
public var welcomePage:MovieClip;
public var instructionPage:MovieClip;
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 changeLayer(_arg1:int){
switch (_arg1){
case 6:
setChildIndex(instructionPage, (numChildren - 1));
break;
case 7:
setChildIndex(welcomePage, (numChildren - 1));
break;
};
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playBn":
remove();
(this.parent as MainClass).startGame();
break;
case "instructionBn":
remove();
(this.parent as MainClass).playTransition(6);
break;
case "backBn":
remove();
(this.parent as MainClass).playTransition(7);
break;
case "moreGamesBn":
(this.parent as MainClass).playMoreGames();
break;
case "addGamesBn":
(this.parent as MainClass).addMoreGames();
break;
case "girlGamesBn":
(this.parent as MainClass).gotoGirlGames();
break;
case "muteBn":
break;
};
}
}
}//package
Section 85
//WelcomeSound (WelcomeSound)
package {
public dynamic class WelcomeSound extends CustomSound {
}
}//package
Section 86
//YouWin (YouWin)
package {
import flash.events.*;
import flash.display.*;
public class YouWin extends MovieClip {
public var youWinPage:MovieClip;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
setTurkey();
showScore();
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function showScore(){
MainClass.totalScore = (MainClass.totalScore + (MainClass.levelScore + MainClass.bonusScore));
this.youWinPage.finalScore.text = MainClass.totalScore.toString();
}
public function setTurkey(){
this.youWinPage.finalTurkey.gotoAndStop((MainClass.finalTurkeyCount + 2));
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playAgain":
remove();
(this.parent as MainClass).playAgain();
break;
case "moreGamesBn":
(this.parent as MainClass).playMoreGames();
break;
case "submitBn":
(this.parent as MainClass).submitScore();
break;
case "girlGamesBn":
(this.parent as MainClass).gotoGirlGames();
break;
};
}
}
}//package
Section 87
//YouWinSound (YouWinSound)
package {
public dynamic class YouWinSound extends CustomSound {
}
}//package