Section 1
//allobject02_226 (64_fla.allobject02_226)
package 64_fla {
import flash.display.*;
public dynamic class allobject02_226 extends MovieClip {
public var onBtn:MovieClip;
}
}//package 64_fla
Section 2
//allobject03_175 (64_fla.allobject03_175)
package 64_fla {
import flash.display.*;
public dynamic class allobject03_175 extends MovieClip {
public var arr:MovieClip;
}
}//package 64_fla
Section 3
//allobject05_129 (64_fla.allobject05_129)
package 64_fla {
import flash.display.*;
public dynamic class allobject05_129 extends MovieClip {
public var cake:MovieClip;
public var arr:MovieClip;
}
}//package 64_fla
Section 4
//arrow02_88 (64_fla.arrow02_88)
package 64_fla {
import flash.display.*;
public dynamic class arrow02_88 extends MovieClip {
public var hitArea1:MovieClip;
public var hitArea2:MovieClip;
public var hitArea3:MovieClip;
}
}//package 64_fla
Section 5
//arrowbend245_76 (64_fla.arrowbend245_76)
package 64_fla {
import flash.display.*;
public dynamic class arrowbend245_76 extends MovieClip {
public var hitArea1:MovieClip;
public var hitArea2:MovieClip;
public var hitArea3:MovieClip;
}
}//package 64_fla
Section 6
//arrowcircled_99 (64_fla.arrowcircled_99)
package 64_fla {
import flash.display.*;
public dynamic class arrowcircled_99 extends MovieClip {
public var hitArea1:MovieClip;
public var hitArea2:MovieClip;
public var hitArea3:MovieClip;
}
}//package 64_fla
Section 7
//arrowstraight123_84 (64_fla.arrowstraight123_84)
package 64_fla {
import flash.display.*;
public dynamic class arrowstraight123_84 extends MovieClip {
public var anim:MovieClip;
public var hitArea1:MovieClip;
public var hitArea2:MovieClip;
public var hitArea3:MovieClip;
}
}//package 64_fla
Section 8
//blenderanimation_198 (64_fla.blenderanimation_198)
package 64_fla {
import flash.display.*;
public dynamic class blenderanimation_198 extends MovieClip {
public function blenderanimation_198(){
addFrameScript(0, frame1, 34, frame35);
}
function frame1(){
stop();
}
function frame35(){
gotoAndPlay(2);
}
}
}//package 64_fla
Section 9
//Butter_263 (64_fla.Butter_263)
package 64_fla {
import flash.display.*;
public dynamic class Butter_263 extends MovieClip {
public function Butter_263(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 10
//fairybody_10 (64_fla.fairybody_10)
package 64_fla {
import flash.display.*;
public dynamic class fairybody_10 extends MovieClip {
public function fairybody_10(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package 64_fla
Section 11
//finalswitch_158 (64_fla.finalswitch_158)
package 64_fla {
import flash.display.*;
public dynamic class finalswitch_158 extends MovieClip {
public function finalswitch_158(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 64_fla
Section 12
//freshcreamanimation_169 (64_fla.freshcreamanimation_169)
package 64_fla {
import flash.display.*;
public dynamic class freshcreamanimation_169 extends MovieClip {
public function freshcreamanimation_169(){
addFrameScript(119, frame120);
}
function frame120(){
stop();
}
}
}//package 64_fla
Section 13
//gas_176 (64_fla.gas_176)
package 64_fla {
import flash.display.*;
public dynamic class gas_176 extends MovieClip {
public var flame:MovieClip;
}
}//package 64_fla
Section 14
//gasall_177 (64_fla.gasall_177)
package 64_fla {
import flash.display.*;
public dynamic class gasall_177 extends MovieClip {
public function gasall_177(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 64_fla
Section 15
//graphics_24 (64_fla.graphics_24)
package 64_fla {
import flash.display.*;
public dynamic class graphics_24 extends MovieClip {
public function graphics_24(){
addFrameScript(1, frame2);
}
function frame2(){
while (this.numChildren > 0) {
if ((this.getChildAt(0) is MovieClip)){
(this.getChildAt(0) as MovieClip).gotoAndStop((this.getChildAt(0) as MovieClip).totalFrames);
};
this.removeChildAt(0);
};
stop();
}
}
}//package 64_fla
Section 16
//hintforstep01_247 (64_fla.hintforstep01_247)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep01_247 extends MovieClip {
public var paper1:MovieClip;
public function hintforstep01_247(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 17
//hintforstep02_224 (64_fla.hintforstep02_224)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep02_224 extends MovieClip {
public var paper2:MovieClip;
public function hintforstep02_224(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 18
//hintforstep03_173 (64_fla.hintforstep03_173)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep03_173 extends MovieClip {
public var paper3:MovieClip;
public function hintforstep03_173(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 19
//hintforstep04_152 (64_fla.hintforstep04_152)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep04_152 extends MovieClip {
public var paper4:MovieClip;
public function hintforstep04_152(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 20
//hintforstep05_127 (64_fla.hintforstep05_127)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep05_127 extends MovieClip {
public var paper5:MovieClip;
public function hintforstep05_127(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 21
//hintforstep06_52 (64_fla.hintforstep06_52)
package 64_fla {
import flash.display.*;
public dynamic class hintforstep06_52 extends MovieClip {
public var paper6:MovieClip;
public function hintforstep06_52(){
addFrameScript(16, frame17, 33, frame34);
}
function frame17(){
stop();
}
function frame34(){
stop();
}
}
}//package 64_fla
Section 22
//levelUp_inner_307 (64_fla.levelUp_inner_307)
package 64_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelUp_inner_307 extends MovieClip {
public var star4:MovieClip;
public var star5:MovieClip;
public var star1:MovieClip;
public var star3:MovieClip;
public var continueBtn:SimpleButton;
public var star2:MovieClip;
public var welcomeScreen:MovieClip;
public var Bscore:TextField;
public var Tscore:TextField;
public var plaza:MovieClip;
public var Lscore:TextField;
}
}//package 64_fla
Section 23
//lipsanimation_21 (64_fla.lipsanimation_21)
package 64_fla {
import flash.display.*;
public dynamic class lipsanimation_21 extends MovieClip {
public function lipsanimation_21(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package 64_fla
Section 24
//logoanimationmain_5 (64_fla.logoanimationmain_5)
package 64_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 64_fla
Section 25
//MainLinkBtnPlace_48 (64_fla.MainLinkBtnPlace_48)
package 64_fla {
import flash.display.*;
public dynamic class MainLinkBtnPlace_48 extends MovieClip {
public var plaza:SimpleButton;
}
}//package 64_fla
Section 26
//Mc_ButterBowl_254 (64_fla.Mc_ButterBowl_254)
package 64_fla {
import flash.display.*;
public dynamic class Mc_ButterBowl_254 extends MovieClip {
public function Mc_ButterBowl_254(){
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 64_fla
Section 27
//Mc_Cherries_72 (64_fla.Mc_Cherries_72)
package 64_fla {
import flash.display.*;
public dynamic class Mc_Cherries_72 extends MovieClip {
public var bowl:MovieClip;
}
}//package 64_fla
Section 28
//Mc_EggBowl_274 (64_fla.Mc_EggBowl_274)
package 64_fla {
import flash.display.*;
public dynamic class Mc_EggBowl_274 extends MovieClip {
public function Mc_EggBowl_274(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame2(){
stop();
}
}
}//package 64_fla
Section 29
//Mc_MachineBowlAnimation_168 (64_fla.Mc_MachineBowlAnimation_168)
package 64_fla {
import flash.display.*;
public dynamic class Mc_MachineBowlAnimation_168 extends MovieClip {
public var blender1:MovieClip;
public var switch1:MovieClip;
public function Mc_MachineBowlAnimation_168(){
addFrameScript(0, frame1, 1, frame2, 119, frame120);
}
function frame1(){
if (this.blender1 != null){
this.blender1.gotoAndStop(1);
};
}
function frame2(){
if (this.blender1 != null){
this.blender1.gotoAndPlay(2);
};
}
function frame120(){
stop();
gotoAndPlay(2);
}
}
}//package 64_fla
Section 30
//MCEAg1_288 (64_fla.MCEAg1_288)
package 64_fla {
import flash.display.*;
public dynamic class MCEAg1_288 extends MovieClip {
public function MCEAg1_288(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
stop();
if (this.parent != null){
if ((this.parent is Task1)){
(this.parent as Task1).counter++;
if ((this.parent as Task1).counter == 3){
(this.parent as Task1).gotoAndPlay(453);
};
};
};
}
function frame1(){
stop();
}
}
}//package 64_fla
Section 31
//mcSwitch_185 (64_fla.mcSwitch_185)
package 64_fla {
import flash.display.*;
public dynamic class mcSwitch_185 extends MovieClip {
public function mcSwitch_185(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
this.buttonMode = true;
}
function frame2(){
stop();
this.buttonMode = true;
}
}
}//package 64_fla
Section 32
//mcTestmovie_144 (64_fla.mcTestmovie_144)
package 64_fla {
import flash.display.*;
public dynamic class mcTestmovie_144 extends MovieClip {
public function mcTestmovie_144(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 33
//microwave03_242 (64_fla.microwave03_242)
package 64_fla {
import flash.display.*;
public dynamic class microwave03_242 extends MovieClip {
public var cake:MovieClip;
}
}//package 64_fla
Section 34
//microwaveswitch_219 (64_fla.microwaveswitch_219)
package 64_fla {
import flash.display.*;
public dynamic class microwaveswitch_219 extends MovieClip {
public function microwaveswitch_219(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package 64_fla
Section 35
//PAPER01_248 (64_fla.PAPER01_248)
package 64_fla {
import flash.display.*;
public dynamic class PAPER01_248 extends MovieClip {
public function PAPER01_248(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 129, frame130, 130, frame131);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame100(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame110(){
stop();
}
function frame120(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 36
//PAPER02_225 (64_fla.PAPER02_225)
package 64_fla {
import flash.display.*;
public dynamic class PAPER02_225 extends MovieClip {
public function PAPER02_225(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 90, frame91);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame91(){
stop();
if (this.parent != null){
if ((this.parent is MovieClip)){
(this.parent as MovieClip).gotoAndPlay(18);
};
};
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 37
//PAPER03_174 (64_fla.PAPER03_174)
package 64_fla {
import flash.display.*;
public dynamic class PAPER03_174 extends MovieClip {
public function PAPER03_174(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 120, frame121);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame100(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame110(){
stop();
}
function frame120(){
stop();
}
function frame121(){
stop();
if (this.parent != null){
if ((this.parent is MovieClip)){
(this.parent as MovieClip).gotoAndPlay(18);
};
};
}
function frame50(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 38
//PAPER04_153 (64_fla.PAPER04_153)
package 64_fla {
import flash.display.*;
public dynamic class PAPER04_153 extends MovieClip {
public function PAPER04_153(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 60, frame61);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame50(){
stop();
}
function frame61(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 39
//PAPER05_128 (64_fla.PAPER05_128)
package 64_fla {
import flash.display.*;
public dynamic class PAPER05_128 extends MovieClip {
public function PAPER05_128(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 49, frame50, 59, frame60, 69, frame70, 79, frame80, 89, frame90, 99, frame100, 109, frame110, 119, frame120, 129, frame130, 130, frame131);
}
function frame70(){
stop();
}
function frame80(){
stop();
}
function frame90(){
stop();
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame100(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame110(){
stop();
}
function frame120(){
stop();
}
function frame130(){
stop();
}
function frame131(){
stop();
}
function frame50(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 40
//PAPER06_53 (64_fla.PAPER06_53)
package 64_fla {
import flash.display.*;
public dynamic class PAPER06_53 extends MovieClip {
public function PAPER06_53(){
addFrameScript(0, frame1, 9, frame10, 19, frame20, 29, frame30, 39, frame40, 50, frame51, 59, frame60, 60, frame61);
}
function frame10(){
stop();
}
function frame1(){
stop();
}
function frame20(){
stop();
}
function frame30(){
stop();
}
function frame40(){
stop();
}
function frame51(){
stop();
}
function frame61(){
stop();
}
function frame60(){
stop();
}
}
}//package 64_fla
Section 41
//singlecherry_121 (64_fla.singlecherry_121)
package 64_fla {
import flash.display.*;
public dynamic class singlecherry_121 extends MovieClip {
public function singlecherry_121(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 42
//spoonwithbakingpowder1_278 (64_fla.spoonwithbakingpowder1_278)
package 64_fla {
import flash.display.*;
public dynamic class spoonwithbakingpowder1_278 extends MovieClip {
public function spoonwithbakingpowder1_278(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 43
//spoonwithbakingpowder1copy_279 (64_fla.spoonwithbakingpowder1copy_279)
package 64_fla {
import flash.display.*;
public dynamic class spoonwithbakingpowder1copy_279 extends MovieClip {
public function spoonwithbakingpowder1copy_279(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 44
//spoonwithcookingsoda1_283 (64_fla.spoonwithcookingsoda1_283)
package 64_fla {
import flash.display.*;
public dynamic class spoonwithcookingsoda1_283 extends MovieClip {
public function spoonwithcookingsoda1_283(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 45
//spoonwithflour_233 (64_fla.spoonwithflour_233)
package 64_fla {
import flash.display.*;
public dynamic class spoonwithflour_233 extends MovieClip {
public function spoonwithflour_233(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 46
//spoonwithsalt_285 (64_fla.spoonwithsalt_285)
package 64_fla {
import flash.display.*;
public dynamic class spoonwithsalt_285 extends MovieClip {
public function spoonwithsalt_285(){
addFrameScript(0, frame1);
}
function frame1(){
this.buttonMode = true;
}
}
}//package 64_fla
Section 47
//time_62 (64_fla.time_62)
package 64_fla {
import flash.display.*;
public dynamic class time_62 extends MovieClip {
public var clockHand:MovieClip;
}
}//package 64_fla
Section 48
//tray01_105 (64_fla.tray01_105)
package 64_fla {
import flash.display.*;
public dynamic class tray01_105 extends MovieClip {
public var chris2:MovieClip;
public var chris3:MovieClip;
public var chris:MovieClip;
public var chris1:MovieClip;
}
}//package 64_fla
Section 49
//watch_61 (64_fla.watch_61)
package 64_fla {
import flash.display.*;
public dynamic class watch_61 extends MovieClip {
public var clock1:MovieClip;
public function watch_61(){
addFrameScript(19, frame20, 39, frame40);
}
function frame20(){
stop();
}
function frame40(){
stop();
}
}
}//package 64_fla
Section 50
//youwin_clip01_26 (64_fla.youwin_clip01_26)
package 64_fla {
import flash.display.*;
import flash.text.*;
public dynamic class youwin_clip01_26 extends MovieClip {
public var welcomeScreen:MovieClip;
public var playAgain:SimpleButton;
public var finalScore:TextField;
public var moregames:SimpleButton;
public var plaza:SimpleButton;
}
}//package 64_fla
Section 51
//Container (Container)
package {
import flash.events.*;
import flash.display.*;
public class Container extends MovieClip {
var line:Sprite;
private var task:Task;
var prevy:Number;
var pointArray:Array;
var prevx:Number;
public function onRoll(_arg1:MouseEvent){
task.onRoll(_arg1);
}
public function init(){
addListeners();
addLevel();
line = new Sprite();
}
public function removeListeners(){
if (this.hasEventListener(MouseEvent.MOUSE_DOWN)){
this.removeEventListener(MouseEvent.MOUSE_DOWN, onDown);
};
if (this.hasEventListener(MouseEvent.MOUSE_UP)){
this.removeEventListener(MouseEvent.MOUSE_UP, onUp);
};
if (this.hasEventListener(MouseEvent.MOUSE_MOVE)){
this.removeEventListener(MouseEvent.MOUSE_MOVE, onMove);
};
if (this.hasEventListener(MouseEvent.ROLL_OUT)){
this.removeEventListener(MouseEvent.ROLL_OUT, onRoll);
};
if (this.hasEventListener(Event.ENTER_FRAME)){
this.removeEventListener(Event.ENTER_FRAME, onEnter);
};
if (this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.addEventListener(MouseEvent.MOUSE_OVER, onOver);
};
if (this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.addEventListener(MouseEvent.MOUSE_OUT, onOut);
};
}
public function onDown(_arg1:MouseEvent){
task.onDown(_arg1);
prevx = mouseX;
prevy = mouseY;
}
public function onEnter(_arg1:Event){
task.onEnter(_arg1);
}
public function onMove(_arg1:MouseEvent){
task.onMove(_arg1);
}
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;
}
private function addLevel(){
switch (MainClass.currentLevel){
case 1:
task = new Task1();
addChild(task);
task.gotoAndStop(1);
break;
case 2:
task = new Task2();
addChild(task);
break;
case 3:
task = new Task3();
addChild(task);
task.gotoAndStop(1);
break;
case 4:
task = new Task4();
addChild(task);
task.gotoAndStop(1);
break;
case 5:
task = new Task5();
addChild(task);
task.gotoAndStop(1);
break;
case 6:
task = new Task6();
addChild(task);
task.gotoAndStop(1);
break;
};
}
public function onOver(_arg1:MouseEvent){
task.onOver(_arg1);
}
public function removeLine(){
if (contains(line)){
removeChild(line);
line = null;
line = new Sprite();
};
}
private function addListeners(){
if (!this.hasEventListener(MouseEvent.MOUSE_DOWN)){
this.addEventListener(MouseEvent.MOUSE_DOWN, onDown, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_UP)){
this.addEventListener(MouseEvent.MOUSE_UP, onUp, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_MOVE)){
this.addEventListener(MouseEvent.MOUSE_MOVE, onMove, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.ROLL_OUT)){
this.addEventListener(MouseEvent.ROLL_OUT, onRoll, false, 0, true);
};
if (!this.hasEventListener(Event.ENTER_FRAME)){
this.addEventListener(Event.ENTER_FRAME, onEnter, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OVER)){
this.addEventListener(MouseEvent.MOUSE_OVER, onOver, false, 0, true);
};
if (!this.hasEventListener(MouseEvent.MOUSE_OUT)){
this.addEventListener(MouseEvent.MOUSE_OUT, onOut, false, 0, true);
};
}
public function onUp(_arg1:MouseEvent){
task.onUp(_arg1);
}
public function onOut(_arg1:MouseEvent){
task.onOut(_arg1);
}
}
}//package
Section 52
//CustomSound (CustomSound)
package {
import flash.media.*;
import flash.events.*;
public class CustomSound extends Sound {
public var _channel:SoundChannel;// = null
public var isLooping:Boolean;// = false
private var customVolumeMax:Number;// = 1
public var _transform:SoundTransform;// = null
public function CustomSound(){
_channel = null;
_transform = null;
isLooping = false;
customVolumeMax = 1;
super();
}
public function playSound(_arg1:SoundTransform, _arg2:Boolean=false){
if (_transform == null){
if (_channel != null){
_transform = new SoundTransform(customVolumeMax, _channel.position);
} else {
_transform = new SoundTransform(customVolumeMax, 0);
};
};
_transform.volume = (_arg1.volume * customVolumeMax);
if (((!((_channel == null))) && ((isLooping == false)))){
_channel.stop();
};
if ((((((isLooping == true)) && (!((_channel == null))))) && (!((_channel.position == 0))))){
return;
};
if (isLooping == true){
_channel = play(0, 9999, _transform);
} else {
_channel = play(0, 0, _transform);
};
_transform = _channel.soundTransform;
_channel.soundTransform = _transform;
}
public function setCustomVolume(_arg1:Number=1){
customVolumeMax = _arg1;
}
private function soundCompleteHandler(_arg1:Event):void{
_channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
_channel.stop();
replayLoop();
}
public function setVolume(_arg1:Number){
if (((!((_channel == null))) && (!((_transform == null))))){
_transform.volume = ((_arg1 * customVolumeMax) / 100);
_channel.soundTransform = _transform;
};
}
public function stopSound(){
if (_channel == null){
return;
};
if (isLooping == true){
_channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
};
_channel.stop();
}
public function replayLoop(){
_channel = play(0, 9999, _transform);
_transform = _channel.soundTransform;
_channel.soundTransform = _transform;
if (isLooping == true){
};
}
public function setLoop(_arg1:Boolean){
isLooping = _arg1;
}
}
}//package
Section 53
//Decoration (Decoration)
package {
import flash.display.*;
import flash.geom.*;
public class Decoration extends MovieClip {
public var pt:Point;
public var counter:int;// = 2
public var pty:Number;// = 232
public var loadArray:Array;
public var cone:MovieClip;
public var ptx:Number;// = 296
public var lastFrame:int;// = 1
public var currentValue:int;// = 0
public var pointArray:Array;
public function Decoration(){
pointArray = [[289.65, 232.25], [293.4, 231.25], [294.4, 230.75], [295.9, 230.25], [297.4, 230], [299.15, 229.75], [300.65, 229], [301.9, 228.5], [303.4, 227.65], [304.9, 227.5], [306.15, 227], [308.15, 227.5], [309.9, 227], [310.65, 226.45], [312.3, 226.45], [314.15, 225.75], [315.55, 224.95], [317.4, 225], [319.15, 225.25], [321.15, 225.5], [322.9, 225], [324.4, 224.5], [326.15, 225], [327.9, 225.25], [329.65, 225.7], [331.4, 225.75], [333.4, 227], [335.4, 227.5], [337.4, 228], [339.4, 228.5], [341.65, 229.25], [343.15, 230], [344.9, 231.5], [346.65, 232.75], [348.1, 233.6], [349.9, 235.25], [351.65, 236.75], [353.4, 238.25], [354.65, 240.25], [355.5, 242.75], [356.9, 245], [356.9, 248.25], [357.65, 250.25], [357.5, 252.6], [357.65, 254.75], [357.15, 0x0101], [357.25, 259.25], [356, 261.75], [355.75, 264], [355.15, 266.25], [354.4, 268.5], [353.9, 270.75], [352.5, 272.4], [351.9, 275], [350.65, 277.25], [349.9, 279.25], [348.65, 281.75], [347.65, 284], [345.9, 285.75], [344.9, 287.75], [343.75, 290.25], [341.15, 292.75], [339.4, 296], [337.15, 298], [334.65, 300.75], [332.15, 303], [329.65, 305.5], [327.15, 308], [324.4, 310.5], [321.55, 311.65], [320.15, 314], [318.65, 314.75], [316.65, 315.75], [314.65, 317], [312.9, 318.25], [311.15, 319], [309.4, 320.25], [307.4, 321.5], [305.45, 322.4], [304.4, 323.25], [302.65, 324.55], [301.15, 324.55], [299.65, 324.3], [298.15, 326], [296.65, 326.25], [295.15, 326.25], [293.9, 326], [292.4, 326.65], [291.6, 326.55], [290.15, 326.5], [287.9, 326], [286.15, 325.75], [284.4, 325.5], [281.9, 324.3], [280.15, 323.5], [277.9, 323], [276.4, 322.25], [274.65, 321.25], [272.9, 320], [271.15, 319.25], [269.15, 318], [267.65, 316.75], [265.65, 315.75], [263.9, 314.25], [262.65, 312.75], [260.65, 311.75], [258.65, 310.25], [256.65, 309], [254.4, 307.25], [252.4, 305.25], [250.65, 303], [248.4, 301.5], [246.65, 299.5], [244.9, 297.5], [242.9, 295.5], [240.9, 292.75], [238.9, 290.5], [237.15, 287.5], [235.15, 285], [232.9, 282.5], [231.4, 280], [229.9, 277], [228.15, 274], [226.15, 271.5], [225.9, 270], [224.9, 268.25], [224.65, 266.25], [223.4, 264.25], [223.4, 262.75], [222.35, 261], [222.35, 259.25], [221.7, 257.75], [221.15, 255.25], [221.15, 253], [221.15, 250.5], [221.4, 248.5], [221.4, 246.75], [223.4, 245], [224.9, 241.25], [224.45, 241], [225.15, 239.5], [226.4, 239.25], [226.85, 238.15], [226.9, 237.5], [227.4, 237.25], [227.4, 235.75], [228.15, 235.5], [229.4, 234.5], [231.15, 233], [230.65, 232.25], [231.65, 230.75], [232.9, 230.25], [234.4, 229.25], [236.65, 229], [238.4, 228.5], [240.15, 227.75], [241.65, 228.25], [243.65, 227.25], [244.9, 227], [246.65, 226.5], [248.15, 226.25], [249.4, 225.5], [250.9, 225.25], [252.4, 224.5], [254.4, 224.5], [256.15, 223.75], [258.15, 224.75], [259.9, 224], [261.65, 223.5], [263.65, 224.5], [265.4, 225.25], [267.4, 225], [268.65, 225.75], [269.9, 225.75], [271.4, 226.25], [272.9, 226.5], [274.4, 227], [275.4, 228.25], [276.9, 228.25], [278.4, 228.75], [279.15, 229.75], [280.15, 230.25], [281.9, 230.5], [282.9, 231.5], [284.4, 231.75], [285.65, 232.5], [286.4, 231.75], [288.8, 232.5]];
currentValue = 0;
counter = 2;
ptx = 296;
pty = 232;
lastFrame = 1;
super();
addFrameScript(4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25, 29, frame30, 34, frame35, 39, frame40, 44, frame45, 49, frame50, 54, frame55, 59, frame60, 64, frame65, 69, frame70, 74, frame75, 79, frame80, 84, frame85, 89, frame90, 94, frame95, 99, frame100, 104, frame105, 109, frame110, 114, frame115, 119, frame120, 124, frame125, 129, frame130, 134, frame135, 139, frame140, 144, frame145, 149, frame150, 154, frame155, 159, frame160, 164, frame165, 169, frame170, 174, frame175, 179, frame180, 186, frame187, 187, frame188);
this.mouseEnabled = false;
if (this.cone != null){
this.cone.mouseChildren = false;
this.cone.visible = false;
};
pt = new Point(mouseX, mouseY);
this.globalToLocal(pt);
}
function frame70(){
stop();
}
function frame60(){
stop();
}
function frame65(){
stop();
}
function frame75(){
stop();
}
function frame150(){
stop();
}
function frame155(){
stop();
}
function frame160(){
stop();
}
function frame80(){
stop();
}
function frame85(){
stop();
}
public function collision(){
this.play();
}
function frame165(){
stop();
}
function frame90(){
stop();
}
function frame10(){
stop();
}
function frame95(){
stop();
}
function frame170(){
stop();
}
function frame180(){
stop();
}
function frame15(){
stop();
}
function frame20(){
stop();
}
function frame25(){
stop();
}
function frame175(){
stop();
}
function frame100(){
stop();
}
function frame110(){
stop();
}
function frame5(){
stop();
}
function frame187(){
stop();
if (this.parent != null){
if ((this.parent is Task5)){
(this.parent as Task5).cone1.stopDrag();
(this.parent as Task5).cone1.x = -100;
(this.parent as Task5).cone1.y = -100;
(this.parent as Task5).cone.visible = true;
(this.parent as Task5).showMouse();
if ((this.parent as Task5).currentPick == 14){
(this.parent as Task5).gotoAndStop(327);
} else {
(this.parent as Task5).gotoAndStop(104);
};
};
};
}
function frame30(){
stop();
}
function frame115(){
stop();
}
function frame188(){
stop();
if (this.parent != null){
if ((this.parent is Task5)){
(this.parent as Task5).cone1.stopDrag();
(this.parent as Task5).cone1.x = -100;
(this.parent as Task5).cone1.y = -100;
(this.parent as Task5).cone.visible = true;
(this.parent as Task5).showMouse();
if ((this.parent as Task5).currentPick == 14){
(this.parent as Task5).gotoAndStop(327);
} else {
(this.parent as Task5).gotoAndStop(104);
};
};
};
}
function frame35(){
stop();
}
function frame105(){
stop();
}
function frame40(){
stop();
}
function frame120(){
stop();
}
function frame45(){
stop();
}
function frame130(){
stop();
}
function frame125(){
stop();
}
function frame55(){
stop();
}
function frame50(){
stop();
}
function frame135(){
stop();
}
function frame140(){
stop();
}
function frame145(){
stop();
}
}
}//package
Section 54
//Decoration1 (Decoration1)
package {
import flash.display.*;
import flash.geom.*;
public class Decoration1 extends MovieClip {
public var pt:Point;
public var counter:int;// = 2
public var pty:Number;// = 232
public var loadArray:Array;
public var ptx:Number;// = 296
public var cone1:MovieClip;
public var lastFrame:int;// = 1
public var currentValue:int;// = 0
public var pointArray:Array;
public function Decoration1(){
pointArray = [[289.65, 232.25], [293.4, 231.25], [294.4, 230.75], [295.9, 230.25], [297.4, 230], [299.15, 229.75], [300.65, 229], [301.9, 228.5], [303.4, 227.65], [304.9, 227.5], [306.15, 227], [308.15, 227.5], [309.9, 227], [310.65, 226.45], [312.3, 226.45], [314.15, 225.75], [315.55, 224.95], [317.4, 225], [319.15, 225.25], [321.15, 225.5], [322.9, 225], [324.4, 224.5], [326.15, 225], [327.9, 225.25], [329.65, 225.7], [331.4, 225.75], [333.4, 227], [335.4, 227.5], [337.4, 228], [339.4, 228.5], [341.65, 229.25], [343.15, 230], [344.9, 231.5], [346.65, 232.75], [348.1, 233.6], [349.9, 235.25], [351.65, 236.75], [353.4, 238.25], [354.65, 240.25], [355.5, 242.75], [356.9, 245], [356.9, 248.25], [357.65, 250.25], [357.5, 252.6], [357.65, 254.75], [357.15, 0x0101], [357.25, 259.25], [356, 261.75], [355.75, 264], [355.15, 266.25], [354.4, 268.5], [353.9, 270.75], [352.5, 272.4], [351.9, 275], [350.65, 277.25], [349.9, 279.25], [348.65, 281.75], [347.65, 284], [345.9, 285.75], [344.9, 287.75], [343.75, 290.25], [341.15, 292.75], [339.4, 296], [337.15, 298], [334.65, 300.75], [332.15, 303], [329.65, 305.5], [327.15, 308], [324.4, 310.5], [321.55, 311.65], [320.15, 314], [318.65, 314.75], [316.65, 315.75], [314.65, 317], [312.9, 318.25], [311.15, 319], [309.4, 320.25], [307.4, 321.5], [305.45, 322.4], [304.4, 323.25], [302.65, 324.55], [301.15, 324.55], [299.65, 324.3], [298.15, 326], [296.65, 326.25], [295.15, 326.25], [293.9, 326], [292.4, 326.65], [291.6, 326.55], [290.15, 326.5], [287.9, 326], [286.15, 325.75], [284.4, 325.5], [281.9, 324.3], [280.15, 323.5], [277.9, 323], [276.4, 322.25], [274.65, 321.25], [272.9, 320], [271.15, 319.25], [269.15, 318], [267.65, 316.75], [265.65, 315.75], [263.9, 314.25], [262.65, 312.75], [260.65, 311.75], [258.65, 310.25], [256.65, 309], [254.4, 307.25], [252.4, 305.25], [250.65, 303], [248.4, 301.5], [246.65, 299.5], [244.9, 297.5], [242.9, 295.5], [240.9, 292.75], [238.9, 290.5], [237.15, 287.5], [235.15, 285], [232.9, 282.5], [231.4, 280], [229.9, 277], [228.15, 274], [226.15, 271.5], [225.9, 270], [224.9, 268.25], [224.65, 266.25], [223.4, 264.25], [223.4, 262.75], [222.35, 261], [222.35, 259.25], [221.7, 257.75], [221.15, 255.25], [221.15, 253], [221.15, 250.5], [221.4, 248.5], [221.4, 246.75], [223.4, 245], [224.9, 241.25], [224.45, 241], [225.15, 239.5], [226.4, 239.25], [226.85, 238.15], [226.9, 237.5], [227.4, 237.25], [227.4, 235.75], [228.15, 235.5], [229.4, 234.5], [231.15, 233], [230.65, 232.25], [231.65, 230.75], [232.9, 230.25], [234.4, 229.25], [236.65, 229], [238.4, 228.5], [240.15, 227.75], [241.65, 228.25], [243.65, 227.25], [244.9, 227], [246.65, 226.5], [248.15, 226.25], [249.4, 225.5], [250.9, 225.25], [252.4, 224.5], [254.4, 224.5], [256.15, 223.75], [258.15, 224.75], [259.9, 224], [261.65, 223.5], [263.65, 224.5], [265.4, 225.25], [267.4, 225], [268.65, 225.75], [269.9, 225.75], [271.4, 226.25], [272.9, 226.5], [274.4, 227], [275.4, 228.25], [276.9, 228.25], [278.4, 228.75], [279.15, 229.75], [280.15, 230.25], [281.9, 230.5], [282.9, 231.5], [284.4, 231.75], [285.65, 232.5], [286.4, 231.75], [288.8, 232.5]];
currentValue = 0;
counter = 2;
ptx = 296;
pty = 232;
lastFrame = 1;
super();
addFrameScript(4, frame5, 9, frame10, 14, frame15, 19, frame20, 24, frame25, 29, frame30, 34, frame35, 39, frame40, 44, frame45, 49, frame50, 54, frame55, 59, frame60, 64, frame65, 69, frame70, 74, frame75, 79, frame80, 84, frame85, 89, frame90, 94, frame95, 99, frame100, 104, frame105, 109, frame110, 114, frame115, 119, frame120, 124, frame125, 129, frame130, 134, frame135, 139, frame140, 144, frame145, 149, frame150, 154, frame155, 159, frame160, 164, frame165, 169, frame170, 174, frame175, 179, frame180, 187, frame188, 188, frame189);
this.mouseEnabled = false;
if (this.cone1 != null){
this.cone1.visible = false;
};
pt = new Point(mouseX, mouseY);
this.globalToLocal(pt);
}
function frame70(){
stop();
}
function frame65(){
stop();
}
function frame75(){
stop();
}
function frame150(){
stop();
}
function frame155(){
stop();
}
function frame160(){
stop();
}
function frame165(){
stop();
}
function frame80(){
stop();
}
function frame85(){
stop();
}
function frame60(){
stop();
}
public function collision1(){
this.play();
}
function frame90(){
stop();
}
function frame10(){
stop();
}
function frame95(){
stop();
}
function frame170(){
stop();
}
function frame180(){
stop();
}
function frame15(){
stop();
}
function frame20(){
stop();
}
function frame25(){
stop();
}
function frame175(){
stop();
}
function frame100(){
stop();
}
function frame110(){
stop();
}
function frame189(){
stop();
if (this.parent != null){
if ((this.parent is Task5)){
(this.parent as Task5).cone1.stopDrag();
(this.parent as Task5).cone1.x = -100;
(this.parent as Task5).cone1.y = -100;
(this.parent as Task5).cone.visible = true;
(this.parent as Task5).showMouse();
if ((this.parent as Task5).currentPick == 14){
(this.parent as Task5).gotoAndStop(327);
} else {
(this.parent as Task5).gotoAndStop(104);
};
};
};
}
function frame5(){
stop();
}
function frame30(){
stop();
}
function frame115(){
stop();
}
function frame188(){
stop();
if (this.parent != null){
if ((this.parent is Task5)){
(this.parent as Task5).cone1.stopDrag();
(this.parent as Task5).cone1.x = -100;
(this.parent as Task5).cone1.y = -100;
(this.parent as Task5).cone.visible = true;
(this.parent as Task5).showMouse();
if ((this.parent as Task5).currentPick == 16){
(this.parent as Task5).gotoAndStop(327);
} else {
(this.parent as Task5).gotoAndStop(104);
};
};
};
}
function frame35(){
stop();
}
function frame105(){
stop();
}
function frame40(){
stop();
}
function frame120(){
stop();
}
function frame45(){
stop();
}
function frame130(){
stop();
}
function frame125(){
stop();
}
function frame55(){
stop();
}
function frame50(){
stop();
}
function frame135(){
stop();
}
function frame140(){
stop();
}
function frame145(){
stop();
}
}
}//package
Section 55
//IngameSound (IngameSound)
package {
public dynamic class IngameSound extends CustomSound {
}
}//package
Section 56
//Instructions (Instructions)
package {
import flash.events.*;
import flash.display.*;
public class Instructions extends MovieClip {
public var welcomeScreen:MovieClip;
public var plaza:MovieClip;
public var back:SimpleButton;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
addEventListener(MouseEvent.CLICK, handleClick, false, 0, true);
};
}
public function removeListeners(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, handleClick);
};
}
public function handleClick(_arg1:MouseEvent){
if (_arg1.target.name == "back"){
(this.parent as MainClass).playTransition(2);
} else {
if (_arg1.target.name == "plaza"){
(this.parent as MainClass).playMoreGames();
};
};
}
}
}//package
Section 57
//LevelUp (LevelUp)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class LevelUp extends MovieClip {
public var levelUpScreen:MovieClip;
public function init(){
Mouse.show();
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
updateScore();
UpdateStar();
}
private function updateScore(){
if (this.levelUpScreen.Bscore != null){
this.levelUpScreen.Bscore.text = MainClass.bonusScore.toString();
};
if (this.levelUpScreen.Lscore != null){
this.levelUpScreen.Lscore.text = MainClass.levelScore.toString();
};
if (this.levelUpScreen.Tscore != null){
this.levelUpScreen.Tscore.text = MainClass.totalScore.toString();
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
private function UpdateStar(){
switch (MainClass.star){
case 2:
this.levelUpScreen.star3.visible = false;
this.levelUpScreen.star4.visible = false;
this.levelUpScreen.star5.visible = false;
break;
case 3:
this.levelUpScreen.star4.visible = false;
this.levelUpScreen.star5.visible = false;
break;
case 5:
this.levelUpScreen.star1.visible = true;
this.levelUpScreen.star2.visible = true;
this.levelUpScreen.star3.visible = true;
this.levelUpScreen.star4.visible = true;
this.levelUpScreen.star5.visible = true;
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "continueBtn":
(this.parent as MainClass).nextLevel();
remove();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 58
//MainClass (MainClass)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.ui.*;
import flash.utils.*;
public class MainClass extends MovieClip {
public var pauseScreen:PauseScreen;
public var bar:MovieClip;
private var urlPlayMore:String;// = "http://www.girlgamesplaza.com"
private var levelUp:LevelUp;
private var youWin:YouWin;
public var percent:TextField;
private var requestPlayMore:URLRequest;// = null
private var myContextMenu:ContextMenu;
private var welcome:Welcome;
private var pausedBmp:Bitmap;
private var bmpData1:BitmapData;
private var inst:Instructions;
public var FINAL:MovieClip;
private var container:Container;
private var transitionManager:MyTransitionManager;
private var timer:Timer;
private var preloaderInit:Boolean;// = false
public var logo:MovieClip;
private var urlHandler:URLHandler;
private var preloaderPercent:Number;
public static var spCounter:int = 0;
public static var currentLevel:int;
public static var timer1:int = 0;
public static var Paused:Boolean = false;
public static var levelCounter:int;
public static var star:int = 0;
public static var ss:soundSymbol;
public static var soundOff:Boolean = false;
public static var snd:SoundController;
public static var levelScore:Number = 0;
public static var bonusScore:Number = 0;
public static var totalScore:Number = 0;
public static var currentValue:int = 0;
public static var current:int = 0;
public function MainClass(){
preloaderInit = false;
requestPlayMore = null;
urlPlayMore = "http://www.girlgamesplaza.com";
addFrameScript(0, frame1, 3, frame4);
stop();
super();
preloaderInit = false;
this.scrollRect = new Rectangle(0, 0, 600, 500);
timer = new Timer(100);
timer.addEventListener(TimerEvent.TIMER, onTimer);
timer.start();
}
public function removeTransition(_arg1:int){
switch (_arg1){
case 1:
removeWelcome();
break;
case 2:
removeInstruction();
break;
case 3:
clearGraphics();
break;
case 4:
clearGraphics();
unpauseGame();
break;
case 5:
removeWelcome();
removeLevelUp();
if (container != null){
if (currentLevel == 1){
(container.getChildAt(0) as Task1).gotoAndPlay(2);
((container.getChildAt(0) as Task1).getChildByName("hint") as MovieClip).gotoAndPlay(2);
} else {
if (currentLevel == 2){
} else {
if (currentLevel == 3){
(container.getChildAt(0) as Task3).gotoAndPlay(1);
((container.getChildAt(0) as Task3).getChildByName("hint") as MovieClip).gotoAndPlay(2);
} else {
if (currentLevel == 4){
(container.getChildAt(0) as Task4).gotoAndPlay(1);
((container.getChildAt(0) as Task4).getChildByName("hint") as MovieClip).gotoAndPlay(2);
} else {
if (currentLevel == 5){
(container.getChildAt(0) as Task5).gotoAndPlay(1);
((container.getChildAt(0) as Task5).getChildByName("hint") as MovieClip).gotoAndPlay(2);
} else {
if (currentLevel == 6){
(container.getChildAt(0) as Task6).gotoAndPlay(1);
((container.getChildAt(0) as Task6).getChildByName("hint") as MovieClip).gotoAndPlay(2);
};
};
};
};
};
};
};
break;
case 6:
removeYouWin();
break;
};
if (transitionManager != null){
removeChild(transitionManager);
transitionManager = null;
};
}
public function pauseGame(){
addChild(pauseScreen);
pauseScreen.init();
if (!pausedBmp){
pausedBmp = new Bitmap(new BitmapData(600, 500));
};
pausedBmp.bitmapData.draw(container);
if (!pauseScreen.contains(pausedBmp)){
pauseScreen.addChildAt(pausedBmp, 0);
};
}
public function removeLevelUp(){
if (levelUp){
if (contains(levelUp)){
removeChild(levelUp);
};
};
levelUp = null;
}
private function initGame(){
createWelcome();
}
public function removeWelcome(){
if (welcome){
welcome.remove();
if (contains(welcome)){
removeChild(welcome);
};
welcome = null;
};
}
private function onDown(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 80:
break;
case 38:
break;
};
}
public function removeInstruction(){
if (inst != null){
removeChild(inst);
inst = null;
};
}
function frame1(){
stop();
}
private function handleClick(_arg1:MouseEvent){
var event = _arg1;
try {
navigateToURL(requestPlayMore, "_blank");
} catch(e:Error) {
};
}
function frame4(){
stop();
MochiBot.track(this, "fe102c0a");
(this as MainClass).Main();
}
public function nextLevel(){
currentLevel++;
startLevel();
}
public function createYouWin(){
if (youWin == null){
youWin = new YouWin();
};
if (!contains(youWin)){
addChild(youWin);
};
youWin.init();
setChildIndex(youWin, 0);
playTransition(4);
snd.playMusic(SoundController.MUSIC_YOUWIN);
}
public function startGame(){
totalScore = 0;
levelScore = 0;
bonusScore = 0;
currentLevel = 1;
startLevel();
levelCounter = currentLevel;
}
public function gotoGirlGames(){
}
public function playTransition(_arg1:int){
transitionManager = new MyTransitionManager();
switch (_arg1){
case 1:
bmpData1.draw(inst);
break;
case 2:
createWelcome();
bmpData1.draw(welcome);
break;
case 3:
bmpData1.draw(levelUp);
break;
case 4:
bmpData1.draw(youWin);
break;
case 5:
bmpData1.draw(container);
break;
case 6:
createWelcome();
bmpData1.draw(welcome);
break;
case 7:
break;
};
transitionManager.init(bmpData1, _arg1);
addChild(transitionManager);
transitionManager.run();
}
private function onTimer(_arg1:TimerEvent){
var _local2:Number;
var _local3:Number;
if (currentFrame == 4){
timer.removeEventListener(TimerEvent.TIMER, onTimer);
timer.stop();
return;
};
if (((((!(bar)) || (!(percent)))) || (!(logo)))){
return;
};
if (!preloaderInit){
preloaderInit = true;
requestPlayMore = new URLRequest(urlPlayMore);
bar.gotoAndStop(1);
percent.text = "0";
logo.buttonMode = true;
logo.addEventListener(MouseEvent.CLICK, handleClick);
};
_local2 = this.loaderInfo.bytesLoaded;
_local3 = this.loaderInfo.bytesTotal;
preloaderPercent = ((100 * _local2) / _local3);
if (_local2 >= _local3){
play();
} else {
bar.gotoAndStop(Math.round(preloaderPercent));
percent.text = (Math.round(preloaderPercent).toString() + "%");
};
}
public function endLevel(_arg1:int){
}
public function unpauseGame(){
if (contains(pauseScreen)){
removeChild(pauseScreen);
};
if (pausedBmp){
if (pauseScreen.contains(pausedBmp)){
pauseScreen.removeChild(pausedBmp);
};
pausedBmp = null;
};
}
public function startLevel(){
levelScore = 0;
bonusScore = 0;
spCounter = 0;
if (currentLevel == 2){
clearGraphics();
};
if (container == null){
container = new Container();
};
addChildAt(container, 0);
container.init();
stage.focus = container;
if ((((currentLevel == 1)) || ((currentLevel >= 3)))){
playTransition(5);
};
snd.playMusic(SoundController.MUSIC_INGAME);
}
public function createLevelUp(){
if (levelUp == null){
levelUp = new LevelUp();
};
if (!contains(levelUp)){
addChild(levelUp);
};
levelUp.init();
setChildIndex(levelUp, 0);
playTransition(3);
}
private function initialise(_arg1:Event){
if (stage != null){
if (!stage.hasEventListener(KeyboardEvent.KEY_DOWN)){
stage.addEventListener(KeyboardEvent.KEY_DOWN, onDown, false, 0, true);
};
if (!stage.hasEventListener(KeyboardEvent.KEY_UP)){
stage.addEventListener(KeyboardEvent.KEY_UP, onUp, false, 0, true);
};
stage.focus = this;
stage.stageFocusRect = false;
removeEventListener(Event.ENTER_FRAME, initialise);
myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
this.contextMenu = myContextMenu;
bmpData1 = new BitmapData(600, 500, true, 0);
urlHandler = new URLHandler();
initGame();
};
}
public function resetTime(){
}
public function playAgain(){
createWelcome();
removeYouWin();
resetTime();
}
public function createWelcome(){
if (welcome == null){
welcome = new Welcome();
};
addChild(welcome);
setChildIndex(welcome, 0);
welcome.init();
snd.playMusic(SoundController.MUSIC_WELCOME);
}
public function playMoreGames(){
urlHandler.openPlayMoreGames();
}
public function addMoreGames(){
urlHandler.openAddMoreGames();
}
public function Main(){
snd = new SoundController();
addEventListener(Event.ENTER_FRAME, initialise, false, 0, true);
pauseScreen = new PauseScreen();
}
private function onUp(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case 80:
};
}
public function replayLevel(){
startLevel();
}
public function removeYouWin(){
if (youWin != null){
removeChild(youWin);
youWin = null;
};
}
public function createInstruction(){
if (inst == null){
inst = new Instructions();
};
addChild(inst);
setChildIndex(inst, 0);
inst.init();
playTransition(1);
}
private function clearGraphics(){
if (container){
if (contains(container)){
container.removeListeners();
removeChild(container);
};
container = null;
};
}
}
}//package
Section 59
//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 60
//MyTransitionManager (MyTransitionManager)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class MyTransitionManager extends MovieClip {
private var size:int;// = 500
private var pt:Point;
private var rect:Rectangle;
private var counter:int;// = 0
var bim1:Bitmap;
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 static var counter:int = 0;
public function MyTransitionManager(){
counter = 0;
size = 500;
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;
typeNumber = _arg2;
_local3 = new BitmapData(600, 500, true, 0);
rect = new Rectangle(0, 0, size, size);
_local3.draw(_arg1);
bim1 = new Bitmap(_local3);
addChild(bim1);
bim1.alpha = 0;
}
private function onEnter(_arg1:Event){
var _local2:int;
counter++;
if (bim1.alpha < 1){
bim1.alpha = (bim1.alpha + 0.08);
};
if (bim1.alpha >= 1){
removeEventListener(Event.ENTER_FRAME, onEnter);
if (this.parent != null){
if ((this.parent is MainClass)){
(this.parent as MainClass).removeTransition(typeNumber);
};
};
};
}
public function run(){
addEventListener(Event.ENTER_FRAME, onEnter, false, 0, true);
}
}
}//package
Section 61
//PauseScreen (PauseScreen)
package {
import flash.events.*;
import flash.display.*;
public class PauseScreen extends MovieClip {
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
addEventListener(MouseEvent.CLICK, handleClick, false, 0, true);
};
}
public function handleClick(_arg1:MouseEvent){
if (_arg1.target.name == "plaza"){
(this.parent as MainClass).playMoreGames();
MainClass.snd.playSound(SoundController.SOUND_CLICK);
};
}
}
}//package
Section 62
//SoundController (SoundController)
package {
import flash.media.*;
public class SoundController {
public var isSoundOn:Boolean;// = false
public var currentMusicIndex:int;// = -1
public var soundVolume:Number;// = 0
public var sounds:Array;// = null
private var soundclassname:Class;// = null
public var isMusicOn:Boolean;// = false
public var musicVolume:Number;// = 0
public var currentSoundIndex:int;// = -1
public var _musicTransform:SoundTransform;// = null
public var musics:Array;// = null
public var _soundTransform:SoundTransform;// = null
public static var MUSIC_INGAME:int = 1;
public static var MUSIC_YOUWIN:int = 2;
public static var MUSIC_WELCOME:int = 0;
public static var SOUND_CLICK:int = 0;
public static var MUSIC_GAMEOVER:int = 3;
public function SoundController(){
isSoundOn = false;
isMusicOn = false;
soundVolume = 0;
musicVolume = 0;
currentSoundIndex = -1;
currentMusicIndex = -1;
sounds = null;
musics = null;
soundclassname = null;
_soundTransform = null;
_musicTransform = null;
super();
sounds = new Array(1);
musics = new Array(4);
currentMusicIndex = -1;
isMusicOn = true;
isSoundOn = true;
soundVolume = 0.7;
musicVolume = 0.7;
_soundTransform = new SoundTransform(0.7, 0);
_musicTransform = new SoundTransform(0.7, 0);
createMusicObject(MUSIC_WELCOME);
createMusicObject(MUSIC_INGAME);
createMusicObject(MUSIC_YOUWIN);
}
public function stopMusic(_arg1:int=-1){
_arg1 = currentMusicIndex;
if (currentMusicIndex == -1){
return;
};
(musics[_arg1] as CustomSound).stopSound();
}
public function stopAllMusics(){
var _local1:*;
_local1 = 0;
while (_local1 < musics.length) {
(musics[_local1] as CustomSound).stopSound();
_local1++;
};
}
public function stopCurrentMusic(){
stopMusic(currentMusicIndex);
}
public function stopCurrentSound(){
stopSound(currentSoundIndex);
}
public function playMusic(_arg1:int){
if (isMusicOn == true){
if (((!((currentMusicIndex == -1))) && (!((currentMusicIndex == _arg1))))){
stopMusic(currentMusicIndex);
};
if (currentMusicIndex != _arg1){
(musics[_arg1] as CustomSound).playSound(_musicTransform);
};
if ((musics[_arg1] as CustomSound)._channel == null){
(musics[_arg1] as CustomSound).playSound(_musicTransform);
};
};
currentMusicIndex = _arg1;
}
public function setSoundVolume(_arg1:int){
if (_arg1 < 0){
_arg1 = 0;
};
soundVolume = (_soundTransform.volume = (_arg1 / 100));
isSoundOn = true;
if (currentSoundIndex != -1){
(sounds[currentSoundIndex] as CustomSound).setVolume(_arg1);
};
}
public function createSoundObject(_arg1:int){
switch (_arg1){
case 0:
break;
};
}
public function toggleSound(){
if (isSoundOn == true){
isSoundOn = false;
} else {
isSoundOn = true;
};
}
public function setMusicVolume(_arg1:int){
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 100){
_arg1 = 100;
};
musicVolume = (_musicTransform.volume = (_arg1 / 100));
if (currentMusicIndex != -1){
(musics[currentMusicIndex] as CustomSound).setVolume(_arg1);
};
if (isMusicOn == false){
isMusicOn = true;
startCurrentMusic();
};
}
public function stopAllSoundEffects(){
var _local1:*;
_local1 = 0;
while (_local1 < sounds.length) {
(sounds[_local1] as CustomSound).stopSound();
_local1++;
};
}
public function reduseMusicVolume(_arg1:int, _arg2:Number=0){
var _local3:Number;
_arg1 = 5;
_local3 = (100 * (musics[currentMusicIndex]._transform.volume - ((musics[currentMusicIndex]._transform.volume * _arg1) / 100)));
_arg2 = (_musicTransform.volume * _arg2);
if (_local3 >= _arg2){
(musics[currentMusicIndex] as CustomSound).setVolume(_local3);
};
}
public function stopSound(_arg1:int){
(sounds[_arg1] as CustomSound).stopSound();
}
public function createMusicObject(_arg1:int){
switch (_arg1){
case 0:
musics[_arg1] = new WelcomeSound();
musics[_arg1].setCustomVolume(1);
break;
case 1:
musics[_arg1] = new IngameSound();
musics[_arg1].setCustomVolume(3);
break;
case 2:
musics[_arg1] = new WinSound();
musics[_arg1].setCustomVolume(3);
break;
case 3:
musics[_arg1].setCustomVolume(3);
break;
};
musics[_arg1].setLoop(true);
}
public function toggleMusic(){
if (isMusicOn == true){
isMusicOn = false;
stopCurrentMusic();
} else {
isMusicOn = true;
startCurrentMusic();
};
}
public function startCurrentMusic(){
if (currentMusicIndex != -1){
(musics[currentMusicIndex] as CustomSound).playSound(_musicTransform);
};
}
public function setNormalMusicVolume(){
(musics[currentMusicIndex] as CustomSound).setVolume((_musicTransform.volume * 100));
}
public function playSound(_arg1:int){
currentSoundIndex = _arg1;
if (isSoundOn == true){
currentSoundIndex = _arg1;
(sounds[_arg1] as CustomSound).playSound(_soundTransform);
};
}
}
}//package
Section 63
//soundSymbol (soundSymbol)
package {
import flash.events.*;
import flash.display.*;
public class soundSymbol extends MovieClip {
public var s1:MovieClip;
public var s2:MovieClip;
public function soundSymbol(){
addFrameScript(0, frame1, 1, frame2);
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
if (MainClass.soundOff){
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
};
}
function frame1(){
stop();
buttonMode = true;
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
function frame2(){
stop();
buttonMode = true;
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "s1":
this.gotoAndStop(2);
MainClass.snd.setMusicVolume(0);
MainClass.snd.setSoundVolume(0);
MainClass.soundOff = true;
break;
case "s2":
this.gotoAndStop(1);
MainClass.snd.setMusicVolume(80);
MainClass.snd.setSoundVolume(80);
MainClass.soundOff = false;
break;
};
}
}
}//package
Section 64
//Task (Task)
package {
import flash.events.*;
import flash.display.*;
public class Task extends MovieClip {
protected var currentStep:uint;// = 1
public static var EXECUTING:int = 1;
public static var READY:int = 0;
public function Task(){
currentStep = 1;
super();
}
public function onRoll(_arg1:MouseEvent){
}
public function init(){
currentStep = 1;
}
public function onDown(_arg1:MouseEvent){
}
public function onEnter(_arg1:Event){
}
public function onMove(_arg1:MouseEvent){
}
public function onOver(_arg1:MouseEvent){
}
public function onUp(_arg1:MouseEvent){
}
public function onOut(_arg1:MouseEvent){
}
}
}//package
Section 65
//Task1 (Task1)
package {
import flash.events.*;
import flash.display.*;
public class Task1 extends Task {
public var butter:MovieClip;
public var egg:MovieClip;
public var clock:MovieClip;
public var edge3:MovieClip;
public var edge4:MovieClip;
public var edge5:MovieClip;
public var edge1:MovieClip;
public var edge6:MovieClip;
public var milk:MovieClip;
public var edge2:MovieClip;
public var hitBowl:MovieClip;
public var butter1:MovieClip;
public var saltSpoon:MovieClip;
public var hint:MovieClip;
public var r:MovieClip;
public var bakeSpoon:MovieClip;
public var blender:MovieClip;
public var sodaSpoon:MovieClip;
public var flour:MovieClip;
public var egg1:MovieClip;
public var egg2:MovieClip;
public var egg3:MovieClip;
public var sugar:MovieClip;
public var currentPick:int;// = 1
public var spoon1:MovieClip;
public var saltBowl:MovieClip;
public var sodaBowl:MovieClip;
public var bakeBowl:MovieClip;
public var vanilla:MovieClip;
public var phase:Number;// = 1
public var eggBowl:MovieClip;
public var ready:Number;// = 1
public var counter3:int;
public var soundBn:soundSymbol;
public var coca:MovieClip;
public var oil:MovieClip;
public var currentTime:int;
public var counter:int;// = 0
public function Task1(){
phase = 1;
ready = 1;
counter = 0;
currentPick = 1;
super();
addFrameScript(70, frame71, 94, frame95, 123, frame124, 124, frame125, 125, frame126, 126, frame127, 127, frame128, 128, frame129, 129, frame130, 222, frame223, 223, frame224, 334, frame335, 364, frame365, 392, frame393, 420, frame421, 451, frame452, 515, frame516, 516, frame517, 621, frame622, 666, frame667, 688, frame689, 763, frame764, 764, frame765, 938, frame939, 969, frame970);
}
function frame393(){
stop();
nextStep();
nextPick();
if (this.sodaBowl != null){
this.sodaBowl.buttonMode;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(51);
};
};
}
private function pickVanilla(){
switch (currentPick){
case 39:
if (this.vanilla.hitTestPoint(mouseX, mouseY)){
this.vanilla.startDrag(true);
this.setChildIndex(this.vanilla, (this.numChildren - 1));
nextPick();
};
break;
case 40:
if (this.vanilla.hitTestObject(this.hitBowl)){
this.vanilla.visible = false;
ready = 0;
this.gotoAndPlay(690);
};
break;
};
}
private function pickSalt(){
switch (currentPick){
case 25:
if (this.saltBowl.hitTestPoint(mouseX, mouseY)){
if (this.saltSpoon != null){
this.saltSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.saltSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 26:
if (this.saltSpoon.hitTestObject(hitBowl)){
if (this.saltSpoon != null){
this.saltSpoon.stopDrag();
this.saltSpoon.x = -100;
this.saltSpoon.y = -100;
this.gotoAndPlay(422);
};
};
break;
};
}
private function pickEgg(){
switch (currentPick){
case 27:
if (this.eggBowl.hitTestPoint(mouseX, mouseY)){
if (this.egg != null){
this.egg.startDrag(true);
this.eggBowl.nextFrame();
this.setChildIndex(this.egg, (this.numChildren - 1));
nextPick();
};
};
break;
case 28:
if (((((((((((this.edge1.hitTestPoint(this.egg.x, this.egg.y)) || (this.edge2.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge3.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge4.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge5.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge6.hitTestPoint(this.egg.x, this.egg.y)))){
if (this.egg != null){
this.egg.stopDrag();
this.egg.x = -100;
this.egg.y = -100;
if (this.egg1 != null){
this.egg1.gotoAndPlay(2);
};
nextPick();
};
};
break;
case 29:
if (this.eggBowl.hitTestPoint(mouseX, mouseY)){
if (this.egg != null){
this.egg.startDrag(true);
this.eggBowl.nextFrame();
this.setChildIndex(this.egg, (this.numChildren - 1));
nextPick();
};
};
break;
case 30:
if (((((((((((this.edge1.hitTestPoint(this.egg.x, this.egg.y)) || (this.edge2.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge3.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge4.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge5.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge6.hitTestPoint(this.egg.x, this.egg.y)))){
if (this.egg != null){
this.egg.stopDrag();
this.egg.x = -100;
this.egg.y = -100;
if (this.egg2 != null){
this.egg2.gotoAndPlay(2);
};
nextPick();
};
};
break;
case 31:
if (this.eggBowl.hitTestPoint(mouseX, mouseY)){
if (this.egg != null){
this.egg.startDrag(true);
this.eggBowl.nextFrame();
this.setChildIndex(this.egg, (this.numChildren - 1));
nextPick();
};
};
break;
case 32:
if (((((((((((this.edge1.hitTestPoint(this.egg.x, this.egg.y)) || (this.edge2.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge3.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge4.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge5.hitTestPoint(this.egg.x, this.egg.y)))) || (this.edge6.hitTestPoint(this.egg.x, this.egg.y)))){
if (this.egg != null){
this.egg.stopDrag();
this.egg.x = -100;
this.egg.y = -100;
if (this.egg3 != null){
this.egg3.gotoAndPlay(2);
};
nextPick();
};
};
break;
};
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
MainClass.spCounter = (MainClass.spCounter + 6);
counter3 = 0;
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
MainClass.timer1 = this.clock.clock1.clockHand.rotation;
MainClass.currentValue = currentTime;
};
};
};
};
}
function frame970(){
stop();
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
(this.parent.parent as MainClass).nextLevel();
};
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
function frame622(){
stop();
nextStep();
nextPick();
if (this.milk != null){
this.milk.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(91);
};
};
}
function frame516(){
stop();
nextStep();
if (this.blender != null){
this.blender.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(81);
};
};
}
function frame517(){
if (this.blender != null){
this.blender.buttonMode = true;
this.blender.gotoAndStop(1);
};
}
function frame764(){
stop();
nextPick();
nextStep();
if (this.blender != null){
this.blender.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(121);
};
};
}
function frame765(){
stop();
if (this.blender != null){
this.blender.buttonMode = true;
this.blender.gotoAndStop(1);
};
}
function frame421(){
stop();
nextStep();
nextPick();
if (this.saltBowl){
this.saltBowl.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(61);
};
};
}
function frame667(){
stop();
nextStep();
nextPick();
if (this.oil != null){
this.oil.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(101);
};
};
}
override public function init(){
}
function frame71(){
stop();
if (this.flour != null){
this.flour.buttonMode = true;
};
}
function frame689(){
stop();
nextStep();
nextPick();
if (this.vanilla != null){
this.vanilla.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(111);
};
};
}
private function pickFlour(){
switch (currentPick){
case 1:
if (this.flour.hitTestPoint(mouseX, mouseY)){
this.flour.startDrag(true);
this.setChildIndex(this.flour, (this.numChildren - 1));
nextPick();
};
break;
case 2:
if (this.flour.hitTestObject(this.hitBowl)){
this.flour.visible = false;
ready = 0;
this.gotoAndPlay(72);
};
break;
};
}
override public function onDown(_arg1:MouseEvent){
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
function frame452(){
stop();
nextStep();
nextPick();
if (this.egg1 != null){
this.egg1.gotoAndStop(1);
};
if (this.egg2 != null){
this.egg2.gotoAndStop(1);
};
if (this.egg3 != null){
this.egg3.gotoAndStop(1);
};
if (this.egg != null){
this.egg.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(71);
};
};
}
function frame335(){
stop();
nextStep();
nextPick();
if (this.bakeBowl != null){
this.bakeBowl.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(41);
};
};
}
function frame95(){
stop();
ready = 1;
nextPick();
nextStep();
if (this.sugar != null){
this.sugar.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(2);
};
};
}
private function pickBlender(){
switch (currentPick){
case 17:
if (this.blender.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(224);
nextPick();
};
break;
case 18:
if (this.blender.hitTestObject(this.hitBowl)){
ready = 0;
this.blender.gotoAndPlay(2);
this.gotoAndPlay(225);
};
break;
case 33:
if (this.blender.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(517);
nextPick();
};
break;
case 34:
if (this.blender.hitTestObject(this.hitBowl)){
ready = 0;
this.blender.gotoAndPlay(2);
this.gotoAndPlay(518);
};
break;
case 41:
if (this.blender.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(765);
nextPick();
};
break;
case 42:
if (this.blender.hitTestObject(this.hitBowl)){
ready = 0;
this.blender.gotoAndPlay(2);
this.gotoAndPlay(766);
};
break;
};
}
function frame223(){
stop();
nextStep();
nextPick();
if (this.blender != null){
this.blender.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(31);
};
};
}
function frame224(){
stop();
if (this.blender != null){
this.blender.buttonMode = true;
};
}
private function pickButter(){
switch (currentPick){
case 5:
if (this.butter.hitTestPoint(mouseX, mouseY)){
if (this.butter1 != null){
this.butter1.startDrag(true);
this.butter.nextFrame();
this.setChildIndex(this.butter1, (this.numChildren - 1));
nextPick();
};
};
break;
case 6:
if (this.butter1.hitTestObject(hitBowl)){
if (this.butter1 != null){
this.butter1.stopDrag();
this.butter1.x = -100;
this.butter1.y = -100;
this.gotoAndStop(125);
};
};
break;
case 7:
if (this.butter.hitTestPoint(mouseX, mouseY)){
if (this.butter1 != null){
this.butter1.startDrag(true);
this.butter.nextFrame();
this.setChildIndex(this.butter1, (this.numChildren - 1));
nextPick();
};
};
break;
case 8:
if (this.butter1.hitTestObject(hitBowl)){
if (this.butter1 != null){
this.butter1.stopDrag();
this.butter1.x = -100;
this.butter1.y = -100;
this.gotoAndStop(126);
};
};
break;
case 9:
if (this.butter.hitTestPoint(mouseX, mouseY)){
if (this.butter1 != null){
this.butter1.startDrag(true);
this.butter.nextFrame();
this.setChildIndex(this.butter1, (this.numChildren - 1));
nextPick();
};
};
break;
case 10:
if (this.butter1.hitTestObject(hitBowl)){
if (this.butter1 != null){
this.butter1.stopDrag();
this.butter1.x = -100;
this.butter1.y = -100;
this.gotoAndStop(127);
};
};
break;
case 11:
if (this.butter.hitTestPoint(mouseX, mouseY)){
if (this.butter1 != null){
this.butter1.startDrag(true);
this.butter.nextFrame();
this.setChildIndex(this.butter1, (this.numChildren - 1));
nextPick();
};
};
break;
case 12:
if (this.butter1.hitTestObject(hitBowl)){
if (this.butter1 != null){
this.butter1.stopDrag();
this.butter1.x = -100;
this.butter1.y = -100;
this.gotoAndStop(128);
};
};
break;
case 13:
if (this.butter.hitTestPoint(mouseX, mouseY)){
if (this.butter1 != null){
this.butter1.startDrag(true);
this.butter.nextFrame();
this.setChildIndex(this.butter1, (this.numChildren - 1));
nextPick();
};
};
break;
case 14:
if (this.butter1.hitTestObject(hitBowl)){
if (this.butter1 != null){
this.butter1.stopDrag();
this.butter1.x = -100;
this.butter1.y = -100;
this.gotoAndStop(130);
};
};
break;
};
}
private function pickCoca(){
switch (currentPick){
case 15:
if (this.coca.hitTestPoint(mouseX, mouseY)){
this.coca.startDrag(true);
this.setChildIndex(this.coca, (this.numChildren - 1));
nextPick();
};
break;
case 16:
if (this.coca.hitTestObject(this.hitBowl)){
this.coca.visible = false;
ready = 0;
this.gotoAndPlay(131);
};
break;
};
}
private function pickSugar(){
switch (currentPick){
case 3:
if (this.sugar.hitTestPoint(mouseX, mouseY)){
this.sugar.startDrag(true);
this.setChildIndex(this.sugar, (this.numChildren - 1));
nextPick();
};
break;
case 4:
if (this.sugar.hitTestObject(this.hitBowl)){
this.sugar.visible = false;
ready = 0;
this.gotoAndPlay(96);
};
break;
};
}
private function pickBake(){
switch (currentPick){
case 19:
if (this.bakeBowl.hitTestPoint(mouseX, mouseY)){
if (this.bakeSpoon != null){
this.bakeSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.bakeSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 20:
if (this.bakeSpoon.hitTestObject(hitBowl)){
if (this.bakeSpoon != null){
this.bakeSpoon.stopDrag();
this.bakeSpoon.x = -100;
this.bakeSpoon.y = -100;
this.gotoAndPlay(336);
};
};
break;
case 21:
if (this.bakeBowl.hitTestPoint(mouseX, mouseY)){
if (this.bakeSpoon != null){
this.bakeSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.bakeSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 22:
if (this.bakeSpoon.hitTestObject(hitBowl)){
if (this.bakeSpoon != null){
this.bakeSpoon.stopDrag();
this.bakeSpoon.x = -100;
this.bakeSpoon.y = -100;
this.gotoAndPlay(366);
};
};
break;
};
}
function frame124(){
stop();
ready = 1;
nextPick();
nextStep();
if (this.butter != null){
this.butter.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(11);
};
};
}
function frame125(){
stop();
nextPick();
}
function frame126(){
stop();
nextPick();
}
private function pickSoda(){
switch (currentPick){
case 23:
if (this.sodaBowl.hitTestPoint(mouseX, mouseY)){
if (this.sodaSpoon != null){
this.sodaSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.sodaSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 24:
if (this.sodaSpoon.hitTestObject(hitBowl)){
if (this.sodaSpoon != null){
this.sodaSpoon.stopDrag();
this.sodaSpoon.x = -100;
this.sodaSpoon.y = -100;
this.gotoAndPlay(394);
};
};
break;
};
}
function frame365(){
stop();
nextPick();
}
function frame127(){
stop();
nextPick();
}
function frame128(){
stop();
nextPick();
}
function frame129(){
stop();
}
public function nextPick(){
currentPick++;
ready = 1;
}
function frame130(){
stop();
nextStep();
nextPick();
if (this.coca != null){
this.coca.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper1 != null){
this.hint.paper1.gotoAndPlay(21);
};
};
}
function frame939(){
if (this.clock != null){
this.clock.gotoAndPlay(21);
};
if (this.hint != null){
this.hint.gotoAndPlay(18);
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && ((this.currentFrame == 71)))){
pickFlour();
};
break;
case 2:
if (ready == 1){
pickSugar();
};
break;
case 3:
if (ready == 1){
pickButter();
};
break;
case 4:
if (ready == 1){
pickCoca();
};
break;
case 5:
if (ready == 1){
pickBlender();
};
break;
case 6:
if (ready == 1){
pickBake();
};
break;
case 7:
if (ready == 1){
pickSoda();
};
break;
case 8:
if (ready == 1){
pickSalt();
};
break;
case 9:
if (ready == 1){
pickEgg();
};
break;
case 10:
if (ready == 1){
pickBlender();
};
break;
case 11:
if (ready == 1){
pickMilk();
};
break;
case 12:
if (ready == 1){
pickOil();
};
break;
case 13:
if (ready == 1){
pickVanilla();
};
break;
case 14:
if (ready == 1){
pickBlender();
};
break;
};
}
private function pickMilk(){
switch (currentPick){
case 35:
if (this.milk.hitTestPoint(mouseX, mouseY)){
this.milk.startDrag(true);
this.setChildIndex(this.milk, (this.numChildren - 1));
nextPick();
};
break;
case 36:
if (this.milk.hitTestObject(this.hitBowl)){
this.milk.visible = false;
ready = 0;
this.gotoAndPlay(623);
};
break;
};
}
private function pickOil(){
switch (currentPick){
case 37:
if (this.oil.hitTestPoint(mouseX, mouseY)){
this.oil.startDrag(true);
this.setChildIndex(this.oil, (this.numChildren - 1));
nextPick();
};
break;
case 38:
if (this.oil.hitTestObject(this.hitBowl)){
this.oil.visible = false;
ready = 0;
this.gotoAndPlay(668);
};
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.flour != null){
return (this.flour.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
if (this.sugar != null){
return (this.sugar.hitTestPoint(mouseX, mouseY));
};
break;
case 3:
if (((!((this.butter == null))) && ((((((((((currentPick == 5)) || ((currentPick == 7)))) || ((currentPick == 9)))) || ((currentPick == 11)))) || ((currentPick == 13)))))){
return (this.butter.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((((((((((currentPick == 6)) || ((currentPick == 8)))) || ((currentPick == 10)))) || ((currentPick == 12)))) || ((currentPick == 14)))))){
return (this.butter1.hitTestObject(hitBowl));
};
break;
case 4:
if (this.coca != null){
return (this.coca.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.blender != null){
return (this.blender.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
if (((!((this.bakeBowl == null))) && ((((currentPick == 19)) || ((currentPick == 21)))))){
return (this.bakeBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((((currentPick == 20)) || ((currentPick == 22)))))){
return (this.bakeSpoon.hitTestObject(hitBowl));
};
break;
case 7:
if (((!((this.sodaBowl == null))) && ((currentPick == 23)))){
return (this.sodaBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((currentPick == 24)))){
return (this.sodaSpoon.hitTestObject(hitBowl));
};
break;
case 8:
if (((!((this.saltBowl == null))) && ((currentPick == 25)))){
return (this.saltBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((currentPick == 26)))){
return (this.saltSpoon.hitTestObject(hitBowl));
};
break;
case 9:
if (((!((this.eggBowl == null))) && ((((((currentPick == 27)) || ((currentPick == 29)))) || ((currentPick == 31)))))){
return (this.eggBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((((((currentPick == 28)) || ((currentPick == 30)))) || ((currentPick == 32)))))){
return (this.egg.hitTestObject(hitBowl));
};
break;
case 10:
if (this.blender != null){
return (this.blender.hitTestPoint(mouseX, mouseY));
};
break;
case 11:
if (this.milk != null){
return (this.milk.hitTestPoint(mouseX, mouseY));
};
break;
case 12:
if (this.oil != null){
return (this.oil.hitTestPoint(mouseX, mouseY));
};
break;
case 13:
if (this.vanilla != null){
return (this.vanilla.hitTestPoint(mouseX, mouseY));
};
break;
case 14:
if (this.blender != null){
return (this.blender.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
}
}//package
Section 66
//Task2 (Task2)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class Task2 extends Task {
public var butterBowl:MovieClip;
public var seven:MovieClip;
public var clock:MovieClip;
public var hitBowl:MovieClip;
public var setRot:Boolean;// = false
public var cake:MovieClip;
public var two:MovieClip;
public var one:MovieClip;
public var hint:MovieClip;
public var eight:MovieClip;
public var zero:MovieClip;
public var five:MovieClip;
public var nine:MovieClip;
public var ovenOn:Boolean;// = false
public var oven:MovieClip;
public var six:MovieClip;
public var butterSpoon:MovieClip;
public var four:MovieClip;
public var currentPick:int;// = 1
public var spoon1:MovieClip;
public var phase:Number;// = 1
public var hit:MovieClip;
public var three:MovieClip;
public var ready:Number;// = 1
public var counter1:int;// = 0
public var counter3:int;
public var flourBowl:MovieClip;
public var temp:TextField;
public var currentTime:int;
public var flourSpoon:MovieClip;
public var counter:int;// = 0
public var onBtn:MovieClip;
public function Task2(){
phase = 1;
ready = 1;
counter = 0;
counter1 = 0;
currentPick = 1;
setRot = false;
ovenOn = false;
super();
addFrameScript(0, frame1, 16, frame17, 63, frame64, 108, frame109, 150, frame151, 247, frame248, 248, frame249, 249, frame250, 250, frame251, 251, frame252, 252, frame253);
}
function frame151(){
stop();
nextStep();
nextPick();
if (this.cake != null){
this.cake.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(11);
};
};
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
if (!setRot){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
this.clock.clock1.clockHand.rotation = MainClass.timer1;
currentTime = MainClass.currentValue;
};
};
setRot = true;
};
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
MainClass.spCounter = (MainClass.spCounter + 6);
counter3 = 0;
};
};
if (this.currentFrame == 253){
counter++;
if (counter == 90){
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
(this.parent.parent as MainClass).createLevelUp();
};
};
};
counter1 = 0;
};
};
if (ovenOn){
counter++;
if (counter == 120){
counter = 0;
ovenOn = false;
if (this.onBtn != null){
this.onBtn.gotoAndStop(3);
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(71);
};
};
};
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
function frame17(){
if (this.hint != null){
this.hint.gotoAndPlay(1);
};
}
function frame1(){
if (this.hint != null){
this.hint.gotoAndStop(1);
};
}
private function Baking(){
switch (currentPick){
case 7:
if (this.oven.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(249);
nextPick();
};
break;
case 8:
if (this.cake.hitTestPoint(mouseX, mouseY)){
this.cake.startDrag();
this.setChildIndex(this.cake, (this.numChildren - 1));
nextPick();
};
break;
case 9:
if (this.cake.hitTestObject(this.oven)){
this.cake.visible = false;
this.gotoAndStop(250);
nextPick();
};
break;
case 10:
if (this.oven.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(251);
nextPick();
};
break;
case 11:
if (this.oven.hitTestPoint(mouseX, mouseY)){
if (this.onBtn.currentFrame == 3){
this.gotoAndStop(252);
nextPick();
};
};
break;
case 12:
if (((this.cake.hitTestPoint(mouseX, mouseY)) && ((this.onBtn.currentFrame == 3)))){
this.cake.startDrag();
this.setChildIndex(this.cake, (this.numChildren - 1));
nextPick();
};
break;
case 13:
if (this.cake.hitTestObject(hit)){
this.cake.visible = false;
this.gotoAndStop(253);
};
break;
};
}
function frame64(){
stop();
if (this.butterBowl != null){
this.butterBowl.buttonMode = true;
};
}
override public function init(){
}
public function pickFlour(){
switch (currentPick){
case 3:
if (this.flourBowl.hitTestPoint(mouseX, mouseY)){
if (this.flourSpoon != null){
this.flourSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.flourSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 4:
if (this.flourSpoon.hitTestObject(hitBowl)){
if (this.flourSpoon != null){
this.flourSpoon.stopDrag();
this.flourSpoon.x = -100;
this.flourSpoon.y = -100;
this.gotoAndPlay(110);
};
};
break;
};
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 251){
switch (_arg1.target.name){
case "one":
if (this.temp != null){
this.temp.text = "1";
};
break;
case "seven":
if (this.temp != null){
if (this.temp.text == "1"){
this.temp.text = "17";
};
};
break;
case "zero":
if (this.temp != null){
if (this.temp.text == "17"){
this.temp.text = "170";
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(61);
};
};
};
};
break;
case "onBtn":
if (this.temp.text == "170"){
if (this.onBtn.currentFrame == 1){
this.onBtn.gotoAndStop(2);
ovenOn = true;
};
};
};
};
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
private function setTemp(){
}
function frame109(){
stop();
nextStep();
nextPick();
if (this.flourBowl != null){
this.flourBowl.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(2);
};
};
}
public function pickButter(){
switch (currentPick){
case 1:
if (this.butterBowl.hitTestPoint(mouseX, mouseY)){
if (this.butterSpoon != null){
this.butterSpoon.startDrag(true);
if (this.spoon1 != null){
this.spoon1.visible = false;
};
this.setChildIndex(this.butterSpoon, (this.numChildren - 1));
nextPick();
};
};
break;
case 2:
if (this.butterSpoon.hitTestObject(hitBowl)){
if (this.butterSpoon != null){
this.butterSpoon.stopDrag();
this.butterSpoon.x = -100;
this.butterSpoon.y = -100;
this.gotoAndPlay(65);
};
};
break;
};
}
function frame248(){
stop();
nextStep();
nextPick();
if (this.oven != null){
this.oven.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(21);
};
};
}
function frame249(){
stop();
if (this.cake != null){
this.cake.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(31);
};
};
}
public function nextPick(){
currentPick++;
ready = 1;
}
function frame250(){
stop();
if (this.oven != null){
this.oven.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(41);
};
};
}
function frame251(){
stop();
if (this.oven != null){
this.oven.buttonMode = true;
};
if (this.onBtn != null){
this.onBtn.gotoAndStop(1);
this.onBtn.mouseChildren = false;
this.onBtn.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(51);
};
};
}
function frame252(){
stop();
if (this.cake != null){
this.cake.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(81);
};
};
}
function frame253(){
stop();
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
if (MainClass.spCounter < 530){
MainClass.bonusScore = 50;
MainClass.star = 5;
} else {
if ((((MainClass.spCounter > 530)) && ((MainClass.spCounter < 540)))){
MainClass.bonusScore = 25;
MainClass.star = 3;
} else {
MainClass.bonusScore = 0;
MainClass.star = 2;
};
};
MainClass.levelScore = 100;
MainClass.totalScore = ((MainClass.totalScore + MainClass.levelScore) + MainClass.bonusScore);
};
};
if (this.hint != null){
if (this.hint.paper2 != null){
this.hint.paper2.gotoAndPlay(91);
};
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && ((this.currentFrame == 64)))){
pickButter();
};
break;
case 2:
if (ready == 1){
pickFlour();
};
break;
case 3:
if (ready == 1){
pickCake();
};
break;
case 4:
if (ready == 1){
Baking();
};
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (((!((this.butterBowl == null))) && ((currentPick == 1)))){
return (this.butterBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((currentPick == 2)))){
return (this.butterSpoon.hitTestObject(hitBowl));
};
break;
case 2:
if (((!((this.flourBowl == null))) && ((currentPick == 3)))){
return (this.flourBowl.hitTestPoint(mouseX, mouseY));
};
if (((!((this.hitBowl == null))) && ((currentPick == 4)))){
return (this.flourSpoon.hitTestObject(hitBowl));
};
break;
case 3:
if (this.cake != null){
return (this.cake.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (((!((this.oven == null))) && ((((((currentPick == 7)) || ((currentPick == 10)))) || ((currentPick == 11)))))){
return (this.oven.hitTestPoint(mouseX, mouseY));
};
if (((((!((this.oven == null))) && (!((this.cake == null))))) && ((currentPick == 9)))){
return (this.cake.hitTestObject(this.oven));
};
if (((((!((this.cake == null))) && (!((this.hit == null))))) && ((currentPick == 13)))){
return (this.cake.hitTestObject(hit));
};
if (((!((this.cake == null))) && ((((currentPick == 8)) || ((currentPick == 12)))))){
return (this.cake.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
public function pickCake(){
switch (currentPick){
case 5:
if (this.cake.hitTestPoint(mouseX, mouseY)){
this.cake.startDrag(true);
this.setChildIndex(this.cake, (this.numChildren - 1));
nextPick();
};
break;
case 6:
if (this.cake.hitTestObject(this.hitBowl)){
this.cake.visible = false;
ready = 0;
this.gotoAndPlay(152);
};
break;
};
}
}
}//package
Section 67
//Task3 (Task3)
package {
import flash.events.*;
import flash.display.*;
public class Task3 extends Task {
public var clock:MovieClip;
public var stoveOn:Boolean;// = false
public var boil:MovieClip;
public var arr:MovieClip;
public var kadai:MovieClip;
public var hint:MovieClip;
public var onBn:MovieClip;
public var stoveHigh:Boolean;// = false
public var stoveLow:Boolean;// = false
public var blender:MovieClip;
public var lowBn:MovieClip;
private var h1:Boolean;// = false
private var h2:Boolean;// = false
private var h3:Boolean;// = false
private var h4:Boolean;// = false
public var bigBowl:MovieClip;
public var spoon:MovieClip;
public var water:MovieClip;
public var stoveMed:Boolean;// = false
public var sugar:MovieClip;
public var medBn:MovieClip;
public var currentPick:int;// = 1
public var stove:MovieClip;
private var lineCounter:int;// = 0
public var LineDraw:Boolean;// = false
public var phase:Number;// = 1
public var highBn:MovieClip;
public var cherry:MovieClip;
public var corn:MovieClip;
public var ready:Number;// = 1
public var counter3:int;
public var bowl:MovieClip;
public var currentTime:int;
public var counter:int;// = 0
public function Task3(){
phase = 1;
ready = 1;
counter = 0;
currentPick = 1;
stoveOn = false;
stoveMed = false;
stoveLow = false;
stoveHigh = false;
lineCounter = 0;
h1 = false;
h2 = false;
h3 = false;
h4 = false;
LineDraw = false;
super();
addFrameScript(57, frame58, 96, frame97, 242, frame243, 272, frame273, 353, frame354, 354, frame355, 393, frame394, 460, frame461, 461, frame462, 474, frame475, 475, frame476, 487, frame488);
}
function frame273(){
stop();
nextStep();
nextPick();
if (this.corn != null){
this.corn.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(41);
};
};
}
private function mixing(){
switch (currentPick){
case 14:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(463);
};
break;
case 15:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(476);
};
break;
};
}
function frame394(){
stop();
nextStep();
nextPick();
if (this.bigBowl != null){
this.bigBowl.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(71);
};
};
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
counter3 = 0;
};
};
if ((((this.currentFrame == 488)) && (!(stoveOn)))){
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
(this.parent.parent as MainClass).createLevelUp();
stoveOn = true;
};
};
};
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if ((this.currentFrame >= 462)){
if (stoveOn){
checkHits();
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function checkHits(){
if ((this.currentFrame >= 462)){
if (this.arr != null){
if (this.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
if (lineCounter == 0){
lineCounter = 1;
};
};
if (this.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
if (lineCounter == 1){
lineCounter = 2;
};
};
if (this.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
if (lineCounter == 2){
lineCounter = 3;
};
};
};
};
}
function frame58(){
stop();
if (this.cherry != null){
this.cherry.buttonMode = true;
};
}
override public function onUp(_arg1:MouseEvent){
if (lineCounter < 3){
lineCounter = 0;
};
if ((this.currentFrame >= 462)){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
override public function init(){
}
private function pickCherry(){
switch (currentPick){
case 1:
if (this.cherry.hitTestPoint(mouseX, mouseY)){
this.cherry.startDrag(true);
this.setChildIndex(this.cherry, (this.numChildren - 1));
nextPick();
};
break;
case 2:
if (this.cherry.hitTestObject(this.kadai)){
this.cherry.visible = false;
ready = 0;
this.gotoAndPlay(59);
};
break;
};
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame >= 58){
switch (_arg1.target.name){
case "onBn":
if (this.stove.flame != null){
if (this.onBn.currentFrame == 1){
this.onBn.gotoAndStop(2);
this.stove.flame.gotoAndStop(2);
stoveOn = true;
stoveLow = true;
if (this.hint != null){
if (this.hint.paper3 != null){
if (this.hint.paper3.currentFrame == 1){
this.hint.paper3.gotoAndPlay(2);
};
};
};
} else {
if (this.onBn.currentFrame == 2){
stoveOn = false;
stoveMed = false;
stoveLow = false;
stoveHigh = false;
this.onBn.gotoAndStop(1);
this.lowBn.gotoAndStop(1);
this.medBn.gotoAndStop(1);
this.highBn.gotoAndStop(1);
this.stove.flame.gotoAndStop(1);
if (this.currentFrame == 488){
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(121);
};
};
};
};
};
};
break;
case "medBn":
if (((!((this.stove.flame == null))) && (stoveOn))){
this.stove.flame.gotoAndStop(3);
this.medBn.gotoAndStop(2);
this.lowBn.gotoAndStop(1);
this.highBn.gotoAndStop(1);
stoveOn = true;
stoveMed = true;
stoveLow = false;
stoveHigh = false;
};
break;
case "lowBn":
if (((!((this.stove.flame == null))) && (stoveOn))){
this.stove.flame.gotoAndStop(2);
stoveOn = true;
stoveMed = false;
stoveLow = true;
stoveHigh = false;
this.medBn.gotoAndStop(1);
this.highBn.gotoAndStop(1);
this.lowBn.gotoAndStop(2);
};
break;
case "highBn":
if (((!((this.stove.flame == null))) && (stoveOn))){
this.stove.flame.gotoAndStop(4);
stoveOn = true;
stoveMed = false;
stoveLow = false;
stoveHigh = true;
this.medBn.gotoAndStop(1);
this.highBn.gotoAndStop(2);
this.lowBn.gotoAndStop(1);
};
break;
};
};
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
function frame97(){
stop();
nextStep();
nextPick();
if (this.water != null){
this.water.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(11);
};
};
}
function frame461(){
stop();
nextStep();
nextPick();
if (this.spoon != null){
this.spoon.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(91);
};
};
}
function frame462(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(101);
};
};
}
private function pickBlender(){
switch (currentPick){
case 9:
if (this.blender.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(355);
nextPick();
};
break;
case 10:
if (this.blender.hitTestObject(this.bowl)){
ready = 0;
this.blender.gotoAndPlay(2);
this.gotoAndPlay(356);
};
break;
};
}
private function pickCorn(){
switch (currentPick){
case 7:
if (this.corn.hitTestPoint(mouseX, mouseY)){
this.corn.startDrag(true);
this.setChildIndex(this.corn, (this.numChildren - 1));
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(51);
};
};
nextPick();
};
break;
case 8:
if (this.corn.hitTestObject(this.bowl)){
this.corn.visible = false;
ready = 0;
this.gotoAndPlay(274);
};
break;
};
}
private function pickSpoon(){
if (this.spoon.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(462);
};
}
private function pickWater(){
switch (currentPick){
case 3:
if (this.water.hitTestPoint(mouseX, mouseY)){
this.water.startDrag(true);
this.setChildIndex(this.water, (this.numChildren - 1));
nextPick();
};
break;
case 4:
if (this.water.hitTestObject(this.kadai)){
this.water.visible = false;
ready = 0;
this.gotoAndPlay(98);
};
break;
};
}
function frame354(){
stop();
nextStep();
nextPick();
if (this.blender != null){
this.blender.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(61);
};
};
}
private function pickSugar(){
switch (currentPick){
case 5:
if (this.sugar.hitTestPoint(mouseX, mouseY)){
this.sugar.startDrag(true);
this.setChildIndex(this.sugar, (this.numChildren - 1));
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(31);
};
};
nextPick();
};
break;
case 6:
if (this.sugar.hitTestObject(this.bowl)){
this.sugar.visible = false;
ready = 0;
this.gotoAndPlay(244);
};
break;
};
}
function frame355(){
stop();
if (this.blender != null){
this.blender.gotoAndStop(1);
this.blender.buttonMode = true;
};
}
function frame243(){
stop();
nextStep();
nextPick();
if (this.sugar != null){
this.sugar.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(21);
};
};
}
function frame475(){
stop();
nextPick();
}
private function pickBowl(){
switch (currentPick){
case 11:
if (this.bigBowl.hitTestPoint(mouseX, mouseY)){
this.bigBowl.startDrag(true);
this.setChildIndex(this.bigBowl, (this.numChildren - 1));
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(81);
};
};
nextPick();
};
break;
case 12:
if (this.bigBowl.hitTestObject(this.kadai)){
this.bigBowl.visible = false;
ready = 0;
this.gotoAndPlay(395);
};
break;
};
}
function frame476(){
}
public function nextPick(){
currentPick++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
function frame488(){
stop();
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
if (currentTime < 230){
MainClass.bonusScore = 50;
MainClass.star = 5;
} else {
if ((((currentTime > 230)) && ((currentTime < 360)))){
MainClass.bonusScore = 25;
MainClass.star = 3;
} else {
MainClass.bonusScore = 0;
MainClass.star = 2;
};
};
MainClass.levelScore = 100;
MainClass.totalScore = ((MainClass.totalScore + MainClass.levelScore) + MainClass.bonusScore);
};
};
if (this.hint != null){
if (this.hint.paper3 != null){
this.hint.paper3.gotoAndPlay(111);
};
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && (stoveOn))){
pickCherry();
};
break;
case 2:
if ((((ready == 1)) && (stoveOn))){
pickWater();
};
break;
case 3:
if (ready == 1){
pickSugar();
};
break;
case 4:
if (ready == 1){
pickCorn();
};
break;
case 5:
if (ready == 1){
pickBlender();
};
break;
case 6:
if ((((ready == 1)) && (stoveOn))){
pickBowl();
};
break;
case 7:
if (ready == 1){
pickSpoon();
};
break;
case 8:
if ((((ready == 1)) && (stoveOn))){
mixing();
};
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.cherry != null){
return (this.cherry.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
if (this.water != null){
return (this.water.hitTestPoint(mouseX, mouseY));
};
break;
case 3:
if (this.sugar != null){
return (this.sugar.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (this.corn != null){
return (this.corn.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.blender != null){
return (this.blender.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
if (this.bigBowl != null){
return (this.bigBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 7:
if (this.spoon != null){
return (this.spoon.hitTestPoint(mouseX, mouseY));
};
break;
case 8:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
default:
return (false);
};
return (false);
}
}
}//package
Section 68
//Task4 (Task4)
package {
import flash.events.*;
import flash.display.*;
public class Task4 extends Task {
public var hitBowl:MovieClip;
public var clock:MovieClip;
public var sugar:MovieClip;
public var hint:MovieClip;
public var vanilla:MovieClip;
public var cream:MovieClip;
public var phase:Number;// = 1
public var currentPick:int;// = 1
public var counter3:int;
public var soundBn:soundSymbol;
public var blender:MovieClip;
public var ready:Number;// = 1
public var currentTime:int;
public var bowl:MovieClip;
public function Task4(){
phase = 1;
ready = 1;
currentPick = 1;
super();
addFrameScript(107, frame108, 108, frame109, 146, frame147, 188, frame189, 252, frame253, 373, frame374, 374, frame375);
}
private function mixing(){
switch (currentPick){
case 7:
if (this.blender != null){
if (this.blender.switch1 != null){
if (this.blender.switch1.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.gotoAndPlay(254);
this.blender.gotoAndPlay(2);
this.blender.switch1.gotoAndStop(2);
};
};
};
break;
case 8:
if (this.blender != null){
if (this.blender.switch1 != null){
if (this.blender.switch1.hitTestPoint(mouseX, mouseY)){
ready = 0;
this.gotoAndPlay(375);
this.blender.gotoAndStop(1);
this.blender.switch1.gotoAndStop(1);
};
};
};
break;
};
}
override public function init(){
}
private function pickVanilla(){
switch (currentPick){
case 5:
if (this.vanilla.hitTestPoint(mouseX, mouseY)){
this.vanilla.startDrag(true);
this.setChildIndex(this.vanilla, (this.numChildren - 1));
nextPick();
};
break;
case 6:
if (this.vanilla.hitTestObject(this.hitBowl)){
this.vanilla.visible = false;
ready = 0;
this.gotoAndPlay(190);
};
break;
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.bowl != null){
return (this.bowl.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
if (this.cream != null){
return (this.cream.hitTestPoint(mouseX, mouseY));
};
break;
case 3:
if (this.sugar != null){
return (this.sugar.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
if (this.vanilla != null){
return (this.vanilla.hitTestPoint(mouseX, mouseY));
};
break;
case 5:
if (this.blender != null){
if (this.blender.switch1 != null){
return (this.blender.switch1.hitTestPoint(mouseX, mouseY));
};
};
break;
default:
return (false);
};
return (false);
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
counter3 = 0;
};
};
}
override public function onDown(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
function frame109(){
stop();
nextStep();
if (this.cream != null){
this.cream.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper4 != null){
this.hint.paper4.gotoAndPlay(2);
};
};
}
function frame108(){
stop();
if (this.bowl != null){
this.bowl.buttonMode = true;
};
}
private function pickSugar(){
switch (currentPick){
case 3:
if (this.sugar.hitTestPoint(mouseX, mouseY)){
this.sugar.startDrag(true);
this.setChildIndex(this.sugar, (this.numChildren - 1));
nextPick();
};
break;
case 4:
if (this.sugar.hitTestObject(this.hitBowl)){
this.sugar.visible = false;
ready = 0;
this.gotoAndPlay(148);
};
break;
};
}
function frame189(){
stop();
nextStep();
nextPick();
if (this.vanilla != null){
this.vanilla.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper4 != null){
this.hint.paper4.gotoAndPlay(21);
};
};
}
public function nextPick(){
currentPick++;
ready = 1;
}
public function pickBowl(){
if (this.bowl.hitTestPoint(mouseX, mouseY)){
this.gotoAndStop(109);
};
}
function frame253(){
stop();
nextStep();
nextPick();
if (this.blender != null){
this.blender.gotoAndStop(1);
if (this.blender.switch1 != null){
this.blender.switch1.buttonMode = true;
};
};
if (this.hint != null){
if (this.hint.paper4 != null){
this.hint.paper4.gotoAndPlay(31);
};
};
}
function frame374(){
stop();
nextPick();
if (this.hint != null){
if (this.hint.paper4 != null){
this.hint.paper4.gotoAndPlay(41);
};
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && ((this.currentFrame == 108)))){
pickBowl();
};
break;
case 2:
if (ready == 1){
pickCream();
};
break;
case 3:
if (ready == 1){
pickSugar();
};
break;
case 4:
if (ready == 1){
pickVanilla();
};
break;
case 5:
if (ready == 1){
mixing();
};
break;
};
}
private function pickCream(){
switch (currentPick){
case 1:
if (this.cream.hitTestPoint(mouseX, mouseY)){
this.cream.startDrag(true);
this.setChildIndex(this.cream, (this.numChildren - 1));
nextPick();
};
break;
case 2:
if (this.cream.hitTestObject(this.hitBowl)){
this.cream.visible = false;
ready = 0;
this.gotoAndPlay(110);
};
break;
};
}
function frame147(){
stop();
nextStep();
nextPick();
if (this.sugar != null){
this.sugar.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper4 != null){
this.hint.paper4.gotoAndPlay(11);
};
};
}
function frame375(){
stop();
if (this.hint != null){
this.hint.gotoAndPlay(18);
};
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
if (currentTime < 200){
MainClass.bonusScore = 50;
MainClass.star = 5;
} else {
if ((((currentTime > 200)) && ((currentTime < 360)))){
MainClass.bonusScore = 25;
MainClass.star = 3;
} else {
MainClass.bonusScore = 0;
MainClass.star = 2;
};
};
MainClass.levelScore = 100;
MainClass.totalScore = ((MainClass.totalScore + MainClass.levelScore) + MainClass.bonusScore);
(this.parent.parent as MainClass).createLevelUp();
};
};
};
}
}
}//package
Section 69
//Task5 (Task5)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class Task5 extends Task {
public var myArray:Array;
public var clock:MovieClip;
public var hitBowl:MovieClip;
public var cake:MovieClip;
public var arr:MovieClip;
public var s:MovieClip;
public var hint:MovieClip;
public var r:MovieClip;
public var picked:Boolean;// = false
public var cream:Decoration;
public var tip:MovieClip;
public var h1:Boolean;// = false
public var h2:Boolean;// = false
public var h3:Boolean;// = false
public var cake1:MovieClip;
public var cake2:MovieClip;
public var cake3:MovieClip;
public var hitCherry:MovieClip;
public var cone:MovieClip;
public var currentPick:int;// = 1
public var hitPlate:MovieClip;
public var spoon1:MovieClip;
public var cone1:MovieClip;
private var lineCounter:int;// = 0
public var LineDraw:Boolean;// = false
public var phase:Number;// = 1
public var creamBowl:MovieClip;
public var ready:Number;// = 1
public var creamSpoon:MovieClip;
public var picked1:Boolean;// = false
public var picked2:Boolean;// = false
public var counter3:int;
public var currentTime:int;
public var cream1:Decoration1;
public function Task5(){
phase = 1;
ready = 1;
currentPick = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
lineCounter = 0;
picked1 = false;
picked2 = false;
picked = false;
super();
addFrameScript(0, frame1, 39, frame40, 40, frame41, 70, frame71, 71, frame72, 101, frame102, 102, frame103, 103, frame104, 218, frame219, 324, frame325, 325, frame326, 326, frame327, 441, frame442, 547, frame548, 548, frame549);
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.cake != null){
return (this.cake.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 3:
if (this.cake1 != null){
return (this.cake1.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 5:
if (this.cake2 != null){
return (this.cake2.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
if (this.cone != null){
return (this.cone.hitTestPoint(mouseX, mouseY));
};
break;
case 7:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 8:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 9:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 10:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 11:
if (this.cake2 != null){
return (this.cake2.hitTestPoint(mouseX, mouseY));
};
break;
case 12:
if (this.cone != null){
return (this.cone.hitTestPoint(mouseX, mouseY));
};
break;
case 13:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 14:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 15:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 16:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 17:
if (this.cake3 != null){
return (this.cake3.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
counter3 = 0;
};
};
}
override public function onMove(_arg1:MouseEvent){
if (this.tip != null){
this.tip.x = this.cone1.x;
this.tip.y = this.cone1.y;
};
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if ((((this.currentFrame == 41)) || ((this.currentFrame == 72)))){
checkHits();
(this.parent as Container).drawLine();
LineDraw = true;
};
if ((((((((this.currentFrame == 104)) || ((this.currentFrame == 219)))) || ((this.currentFrame == 327)))) || ((this.currentFrame == 442)))){
checkHits1();
if (picked){
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
};
}
public function nextStep(){
currentStep++;
phase = 1;
}
public function checkHits(){
if ((((((((this.currentFrame == 41)) || ((this.currentFrame == 72)))) || ((this.currentFrame == 327)))) || ((this.currentFrame == 442)))){
if (this.arr != null){
if (this.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
if (lineCounter == 0){
lineCounter = 1;
};
};
if (this.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
if (lineCounter == 1){
lineCounter = 2;
};
};
if (this.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
if (lineCounter == 2){
lineCounter = 3;
};
};
};
};
}
function frame1(){
stop();
}
public function hideMouse(){
Mouse.hide();
}
function frame40(){
stop();
if (this.cake != null){
this.cake.buttonMode = true;
};
}
function frame41(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(11);
};
};
}
private function spreadCream(){
}
override public function onUp(_arg1:MouseEvent){
if (lineCounter < 3){
lineCounter = 0;
};
if ((((((((((((this.currentFrame == 41)) || ((this.currentFrame == 72)))) || ((this.currentFrame == 104)))) || ((this.currentFrame == 219)))) || ((this.currentFrame == 327)))) || ((this.currentFrame == 442)))){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
public function checkHits1(){
if ((((((((this.currentFrame == 104)) || ((this.currentFrame == 219)))) || ((this.currentFrame == 327)))) || ((this.currentFrame == 442)))){
if (this.arr != null){
if (this.arr.hitArea1.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h1 = true;
if (lineCounter == 0){
lineCounter = 1;
};
};
if (this.arr.hitArea2.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h2 = true;
if (lineCounter == 1){
lineCounter = 2;
};
};
if (this.arr.hitArea3.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h3 = true;
if (lineCounter == 2){
lineCounter = 3;
};
};
};
};
}
function frame549(){
stop();
if (this.hint != null){
this.hint.gotoAndPlay(18);
};
if (this.parent != null){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
if (currentTime < 270){
MainClass.bonusScore = 50;
MainClass.star = 5;
} else {
if ((((currentTime > 270)) && ((currentTime < 360)))){
MainClass.bonusScore = 25;
MainClass.star = 3;
} else {
MainClass.bonusScore = 0;
MainClass.star = 2;
};
};
MainClass.levelScore = 100;
MainClass.totalScore = ((MainClass.totalScore + MainClass.levelScore) + MainClass.bonusScore);
(this.parent.parent as MainClass).createLevelUp();
};
};
};
}
private function pickCone(){
switch (currentPick){
case 9:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
this.cone.visible = false;
(this.getChildByName("cream") as Decoration).cone.visible = true;
picked1 = true;
};
break;
case 16:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
this.cone.visible = false;
(this.getChildByName("cream1") as Decoration1).cone1.visible = true;
picked2 = true;
};
break;
};
}
override public function init(){
}
function frame72(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(31);
};
};
}
function frame548(){
stop();
nextStep();
nextPick();
if (this.hint != null){
this.hint.paper5.gotoAndPlay(121);
};
if (this.cake3 != null){
this.cake3.buttonMode = true;
};
}
public function pickKnife(){
switch (currentPick){
case 10:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
hideMouse();
nextPick();
nextStep();
picked = true;
};
break;
case 12:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
hideMouse();
nextPick();
nextStep();
picked = true;
};
break;
case 17:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
hideMouse();
nextPick();
nextStep();
picked = true;
};
break;
case 19:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
hideMouse();
nextPick();
nextStep();
picked = true;
};
break;
};
}
function frame71(){
stop();
nextStep();
nextPick();
if (this.cake1 != null){
this.cake1.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(21);
};
};
}
function frame326(){
stop();
nextStep();
nextPick();
if (this.hint != null){
this.hint.paper5.gotoAndPlay(91);
};
if (this.cream1 != null){
this.cream1.gotoAndStop(2);
};
if (this.cone != null){
this.cone.buttonMode = true;
};
if (this.cream1 != null){
if (this.cream1.cone1 != null){
this.cream1.cone1.visible = false;
};
};
}
function frame327(){
stop();
nextStep();
nextPick();
picked = false;
if (this.hint != null){
this.hint.paper5.gotoAndPlay(101);
};
if (this.arr != null){
this.arr.visible = false;
};
}
function frame442(){
stop();
nextStep();
nextPick();
picked = false;
if (this.hint != null){
this.hint.paper5.gotoAndPlay(111);
};
if (this.arr != null){
this.arr.visible = false;
};
}
override public function onDown(_arg1:MouseEvent){
if (this.currentFrame == 103){
if ((((_arg1.target.name == "cone")) && (picked1))){
(this.getChildByName("cream") as Decoration).collision();
};
};
if (this.currentFrame == 326){
if ((((_arg1.target.name == "cone1")) && (picked2))){
(this.getChildByName("cream1") as Decoration1).collision1();
};
};
if (((((((!((this.currentFrame == 41))) || (!((this.currentFrame == 72))))) || (!((this.currentFrame == 104))))) || (!((this.currentFrame == 219))))){
if ((((phase == 1)) && ((ready == 1)))){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
function frame325(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(81);
};
};
if (this.cake2 != null){
this.cake2.buttonMode = true;
};
}
function frame219(){
stop();
nextStep();
nextPick();
picked = false;
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(71);
};
};
if (this.arr != null){
this.arr.visible = false;
};
}
function frame102(){
stop();
nextStep();
nextPick();
if (this.cake2 != null){
this.cake2.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(41);
};
};
}
function frame103(){
stop();
nextStep();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
if (this.cream != null){
this.cream.gotoAndStop(2);
if (this.cream.cone != null){
this.cream.cone.visible = false;
};
};
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(51);
};
};
}
function frame104(){
stop();
nextStep();
nextPick();
picked = false;
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(61);
};
};
if (this.arr != null){
this.arr.visible = false;
};
}
private function cutCake(){
switch (currentPick){
case 3:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(42);
};
break;
case 6:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(73);
};
break;
case 11:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(105);
};
break;
case 13:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(220);
};
break;
case 18:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(328);
};
break;
case 20:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(443);
};
break;
case 200:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(328);
};
break;
case 200:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(443);
};
break;
};
}
public function showMouse(){
Mouse.show();
}
public function nextPick(){
currentPick++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && ((this.currentFrame == 40)))){
pickCake();
};
break;
case 2:
if (ready == 1){
cutCake();
};
break;
case 3:
if (ready == 1){
pickCake();
};
break;
case 4:
if (ready == 1){
cutCake();
};
break;
case 5:
if (ready == 1){
pickCake();
};
break;
case 6:
if (ready == 1){
pickCone();
};
break;
case 7:
if (ready == 1){
pickKnife();
};
break;
case 8:
if (ready == 1){
cutCake();
};
break;
case 9:
if (ready == 1){
pickKnife();
};
break;
case 10:
if (ready == 1){
cutCake();
};
break;
case 11:
if (ready == 1){
pickCake();
};
break;
case 12:
if (ready == 1){
pickCone();
};
break;
case 13:
if (ready == 1){
pickKnife();
};
break;
case 14:
if (ready == 1){
cutCake();
};
break;
case 15:
if (ready == 1){
pickKnife();
};
break;
case 16:
if (ready == 1){
cutCake();
};
break;
case 17:
if (ready == 1){
pickCake();
};
break;
};
}
private function pickCake(){
switch (currentPick){
case 1:
if (this.cake.hitTestPoint(mouseX, mouseY)){
this.cake.startDrag(true);
this.setChildIndex(this.cake, (this.numChildren - 1));
nextPick();
if (this.hint != null){
if (this.hint.paper5 != null){
this.hint.paper5.gotoAndPlay(2);
};
};
};
break;
case 2:
if (this.cake.hitTestObject(this.hitBowl)){
this.cake.visible = false;
ready = 0;
this.gotoAndStop(41);
};
break;
case 4:
if (this.cake1.hitTestPoint(mouseX, mouseY)){
this.cake1.startDrag(true);
this.setChildIndex(this.cake1, (this.numChildren - 1));
nextPick();
};
break;
case 5:
if (this.cake1.hitTestObject(this.hitPlate)){
this.cake1.visible = false;
ready = 0;
this.gotoAndPlay(72);
};
break;
case 7:
if (this.cake2.hitTestPoint(mouseX, mouseY)){
this.cake2.startDrag(true);
this.setChildIndex(this.cake2, (this.numChildren - 1));
nextPick();
};
break;
case 8:
if (this.cake2.hitTestObject(this.hitPlate)){
this.cake2.visible = false;
ready = 0;
this.gotoAndPlay(103);
};
break;
case 14:
if (this.cake2.hitTestPoint(mouseX, mouseY)){
this.cake2.startDrag(true);
this.setChildIndex(this.cake2, (this.numChildren - 1));
nextPick();
};
break;
case 15:
if (this.cake2.hitTestObject(this.hitCherry)){
this.cake2.visible = false;
ready = 0;
this.gotoAndPlay(326);
};
break;
case 21:
if (this.cake3.hitTestPoint(mouseX, mouseY)){
this.cake3.startDrag(true);
this.setChildIndex(this.cake3, (this.numChildren - 1));
nextPick();
};
break;
case 22:
if (this.cake3.hitTestObject(this.hitCherry)){
this.cake3.visible = false;
ready = 0;
this.gotoAndPlay(549);
};
break;
};
}
}
}//package
Section 70
//Task6 (Task6)
package {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public class Task6 extends Task {
public var clock:MovieClip;
public var hitBowl:MovieClip;
var c1:Boolean;// = false
var c3:Boolean;// = false
var c5:Boolean;// = false
var c6:Boolean;// = false
var c7:Boolean;// = false
var c8:Boolean;// = false
var c2:Boolean;// = false
public var cake:MovieClip;
public var chocolate:MovieClip;
var c9:Boolean;// = false
var c4:Boolean;// = false
public var arr:MovieClip;
public var chris2:MovieClip;
public var chris3:MovieClip;
public var hint:MovieClip;
public var picked:Boolean;// = false
public var chris:MovieClip;
public var finish:SimpleButton;
public var chris1:MovieClip;
public var h1:Boolean;// = false
public var h2:Boolean;// = false
public var h3:Boolean;// = false
public var cake1:MovieClip;
public var cone:MovieClip;
public var tray:MovieClip;
public var currentPick:int;// = 1
public var spoon1:MovieClip;
private var lineCounter:int;// = 0
public var cherry10:MovieClip;
public var cherry11:MovieClip;
public var cherry13:MovieClip;
public var cherry14:MovieClip;
public var cherry12:MovieClip;
public var phase:Number;// = 1
public var creamBowl:MovieClip;
public var LineDraw:Boolean;// = false
public var ready:Number;// = 1
public var creamSpoon:MovieClip;
private var picked1:Boolean;// = false
public var counter3:int;
public var cherry2:MovieClip;
public var cherry3:MovieClip;
public var cherry4:MovieClip;
public var cherry5:MovieClip;
public var cherry6:MovieClip;
public var cherry7:MovieClip;
public var cherry9:MovieClip;
var c10:Boolean;// = false
var c11:Boolean;// = false
var c13:Boolean;// = false
var c16:Boolean;// = false
var c17:Boolean;// = false
var c14:Boolean;// = false
public var cherry8:MovieClip;
public var cherry1:MovieClip;
var c18:Boolean;// = false
var c19:Boolean;// = false
var c15:Boolean;// = false
public var bowl:MovieClip;
public var currentTime:int;
var c12:Boolean;// = false
public var counter:int;// = 0
public function Task6(){
phase = 1;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
currentPick = 1;
LineDraw = false;
lineCounter = 0;
picked1 = false;
picked = false;
counter = 0;
c1 = false;
c2 = false;
c3 = false;
c4 = false;
c5 = false;
c6 = false;
c7 = false;
c8 = false;
c9 = false;
c10 = false;
c11 = false;
c12 = false;
c13 = false;
c14 = false;
c15 = false;
c16 = false;
c17 = false;
c18 = false;
c19 = false;
super();
addFrameScript(0, frame1, 41, frame42, 180, frame181, 313, frame314, 396, frame397, 469, frame470, 489, frame490, 504, frame505, 519, frame520, 529, frame530, 539, frame540, 562, frame563, 563, frame564, 584, frame585, 599, frame600, 614, frame615, 624, frame625, 630, frame631, 667, frame668, 719, frame720, 781, frame782, 782, frame783, 799, frame800, 814, frame815, 829, frame830, 844, frame845, 854, frame855, 867, frame868, 879, frame880, 895, frame896, 896, frame897, 905, frame906, 914, frame915, 924, frame925, 934, frame935, 941, frame942, 949, frame950, 956, frame957, 957, frame958, 969, frame970, 979, frame980, 989, frame990, 999, frame1000, 1009, frame1010, 1020, frame1021, 1030, frame1031, 1039, frame1040, 1049, frame1050, 1063, frame1064, 1064, frame1065, 1071, frame1072, 1079, frame1080, 1089, frame1090, 1099, frame1100, 1109, frame1110, 1119, frame1120, 1129, frame1130, 1134, frame1135, 1163, frame1164, 1179, frame1180);
}
function frame1040(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame397(){
stop();
nextStep();
nextPick();
if (this.arr != null){
this.arr.visible = false;
};
if (this.creamBowl != null){
this.creamBowl.buttonMode = true;
};
picked1 = false;
}
function frame1180(){
stop();
if (this.hint != null){
if (this.hint.paper6 != null){
this.hint.paper6.gotoAndPlay(41);
};
};
if (this.chris != null){
this.chris.gotoAndStop(1);
this.chris.buttonMode = true;
};
if (this.chris1 != null){
this.chris1.gotoAndStop(1);
this.chris1.buttonMode = true;
};
if (this.chris2 != null){
this.chris2.gotoAndStop(1);
this.chris2.buttonMode = true;
};
if (this.chris3 != null){
this.chris3.gotoAndStop(1);
this.chris3.buttonMode = true;
};
if (this.finish != null){
this.finish.visible = false;
};
if (this.finish != null){
this.finish.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
}
function frame950(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame830(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1064(){
}
function frame1065(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame958(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame957(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1072(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame720(){
stop();
nextStep();
nextPick();
picked1 = false;
if (this.arr != null){
this.arr.visible = false;
};
if (this.hint != null){
if (this.hint.paper6 != null){
this.hint.paper6.gotoAndPlay(21);
};
};
if (this.creamBowl != null){
this.creamBowl.buttonMode = true;
};
}
function frame600(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame845(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function takeCream(){
switch (currentPick){
case 2:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(43);
};
break;
case 4:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(182);
};
break;
case 6:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(315);
};
break;
case 8:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(398);
};
break;
case 23:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.creamSpoon.stopDrag();
showMouse();
this.creamSpoon.x = -100;
this.creamSpoon.y = -100;
this.gotoAndPlay(721);
};
break;
case 222:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(182);
};
break;
case 3333:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(315);
};
break;
case 4444:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(398);
};
break;
case 555:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(472);
};
break;
case 666:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(564);
};
break;
case 188:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(721);
};
break;
case 100:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(783);
};
break;
case 111:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(897);
};
break;
case 122:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(958);
};
break;
case 133:
if (((((((((h1) && (h2))) && (h3))) && (LineDraw))) && ((lineCounter == 3)))){
ready = 0;
lineCounter = 0;
this.gotoAndPlay(1065);
};
break;
};
}
override public function onEnter(_arg1:Event){
if (this.clock != null){
counter3++;
if (counter3 == 30){
this.clock.clock1.clockHand.rotation = (this.clock.clock1.clockHand.rotation + 6);
currentTime = (currentTime + 6);
counter3 = 0;
};
};
}
function frame1080(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame970(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
override public function onMove(_arg1:MouseEvent){
if ((((phase == 1)) && ((ready == 1)))){
if (_arg1.buttonDown){
if ((((((((((this.currentFrame == 42)) || ((this.currentFrame == 181)))) || ((this.currentFrame == 314)))) || ((this.currentFrame == 397)))) || ((this.currentFrame == 720)))){
checkHits1();
if (picked1){
(this.parent as Container).drawLine();
};
LineDraw = true;
};
};
};
}
function frame855(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame181(){
stop();
nextStep();
nextPick();
if (this.arr != null){
this.arr.visible = false;
};
if (this.creamBowl != null){
this.creamBowl.buttonMode = true;
};
picked1 = false;
}
public function nextStep(){
currentStep++;
phase = 1;
}
function frame505(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function checkHits(){
if ((((this.currentFrame == 42)) || ((this.currentFrame == 181)))){
if (this.arr != null){
if (this.arr.hitArea1.hitTestPoint(this.mouseX, this.mouseY)){
h1 = true;
if (lineCounter == 0){
lineCounter = 1;
};
};
if (this.arr.hitArea2.hitTestPoint(this.mouseX, this.mouseY)){
h2 = true;
if (lineCounter == 1){
lineCounter = 2;
};
};
if (this.arr.hitArea3.hitTestPoint(this.mouseX, this.mouseY)){
h3 = true;
if (lineCounter == 2){
lineCounter = 3;
};
};
};
};
}
public function hideMouse(){
Mouse.hide();
}
function frame1(){
stop();
}
function frame990(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1090(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame980(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame631(){
}
function frame625(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame615(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame880(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame520(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame42(){
stop();
if (this.arr != null){
this.arr.visible = false;
};
if (this.creamBowl != null){
this.creamBowl.buttonMode = true;
};
picked1 = false;
}
function frame868(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame530(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function pickPoster(){
if (this.chris.hitTestPoint(mouseX, mouseY, true)){
this.chris.gotoAndStop(2);
this.chris.startDrag(true);
this.setChildIndex(this.chris, (this.numChildren - 1));
this.chris1.x = 546.95;
this.chris1.y = 336.6;
this.chris1.gotoAndStop(1);
this.chris2.x = 495.35;
this.chris2.y = 353.3;
this.chris2.gotoAndStop(1);
this.chris3.x = 456.55;
this.chris3.y = 334.8;
this.chris3.gotoAndStop(1);
c16 = false;
c17 = false;
c18 = false;
} else {
if (this.chris1.hitTestPoint(mouseX, mouseY, true)){
this.chris1.gotoAndStop(2);
this.chris1.startDrag(true);
this.setChildIndex(this.chris1, (this.numChildren - 1));
this.chris3.x = 456.55;
this.chris3.y = 334.8;
this.chris3.gotoAndStop(1);
this.chris2.x = 495.35;
this.chris2.y = 353.3;
this.chris2.gotoAndStop(1);
this.chris3.x = 456.55;
this.chris3.y = 334.8;
this.chris3.gotoAndStop(1);
this.chris.x = 503.3;
this.chris.y = 304.95;
this.chris.gotoAndStop(1);
c15 = false;
c17 = false;
c18 = false;
} else {
if (this.chris2.hitTestPoint(mouseX, mouseY, true)){
this.chris2.gotoAndStop(2);
this.chris2.startDrag(true);
this.setChildIndex(this.chris2, (this.numChildren - 1));
this.chris1.x = 546.95;
this.chris1.y = 336.6;
this.chris1.gotoAndStop(1);
this.chris3.x = 456.55;
this.chris3.y = 334.8;
this.chris3.gotoAndStop(1);
this.chris.x = 503.3;
this.chris.y = 304.95;
this.chris.gotoAndStop(1);
c15 = false;
c16 = false;
c18 = false;
} else {
if (this.chris3.hitTestPoint(mouseX, mouseY, true)){
this.chris3.gotoAndStop(2);
this.chris3.startDrag(true);
this.setChildIndex(this.chris3, (this.numChildren - 1));
this.chris1.x = 546.95;
this.chris1.y = 336.6;
this.chris1.gotoAndStop(1);
this.chris2.x = 495.35;
this.chris2.y = 353.3;
this.chris2.gotoAndStop(1);
this.chris.x = 503.3;
this.chris.y = 304.95;
this.chris.gotoAndStop(1);
c15 = false;
c16 = false;
c17 = false;
};
};
};
};
}
function frame896(){
}
override public function onUp(_arg1:MouseEvent){
if (this.currentFrame == 1180){
dropCherry();
dropPoster();
};
if (lineCounter < 3){
lineCounter = 0;
};
if ((((((((((this.currentFrame == 42)) || ((this.currentFrame == 181)))) || ((this.currentFrame == 314)))) || ((this.currentFrame == 397)))) || ((this.currentFrame == 720)))){
(this.parent as Container).removeLine();
if (phase == 1){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
};
}
public function checkHits1(){
if ((((((((((this.currentFrame == 42)) || ((this.currentFrame == 181)))) || ((this.currentFrame == 314)))) || ((this.currentFrame == 397)))) || ((this.currentFrame == 720)))){
if (this.arr != null){
if (this.arr.hitArea1.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h1 = true;
if (lineCounter == 0){
lineCounter = 1;
};
};
if (this.arr.hitArea2.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h2 = true;
if (lineCounter == 1){
lineCounter = 2;
};
};
if (this.arr.hitArea3.hitTestPoint(this.creamSpoon.x, this.creamSpoon.y)){
h3 = true;
if (lineCounter == 2){
lineCounter = 3;
};
};
};
};
}
function frame783(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function onClick(_arg1:MouseEvent){
if (this.parent != null){
if ((this.parent is Container)){
(this.parent as Container).removeListeners();
};
};
if (this.parent != null){
if (this.parent.parent != null){
(this.parent.parent as MainClass).pauseGame();
};
};
this.finish.removeEventListener(MouseEvent.CLICK, onClick);
gameOver();
}
public function pickCone(){
switch (currentPick){
case 9:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
this.gotoAndStop(490);
};
break;
case 10:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(491);
};
break;
case 11:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(506);
};
break;
case 12:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(521);
};
break;
case 13:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(531);
};
break;
case 14:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(541);
};
break;
case 15:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(565);
};
break;
case 16:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(586);
};
break;
case 17:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(601);
};
break;
case 18:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(616);
};
break;
case 19:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(626);
};
break;
case 24:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(783);
};
break;
case 25:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.gotoAndPlay(801);
};
break;
case 26:
if (this.cone.hitTestPoint(mouseX, mouseY, true)){
ready = 0;
this.play();
};
break;
};
}
function frame540(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function pickKnife(){
switch (currentPick){
case 1:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
this.setChildIndex(this.creamSpoon, (this.numChildren - 1));
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
picked1 = true;
hideMouse();
nextPick();
nextStep();
};
break;
case 3:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
this.setChildIndex(this.creamSpoon, (this.numChildren - 1));
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
picked1 = true;
hideMouse();
nextPick();
nextStep();
};
break;
case 5:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
this.setChildIndex(this.creamSpoon, (this.numChildren - 1));
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
picked1 = true;
hideMouse();
nextPick();
nextStep();
};
break;
case 7:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
this.setChildIndex(this.creamSpoon, (this.numChildren - 1));
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
picked1 = true;
hideMouse();
nextPick();
nextStep();
};
break;
case 22:
if (this.creamBowl.hitTestPoint(mouseX, mouseY)){
this.creamSpoon.startDrag(true);
this.setChildIndex(this.creamSpoon, (this.numChildren - 1));
if (this.arr != null){
this.arr.visible = true;
};
this.spoon1.visible = false;
picked1 = true;
hideMouse();
nextPick();
nextStep();
};
break;
};
}
function frame782(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper6 != null){
this.hint.paper6.gotoAndPlay(31);
};
};
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame314(){
stop();
nextStep();
nextPick();
if (this.arr != null){
this.arr.visible = false;
};
if (this.creamBowl != null){
this.creamBowl.buttonMode = true;
};
picked1 = false;
}
function frame668(){
stop();
nextStep();
nextPick();
if (this.chocolate != null){
this.chocolate.buttonMode = true;
};
if (this.hint != null){
if (this.hint.paper6 != null){
this.hint.paper6.gotoAndPlay(11);
};
};
}
override public function init(){
}
function frame1100(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
private function pickChocolate(){
switch (currentPick){
case 20:
if (this.chocolate.hitTestPoint(mouseX, mouseY)){
this.chocolate.startDrag(true);
this.setChildIndex(this.chocolate, (this.numChildren - 1));
nextPick();
};
break;
case 21:
if (this.chocolate.hitTestObject(this.hitBowl)){
this.chocolate.visible = false;
ready = 0;
this.gotoAndPlay(669);
};
break;
};
}
public function dropPoster(){
if (cake != null){
this.chris.stopDrag();
if (this.cake1.hitTestObject(this.chris)){
this.chris.x = 337;
this.chris.y = 234;
c15 = true;
} else {
c15 = false;
this.chris.x = 503.3;
this.chris.y = 304.95;
this.chris.gotoAndStop(1);
};
if (this.cake1.hitTestObject(this.chris1)){
this.chris1.x = 279;
this.chris1.y = 224;
c16 = true;
} else {
c16 = false;
this.chris1.x = 546.95;
this.chris1.y = 336.6;
this.chris1.gotoAndStop(1);
};
if (this.cake1.hitTestObject(this.chris2)){
this.chris2.x = 198;
this.chris2.y = 221;
c17 = true;
} else {
c17 = false;
this.chris2.x = 495.35;
this.chris2.y = 353.3;
this.chris2.gotoAndStop(1);
};
if (this.cake1.hitTestObject(this.chris3)){
this.chris3.x = 276;
this.chris3.y = 238;
c18 = true;
} else {
c18 = false;
this.chris3.x = 456.55;
this.chris3.y = 334.8;
this.chris3.gotoAndStop(1);
};
};
}
public function pickCherry(){
if (this.cherry1.hitTestPoint(mouseX, mouseY)){
this.cherry1.startDrag(true);
this.setChildIndex(this.cherry1, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry2.hitTestPoint(mouseX, mouseY)){
this.cherry2.startDrag(true);
this.setChildIndex(this.cherry2, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry3.hitTestPoint(mouseX, mouseY)){
this.cherry3.startDrag(true);
this.setChildIndex(this.cherry3, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry4.hitTestPoint(mouseX, mouseY)){
this.cherry4.startDrag(true);
this.setChildIndex(this.cherry4, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry5.hitTestPoint(mouseX, mouseY)){
this.cherry5.startDrag(true);
this.setChildIndex(this.cherry5, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry6.hitTestPoint(mouseX, mouseY)){
this.cherry6.startDrag(true);
this.setChildIndex(this.cherry6, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry7.hitTestPoint(mouseX, mouseY)){
this.cherry7.startDrag(true);
this.setChildIndex(this.cherry7, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry8.hitTestPoint(mouseX, mouseY)){
this.cherry8.startDrag(true);
this.setChildIndex(this.cherry8, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry9.hitTestPoint(mouseX, mouseY)){
this.cherry9.startDrag(true);
this.setChildIndex(this.cherry9, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry10.hitTestPoint(mouseX, mouseY)){
this.cherry10.startDrag(true);
this.setChildIndex(this.cherry10, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry11.hitTestPoint(mouseX, mouseY)){
this.cherry11.startDrag(true);
this.setChildIndex(this.cherry11, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry12.hitTestPoint(mouseX, mouseY)){
this.cherry12.startDrag(true);
this.setChildIndex(this.cherry12, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry13.hitTestPoint(mouseX, mouseY)){
this.cherry13.startDrag(true);
this.setChildIndex(this.cherry13, (numChildren - 1));
picked = true;
counter++;
} else {
if (this.cherry14.hitTestPoint(mouseX, mouseY)){
this.cherry14.startDrag(true);
this.setChildIndex(this.cherry14, (numChildren - 1));
picked = true;
counter++;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
function frame563(){
}
override public function onDown(_arg1:MouseEvent){
if (this.chris != null){
};
if (this.finish != null){
if (counter > 5){
this.finish.visible = true;
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
if (currentTime < 360){
MainClass.bonusScore = 50;
} else {
MainClass.bonusScore = 0;
};
MainClass.levelScore = 100;
MainClass.totalScore = ((MainClass.totalScore + MainClass.levelScore) + MainClass.bonusScore);
counter = 0;
};
};
};
};
if (this.currentFrame == 1180){
pickCherry();
pickPoster();
};
if ((((phase == 1)) && ((ready == 1)))){
if (checkStep(currentStep)){
executeStep(currentStep);
};
return;
};
}
function frame1110(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame564(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame897(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1000(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1120(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1130(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1010(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function dropCherry(){
if (cake != null){
this.cherry1.stopDrag();
if (this.cake.hitTestPoint(this.cherry1.x, cherry1.y, true)){
picked = false;
c1 = true;
} else {
c1 = false;
this.cherry1.x = 74.35;
this.cherry1.y = 415.05;
};
if (this.cake.hitTestPoint(this.cherry2.x, cherry2.y, true)){
c2 = true;
picked = false;
} else {
c2 = false;
this.cherry2.x = 85.3;
this.cherry2.y = 421.1;
};
if (this.cake.hitTestPoint(this.cherry3.x, cherry3.y, true)){
c3 = true;
picked = false;
} else {
c3 = false;
this.cherry3.x = 64.55;
this.cherry3.y = 422.15;
};
if (this.cake.hitTestPoint(this.cherry4.x, cherry4.y, true)){
c4 = true;
picked = false;
} else {
c4 = false;
this.cherry4.x = 53.8;
this.cherry4.y = 426.65;
};
if (this.cake.hitTestPoint(this.cherry5.x, cherry5.y, true)){
c5 = true;
picked = false;
} else {
c5 = false;
this.cherry5.x = 49.35;
this.cherry5.y = 435.05;
};
if (this.cake.hitTestPoint(this.cherry6.x, cherry6.y, true)){
c6 = true;
picked = false;
} else {
c6 = false;
this.cherry6.x = 68.05;
this.cherry6.y = 430.1;
};
if (this.cake.hitTestPoint(this.cherry7.x, cherry7.y, true)){
c7 = true;
picked = false;
} else {
c7 = false;
this.cherry7.x = 61.05;
this.cherry7.y = 437.1;
};
if (this.cake.hitTestPoint(this.cherry8.x, cherry8.y, true)){
c8 = true;
picked = false;
} else {
c8 = false;
this.cherry8.x = 75.3;
this.cherry8.y = 437.35;
};
if (this.cake.hitTestPoint(this.cherry9.x, cherry9.y, true)){
c9 = true;
picked = false;
} else {
c9 = false;
this.cherry9.x = 89.05;
this.cherry9.y = 437.1;
};
if (this.cake.hitTestPoint(this.cherry10.x, cherry10.y, true)){
c10 = true;
picked = false;
} else {
c10 = false;
this.cherry10.x = 109.5;
this.cherry10.y = 426.65;
};
if (this.cake.hitTestPoint(this.cherry11.x, cherry11.y, true)){
c11 = true;
picked = false;
} else {
c11 = false;
this.cherry11.x = 96.3;
this.cherry11.y = 427.35;
};
if (this.cake.hitTestPoint(this.cherry12.x, cherry12.y, true)){
c12 = true;
picked = false;
} else {
c12 = false;
this.cherry12.x = 102.5;
this.cherry12.y = 432.35;
};
if (this.cake.hitTestPoint(this.cherry13.x, cherry13.y, true)){
c13 = true;
picked = false;
} else {
c13 = false;
this.cherry13.x = 75.3;
this.cherry13.y = 424.8;
};
if (this.cake.hitTestPoint(this.cherry14.x, cherry14.y, true)){
c14 = true;
picked = false;
} else {
c14 = false;
this.cherry14.x = 82.8;
this.cherry14.y = 430.6;
};
};
}
function frame585(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1135(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame470(){
stop();
nextStep();
nextPick();
if (this.hint != null){
if (this.hint.paper6 != null){
this.hint.paper6.gotoAndPlay(2);
};
};
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1021(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame906(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function showMouse(){
Mouse.show();
}
function frame800(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function nextPick(){
currentPick++;
ready = 1;
h1 = false;
h2 = false;
h3 = false;
LineDraw = false;
}
function frame925(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame935(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1031(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1164(){
if (this.tray != null){
if (this.tray.chris != null){
this.tray.chris.gotoAndStop(1);
};
if (this.tray.chris1 != null){
this.tray.chris1.gotoAndStop(1);
};
if (this.tray.chris2 != null){
this.tray.chris2.gotoAndStop(1);
};
if (this.tray.chris3 != null){
this.tray.chris3.gotoAndStop(1);
};
};
}
function frame815(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame490(){
stop();
nextPick();
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function executeStep(_arg1){
switch (_arg1){
case 1:
if ((((ready == 1)) && ((this.currentFrame == 42)))){
pickKnife();
};
break;
case 2:
if (ready == 1){
takeCream();
};
break;
case 3:
if (ready == 1){
pickKnife();
};
break;
case 4:
if (ready == 1){
takeCream();
};
break;
case 5:
if (ready == 1){
pickKnife();
};
break;
case 6:
if (ready == 1){
takeCream();
};
break;
case 7:
if (ready == 1){
pickKnife();
};
break;
case 8:
if (ready == 1){
takeCream();
};
break;
case 9:
if (ready == 1){
pickCone();
};
break;
case 10:
if (ready == 1){
pickChocolate();
};
break;
case 11:
if (ready == 1){
pickKnife();
};
break;
case 12:
if (ready == 1){
takeCream();
};
break;
case 13:
if (ready == 1){
pickCone();
};
break;
};
}
function frame915(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
function frame1050(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
public function gameOver(){
if (this.parent.parent != null){
if ((this.parent.parent is MainClass)){
(this.parent.parent as MainClass).pauseGame();
(this.parent.parent as MainClass).FINAL = new MovieClip();
if ((this.parent.parent as MainClass).FINAL != null){
if (this.cake != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cake);
};
};
if (((!((this.cherry1 == null))) && (c1))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry1);
};
};
if (((!((this.cherry2 == null))) && (c2))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry2);
};
};
if (((!((this.cherry3 == null))) && (c3))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry3);
};
};
if (((!((this.cherry4 == null))) && (c4))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry4);
};
};
if (((!((this.cherry5 == null))) && (c5))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry5);
};
};
if (((!((this.cherry6 == null))) && (c6))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry6);
};
};
if (((!((this.cherry7 == null))) && (c7))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry7);
};
};
if (((!((this.cherry8 == null))) && (c8))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry8);
};
};
if (((!((this.cherry9 == null))) && (c9))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry9);
};
};
if (((!((this.cherry10 == null))) && (c10))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry10);
};
};
if (((!((this.cherry11 == null))) && (c11))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry11);
};
};
if (((!((this.cherry12 == null))) && (c12))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry12);
};
};
if (((!((this.cherry13 == null))) && (c13))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry13);
};
};
if (((!((this.cherry14 == null))) && (c14))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.cherry14);
};
};
if (((!((this.chris == null))) && (c15))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.chris);
};
};
if (((!((this.chris1 == null))) && (c16))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.chris1);
};
};
if (((!((this.chris2 == null))) && (c17))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.chris2);
};
};
if (((!((this.chris3 == null))) && (c18))){
if ((this.parent.parent as MainClass).FINAL != null){
(this.parent.parent as MainClass).FINAL.addChild(this.chris3);
};
};
(this.parent.parent as MainClass).createYouWin();
};
};
}
public function checkStep(_arg1):Boolean{
switch (_arg1){
case 1:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 2:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 3:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 4:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 5:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 6:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 7:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 8:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 9:
if (this.cone != null){
return (this.cone.hitTestPoint(mouseX, mouseY));
};
break;
case 10:
if (this.chocolate != null){
return (this.chocolate.hitTestPoint(mouseX, mouseY));
};
break;
case 11:
if (this.creamBowl != null){
return (this.creamBowl.hitTestPoint(mouseX, mouseY));
};
break;
case 12:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 13:
if (this.cone != null){
return (this.cone.hitTestPoint(mouseX, mouseY));
};
break;
case 400:
return (((((((h1) && (h2))) && (h3))) && (LineDraw)));
case 500:
if (this.cone != null){
return (this.cone.hitTestPoint(mouseX, mouseY));
};
break;
default:
return (false);
};
return (false);
}
function frame942(){
stop();
ready = 1;
if (this.cone != null){
this.cone.buttonMode = true;
};
}
}
}//package
Section 71
//URLHandler (URLHandler)
package {
import flash.net.*;
public class URLHandler {
private var addgamesURL:String;// = "http://www.girlgamesplaza.com/free-games/"
private var addmoreURLRequest:URLRequest;// = null
private var playmoregamesURL:String;// = "http://www.girlgamesplaza.com"
private var playmoregamesURLRequest:URLRequest;// = null
public function URLHandler(){
playmoregamesURL = "http://www.girlgamesplaza.com";
addgamesURL = "http://www.girlgamesplaza.com/free-games/";
playmoregamesURLRequest = null;
addmoreURLRequest = null;
super();
playmoregamesURLRequest = new URLRequest(playmoregamesURL);
addmoreURLRequest = new URLRequest(addgamesURL);
}
public function openPlayMoreGames(){
try {
navigateToURL(playmoregamesURLRequest);
} catch(se:SecurityError) {
return;
};
}
public function openAddMoreGames(){
try {
navigateToURL(addmoreURLRequest);
} catch(se:SecurityError) {
return;
};
}
public function openPictureAuthorURL(_arg1:String){
var pictureAuthorURLRequest:URLRequest;
var url = _arg1;
url = url.substring(1, (url.length - 2));
pictureAuthorURLRequest = new URLRequest(url);
try {
navigateToURL(pictureAuthorURLRequest, "_blank");
} catch(se:SecurityError) {
return;
};
}
}
}//package
Section 72
//Welcome (Welcome)
package {
import flash.events.*;
import flash.display.*;
public class Welcome extends MovieClip {
public var inst:SimpleButton;
public var playBn:SimpleButton;
public var moregames:SimpleButton;
public var plaza:MovieClip;
public var addgames:SimpleButton;
public function init(){
if (!this.hasEventListener(MouseEvent.CLICK)){
this.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playBn":
remove();
(this.parent as MainClass).startGame();
break;
case "inst":
(this.parent as MainClass).createInstruction();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package
Section 73
//WelcomeSound (WelcomeSound)
package {
public dynamic class WelcomeSound extends CustomSound {
}
}//package
Section 74
//WinSound (WinSound)
package {
public dynamic class WinSound extends CustomSound {
}
}//package
Section 75
//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);
};
if ((this.parent as MainClass).FINAL != null){
this.addChild((this.parent as MainClass).FINAL);
(this.parent as MainClass).FINAL.scaleX = 0.5;
(this.parent as MainClass).FINAL.scaleY = 0.5;
(this.parent as MainClass).FINAL.x = 15;
(this.parent as MainClass).FINAL.y = 150;
};
updateScore();
}
public function updateScore(){
if (this.youWinPage.finalScore != null){
this.youWinPage.finalScore.text = MainClass.totalScore.toString();
};
}
public function remove(){
if (this.hasEventListener(MouseEvent.CLICK)){
this.removeEventListener(MouseEvent.CLICK, onClick);
};
}
public function onClick(_arg1:MouseEvent){
switch (_arg1.target.name){
case "playAgain":
(this.parent as MainClass).playAgain();
remove();
break;
case "moregames":
(this.parent as MainClass).playMoreGames();
break;
case "addgames":
(this.parent as MainClass).addMoreGames();
break;
case "plaza":
(this.parent as MainClass).playMoreGames();
break;
};
}
}
}//package