home *** CD-ROM | disk | FTP | other *** search
- function time()
- {
- iduu++;
- bowlTwo._alpha -= 25;
- muffinPlate._alpha += 25;
- finalMix.mix._alpha -= 25;
- mixBucket._visible = false;
- seedMix._visible = false;
- stickBary._visible = false;
- yogurtMix._visible = false;
- bary00._visible = false;
- seed00._visible = false;
- eggMix._visible = false;
- if(iduu == 4)
- {
- ins14._visible = true;
- clearInterval(id);
- dpts++;
- LemonSprey();
- }
- }
- function CloseDoor()
- {
- delete oven.doorOpen.onPress;
- oven.doorOpen.onPress = function()
- {
- delete plate.onPress;
- oven.gotoAndPlay(16);
- onEnterFrame = function()
- {
- if(oven._currentframe == 19)
- {
- delete onEnterFrame;
- TunnerOven();
- }
- };
- };
- }
- function TunnerOven()
- {
- oven.tunnerOven.onPress = function()
- {
- ins16._visible = false;
- tCount++;
- if(tCount <= 3)
- {
- oven.tunnerOven._rotation += 30;
- }
- else
- {
- delete oven.tunnerOven.onPress;
- }
- if(tCount >= 3)
- {
- oven.gotoAndPlay(21);
- }
- };
- }
- stop();
- spoonPwdr._visible = false;
- spoonSoda._visible = false;
- spoonSlt._visible = false;
- bowlMix._visible = false;
- bowlTwo._visible = false;
- butterPlate._visible = false;
- eggMix._visible = false;
- seed00._visible = false;
- seedMix._visible = false;
- yogurtMix._visible = false;
- bary00._visible = false;
- stickBary._visible = false;
- mixBucket._visible = false;
- finalMix._visible = false;
- muffinPlate._visible = false;
- muffinPlate._alpha = 0;
- var dpts = 10;
- var i = 2;
- while(i <= 22)
- {
- eval("ins" + i)._visible = false;
- i++;
- }
- flour.onPress = function()
- {
- ins1._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- flour.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- stopDrag();
- Mouse.show();
- this.gotoAndStop(2);
- this._x = 444.7;
- this._y = 242;
- dpts++;
- }
- };
- _global.BakingBowder = function()
- {
- bakingBowder.onPress = function()
- {
- ins2._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- bakingBowder.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- stopDrag();
- bakingBowder.gotoAndPlay(2);
- Mouse.show();
- this._x = 381.8;
- this._y = 268;
- dpts++;
- }
- };
- };
- _global.BakingSoda = function()
- {
- bakingSoda.onPress = function()
- {
- ins3._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- bakingSoda.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- stopDrag();
- bakingSoda.gotoAndPlay(2);
- Mouse.show();
- this._x = 381.8;
- this._y = 275;
- dpts++;
- }
- };
- };
- _global.Salt = function()
- {
- salt.onPress = function()
- {
- ins4._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- salt.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- stopDrag();
- salt.gotoAndPlay(2);
- Mouse.show();
- this._x = 381.8;
- this._y = 268;
- dpts++;
- }
- };
- };
- _global.BowlMix = function()
- {
- bowlMix.onPress = function()
- {
- ins5._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- bowlMix.onRelease = function()
- {
- if(bowlHit.hitTest(this))
- {
- ins6._visible = true;
- stopDrag();
- Mouse.show();
- this._x = 492;
- this._y = 260;
- dpts++;
- bowlTwo._visible = true;
- delete bowlMix.onPress;
- delete bowlMix.onRelease;
- Sugar();
- }
- };
- };
- Sugar = function()
- {
- sugar.onPress = function()
- {
- ins6._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- sugar.onRelease = function()
- {
- if(bowl.hitTest(this))
- {
- ins7._visible = true;
- stopDrag();
- Mouse.show();
- this.gotoAndStop(2);
- this._x = 407;
- this._y = 247;
- dpts++;
- }
- };
- };
- _global.Butter = function()
- {
- butter.onPress = function()
- {
- ins7._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- butter.onRelease = function()
- {
- if(bowlTwo.hitTest(this))
- {
- ins8._visible = true;
- stopDrag();
- Mouse.show();
- this.gotoAndPlay(2);
- this._x = 11.8;
- this._y = 13.8;
- dpts++;
- }
- };
- };
- var eggCnt = 0;
- _global.Egg = function()
- {
- var i = 0;
- while(i < 3)
- {
- eval("egg" + i).onPress = function()
- {
- ins8._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- eval("egg" + i).onRelease = function()
- {
- if(bowlTwo.hitTest(this))
- {
- eggCnt++;
- stopDrag();
- Mouse.show();
- this.gotoAndPlay(2);
- this._x = 367.8;
- this._y = 239.3;
- if(eggCnt == 2 && eval("egg" + i)._currentframe == eval("egg" + i)._totalframes)
- {
- ins9._visible = true;
- eggMix._visible = true;
- EggMix();
- }
- dpts++;
- }
- };
- i++;
- }
- };
- EggMix = function()
- {
- eggMix.onPress = function()
- {
- ins9._visible = false;
- var i = 0;
- while(i < 3)
- {
- eval("egg" + i)._alpha -= 25;
- i++;
- }
- sugar._alpha -= 25;
- butter._alpha -= 25;
- eggMix.spoonIn.nextFrame();
- eggMix.eggIn.nextFrame();
- if(eggMix.spoonIn._currentframe == eggMix.spoonIn._totalframes)
- {
- delete eggMix.onPress;
- delete eggMix.onRelease;
- ins10._visible = true;
- EllowSeed();
- }
- };
- };
- EllowSeed = function()
- {
- ellowSeed.onPress = function()
- {
- ins10._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- ellowSeed.onRelease = function()
- {
- if(bowlTwo.hitTest(this))
- {
- ins19._visible = true;
- stopDrag();
- Mouse.show();
- this._visible = false;
- seed00._visible = true;
- seedMix._visible = true;
- dpts++;
- EllowMix();
- }
- };
- };
- EllowMix = function()
- {
- sMix.onPress = function()
- {
- ins19._visible = false;
- seed00._alpha -= 25;
- seedMix.stick.nextFrame();
- seedMix.mix.nextFrame();
- if(seedMix.stick._currentframe == seedMix.stick._totalframes)
- {
- delete sMix.onPress;
- delete seedMix.onPress;
- ins11._visible = true;
- Yogurt();
- }
- };
- };
- Yogurt = function()
- {
- yogBot.onPress = function()
- {
- ins20._visible = true;
- ins11._visible = false;
- yogBot.yogGreem._visible = false;
- yogurtMix._visible = true;
- delete yogBot.onPress;
- };
- yogMix.onRelease = function()
- {
- ins20._visible = false;
- yogurtMix.stick.nextFrame();
- yogurtMix.mix.nextFrame();
- if(yogurtMix.stick._currentframe == yogurtMix.stick._totalframes)
- {
- delete yogMix.onRelease;
- ins12._visible = true;
- Bary();
- }
- };
- };
- Bary = function()
- {
- bary.onPress = function()
- {
- ins12._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- bary.onRelease = function()
- {
- if(bowlTwo.hitTest(this))
- {
- ins21._visible = true;
- stopDrag();
- Mouse.show();
- this._visible = false;
- bary00._visible = true;
- stickBary._visible = true;
- delete bary.onPress;
- delete bary.onRelease;
- BaryMix();
- }
- dpts++;
- };
- };
- BaryMix = function()
- {
- bMix.onPress = function()
- {
- ins21._visible = false;
- stickBary.nextFrame();
- bary00._alpha -= 10;
- if(stickBary._currentframe == stickBary._totalframes)
- {
- delete bMix.onPress;
- ins13._visible = true;
- TwoBowlMix();
- }
- };
- };
- TwoBowlMix = function()
- {
- bowlMix.onPress = function()
- {
- ins13._visible = false;
- this.swapDepths(dpts);
- Mouse.hide();
- this.startDrag();
- };
- bowlMix.onRelease = function()
- {
- if(bowlTwo.hitTest(this))
- {
- dpts++;
- stopDrag();
- this._visible = false;
- Mouse.show();
- mixBucket._visible = true;
- mixBucket.swapDepths(dpts);
- mixBucket.gotoAndPlay(2);
- if(mixBucket._currentframe == mixBucket._totalframes)
- {
- delete bowlMix.onPress;
- delete bowlMix.onRelease;
- }
- }
- dpts++;
- };
- };
- var iduu = 0;
- _global.FinalMix = function()
- {
- finalMix.swapDepths(dpts);
- finalMix.onPress = function()
- {
- ins22._visible = false;
- finalMix.stick.nextFrame();
- finalMix.mix.nextFrame();
- if(finalMix.stick._currentframe == finalMix.stick._totalframes)
- {
- delete finalMix.onPress;
- muffinPlate._visible = true;
- id = setInterval(time,500);
- }
- };
- };
- LemonSprey = function()
- {
- sprey.onPress = function()
- {
- ins14._visible = false;
- this.swapDepths(dpts);
- this.startDrag();
- };
- sprey.onRelease = function()
- {
- if(muffinPlate.hitTest(this))
- {
- stopDrag();
- sprey.gotoAndPlay(2);
- this._x = 293;
- this._y = 217;
- }
- dpts++;
- };
- };
- var hit = 0;
- _global.MuffinPlateMove = function()
- {
- function aa()
- {
- oven.gotoAndStop(15);
- muffinPlate._visible = false;
- stopDrag();
- delete muffinPlate.onPress;
- CloseDoor();
- }
- muffinPlate.onPress = function()
- {
- ins15._visible = false;
- Mouse.hide();
- if(oven._currentframe == 14 && oven.hitTest(this))
- {
- aa();
- }
- this.swapDepths(depths++);
- muffinPlate.startDrag();
- updateAfterEvent();
- muffinPlate.onMouseMove = function()
- {
- Mouse.show();
- if(oven.hitTest(this))
- {
- hit += 1;
- if(hit == 1)
- {
- oven.gotoAndPlay(2);
- }
- }
- };
- };
- var _loc2_ = 0;
- };
- var tCount = 0;
-