Frame 1
function tickerText(field_txt, str) {
field_txt.text = "";
if (!_root.tickerTextCounter_mc) {
_root.createEmptyMovieClip("tickerTextCounter_mc", _root.getNextHighestDepth());
}
_root.tickerTextCounter_mc.str = str;
_root.tickerTextCounter_mc.counter = 0;
_root.tickerTextCounter_mc.textTarget = field_txt;
_root.tickerTextCounter_mc.onEnterFrame = function () {
if (this.textTarget._visible) {
this.textTarget.text = this.str.substr(0, this.textTarget.text.length + 1);
if (this.str == this.textTarget.text) {
delete this.onEnterFrame;
}
this.counter++;
} else {
delete this.onEnterFrame;
}
};
}
function bounceText(txt_mc, bounceDelay) {
if (!bounceDelay) {
bounceDelay = 3;
}
txt_mc.attachMovie("bouncerMC", "bouncer_mc", txt_mc.getNextHighestDepth());
txt_mc.bouncer_mc._visible = false;
txt_mc.timer = 1;
txt_mc.bounceDelay = bounceDelay;
txt_mc.onEnterFrame = function () {
this.timer++;
if (!(this.timer % this.bounceDelay)) {
t = 1;
while (t <= 100) {
t_mc = txt_mc[("t" + t) + "_mc"];
if (!t_mc) {
delete this.onEnterFrame;
break;
}
if (!t_mc.inited) {
t_mc.inited = true;
t_mc.timer = 0;
t_mc.oX = t_mc._x;
t_mc.oY = t_mc._y;
t_mc.onEnterFrame = function () {
this.timer++;
if (this.timer > this._parent.bouncer_mc._totalframes) {
this.timer = 0;
}
this._x = this.oX + this._parent.bouncer_mc.frameCoords[this.timer].x;
this._y = this.oY + this._parent.bouncer_mc.frameCoords[this.timer].y;
};
break;
}
t++;
}
}
};
}
Array.prototype.inArray = function (element) {
for (i in this) {
if (this[i] === element) {
return(true);
}
if (this[i] instanceof Array) {
return(this[i].inArray(element));
}
}
return(false);
};
ASSetPropFlags(Array.prototype, "inArray", 1);
Array.prototype.shuffle = function () {
i = 0;
while (i < this.length) {
this.push(this.splice(Math.floor(Math.random() * this.length), 1));
i++;
}
};
MovieClip.prototype.hideMovieClip = function (element) {
this._originalX = this._x;
this._originalY = this._y;
this._originalWidth = this._width;
this._originalHeight = this._height;
this._x = -100;
this._y = -100;
this._width = (this._height = 1);
this._visible = false;
this._hidden = true;
};
ASSetPropFlags(MovieClip.prototype, "hideMovieClip", 1);
MovieClip.prototype.showMovieClip = function (element) {
if (this._hidden) {
this._x = this._originalX;
this._y = this._originalY;
this._width = this._originalWidth;
this._height = this._originalHeight;
this._visible = true;
this._hidden = false;
}
};
ASSetPropFlags(MovieClip.prototype, "showMovieClip", 1);
MovieClip.prototype.getNextLowestDepth = function () {
var _local3;
var _local2;
for (var _local4 in this) {
_local3 = this[_local4].getDepth();
if ((!isNaN(_local3)) && (this[_local4]._parent == this)) {
if ((_local3 < _local2) || (_local2 == undefined)) {
_local2 = _local3;
}
}
}
return(_local2 - 1);
};
function playSound(soundId, newVol, repetitions, isolate) {
if (!repetitions) {
repetitions = 1;
}
initSound = true;
if (isolate == 1) {
s = 0;
while (s <= sndEffectCnt) {
if (_root.sounds["sound_" + s].sound.soundId == soundId) {
if (initSound) {
_root.sounds["sound_" + s].sound.stop();
_root.sounds["sound_" + s].sound.start(0, repetitions);
my_sound = _root.sounds["sound_" + s].sound;
initSound = false;
} else {
_root.sounds["sound_" + s].sound.stop();
_root.sounds["sound_" + s].removeMovieClip();
}
}
s++;
}
} else if (isolate == 2) {
s = 0;
while (s <= sndEffectCnt) {
if (_root.sounds["sound_" + s].sound.soundId == soundId) {
initSound = false;
}
s++;
}
}
if (initSound) {
sndEffectCnt++;
sndCntainerId = "sound_" + sndEffectCnt;
if (!_root.sounds) {
_root.createEmptyMovieClip("sounds", _root.getNextHighestDepth());
}
_root.sounds.createEmptyMovieClip(sndCntainerId, _root.sounds.getNextHighestDepth());
_root.sounds[sndCntainerId].sound = new Sound(_root.sounds[sndCntainerId]);
my_sound = _root.sounds[sndCntainerId].sound;
my_sound.cntId = sndCntainerId;
my_sound.soundId = soundId;
my_sound.attachSound(soundId);
if (!newVol) {
switch (soundId) {
case "tickSND" :
newVol = 150;
break;
case "tockSND" :
newVol = 150;
break;
case "ding.wav" :
newVol = 180;
break;
case "chop.wav" :
newVol = 130;
break;
case "burner.wav" :
newVol = 160;
break;
case "pan_lift.wav" :
newVol = 150;
break;
case "saute.wav" :
newVol = 130;
break;
case "drop_organs.wav" :
newVol = 140;
break;
case "hand_in_body.wav" :
newVol = 140;
break;
case "stuffing.wav" :
newVol = 140;
break;
case "saw.wav" :
newVol = 140;
break;
case "add_ingredients_to_pan.wav" :
newVol = 160;
break;
case "egg_crack.wav" :
newVol = 140;
break;
case "flap.wav" :
newVol = 250;
break;
case "sword.wav" :
newVol = 30;
break;
case "scream.mp3" :
newVol = 70;
break;
case "screen_display.wav" :
newVol = 70;
break;
case "egg_drop_in_bowl.wav" :
newVol = 250;
break;
case "whistle.wav" :
newVol = 200;
break;
case "strain_gravy1.wav" :
newVol = 150;
break;
case "oven.wav" :
newVol = 170;
break;
case "btn_release.wav" :
newVol = 45;
break;
case "bonus.wav" :
newVol = 55;
break;
case "pluck.wav" :
newVol = 30;
break;
case "drip.wav" :
newVol = 30;
break;
case "stir.wav" :
newVol = 50;
break;
case "done.wav" :
newVol = 45;
break;
case "on_off_button.wav" :
newVol = 120;
break;
case "final_score.wav" :
newVol = 55;
break;
case "spray.wav" :
newVol = 80;
break;
case "result_1.wav" :
newVol = 45;
break;
case "result_2.wav" :
newVol = 50;
break;
case "result_3.wav" :
newVol = 50;
break;
default :
newVol = 100;
}
}
my_sound.start(0, repetitions);
my_sound.setVolume(newVol);
my_sound.onSoundComplete = function () {
_root.sounds[this.cntId].removeMovieClip();
};
}
return(my_sound);
}
function stopSound(soundId) {
s = 0;
while (s <= sndEffectCnt) {
if (_root.sounds["sound_" + s].sound.soundId == soundId) {
_root.sounds["sound_" + s].sound.stop();
_root.sounds["sound_" + s].removeMovieClip();
}
s++;
}
}
function fadeInMusic(musicId, targetVolume) {
if (!targetVolume) {
targetVolume = 100;
}
playMusic(musicId, 1);
if (!_root.sounds.music.fadingIn) {
_root.sounds.music.fadingIn = true;
_root.sounds.music.targetVolume = targetVolume;
_root.sounds.music.onEnterFrame = function () {
this.audio.setVolume(this.audio.getVolume() + 1);
if (this.audio.getVolume() >= this.targetVolume) {
this.audio.setVolume(this.targetVolume);
_root.sounds.music.fadingOut = (_root.sounds.music.fadingIn = false);
delete this.onEnterFrame;
}
};
}
}
function fadeOutMusic() {
if (!_root.sounds.music.fadingOut) {
_root.sounds.music.targetVolume = 0;
_root.sounds.music.fadingOut = true;
_root.sounds.music.onEnterFrame = function () {
this.audio.setVolume(this.audio.getVolume() - 1);
if (this.audio.getVolume() <= this.targetVolume) {
this.audio.setVolume(this.targetVolume);
_root.sounds.music.fadingOut = (_root.sounds.music.fadingIn = false);
delete this.onEnterFrame;
}
};
}
}
function playMusic(musicId, newVol) {
if (!_root.sounds) {
_root.createEmptyMovieClip("sounds", _root.getNextHighestDepth());
}
if (!_root.sounds.music) {
_root.sounds.createEmptyMovieClip("music", _root.sounds.getNextHighestDepth());
}
initSound = true;
if (_root.sounds.music.audio) {
if (_root.sounds.music.audio.musicId == musicId) {
initSound = false;
} else {
_root.sounds.music.audio.stop();
}
} else {
_root.sounds.music.audio = new Sound(_root.sounds.music);
}
my_music = _root.sounds.music.audio;
if (initSound) {
my_music.onEnterFrame = null;
_root.sounds.music.fadingIn = (_root.sounds.music.fadingOut = false);
my_music.attachSound(musicId);
my_music.musicId = musicId;
if (!newVol) {
newVol = 100;
}
my_music.start(0, 9999);
my_music.setVolume(newVol);
my_music.onSoundComplete = function () {
_root.sounds.music.removeMovieClip();
};
}
return(my_music);
}
function stopMusic() {
if (_root.sounds.music.audio) {
_root.sounds.music.audio.stop();
}
}
if (!sndEffectCnt) {
sndEffectCnt = 0;
}
if (!petaVersion) {
petaVersion = "peta";
}
mamaMood = "evil";
petaWebsite = ((petaVersion == "peta") ? "http://www.peta.org/cooking-mama/" : "http://www.peta2.com/cooking-mama/");
advocacyLink = ((petaVersion == "peta") ? "http://getactive.peta.org/campaign/mama_kills_animals" : "http://getactive.peta.org/campaign/p2_mama_kills_animals");
minigameList = new Array("1_1", "1_2", "2_2", "2_3", "2_4", "2_5", "2_6", "3_2", "3_3", "3_4", "4_1", "4_2", "4_3", "4_4");
stageTitle_1 = "Prepare the Turkey";
stageTitle_2 = "Stuff the Turkey";
stageTitle_3 = "Make the Giblet Gravy";
stageTitle_4 = "Mama Loves Animals";
fact_1 = "In the U.S., almost all birds have their throats slit while they're still conscious, and according to the U.S. Department of Agriculture, millions are scalded to death in tanks of hot water.";
fact_2 = "Turkeys are drugged and bred to grow so quickly that their legs cannot support their weight. Countless birds slowly starve to death within inches of food after they become crippled and are unable to move.";
fact_3 = "Every year in the U.S., 300 million turkeys are killed for their flesh. Almost all spend their entire lives on factory farms and have no federal legal protections.";
fact_4 = "Turkeys have unique personalities, just like dogs and cats. Some are social, and some are loners. People who live with turkeys in animal sanctuaries report that they even have varying tastes in music.";
bonusDefinitions = new Array(Array(Array("media", "'Meet Your Meat' Video", petaWebsite + "bonus-video2.asp")), Array(Array("media", "Butterball Investigation Video", petaWebsite + "bonus-video.asp"), Array("wallpaper", "'Mama Kills Animals' Wallpaper", petaWebsite + "bonus-wallpaper1.asp")), Array(Array("media", "North American Turkey Slaughter Video", petaWebsite + "bonus-video3.asp"), Array("banner", "'Mama Kills Animals' Web Banner", petaWebsite + "bonus-banner1.asp")), Array(Array("recipe", "Delicious Turkey-Free Recipes", petaWebsite + "bonus-recipe.asp"), Array("wallpaper", "'Mama Loves Animals' Wallpaper", petaWebsite + "bonus-wallpaper2.asp")));
title_1_1 = "Pluck the Turkey";
instructions_1_1 = "Click on the feathers with your mouse to pluck them from the dead turkey.";
title_1_2 = "Remove the Internal Organs";
instructions_1_2 = "Using your mouse, stick your hand inside the turkey, remove the organs, and place them in the mixing bowl.";
title_1_3 = "Soak Up the Blood";
instructions_1_3 = "Use your mouse to pick up a cloth, and then move the cloth around to wipe off the corpse and remove all the blood.";
title_2_1 = "Saut\u00E9 Sausage and Veggies";
instructions_2_1 = "Use the mouse to click on each ingredient and add it to your pan. Use the mouse to grab the handle of the pan and saut\u00E9 by holding the pan and moving your mouse back and forth. Hit \"Done\" when ready.";
title_2_2 = "Crack the Eggs";
instructions_2_2 = "Use your mouse to pick up the eggs, crack them, and deposit them in the bowl.";
title_2_3 = "Mix the Ingredients";
instructions_2_3 = "Click on each ingredient when it's time to add it to the bowl, then click and drag the mouse in a circular motion to stir the mixture.";
title_2_4 = "Stuff the Bird";
instructions_2_4 = "Grab the stuffing by clicking it with the mouse, then drag it over the turkey and release. Be careful not to use too much!";
title_2_5 = "Remove the Head";
instructions_2_5 = "Follow the guide arrows on the screen and use your mouse to saw back and forth to remove the head.";
title_2_6 = "Cook the Turkey";
instructions_2_6 = "Turn on the oven by pressing the \"on\" button and turn it off when the temperature reaches orange.";
title_3_1 = "Find the Giblets and Liver";
instructions_3_1 = "Find the giblets and liver by matching them to the images on your screen. Use the down arrow key to move your hand into the bag, use the left and right arrow keys to move from organ to organ, and then hit A to select and remove.";
title_3_2 = "Chop the Neck";
instructions_3_2 = "Follow the guide arrows on the screen and use your mouse to saw back and forth to cut the neck into three parts.";
title_3_3 = "Saut\u00E9 the Body Parts";
instructions_3_3 = "Turn on the oven burner. Use the mouse to click on each ingredient and add it to your pan. Use the mouse to grab the handle of the pan and saut\u00E9 by holding the pan and moving your mouse back and forth.";
title_3_4 = "Strain the Gravy";
instructions_3_4 = "Use the mouse to click on the body parts and remove them from your gravy. Careful, it's hot!";
title_4_1 = "Mash the Tofu";
instructions_4_1 = "Use the mouse to grab chunks of tofu and crumble it!";
title_4_2 = "Shape the Tofu-Turkey";
instructions_4_2 = "Follow the arrows to shape the tofu.";
title_4_3 = "Baste the Tofu-Turkey";
instructions_4_3 = "Fill the baster with sauce by clicking your mouse then click to release it over the tofu turkey.";
title_4_4 = "Cook Your Tofu-Turkey";
instructions_4_4 = "Turn on the oven by pressing the \"on\" button and turn it off when the temperature reaches orange.";
function showLoadingScreen() {
_root.attachMovie("loadingScreenMC", "gameLoadingScreen", _root.getNextHighestDepth());
}
if (!minigameId) {
showLoadingScreen();
} else {
gotoAndStop ("loaded");
}
stop();
Frame 31
function nextMinigame(repeatGame) {
nextSplash = "Instructions";
if (!repeatGame) {
if (_root.gameStatus.current.timeCount) {
_root.gameStatus.pastResults[minigameId] = _root.gameStatus.current;
}
minigameId++;
prevRecipeIndex = minigameList[minigameId - 1].substr(0, minigameList[minigameId - 1].indexOf("_"));
recipeIndex = minigameList[minigameId].substr(0, minigameList[minigameId].indexOf("_"));
if (recipeIndex != prevRecipeIndex) {
if (_root.gameResults) {
nextSplash = "RecipeResults";
}
}
}
if (_root.gameResults) {
_root.gameResults.removeMovieClip();
}
_root.attachMovie(("minigame" + nextSplash) + "MC", "game" + nextSplash, _root.getNextHighestDepth());
if (!_root.gameStatus) {
_root.gameStatus = new Object();
_root.gameStatus.pastResults = new Array();
_root.gameStatus.bonuses = new Array();
}
_root.gameStatus.current = new Object();
_root.gameStatus.current.gamePoints = 0;
_root.gameStatus.current.gameMistakes = 0;
}
function minigameResults() {
_root.gameStatus.current.calculated = true;
_root.gameStatus.current.gameTotalTime = _root.gameboard.gameTime;
_root.gameStatus.current.timeCount = _root.gameboard.clock_mc.timeCount;
_root.gameStatus.current.timeScore = Math.ceil(100 * (_root.gameStatus.current.timeCount / _root.gameStatus.current.gameTotalTime));
_root.gameStatus.current.gameTotalPoints = _root.gameboard.gameTotalPoints;
_root.gameStatus.current.evalScore = Math.ceil(100 * (_root.gameStatus.current.gamePoints / _root.gameStatus.current.gameTotalPoints));
_root.gameStatus.pastResults[minigameId] = _root.gameStatus.current;
if (_root.gameboard) {
_root.gameboard.removeMovieClip();
}
Mouse.show();
_root.attachMovie("minigameResultsMC", "gameResults", _root.getNextHighestDepth());
}
function getTotalScore() {
_root.gameStatus.totalScore = 0;
i = 0;
while (i < _root.minigameList.length) {
mId = _root.minigameList[i];
rId = mId.substr(0, mId.indexOf("_"));
if (((_root.recipeIndex == 4) && (rId == 4)) || ((_root.recipeIndex < 4) && (rId < 4))) {
if (_root.gameStatus.pastResults[i].calculated) {
_root.gameStatus.totalScore = _root.gameStatus.totalScore + (_root.gameStatus.pastResults[i].evalScore + _root.gameStatus.pastResults[i].timeScore);
}
}
i++;
}
return(_root.gameStatus.totalScore);
}
function hideInstructions() {
if (_root.gameInstructions) {
_root.gameInstructions.removeMovieClip();
}
initGameboard();
}
function hideRecipeResults() {
if (_root.gameRecipeResults) {
_root.gameRecipeResults.removeMovieClip();
}
showRecipeSelection();
}
function showRecipeSelection() {
Mouse.show();
if (_root.gameTitleScreen) {
_root.gameTitleScreen.removeMovieClip();
}
if (_root.gameInstructions) {
_root.gameInstructions.removeMovieClip();
}
if (_root.gameBonuses) {
_root.gameBonuses.removeMovieClip();
}
_root.attachMovie("selectRecipeMC", "gameRecipeSelection", _root.getNextHighestDepth());
}
function showBonuses() {
Mouse.show();
if (_root.gameTitleScreen) {
_root.gameTitleScreen.removeMovieClip();
}
_root.attachMovie("bonusesScreenMC", "gameBonuses", _root.getNextHighestDepth());
}
function showTitleScreen() {
Mouse.show();
_root.mamaMood = "evil";
if (_root.gameLoadingScreen) {
_root.gameLoadingScreen.removeMovieClip();
}
if (_root.gameBonuses) {
_root.gameBonuses.removeMovieClip();
}
if (_root.gameRecipeSelection) {
_root.gameRecipeSelection.removeMovieClip();
}
if (_root.gameRecipeResults) {
_root.gameRecipeResults.removeMovieClip();
}
_root.attachMovie("titleScreenMC", "gameTitleScreen", _root.getNextHighestDepth());
}
function makeRecipe(recipeId) {
if (_root.gameRecipeSelection) {
_root.gameRecipeSelection.removeMovieClip();
}
i = 0;
while (i < minigameList.length) {
recipeIndex = minigameList[i].substr(0, minigameList[i].indexOf("_"));
if (recipeIndex == recipeId) {
minigameId = i - 1;
break;
}
i++;
}
nextMinigame();
}
function initGameboard() {
if (_root.gameInstructions) {
_root.gameInstructions.removeMovieClip();
}
_root.gameStatus.pastResults[minigameId] = null;
_root.attachMovie("minigame" + minigameList[minigameId], "gameboard", _root.getNextHighestDepth());
gameboard.attachMovie("clockMC", "clock_mc", gameboard.getNextHighestDepth());
gameboard.clock_mc._x = 485;
gameboard.clock_mc._y = 65;
gameboard.mouse = new Object();
gameboard.mouse.clickChange = false;
gameboard.mouse.clickStatus = 0;
gameboard.mouse.oldClickStatus = 0;
gameboard.mouse.avatar = new Object();
gameboard.mouse.avatar.targetObj = null;
gameboard.mouse.avatar._xOffset = 0;
gameboard.mouse.avatar._yOffset = 0;
gameboard.mouse.avatar.boundaryObj = null;
gameboard.mouse.avatar.maskObj = null;
gameboard.mouse.lastX = _xmouse;
gameboard.mouse.lastY = _ymouse;
gameboard.defaultMouseSymbol = null;
gameboard.firstRun = true;
gameboard.gameFinished = false;
gameboard.gameStarted = false;
_root.stopMusic();
gameboard.attachMovie("countdownMC", "countdown_mc", gameboard.getNextHighestDepth());
gameboard.countdown_mc._x = 275;
gameboard.countdown_mc._y = 185;
Mouse.hide();
}
function startMinigame() {
gameboard.gameStarted = true;
_root.playMusic("playMUS");
onEnterFrame = gameEngine;
}
stop();
function gameEngine() {
with (gameboard) {
mouse.clickChange = ((mouse.clickStatus != mouse.oldClickStatus) ? true : false);
mouse.clicked = ((mouse.clickChange && (mouse.clickStatus == 1)) ? true : false);
mouse.unClicked = ((mouse.clickChange && (mouse.clickStatus == 0)) ? true : false);
mouse.dx = _xmouse - mouse.lastX;
mouse.dy = _ymouse - mouse.lastY;
mouse.lastX = _xmouse;
mouse.lastY = _ymouse;
targetCollected = false;
if (firstRun) {
if (defaultMouseBoundary) {
gameboard.attachMovie(defaultMouseBoundary, "mouseBoundary_mc", gameboard.getNextHighestDepth());
gameboard.mouseBoundary_mc._visible = false;
gameboard.mouse.avatar.boundaryObj = gameboard.mouseBoundary_mc;
}
if (!defaultMouseSymbol) {
gameboard.attachMovie("pointerMC", "pointer_mc", gameboard.getNextHighestDepth());
defaultMouseSymbol = "pointer_mc";
}
firstRun = false;
}
if (defaultMouseSymbol) {
Mouse.hide();
repositionMousePointer = true;
if (gameboard.mouse.avatar.boundaryObj) {
repositionMousePointer = (gameboard.mouse.avatar.boundaryObj.hitTest(_xmouse, _ymouse, 1) ? true : false);
}
if (repositionMousePointer === true) {
mdx = _root.mouseDelay * (_xmouse - gameboard[defaultMouseSymbol]._x);
mdy = _root.mouseDelay * (_ymouse - gameboard[defaultMouseSymbol]._y);
gameboard[defaultMouseSymbol]._x = gameboard[defaultMouseSymbol]._x + mdx;
gameboard[defaultMouseSymbol]._y = gameboard[defaultMouseSymbol]._y + mdy;
} else {
repositionMousePointer = (gameboard.mouse.avatar.boundaryObj.hitTest(gameboard[defaultMouseSymbol]._x + (mouse.dx * 0.5), gameboard[defaultMouseSymbol]._y + (mouse.dy * 0.5), 1) ? 1 : 0);
if (repositionMousePointer === 1) {
gameboard[defaultMouseSymbol]._x = gameboard[defaultMouseSymbol]._x + (0.5 * mouse.dx);
gameboard[defaultMouseSymbol]._y = gameboard[defaultMouseSymbol]._y + (0.5 * mouse.dy);
}
}
if (mouse.clickChange && (gameboard[defaultMouseSymbol].grabable)) {
if (mouse.clicked) {
gameboard[defaultMouseSymbol].gotoAndStop("grab");
} else {
gameboard[defaultMouseSymbol].gotoAndStop("idle");
}
}
}
if (gameboard.mouse.avatar.targetObj) {
if (repositionMousePointer === true) {
gameboard.mouse.avatar.targetObj._x = gameboard.mouse.avatar.targetObj._x + mdx;
gameboard.mouse.avatar.targetObj._y = gameboard.mouse.avatar.targetObj._y + mdy;
} else if (repositionMousePointer === 1) {
gameboard.mouse.avatar.targetObj._x = gameboard.mouse.avatar.targetObj._x + (0.5 * mouse.dx);
gameboard.mouse.avatar.targetObj._y = gameboard.mouse.avatar.targetObj._y + (0.5 * mouse.dy);
}
}
var frameActions = new Array();
st = 0;
while (st < activeTargets.length) {
target = _root.gameboard[activeTargets[st]];
if (!target.expended) {
if (!target.idName) {
target.idName = activeTargets[st];
}
if (target.falling) {
if (!target.dy) {
target.dy = 1;
}
if (!target.fallRate) {
target.fallRate = 1;
}
target._y = target._y + target.dy;
if ((floor_mc && (target.hitTest(floor_mc))) || (target._y > 1000)) {
target.falling = false;
target.dy = 0;
if (target.event_floorHit) {
target.event_floorHit.targetId = target.idName;
frameActions[frameActions.length] = target.event_floorHit;
}
}
if (target.fallTarget && (target.hitTest(gameboard[target.fallTarget]))) {
target.falling = false;
target.dy = 0;
if (target.event_fallHit) {
target.event_fallHit.targetId = target.idName;
frameActions[frameActions.length] = target.event_fallHit;
}
}
target.dy = target.dy + target.fallRate;
if (target.dy > 30) {
target.dy = 30;
}
}
if (target.springing) {
xDiff = target.xHome - target._x;
yDiff = target.yHome - target._y;
target._x = target._x + (0.5 * xDiff);
target._y = target._y + (0.5 * yDiff);
if ((Math.abs(xDiff) + Math.abs(yDiff)) < 1) {
target._x = target.xHome;
target._y = target.yHome;
target.springing = false;
}
}
if (gameboard.mouse.avatar.targetObj && (!gameboard.mouse.avatar.targetObj.dragging)) {
target.hit = target.hitTest(gameboard.mouse.avatar.targetObj);
} else if (gameboard[defaultMouseSymbol] && (gameboard[defaultMouseSymbol].hitArea_mc)) {
target.hit = target.hitTest(gameboard[defaultMouseSymbol].hitArea_mc);
} else {
target.hit = target.hitTest(_xmouse, _ymouse, 1);
}
target.hitChange = (target.oldHit != null) && (target.hit != target.oldHit);
if (target.hit) {
if ((!mouse.clickChange) && (target.hitChange)) {
if (target.event_hit) {
target.event_hit.targetId = target.idName;
frameActions[frameActions.length] = target.event_hit;
}
}
if (mouse.clickChange && (mouse.clicked)) {
if (target.event_press) {
target.event_press.targetId = target.idName;
frameActions[frameActions.length] = target.event_press;
}
if (target.dragable && (!targetCollected)) {
if ((target.dropType == "spring") && (!target.springing)) {
target.xHome = target._x;
target.yHome = target._y;
}
target.falling = false;
target.springing = false;
target.dy = 0;
target.dragging = true;
mouse.avatar._xOffset = _xmouse - target._x;
mouse.avatar._yOffset = _ymouse - target._y;
mouse.avatar.targetObj = target;
targetCollected = true;
}
}
if (mouse.clickChange && (!mouse.clicked)) {
if (target.event_release) {
target.event_release.targetId = target.idName;
frameActions[frameActions.length] = target.event_release;
}
}
}
if (((!target.hit) && (target.hitChange)) && (target.event_unhit)) {
target.event_unhit.targetId = target.idName;
frameActions[frameActions.length] = target.event_unhit;
}
if (target.attractTargets) {
target.attractHit = false;
at = 0;
while (at < target.attractTargets.length) {
attractTarget = _root.gameboard[target.attractTargets[at]];
if (target.hitTest(attractTarget)) {
target.attractHit = true;
break;
}
at++;
}
target.attractHitChange = (target.oldAttractHit != null) && (target.attractHit != target.oldAttractHit);
target.oldAttractHit = target.attractHit;
if ((target.attractHitChange && (target.attractHit)) && (target.event_attractTargetsHit)) {
target.event_attractTargetsHit.targetId = target.idName;
frameActions[frameActions.length] = target.event_attractTargetsHit;
}
}
if ((!mouse.clickStatus) && (target.dragging)) {
target_release_action = new Object();
target_release_action.event_releaseTarget = target;
target_release_action.targetId = target.idName;
frameActions[frameActions.length] = target_release_action;
if ((!target.hit) && (target.event_release)) {
target.event_release.targetId = target.idName;
frameActions[frameActions.length] = target.event_release;
}
}
target.oldHit = target.hit;
}
st++;
}
debug_txt.text = (_root.gameStatus.current.gamePoints + " / ") + gameboard.activeTargets;
if (!gameFinished) {
a = 0;
while (a < frameActions.length) {
action = frameActions[a];
if (action.activeTargets_add) {
ast = 0;
while (ast < action.activeTargets_add.length) {
if (!activeTargets.inArray(action.activeTargets_add[ast])) {
activeTargets[activeTargets.length] = action.activeTargets_add[ast];
}
ast++;
}
}
if (action.activeTargets_set) {
activeTargets = new Array();
activeTargets = activeTargets.concat(action.activeTargets_set);
}
if (action.activeTargets_remove) {
ast = 0;
while (ast < action.activeTargets_remove.length) {
east = 0;
while (east < activeTargets.length) {
if (activeTargets[east] == action.activeTargets_remove[ast]) {
activeTargets.splice(east, 1);
break;
}
east++;
}
ast++;
}
}
if (action.gamePoints) {
_root.gameStatus.current.gamePoints = action.gamePoints;
}
if (action.gamePoints_add) {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + action.gamePoints_add;
}
if (action.gameMistakes) {
_root.gameStatus.current.gameMistakes = action.gameMistakes;
}
if (action.gameMistakes_add) {
_root.gameStatus.current.gameMistakes = _root.gameStatus.current.gameMistakes + action.gameMistakes_add;
}
if (action.event_releaseTarget) {
target = action.event_releaseTarget;
target.dragging = false;
if (gameboard.mouse.avatar.targetObj == target) {
gameboard.mouse.avatar.targetObj = null;
switch (target.dropType) {
case "fall" :
if (!target.fallRate) {
target.fallRate = 1;
}
target.dy = target.fallRate * 5;
target.falling = true;
break;
case "spring" :
target.springing = true;
}
}
}
if (action.setMouseMask) {
if (gameboard.mouse.avatar.maskObj) {
gameboard.mouse.avatar.targetObj.setMask(null);
gameboard.mouse.avatar.maskObj.removeMovieClip();
}
gameboard.attachMovie(action.setMouseMask, "mouseMask_mc", gameboard.getNextHighestDepth());
gameboard.mouse.avatar.maskObj = gameboard.mouseMask_mc;
gameboard.mouse.avatar.targetObj.setMask(gameboard.mouseMask_mc);
}
if (action.clearMouseMask) {
if (gameboard.mouse.avatar.maskObj) {
gameboard.mouse.avatar.targetObj.setMask(null);
gameboard.mouse.avatar.maskObj.removeMovieClip();
}
}
if (action.setMouseBoundary) {
if (gameboard.mouse.avatar.boundaryObj) {
gameboard.mouse.avatar.boundaryObj.removeMovieClip();
}
gameboard.attachMovie(action.setMouseBoundary, "mouseBoundary_mc", gameboard.getNextHighestDepth());
gameboard.mouseBoundary_mc._visible = false;
gameboard.mouse.avatar.boundaryObj = gameboard.mouseBoundary_mc;
}
if (action.clearMouseBoundary) {
if (gameboard.mouse.avatar.boundaryObj) {
gameboard.mouse.avatar.boundaryObj.removeMovieClip();
gameboard.mouse.avatar.boundaryObj = null;
}
}
if (action.customAction) {
action.customAction(action.targetId);
}
if (action.exclusive) {
frameActions = null;
}
a++;
}
if (gameSuccessTest()) {
gameFinish();
}
}
mouse.oldClickStatus = mouse.clickStatus;
}
}
function dropBlood(blood_x, blood_y, parentObject, bloodSymbol) {
if (!parentObject) {
parentObject = _root;
}
if (!blood_x) {
blood_x = _xmouse - parentObject._x;
}
if (!blood_y) {
blood_y = _ymouse - parentObject._y;
}
if (!bloodSymbol) {
bloodSymbol = "bloodDropMC";
}
bloodDrop++;
bloodDropId = ("blood" + bloodDrop) + "_mc";
parentObject.attachMovie(bloodSymbol, bloodDropId, parentObject.getNextHighestDepth());
bloodDrop_mc = parentObject[bloodDropId];
bloodDrop_mc._x = blood_x - (_root._xmouse - _root.gameboard[_root.gameboard.defaultMouseSymbol]._x);
bloodDrop_mc._y = blood_y - (_root._ymouse - _root.gameboard[_root.gameboard.defaultMouseSymbol]._y);
bloodDrop_mc.scaleFactor = (100 / parentObject._xscale) * (0.5 + (1.5 * Math.random()));
bloodDrop_mc._xscale = bloodDrop_mc._xscale * bloodDrop_mc.scaleFactor;
bloodDrop_mc._yscale = bloodDrop_mc._yscale * bloodDrop_mc.scaleFactor;
bloodDrop_mc.dy = bloodDrop_mc.scaleFactor;
bloodDrop_mc.onEnterFrame = function () {
this.dy = this.dy * 1.2;
this._y = this._y + this.dy;
if (this._y > 700) {
if (Math.random() < 0.1) {
_root.playSound("drip.wav", "", "", 2);
}
this.removeMovieClip();
}
if (this.hitTest(_root.gameboard.floor_mc) && (Math.random() < 0.2)) {
if (Math.random() < 0.1) {
_root.playSound("drip.wav", "", "", 2);
}
this.gotoAndPlay("hit");
delete this.onEnterFrame;
}
};
}
function gameFinish() {
if (!_root.gameboard.gameFinished) {
_root.gameboard.clock_mc.onEnterFrame = null;
_root.gameboard.clock_mc.ticktock_mc.stop();
_root.gameboard.gameFinished = true;
_root.gameboard.attachMovie("doneMC", "done_mc", _root.gameboard.getNextHighestDepth());
_root.gameboard.done_mc._x = 112;
_root.gameboard.done_mc._y = 220;
_root.fadeOutMusic();
_root.playSound("done.wav");
}
}
function gameComplete() {
onEnterFrame = null;
minigameResults();
}
mouseDelay = 0.35;
bloodDrop = 0;
onMouseDown = function () {
gameboard.mouse.clickStatus = 1;
};
onMouseUp = function () {
gameboard.mouse.clickStatus = 0;
};
Frame 40
gotoAndStop (1);
Symbol 6 MovieClip Frame 1
glyphs = 4;
initLeaf = function () {
this._xscale = (this._yscale = (Math.random() * 80) + 50);
this._r = (Math.random() * 4) - 2;
this.onEnterFrame = function () {
this._rotation = this._rotation + this._r;
this._y = this._y + (this._xscale / 60);
if (this._y > 450) {
this._y = -40;
this.inited = false;
initLeaf();
}
};
gotoAndStop(Math.ceil(Math.random() * glyphs));
this.inited = true;
};
if (!this.inited) {
initLeaf();
}
Symbol 26 MovieClip [loadingScreenMC] Frame 34
this.onEnterFrame = function () {
pLoaded = Math.ceil((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (status_mc.loaded_txt.text < pLoaded) {
status_mc.loaded_txt.text++;
}
if (status_mc.loaded_txt.text < pLoaded) {
status_mc.loaded_txt.text++;
}
if (status_mc.loaded_txt.text == 100) {
gotoAndPlay ("loadMark1");
delete this.onEnterFrame;
}
turkey_mc.eye1_mc._xscale = (turkey_mc.eye1_mc._yscale = (turkey_mc.eye2_mc._xscale = (turkey_mc.eye2_mc._yscale = (0.7 * (100 - status_mc.loaded_txt.text)) + 30)));
};
Symbol 26 MovieClip [loadingScreenMC] Frame 69
stop();
Symbol 26 MovieClip [loadingScreenMC] Frame 154
_root.gotoAndStop("loaded");
Symbol 26 MovieClip [loadingScreenMC] Frame 155
_root.playSound("flap.wav");
Symbol 26 MovieClip [loadingScreenMC] Frame 213
_root.playSound("scream.mp3");
Symbol 26 MovieClip [loadingScreenMC] Frame 264
_root.playSound("sword.wav");
Symbol 26 MovieClip [loadingScreenMC] Frame 275
_root.playSound("add_ingredients_to_pan.wav");
_root.playSound("hand_in_body.wav");
Symbol 26 MovieClip [loadingScreenMC] Frame 282
_root.stopSound("flap.wav");
Symbol 26 MovieClip [loadingScreenMC] Frame 328
_root.showTitleScreen();
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 9
trace("playing");
Symbol 35 MovieClip Frame 30
stop();
Symbol 41 MovieClip Frame 1
button_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
Symbol 42 MovieClip Frame 1
this.onEnterFrame = function () {
if (!(this._currentframe % 8)) {
gotoAndPlay(8 * Math.floor(Math.random() * 5));
}
};
Symbol 67 MovieClip Frame 1
Symbol 73 MovieClip [bonusesScreenMC] Frame 1
function showBonuses(bonusInc) {
if (!bonuses_mc.springing) {
if (!bonusInc) {
bonusInc = 0;
}
bonusStart = bonusStart + bonusInc;
left_btn._visible = (bonusStart ? true : false);
right_btn._visible = (((bonusStart + 3) < _root.gameStatus.bonuses.length) ? true : false);
if (bonusInc == -1) {
bonuses_mc[("bonus" + bonusStart) + "_mc"].play();
} else if (bonusInc == 1) {
if (bonuses_mc[("bonus" + (bonusStart + 2)) + "_mc"]) {
bonuses_mc[("bonus" + (bonusStart + 2)) + "_mc"].play();
}
}
bonuses_mc.xHome = bonuses_mc._x - (bonusInc * bonusJump);
bonuses_mc.springing = true;
bonuses_mc.onEnterFrame = function () {
xDiff = this.xHome - this._x;
this._x = this._x + (0.3 * xDiff);
if (Math.abs(xDiff) < 2) {
this._x = this.xHome;
this.springing = false;
delete this.onEnterFrame;
}
};
}
}
function displayBonus() {
bonus = _root.gameStatus.bonuses[_root.gameStatus.bonuses.length - (bonusInited + 1)];
bonuses_mc.attachMovie("bonusMC", ("bonus" + bonusInited) + "_mc", bonuses_mc.getNextHighestDepth());
bonuses_mc[("bonus" + bonusInited) + "_mc"].bonus_mc.bonus = bonus;
bonuses_mc[("bonus" + bonusInited) + "_mc"]._xscale = (bonuses_mc[("bonus" + bonusInited) + "_mc"]._yscale = 70);
bonuses_mc[("bonus" + bonusInited) + "_mc"]._y = -48;
bonuses_mc[("bonus" + bonusInited) + "_mc"]._x = -20 + (bonusInited * bonusJump);
bonusInited++;
}
stop();
_root.playMusic("intermissionMUS");
_root.bounceText(mybonuses_mc);
return_mc.button_mc.title_txt.text = "RETURN";
return_mc.button_mc.button_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.showTitleScreen();
};
left_btn._visible = (right_btn._visible = false);
left_btn.onRelease = function () {
showBonuses(-1);
};
right_btn.onRelease = function () {
showBonuses(1);
};
left_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
right_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
bonusStart = 0;
bonusJump = 120;
if (_root.gameStatus.bonuses.length) {
bonuses_mc.nobonus_txt._visible = false;
b = 0;
while (b < _root.gameStatus.bonuses.length) {
setTimeout(displayBonus, b * 100);
b++;
}
showBonuses();
}
bonusInited = 0;
Symbol 81 MovieClip Frame 1
button_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
Symbol 82 MovieClip Frame 1
this.onEnterFrame = function () {
if (!(this._currentframe % 8)) {
gotoAndPlay(8 * Math.floor(Math.random() * 5));
}
};
Symbol 90 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 95 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 20
play();
Symbol 100 MovieClip Frame 36
gotoAndPlay ("eye3");
Symbol 104 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 106 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 107 MovieClip Frame 1
if (!_parent.eyesInited) {
onEnterFrame = function () {
if (!blinking) {
if (Math.random() < 0.01) {
_parent.eyeLeft_mc.gotoAndPlay("blink");
_parent.eyeRight_mc.gotoAndPlay("blink");
}
}
};
_parent.eyesInited = true;
}
Symbol 107 MovieClip Frame 2
blinking = false;
stop();
Symbol 107 MovieClip Frame 10
blinking = true;
Symbol 107 MovieClip Frame 19
_parent.gotoBlink = false;
gotoAndStop ("wait");
Symbol 118 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
eyeLeft_mc.eyeball_mc.eyeHighlight_mc._x = eyeLeft_mc.eyeball_mc.eyeHighlight_mc._x - 4.2;
}
Symbol 118 MovieClip Frame 9
stop();
Symbol 118 MovieClip Frame 10
eyeLeft_mc.eyeball_mc.eyeHighlight_mc._x = eyeLeft_mc.eyeball_mc.eyeHighlight_mc._x - 4.2;
Symbol 118 MovieClip Frame 20
stop();
Symbol 122 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 126 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 130 MovieClip Frame 1
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 31
gotoAndPlay ("mouth1");
Symbol 131 MovieClip Frame 48
gotoAndPlay ("mouth2");
Symbol 131 MovieClip Frame 65
gotoAndPlay ("mouth3");
Symbol 141 MovieClip Frame 1
stop();
if (_root.mamaMood == "happy") {
gotoAndStop ("happyBody0");
}
Symbol 141 MovieClip Frame 10
if (_root.mamaMood == "happy") {
gotoAndStop ("happyBody1");
}
Symbol 141 MovieClip Frame 40
if (_root.mamaMood == "happy") {
gotoAndStop ("happyBody2");
}
Symbol 141 MovieClip Frame 60
if (_root.mamaMood == "happy") {
gotoAndStop ("happyBody3");
}
Symbol 147 MovieClip [minigameInstructionsMC] Frame 1
_root.fadeInMusic("intermissionMUS");
stageTitle_mc.stageTitle_txt.text = _root["stageTitle_" + _root.recipeIndex];
minigameTitle_mc.minigameTitle_txt.text = _root["title_" + _root.minigameList[_root.minigameId]];
_root.tickerText(instructions_txt, _root["instructions_" + _root.minigameList[_root.minigameId]]);
return_mc.button_mc.title_txt.text = "RETURN";
return_mc.button_mc.button_btn.onRelease = function () {
_root.showRecipeSelection();
};
start_mc.button_mc.title_txt.text = "START";
start_mc.button_mc.button_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.hideInstructions();
};
Symbol 147 MovieClip [minigameInstructionsMC] Frame 34
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 97
stop();
_root.gameStatus.current.gamePoints++;
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 43
stop();
Symbol 197 MovieClip Frame 1
gotoAndStop("round" + _root.prevRecipeIndex);
Symbol 211 Button
on (release) {
gotoAndPlay ("finalScore");
}
Symbol 230 MovieClip Frame 1
if (_root.prevRecipeIndex == 4) {
gotoAndStop (2);
} else {
stop();
}
Symbol 251 MovieClip Frame 1
mama_mc.gotoAndStop("idle");
Symbol 270 MovieClip Frame 1
function initBonus(bonus) {
gotoAndStop(bonus[0]);
this.title_txt.text = bonus[1];
this.button_btn.destination = bonus[2];
this.button_btn.bonusInfo = bonus;
this.button_btn.onRelease = function () {
if (this.bonusInfo[0] == "media") {
_root.fadeOutMusic();
}
_root.playSound("correct.wav");
getURL (this.destination, "_blank");
};
this.button_btn.onRollOver = function () {
_root.playSound("ding.wav");
};
}
stop();
if (this.bonus) {
initBonus(bonus);
}
Symbol 271 MovieClip [bonusMC] Frame 2
if (this._visible) {
_root.playSound("ding.wav");
}
Symbol 271 MovieClip [bonusMC] Frame 13
stop();
Symbol 291 MovieClip Frame 1
gotoAndPlay (2);
Symbol 291 MovieClip Frame 3
if (Math.random() < 0.02) {
play();
} else {
gotoAndPlay (2);
}
Symbol 291 MovieClip Frame 40
gotoAndPlay (15);
Symbol 293 MovieClip Frame 1
_root.mamaMood = "happy";
mamaHead_mc.mouth_mc.gotoAndStop("mouth3");
mamaHead_mc.head1_mc.eyeLeft_mc.eyeball_mc.gotoAndPlay("eye3");
mamaHead_mc.head1_mc.eyeRight_mc.eyeball_mc.gotoAndPlay("eye3");
stop();
Symbol 293 MovieClip Frame 75
gotoAndPlay ("sway");
Symbol 301 MovieClip Frame 1
if (!this.inited) {
this.iterated = 0;
this.iterations = Math.ceil(Math.random() * 4);
this.inited = true;
gotoAndPlay ("faint");
}
Symbol 301 MovieClip Frame 12
if (this.iterated == this.iterations) {
this._visible = false;
stop();
}
Symbol 301 MovieClip Frame 24
this.iterated++;
Symbol 302 MovieClip Frame 1
gotoAndPlay (2);
Symbol 302 MovieClip Frame 52
stop();
Symbol 307 MovieClip Frame 1
if (!this.inited) {
gotoAndPlay(random(30));
this.inited = true;
}
Symbol 314 Button
on (release) {
link = ((_root.petaVersion == "peta") ? "http://getactive.peta.org/campaign/30_day_veg_pledge?c=pmkeogvp08&source=pmkavegpldg08" : "http://getactive.peta.org/campaign/p2vegpledge?source=p2advcookmamavp&c=p23213");
getURL (link, "_blank");
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 1
if (_root.prevRecipeIndex == 4) {
_root.fadeInMusic("completeMUS", 30);
} else {
_root.playMusic("intermissionMUS");
}
_root.bounceText(complete_mc);
play();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 215
_root.bounceText(finalScore_mc);
_root.playSound("final_score.wav");
next_mc.button_mc.title_txt.text = "NEXT";
next_mc.button_mc.button_btn.onRelease = function () {
_root.gameRecipeResults.gotoAndPlay("fact");
_root.playSound("btn_release.wav");
};
fs_eval = 0;
fs_time = 0;
fs_total = 0;
fs_txtRes1 = 0;
fs_txtRes2 = 0;
fs_txtRes3 = 0;
i = 0;
while (i < _root.minigameList.length) {
mId = _root.minigameList[i];
rId = mId.substr(0, mId.indexOf("_"));
if (((_root.prevRecipeIndex == 4) && (rId == 4)) || ((_root.prevRecipeIndex < 4) && (rId < 4))) {
if (_root.gameStatus.pastResults[i].calculated) {
fs_eval = fs_eval + _root.gameStatus.pastResults[i].evalScore;
fs_time = fs_time + _root.gameStatus.pastResults[i].timeScore;
fs_total = fs_total + (_root.gameStatus.pastResults[i].evalScore + _root.gameStatus.pastResults[i].timeScore);
achievement = Math.round(_root.gameStatus.pastResults[i].evalScore / 33.3333333333333);
if (!achievement) {
achievement = 1;
}
this["fs_txtRes" + achievement]++;
}
}
i++;
}
results_mc.results1_txt.text = (((fs_txtRes3 + newline) + fs_txtRes2) + newline) + fs_txtRes1;
results_mc.results2_txt.text = (((fs_eval + newline) + fs_time) + newline) + fs_total;
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 241
stop();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 257
play();
next_mc.button_mc.button_btn.onRelease = function () {
};
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 276
_root.bounceText(factTitle_mc);
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 293
_root.playSound("turkey_fact.wav");
fact_mc.fact_txt.text = _root["fact_" + _root.prevRecipeIndex];
next_mc.button_mc.button_btn.onRelease = function () {
_root.gameRecipeResults.gotoAndPlay("bonuses");
_root.playSound("btn_release.wav");
};
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 311
stop();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 324
next_mc.button_mc.button_btn.onRelease = function () {
};
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 344
_root.playSound("bonus.wav");
if (!_root.gameStatus.bonuses) {
_root.gameStatus.bonuses = new Array();
}
b = 0;
i = 0;
while (i < _root.prevRecipeIndex) {
roundBonuses = _root.bonusDefinitions[i];
rb = 0;
while (rb < roundBonuses.length) {
_root.gameStatus.bonuses[b] = roundBonuses[rb];
b++;
rb++;
}
i++;
}
if (roundBonuses.length == 1) {
_root.bounceText(bonus_mc);
bonuses_mc._visible = false;
} else {
_root.bounceText(bonuses_mc);
bonus_mc._visible = false;
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 362
switch (roundBonuses.length) {
case 1 :
bonus2_1_mc._visible = (bonus3_1_mc._visible = false);
break;
case 2 :
bonus1_1_mc._visible = (bonus3_1_mc._visible = false);
break;
case 3 :
bonus1_1_mc._visible = (bonus2_1_mc._visible = false);
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 363
bonus1_1_mc.bonus_mc.initBonus(roundBonuses[0]);
bonus2_1_mc.bonus_mc.initBonus(roundBonuses[0]);
bonus3_1_mc.bonus_mc.initBonus(roundBonuses[0]);
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 368
switch (roundBonuses.length) {
case 1 :
bonus2_2_mc._visible = (bonus3_2_mc._visible = false);
break;
case 2 :
bonus3_2_mc._visible = false;
break;
case 3 :
bonus2_2_mc._visible = false;
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 369
bonus2_2_mc.bonus_mc.initBonus(roundBonuses[1]);
bonus3_2_mc.bonus_mc.initBonus(roundBonuses[1]);
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 373
switch (roundBonuses.length) {
case 1 :
bonus3_3_mc._visible = false;
break;
case 2 :
bonus3_3_mc._visible = false;
break;
case 3 :
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 374
bonus3_3_mc.bonus_mc.initBonus(roundBonuses[2]);
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 378
next_mc.button_mc.button_btn.onRelease = function () {
_root.gameRecipeResults.play();
_root.playSound("btn_release.wav");
};
stop();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 384
if ((_root.prevRecipeIndex == 3) || (_root.prevRecipeIndex == 4)) {
_root.mamaMood = "happy";
play();
} else {
_root.hideRecipeResults();
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 393
if (_root.prevRecipeIndex == 4) {
gotoAndPlay ("finalCutscene");
} else {
_root.playSound("correct.wav");
}
if (_root.prevRecipeIndex == 4) {
_root.fadeInMusic("completeMUS", 30);
} else {
_root.fadeInMusic("intermissionMUS");
}
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 413
next_mc.button_mc.button_btn.onRelease = function () {
_root.gameRecipeResults.play();
};
stop();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 414
_root.hideRecipeResults();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 415
next_mc.button_mc.button_btn.onRelease = function () {
};
_root.playSound("final_score.wav");
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 434
cloud1_mc.onEnterFrame = function () {
this._x = this._x + 0.5;
if (this._x > 800) {
this._x = -200;
}
};
cloud1b_mc.onEnterFrame = function () {
this._x = this._x + 0.5;
if (this._x > 800) {
this._x = -200;
}
};
cloud2_mc.onEnterFrame = function () {
this._x = this._x + 0.3;
if (this._x > 800) {
this._x = -200;
}
};
cloud3_mc.onEnterFrame = function () {
this._x = this._x + 0.25;
if (this._x > 800) {
this._x = -200;
}
};
cloud3b_mc.onEnterFrame = function () {
this._x = this._x + 0.25;
if (this._x > 800) {
this._x = -200;
}
};
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 576
_root.playSound("correct.wav");
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 789
mamaWithTurkey_mc.play();
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 1219
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 1368
return_mc.button_mc.title_txt.text = "RETURN";
return_mc.button_mc.button_btn.onRelease = function () {
_root.introViewed = false;
_root.playSound("btn_release.wav");
_root.showTitleScreen();
};
Symbol 315 MovieClip [minigameRecipeResultsMC] Frame 1382
stop();
Symbol 321 MovieClip Frame 1
button_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
Symbol 322 MovieClip Frame 1
this.onEnterFrame = function () {
if (!(this._currentframe % 8)) {
gotoAndPlay(8 * Math.floor(Math.random() * 5));
}
};
Symbol 341 MovieClip Frame 1
stop();
if (_root.mamaMood == "happy") {
gotoAndStop ("happyText1");
}
Symbol 341 MovieClip Frame 20
if (_root.mamaMood == "happy") {
gotoAndStop ("happyText2");
}
Symbol 341 MovieClip Frame 40
if (_root.mamaMood == "happy") {
gotoAndStop ("happyText3");
}
Symbol 349 MovieClip Frame 1
stop();
if (_root.mamaMood == "happy") {
gotoAndStop ("happyTrophy1");
}
Symbol 349 MovieClip Frame 10
if (_root.mamaMood == "happy") {
gotoAndStop ("happyTrophy2");
}
Symbol 349 MovieClip Frame 20
if (_root.mamaMood == "happy") {
gotoAndStop ("happyTrophy3");
}
Symbol 350 MovieClip [minigameResultsMC] Frame 1
_root.fadeInMusic("intermissionMUS");
stageTitle_mc.stageTitle_txt.text = "RESULTS";
eval_txt.text = _root.gameStatus.current.evalScore;
time_txt.text = _root.gameStatus.current.timeScore;
total_txt.text = _root.getTotalScore();
achievement = Math.round(_root.gameStatus.current.evalScore / 33.3333333333333);
if (!achievement) {
achievement = 1;
}
_root.playSound(("result_" + achievement) + ".wav");
quote_mc.gotoAndStop("text" + achievement);
mama_mc.head_mc.mouth_mc.gotoAndStop("mouth" + achievement);
mama_mc.body_mc.gotoAndStop("body" + achievement);
mama_mc.head_mc.head1_mc.eyeLeft_mc.eyeball_mc.gotoAndPlay("eye" + achievement);
mama_mc.head_mc.head1_mc.eyeRight_mc.eyeball_mc.gotoAndPlay("eye" + achievement);
redo_mc.button_mc.title_txt.text = "REDO";
redo_mc.button_mc.button_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.nextMinigame(1);
};
nextGame_mc.button_mc.title_txt.text = "CONTINUE";
nextGame_mc.button_mc.button_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.nextMinigame();
};
Symbol 350 MovieClip [minigameResultsMC] Frame 13
trophy_mc.gotoAndStop("trophy" + achievement);
Symbol 350 MovieClip [minigameResultsMC] Frame 53
stop();
Symbol 363 MovieClip Frame 9
stop();
Symbol 363 MovieClip Frame 19
stop();
Symbol 363 MovieClip Frame 29
stop();
Symbol 363 MovieClip Frame 40
stop();
Symbol 388 MovieClip [selectRecipeMC] Frame 1
function preselectRecipe(recipeId) {
if (recipeId) {
latestRecipe = recipeId;
}
round_txt.text = _root["stageTitle_" + latestRecipe];
preview_mc.gotoAndPlay("recipe" + latestRecipe);
i = 0;
while (i < _root.minigameList.length) {
recipeIndex = parseInt(_root.minigameList[i].substr(0, _root.minigameList[i].indexOf("_")));
recipe_mc = this[("recipe" + recipeIndex) + "_mc"];
if (recipe_mc._alpha > 30) {
recipe_mc._alpha = ((recipe_mc.recipeId == latestRecipe) ? 100 : 60);
}
i++;
}
_root.playSound("screen_display.wav");
}
_root.fadeInMusic("intermissionMUS");
latestRecipe = 1;
i = 0;
while (i < _root.minigameList.length) {
recipeIndex = parseInt(_root.minigameList[i].substr(0, _root.minigameList[i].indexOf("_")));
this[("recipe" + (recipeIndex + 1)) + "_mc"]._alpha = 60;
if ((!_root.gameStatus.pastResults[i]) && (!_root.debugMode)) {
if (this[("recipe" + (recipeIndex + 1)) + "_mc"]) {
this[("recipe" + (recipeIndex + 1)) + "_mc"]._alpha = (((recipeIndex + 1) < 4) ? 20 : 0);
}
}
if (_root.gameStatus.pastResults[i - 1]) {
latestRecipe = recipeIndex;
}
i++;
}
i = 0;
while (i < _root.minigameList.length) {
recipeIndex = parseInt(_root.minigameList[i].substr(0, _root.minigameList[i].indexOf("_")));
recipe_mc = this[("recipe" + recipeIndex) + "_mc"];
if ((recipe_mc._alpha > 30) && (!recipe_mc.onPress)) {
recipe_mc.recipeId = recipeIndex;
recipe_mc.onRelease = function () {
this._xscale = (this._yscale = 110);
preselectRecipe(this.recipeId);
};
recipe_mc.onRollOver = function () {
this._alpha = 100;
this._xscale = (this._yscale = 110);
_root.playSound("whistle.wav");
};
recipe_mc.onPress = function () {
this._xscale = (this._yscale = 100);
};
recipe_mc.onPress = function () {
this._xscale = (this._yscale = 100);
};
recipe_mc.onRollOut = (recipe_mc.onDragOut = function () {
this._alpha = ((this.recipeId == latestRecipe) ? 100 : 60);
this._xscale = (this._yscale = 100);
});
}
i++;
}
preselectRecipe(latestRecipe);
Symbol 388 MovieClip [selectRecipeMC] Frame 8
_root.bounceText(letsCook_mc);
Symbol 388 MovieClip [selectRecipeMC] Frame 20
stop();
return_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.showTitleScreen();
};
return_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
start_btn.onRelease = (blank_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.mamaMood = ((latestRecipe == 4) ? "happy" : "evil");
_root.makeRecipe(latestRecipe);
});
start_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
Symbol 389 Button
on (release) {
_root.playSound("btn_release.wav");
gotoAndPlay ("options");
}
Symbol 392 MovieClip Frame 1
head_mc.mouth_mc.gotoAndStop("mouth3");
head_mc.head1_mc.eyeLeft_mc.eyeball_mc.gotoAndPlay("eye3");
head_mc.head1_mc.eyeRight_mc.eyeball_mc.gotoAndPlay("eye3");
Symbol 397 MovieClip Frame 1
gotoAndStop(_root.petaVersion);
Symbol 398 MovieClip Frame 29
stop();
Symbol 404 MovieClip Frame 1
gotoAndStop(_root.petaVersion);
Symbol 424 MovieClip Frame 1
gotoAndStop(_root.petaVersion);
Symbol 430 MovieClip Frame 1
button_btn.onRollOver = function () {
_root.playSound("whistle.wav");
};
Symbol 431 MovieClip Frame 1
this.onEnterFrame = function () {
if (!(this._currentframe % 8)) {
gotoAndPlay(8 * Math.floor(Math.random() * 5));
}
};
Symbol 436 MovieClip [titleScreenMC] Frame 1
if (_root.introViewed) {
gotoAndPlay ("options");
} else {
_root.playMusic("intermissionMUS");
}
Symbol 436 MovieClip [titleScreenMC] Frame 246
_root.playSound("drop_organs.wav");
Symbol 436 MovieClip [titleScreenMC] Frame 298
_root.playSound("drop_organs.wav");
Symbol 436 MovieClip [titleScreenMC] Frame 300
_root.playSound("strain_gravy1.wav");
Symbol 436 MovieClip [titleScreenMC] Frame 308
_root.bounceText(mainMenu_mc);
_root.fadeInMusic("intermissionMUS");
Symbol 436 MovieClip [titleScreenMC] Frame 323
cook_mc.button_mc.title_txt.text = "Let's Cook";
cook_mc.button_mc.button_btn.onRelease = function () {
_root.showRecipeSelection();
};
Symbol 436 MovieClip [titleScreenMC] Frame 327
bonuses_mc.button_mc.title_txt.text = "My Bonuses";
bonuses_mc.button_mc.button_btn.onRelease = function () {
_root.playSound("btn_release.wav");
_root.showBonuses();
};
Symbol 436 MovieClip [titleScreenMC] Frame 351
stop();
_root.introViewed = true;
disclaimer.onRelease = function () {
getURL (_root.advocacyLink, "_blank");
};
Symbol 451 MovieClip Frame 1
stop();
grabable = true;
Symbol 454 MovieClip [minigame1_1] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array();
gameTime = 20;
gameTotalPoints = 27;
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
bloodDrop = 0;
feathers = 32;
featherTargets = new Array();
f = 1;
while (f <= feathers) {
featherTargets[featherTargets.length] = ("feather" + f) + "_mc";
f++;
}
f = 1;
while (f <= feathers) {
feather_mc = this[("feather" + f) + "_mc"];
feather_mc.idName = ("feather" + f) + "_mc";
feather_mc.dragable = true;
feather_mc.dropType = "fall";
feather_mc.fallRate = 0.2;
feather_mc.plucked = false;
feather_mc.event_press = new Object();
feather_mc.event_press.customAction = function (elId) {
target = _root.gameboard[elId];
_root.playSound("pluck.wav", "", "", 2);
_root.dropBlood(target._x - _root.gameboard.bird_mc._x, target._y - _root.gameboard.bird_mc._y, _root.gameboard.bird_mc);
mouse_mc.blood_mc._alpha = 100 * (_root.gameStatus.current.gamePoints / gameTotalPoints);
};
feather_mc.event_release = new Object();
feather_mc.event_floorHit = new Object();
feather_mc.event_floorHit.customAction = function (elId) {
target = _root.gameboard[elId];
target.hideMovieClip();
_root.gameStatus.current.gamePoints++;
};
f++;
}
activeTargets = featherTargets;
Symbol 473 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 1
i = 1;
while (i <= 5) {
this[("organ" + i) + "_mc"]._visible = false;
i++;
}
Symbol 480 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 495 MovieClip [minigame1_2] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("turkey_mc", "freemovement1_mc", "freemovement2_mc", "freemovement3_mc", "freemovement4_mc", "freemovement5_mc", "freemovement6_mc", "freemovement7_mc", "freemovement8_mc");
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "boundary3MC";
gameTime = 17;
gameTotalPoints = 5;
function hideOverlay(ellId) {
_root.gameboard.turkeyOverlay_mc._visible = false;
}
turkeyOverlay_mc._visible = false;
organs = 5;
o = 1;
while (o <= organs) {
activeTargets[activeTargets.length] = ("organ" + o) + "_mc";
organ_mc = this[("organ" + o) + "_mc"];
organ_mc.idName = ("organ" + o) + "_mc";
organ_mc.dragable = true;
organ_mc.dropType = "fall";
organ_mc.fallRate = 0.7;
organ_mc.fallTarget = "bag_mc";
organ_mc.expended = false;
this[("icon_organ" + o) + "_mc"]._alpha = 0;
organ_mc.event_fallHit = new Object();
organ_mc.event_fallHit.activeTargets_remove = Array(("organ" + o) + "_mc");
organ_mc.event_fallHit.gamePoints_add = 1;
organ_mc.event_fallHit.customAction = function (elId) {
target = _root.gameboard[elId];
target.expended = true;
target.hideMovieClip();
_root.gameboard.bowl_mc[elId]._visible = true;
_root.gameboard["icon_" + elId]._alpha = 100;
_root.gameboard.bowl_mc.blood_mc.gotoAndStop("blood" + _root.gameStatus.current.gamePoints);
_root.playSound("hand_in_body.wav");
};
organ_mc.event_floorHit = new Object();
organ_mc.event_floorHit.customAction = function (elId) {
_root.playSound("strain_gravy1.wav");
};
organ_mc.event_press = new Object();
organ_mc.event_press.customAction = function (elId) {
mouse_mc.blood_mc._alpha = 100 * (_root.gameStatus.current.gamePoints / gameTotalPoints);
_root.playSound("drop_organs.wav", "", "", 2);
};
organ_mc.onEnterFrame = function () {
if ((!this.expended) && (Math.random() < 0.05)) {
_root.dropBlood(((this._x - bowl_mc._x) + 10) + ((10 * Math.random()) - 5), this._y - bowl_mc._y, bowl_mc);
}
};
o++;
}
turkey_mc.event_hit = new Object();
turkey_mc.event_hit.customAction = function (elId) {
_root.gameboard.turkeyOverlay_mc._visible = true;
};
freemovement1_mc.event_hit = new Object();
freemovement1_mc.event_hit.customAction = hideOverlay;
freemovement2_mc.event_hit = new Object();
freemovement2_mc.event_hit.customAction = hideOverlay;
freemovement3_mc.event_hit = new Object();
freemovement3_mc.event_hit.customAction = hideOverlay;
freemovement4_mc.event_hit = new Object();
freemovement4_mc.event_hit.customAction = hideOverlay;
freemovement5_mc.event_hit = new Object();
freemovement5_mc.event_hit.customAction = hideOverlay;
freemovement6_mc.event_hit = new Object();
freemovement6_mc.event_hit.customAction = hideOverlay;
freemovement7_mc.event_hit = new Object();
freemovement7_mc.event_hit.customAction = hideOverlay;
freemovement8_mc.event_hit = new Object();
freemovement8_mc.event_hit.customAction = hideOverlay;
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 30
play();
Symbol 512 MovieClip Frame 42
stop();
Symbol 517 MovieClip Frame 1
stop();
grabable = true;
egg_mc._visible = false;
Symbol 517 MovieClip Frame 10
egg_mc.gotoAndStop(1);
Symbol 517 MovieClip Frame 20
play();
Symbol 517 MovieClip Frame 29
gotoAndStop (1);
Symbol 520 MovieClip [minigame2_2] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array();
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 20;
gameTotalPoints = 5;
guide_mc._visible = false;
eggs = 5;
eggTargets = new Array("feather1_mc", "feather2_mc", "feather3_mc", "feather4_mc");
e = 1;
while (e <= eggs) {
eggTargets[eggTargets.length] = ("egg" + e) + "_mc";
activeTargets[activeTargets.length] = ("egg" + e) + "_mc";
e++;
}
e = 1;
while (e <= eggs) {
egg_mc = this[("egg" + e) + "_mc"];
egg_mc.idName = ("egg" + e) + "_mc";
egg_mc.dragable = true;
egg_mc.dropType = "fall";
egg_mc.fallRate = 0.9;
egg_mc.cracked = false;
egg_mc.event_press = new Object();
egg_mc.event_press.setMouseBoundary = "defaultMouseBoundaryMC";
egg_mc.event_press.activeTargets_add = Array("target1_mc");
egg_mc.event_press.customAction = function (elId) {
egg_mc = _root.gameboard[elId];
if (egg_mc.dragging) {
_root.gameboard.guide_mc._visible = true;
_root.gameboard.guide_mc.gotoAndPlay(1);
egg_mc._alpha = 0;
_root.gameboard.mouse_mc.egg_mc._visible = true;
}
};
egg_mc.event_release = new Object();
egg_mc.event_release.activeTargets_set = eggTargets;
egg_mc.event_release.setMouseBoundary = "defaultMouseBoundaryMC";
egg_mc.event_release.customAction = function (elId) {
egg_mc = _root.gameboard[elId];
if (egg_mc.dragging) {
egg_mc._alpha = 100;
if (egg_mc.cracked && (egg_mc.hitTest(_root.gameboard.target4_mc))) {
_root.playSound("egg_drop_in_bowl.wav");
_root.gameboard.mouse_mc.gotoAndPlay("open");
egg_mc.gotoAndStop("fall");
f = 1;
while (f <= 4) {
if (Math.random() < 0.4) {
feather_mc = _root.gameboard[("feather" + f) + "_mc"];
feather_mc.showMovieClip();
feather_mc._x = egg_mc._x - (15 - (Math.random() * 30));
feather_mc._y = egg_mc._y + (75 - (Math.random() * 30));
feather_mc.falling = true;
}
f++;
}
}
}
};
egg_mc.event_fallHit = new Object();
egg_mc.event_fallHit.activeTargets_remove = Array(("egg" + e) + "_mc");
egg_mc.event_fallHit.gamePoints_add = 1;
egg_mc.event_fallHit.customAction = function (elId) {
_root.playSound("strain_gravy1.wav");
_root.gameboard[elId].hideMovieClip();
};
egg_mc.event_floorHit = new Object();
egg_mc.event_floorHit.customAction = function (elId) {
egg_mc = _root.gameboard[elId];
if (egg_mc.cracked) {
egg_mc.expended = true;
_root.gameStatus.current.gameMistakes++;
egg_mc.gotoAndStop("splat");
_root.playSound("strain_gravy1.wav");
}
};
egg_mc.bloodyEgg = Math.random() > 0.4;
egg_mc.onEnterFrame = function () {
if (((((!this.expended) && (this._visible)) && (this.cracked)) && (this.bloodyEgg)) && (Math.random() < 0.25)) {
_root.dropBlood(blank_mc._xmouse + 10, blank_mc._ymouse + 25, blank_mc);
}
};
e++;
}
f = 1;
while (f <= 4) {
feather_mc = _root.gameboard[("feather" + f) + "_mc"];
feather_mc.hideMovieClip();
feather_mc.dropType = "fall";
feather_mc.fallRate = 0.3 + (f / 10);
feather_mc.fallTarget = "bowl_mc";
feather_mc.event_fallHit = new Object();
feather_mc.event_fallHit.customAction = function (elId) {
feather_mc = _root.gameboard[elId];
feather_mc.hideMovieClip();
};
f++;
}
target1_mc.event_hit = new Object();
target1_mc.event_hit.activeTargets_add = Array("target2_mc");
target1_mc.event_hit.activeTargets_remove = Array("target3_mc");
target2_mc.event_hit = new Object();
target2_mc.event_hit.activeTargets_add = Array("target3_mc");
target3_mc.attractTargets = eggTargets;
target3_mc.event_attractTargetsHit = new Object();
target3_mc.event_attractTargetsHit.activeTargets_remove = Array("target_1_mc", "target2_mc");
target3_mc.event_attractTargetsHit.setMouseBoundary = "boundary4MC";
target3_mc.event_attractTargetsHit.customAction = function (elId) {
_root.gameboard.mouse.avatar.targetObj.fallTarget = "bowl_mc";
_root.gameboard.mouse.avatar.targetObj.cracked = true;
_root.gameboard.mouse_mc.egg_mc.gotoAndStop("cracked");
_root.playSound("egg_crack.wav");
_root.gameboard.guide_mc._visible = false;
_root.gameboard.target3_mc.event_unhit = new Object();
_root.gameboard.target3_mc.event_unhit.setMouseBoundary = "defaultMouseBoundaryMC";
_root.gameboard.target3_mc.event_unhit.activeTargets_remove = Array("target3_mc", "target1_mc");
};
Symbol 544 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 551 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
flash_mc._visible = false;
Symbol 557 MovieClip Frame 10
spoon_mc._visible = false;
Symbol 557 MovieClip Frame 20
this.dropType = "spring";
this.springing = true;
gotoAndStop (1);
Symbol 557 MovieClip Frame 21
spoon_mc.gotoAndStop("immersed");
stuffing_mc._visible = false;
Symbol 557 MovieClip Frame 36
if (_root.gameStatus.current.gamePoints == 6) {
stuffing_mc._visible = true;
}
Symbol 557 MovieClip Frame 43
butter_mc.play();
Symbol 557 MovieClip Frame 49
breadcrumbs_mc.play();
Symbol 557 MovieClip Frame 55
eggs_mc.play();
Symbol 557 MovieClip Frame 65
_root.stopSound("stir.wav");
_root.gameStatus.current.gamePoints++;
if (_root.gameStatus.current.gamePoints < 7) {
gotoAndStop ("combine");
} else {
stop();
}
Symbol 562 MovieClip Frame 20
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "stock") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 562 MovieClip Frame 50
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "butter") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 562 MovieClip Frame 75
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "breadcrumbs") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 562 MovieClip Frame 100
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "eggs") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 562 MovieClip Frame 123
guide_mc._visible = true;
_root.gameboard.activeTargets = new Array("stir1_mc");
_root.gameboard.guide_mc._visible = true;
stop();
Symbol 562 MovieClip Frame 175
guide_mc._visible = true;
_root.gameboard.stir1_mc.showMovieClip();
_root.gameboard.guide_mc._visible = true;
stop();
Symbol 562 MovieClip Frame 224
guide_mc._visible = true;
_root.gameboard.stir1_mc.showMovieClip();
_root.gameboard.guide_mc._visible = true;
stop();
Symbol 562 MovieClip Frame 264
stop();
Symbol 564 MovieClip [minigame2_3] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("ingredients_mc");
gameTime = 20;
gameTotalPoints = 7;
guide_mc._visible = false;
ingredients = new Array("butter", "breadcrumbs", "eggs", "stock");
ingredients.shuffle();
ingredients_mc.dropType = "fall";
ingredients_mc.fallRate = 2;
ingredients_mc.fallTarget = "bowlBottom_mc";
ingredients_mc.event_fallHit = new Object();
ingredients_mc.event_fallHit.gamePoints_add = 1;
ingredients_mc.event_fallHit.customAction = function (elId) {
target = _root.gameboard[elId];
target.hideMovieClip();
_root.playSound("strain_gravy1.wav");
if (_root.gameboard.mainBowl_mc._currentframe == 1) {
_root.gameboard.mainBowl_mc.gotoAndStop("combine");
_root.gameboard.mainBowl_mc.eggs_mc._visible = false;
_root.gameboard.mainBowl_mc.butter_mc._visible = false;
_root.gameboard.mainBowl_mc.breadcrumbs_mc._visible = false;
}
_root.gameboard.mainBowl_mc[target.contents + "_mc"]._visible = true;
};
ingredients_mc.hideMovieClip();
bowls = 4;
bowlTargets = new Array();
b = 1;
while (b <= bowls) {
bowlTargets[bowlTargets.length] = ("bowl" + b) + "_mc";
activeTargets[activeTargets.length] = ("bowl" + b) + "_mc";
b++;
}
b = 1;
while (b <= bowls) {
bowl_mc = this[("bowl" + b) + "_mc"];
bowl_mc.idName = ("bowl" + b) + "_mc";
bowl_mc.dragable = true;
bowl_mc.dropType = "spring";
bowl_mc.ready = false;
bowl_mc.contents = ingredients[b - 1] + "";
bowl_mc.contents_mc.gotoAndStop(bowl_mc.contents);
bowl_mc.spoon_mc._visible = false;
bowl_mc.event_release = new Object();
bowl_mc.event_release.customAction = function (elId) {
target = _root.gameboard[elId];
if (target.ready && (target.hitTest(_root.gameboard.dropSpace_mc))) {
target.ready = false;
target.gotoAndPlay("drop");
target.dropType = "float";
_root.gameboard.ingredients_mc.showMovieClip();
_root.gameboard.ingredients_mc._x = target._x;
_root.gameboard.ingredients_mc._y = target._y;
_root.gameboard.ingredients_mc.gotoAndStop(target.contents);
_root.gameboard.ingredients_mc.contents = target.contents;
_root.gameboard.ingredients_mc.falling = true;
_root.gameboard.timeline_mc.play();
}
};
bowl_mc.onEnterFrame = function () {
if (this.ready) {
if ((!this.flash_mc._visible) && (!this.dragging)) {
this.flash_mc.gotoAndPlay(1);
this.flash_mc._visible = true;
}
if (this.dragging) {
this.flash_mc._visible = false;
}
} else if (this.flash_mc._visible) {
this.flash_mc._visible = false;
}
};
b++;
}
stir0_mc.event_press = new Object();
stir0_mc.event_press.activeTargets_set = Array("stir1_mc");
stir1_mc.event_hit = new Object();
stir1_mc.event_hit.activeTargets_set = Array("stir1_mc", "stir2_mc");
stir2_mc.event_hit = new Object();
stir2_mc.event_hit.activeTargets_set = Array("stir1_mc", "stir3_mc");
stir3_mc.event_hit = new Object();
stir3_mc.event_hit.activeTargets_set = Array("stir1_mc", "stir4_mc");
stir4_mc.event_hit = new Object();
stir4_mc.event_hit.activeTargets_set = Array("stir1_mc");
stir4_mc.event_hit.customAction = function (elId) {
_root.gameboard.mainBowl_mc.gotoAndPlay("stir");
_root.gameboard.guide_mc._visible = false;
_root.gameboard.timeline_mc.play();
_root.gameboard.stir1_mc.hideMovieClip();
_root.playSound("stir.wav", "", "", 1);
};
Symbol 568 MovieClip [minigame2_4] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("stuffing10_mc");
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 17;
gameTotalPoints = 10;
stuffings = 10;
s = 1;
while (s <= stuffings) {
stuffing_mc = this[("stuffing" + s) + "_mc"];
stuffing_mc.idName = ("stuffing" + s) + "_mc";
stuffing_mc.dragable = true;
stuffing_mc.dropType = "fall";
stuffing_mc.fallRate = 3;
stuffing_mc.fallTarget = "cavity_mc";
stuffing_mc.event_fallHit = new Object();
stuffing_mc.event_fallHit.activeTargets_remove = Array(("stuffing" + s) + "_mc");
stuffing_mc.event_fallHit.gamePoints_add = 1;
stuffing_mc.event_fallHit.customAction = function (elId) {
target = _root.gameboard[elId];
target.hideMovieClip();
_root.playSound("stuffing.wav");
_root.gameboard.turkeyBelly_mc.nextFrame();
_root.gameboard.turkeyFront_mc.nextFrame();
};
stuffing_mc.event_press = new Object();
if (s > 1) {
stuffing_mc.event_press.activeTargets_add = Array(("stuffing" + (s - 1)) + "_mc", ("stuffing" + (s - 2)) + "_mc");
}
stuffing_mc.event_press.customAction = function (elId) {
_root.playSound("drop_organs.wav", "", "", 2);
};
stuffing_mc.event_floorHit = new Object();
stuffing_mc.event_floorHit.customAction = function (elId) {
_root.playSound("add_ingredients_to_pan.wav");
};
s++;
}
Symbol 580 MovieClip Frame 1
stop();
Symbol 581 MovieClip [minigame2_5] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("target1_mc");
defaultMouseSymbol = "mouse_mc";
gameTime = 13;
gameTotalPoints = 15;
target1_mc.event_hit = new Object();
target1_mc.event_hit.activeTargets_set = new Array("target2_mc");
target2_mc.event_hit = new Object();
target2_mc.event_hit.activeTargets_set = new Array("target1_mc");
target2_mc.event_hit.gamePoints_add = 1;
target2_mc.event_hit.customAction = function (elId) {
_root.dropBlood(((_xmouse - _root.gameboard.board_mc._x) + 10) + ((10 * Math.random()) - 5), (_ymouse - _root.gameboard.board_mc._y) - 20, _root.gameboard.board_mc);
if (!(_root.gameStatus.current.gamePoints % 3)) {
_root.gameboard.body_mc.nextFrame();
}
if (!(_root.gameStatus.current.gamePoints % 2)) {
_root.gameboard.mouse_mc.nextFrame();
}
if (_root.gameStatus.current.gamePoints == 14) {
_root.gameboard.target1_mc.hideMovieClip();
_root.gameboard.target2_mc.hideMovieClip();
_root.playSound("chop.wav");
_root.playSound("add_ingredients_to_pan.wav");
_root.playSound("drop_organs.wav");
_root.gameboard.guide_mc._visible = false;
_root.gameboard.body_mc.gotoAndPlay("severed");
_root.gameboard.head_mc.gotoAndPlay("severed");
} else {
_root.playSound("saw.wav", "", "", 1);
}
};
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 145
stop();
Symbol 586 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 146
stop();
Symbol 592 MovieClip Frame 1
stop();
cookingPoints = 1;
Symbol 592 MovieClip Frame 59
cookingPoints = 2;
Symbol 592 MovieClip Frame 103
cookingPoints = 3;
Symbol 592 MovieClip Frame 113
cookingPoints = 4;
Symbol 592 MovieClip Frame 117
cookingPoints = 5;
Symbol 592 MovieClip Frame 121
cookingPoints = 4;
Symbol 592 MovieClip Frame 125
cookingPoints = 3;
Symbol 592 MovieClip Frame 130
cookingPoints = 2;
Symbol 592 MovieClip Frame 137
cookingPoints = 1;
Symbol 592 MovieClip Frame 142
stop();
Symbol 610 MovieClip Frame 1
stop();
grabable = true;
Symbol 611 MovieClip [minigame2_6] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
function onTimeOver() {
_root.stopSound("oven.wav");
}
activeTargets = new Array();
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 10;
gameTotalPoints = 6;
guide_mc._visible = false;
on_btn.onRelease = function () {
if ((!_root.gameboard.gameFinished) && (_root.gameboard.gameStarted)) {
_root.gameStatus.current.gamePoints++;
this._visible = false;
off_btn._visible = true;
guide_mc._visible = true;
metre_mc._visible = true;
metre_mc.play();
ovenTint_mc.play();
turkey_mc.play();
_root.playSound("on_off_button.wav");
_root.playSound("oven.wav");
}
};
off_btn._visible = false;
off_btn.onRelease = function () {
if (!_root.gameboard.gameFinished) {
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + metre_mc.cookingPoints;
_root.gameStatus.current.gameMistakes = _root.gameStatus.current.gameMistakes + (gameTotalPoints - _root.gameStatus.current.gamePoints);
}, 100);
metre_mc.stop();
turkey_mc.stop();
ovenTint_mc.stop();
_root.playSound("on_off_button.wav");
_root.stopSound("oven.wav");
}
};
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 20
stop();
Symbol 624 MovieClip Frame 40
stop();
Symbol 624 MovieClip Frame 60
stop();
_root.gameStatus.current.gamePoints++;
Symbol 625 MovieClip [minigame3_2] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("target1_mc");
defaultMouseSymbol = "mouse_mc";
gameTime = 17;
gameTotalPoints = 22;
target1_mc.event_hit = new Object();
target1_mc.event_hit.activeTargets_set = new Array("target2_mc");
target2_mc.event_hit = new Object();
target2_mc.event_hit.activeTargets_set = new Array("target1_mc");
target2_mc.event_hit.gamePoints_add = 1;
target2_mc.event_hit.customAction = function (elId) {
_root.dropBlood(((_xmouse - _root.gameboard.board_mc._x) + 10) + ((10 * Math.random()) - 5), (_ymouse - _root.gameboard.board_mc._y) - 20, _root.gameboard.board_mc);
if (!(_root.gameStatus.current.gamePoints % 4)) {
_root.gameboard.mouse_mc.nextFrame();
}
if (!(_root.gameStatus.current.gamePoints % 7)) {
_root.gameboard.target1_mc.hideMovieClip();
_root.gameboard.guide_mc._visible = false;
setTimeout(function () {
if (!_root.gameboard.gameFinished) {
_root.gameboard.target1_mc.showMovieClip();
_root.gameboard.guide_mc._visible = true;
_root.gameboard.guide_mc.gotoAndPlay(1);
_root.gameboard.target1_mc._x = _root.gameboard.target1_mc._x - 32;
_root.gameboard.target2_mc._x = _root.gameboard.target2_mc._x - 32;
_root.gameboard.guide_mc._x = _root.gameboard.guide_mc._x - 32;
_root.gameboard.guide_mc._y = _root.gameboard.guide_mc._y + 2;
}
}, 1500);
_root.gameboard.head_mc.play();
_root.playSound("chop.wav");
_root.playSound("egg_crack.wav");
} else {
_root.playSound("saw.wav", "", "", 1);
}
};
Symbol 629 MovieClip Frame 1
if (!this.oY) {
this.oY = this._y;
}
this._xscale = _root.gameboard.heat_mc.heat * 100;
this._yscale = _root.gameboard.heat_mc.heat * 100;
this._y = this.oY + (10 * ((100 - this._yscale) / 100));
Symbol 633 MovieClip Frame 1
heat = 0;
heatPoints = 0;
slider_mc.onPress = function () {
this.onEnterFrame = function () {
this._x = this._x + (_root.mouseDelay * ((_xmouse - this._x) - 7));
if (this._x < 0) {
this._x = 0;
}
if (this._x > 79) {
this._x = 79;
}
_root.gameboard.heat_mc.heat = Math.abs(79 - this._x) / 79;
};
_root.playSound("burner.wav");
};
slider_mc.onRelease = (slider_mc.onReleaseOutside = function () {
if (!_root.gameboard.heat_mc.heatPoints) {
if (_root.gameboard.heat_mc.heat > 0.3) {
_root.gameboard.heat_mc.heatPoints = 1;
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + 1;
}, 3000);
}
if (_root.gameboard.heat_mc.heat > 0.75) {
_root.gameboard.heat_mc.heatPoints = 2;
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + 2;
}, 3000);
}
}
if (_root.gameboard.heat_mc.heatPoints == 1) {
if (_root.gameboard.heat_mc.heat > 0.75) {
_root.gameboard.heat_mc.heatPoints = 2;
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + 1;
}, 3000);
}
}
_root.gameboard.guide1_mc._visible = ((_root.gameboard.heat_mc.heat <= 0.75) ? true : false);
if (!_root.gameboard.timeline_mc.heatCheck) {
_root.gameboard.timeline_mc.play();
}
delete this.onEnterFrame;
});
Symbol 640 MovieClip Frame 1
stop();
this.popping = false;
this.onEnterFrame = function () {
if (!this.popping) {
if (Math.random() < 0.05) {
if (Math.random() < _root.gameboard.heat_mc.heat) {
scale = (Math.random() * 150) + 30;
this._xscale = (this._yscale = scale);
gotoAndPlay ("pop");
}
}
}
};
Symbol 640 MovieClip Frame 2
this.popping = true;
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.gameboard.heat_mc.heat > 0.5) {
coverstock_mc._visible = false;
}
};
Symbol 645 MovieClip Frame 5
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 21
_root.playSound("pan_lift.wav");
Symbol 646 MovieClip Frame 39
contents_mc.nextFrame();
gotoAndStop ("shake");
Symbol 649 MovieClip Frame 1
expended = false;
heatCheck = false;
Symbol 649 MovieClip Frame 10
stop();
heatCheck = false;
Symbol 649 MovieClip Frame 11
stop();
if (_root.gameboard.heat_mc.heatPoints == 2) {
play();
heatCheck = true;
} else {
this.prevFrame();
}
Symbol 649 MovieClip Frame 35
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "butter") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 649 MovieClip Frame 65
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "giblets") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 649 MovieClip Frame 90
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "veggies") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 649 MovieClip Frame 115
b = 1;
while (b <= _root.gameboard.bowls) {
bowl_mc = _root.gameboard[("bowl" + b) + "_mc"];
if (bowl_mc.contents == "chickenStock") {
bowl_mc.ready = true;
break;
}
b++;
}
stop();
Symbol 649 MovieClip Frame 138
guide_mc._visible = true;
_root.gameboard.activeTargets = new Array("shake1_mc");
_root.gameboard.guide2_mc._visible = true;
stop();
Symbol 649 MovieClip Frame 200
guide_mc._visible = true;
_root.gameboard.shake1_mc.showMovieClip();
_root.gameboard.guide2_mc._visible = true;
stop();
Symbol 649 MovieClip Frame 259
guide_mc._visible = true;
_root.gameboard.shake1_mc.showMovieClip();
_root.gameboard.guide2_mc._visible = true;
stop();
Symbol 649 MovieClip Frame 312
stop();
expended = true;
Symbol 651 MovieClip [minigame3_3] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
if (success) {
onTimeOver();
}
return(success);
}
function onTimeOver() {
_root.stopSound("saute.wav");
}
activeTargets = new Array("ingredients_mc");
gameTime = 30;
gameTotalPoints = 10;
guide1_mc.lines_mc._visible = false;
guide2_mc._visible = false;
ingredients = new Array("butter", "veggies", "giblets", "chickenStock");
ingredients.shuffle();
ingredients_mc.dropType = "fall";
ingredients_mc.fallRate = 2;
ingredients_mc.fallTarget = "panBottom_mc";
ingredients_mc.event_fallHit = new Object();
ingredients_mc.event_fallHit.gamePoints_add = 1;
ingredients_mc.event_fallHit.customAction = function (elId) {
target = _root.gameboard[elId];
target.hideMovieClip();
if (_root.gameboard.pan_mc._currentframe == 1) {
_root.gameboard.pan_mc.gotoAndStop("combine");
_root.gameboard.pan_mc.contents_mc.chickenStock_mc._visible = false;
_root.gameboard.pan_mc.contents_mc.veggies_mc._visible = false;
_root.gameboard.pan_mc.contents_mc.giblets_mc._visible = false;
}
_root.playSound("strain_gravy1.wav");
if (target.contents == "chickenStock") {
_root.gameboard.pan_mc.contents_mc.nextFrame();
if (heat_mc.heat <= 0.75) {
guide1_mc._visible = true;
}
_root.playSound("saute.wav", "", 20);
}
_root.gameboard.pan_mc.contents_mc[target.contents + "_mc"]._visible = true;
};
ingredients_mc.hideMovieClip();
bowls = 4;
bowlTargets = new Array();
b = 1;
while (b <= bowls) {
bowlTargets[bowlTargets.length] = ("bowl" + b) + "_mc";
activeTargets[activeTargets.length] = ("bowl" + b) + "_mc";
b++;
}
b = 1;
while (b <= bowls) {
bowl_mc = this[("bowl" + b) + "_mc"];
bowl_mc.idName = ("bowl" + b) + "_mc";
bowl_mc.dragable = true;
bowl_mc.dropType = "spring";
bowl_mc.ready = false;
bowl_mc.contents = ingredients[b - 1] + "";
bowl_mc.contents_mc.gotoAndStop(bowl_mc.contents);
bowl_mc.spoon_mc._visible = false;
bowl_mc.event_release = new Object();
bowl_mc.event_release.customAction = function (elId) {
target = _root.gameboard[elId];
if (target.ready && (target.hitTest(_root.gameboard.dropSpace_mc))) {
target.ready = false;
target.gotoAndPlay("drop");
target.dropType = "float";
_root.gameboard.ingredients_mc.showMovieClip();
_root.gameboard.ingredients_mc._x = target._x;
_root.gameboard.ingredients_mc._y = target._y;
_root.gameboard.ingredients_mc.gotoAndStop(target.contents);
_root.gameboard.ingredients_mc.contents = target.contents;
_root.gameboard.ingredients_mc.falling = true;
_root.gameboard.timeline_mc.play();
}
};
bowl_mc.onEnterFrame = function () {
if (this.ready) {
if ((!this.flash_mc._visible) && (!this.dragging)) {
this.flash_mc.gotoAndPlay(1);
this.flash_mc._visible = true;
}
if (this.dragging) {
this.flash_mc._visible = false;
}
} else if (this.flash_mc._visible) {
this.flash_mc._visible = false;
}
if ((this.dragging && (this.contents == "chickenStock")) && (Math.random() < 0.6)) {
_root.dropBlood(heat_mc._xmouse, heat_mc._ymouse, heat_mc, "gravyDropMC");
}
if ((this.dragging && (this.contents == "giblets")) && (Math.random() < 0.6)) {
_root.dropBlood(heat_mc._xmouse, heat_mc._ymouse, heat_mc);
}
};
b++;
}
shake1_mc.event_hit = new Object();
shake1_mc.event_hit.activeTargets_set = Array("shake1_mc", "shake2_mc");
shake2_mc.event_hit = new Object();
shake2_mc.event_hit.activeTargets_set = Array("shake1_mc", "shake3_mc");
shake3_mc.event_hit = new Object();
shake3_mc.event_hit.activeTargets_set = Array("shake1_mc");
shake3_mc.event_hit.customAction = function (elId) {
_root.gameboard.pan_mc.gotoAndPlay("shake");
_root.gameboard.guide2_mc._visible = false;
_root.gameboard.shake1_mc.hideMovieClip();
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + 1;
}, 2500);
if (!_root.gameboard.timeline_mc.expended) {
_root.gameboard.timeline_mc.play();
}
};
Symbol 664 MovieClip [minigame3_4] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array();
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 11;
gameTotalPoints = 7;
itemObjects = 7;
i = 1;
while (i <= itemObjects) {
activeTargets[activeTargets.length] = ("item" + i) + "_mc";
item_mc = this[("item" + i) + "_mc"];
item_mc.idName = ("item" + i) + "_mc";
item_mc.dragable = true;
item_mc.dropType = "fall";
item_mc.fallTarget = "panBase_mc";
item_mc.event_press = new Object();
item_mc.event_press.customAction = function (elId) {
_root.playSound("strain_gravy1.wav", "", "", 2);
_root.playSound("drop_organs.wav", "", "", 2);
};
item_mc.event_floorHit = new Object();
item_mc.event_floorHit.gamePoints_add = 1;
item_mc.event_floorHit.activeTargets_remove = Array(("item" + i) + "_mc");
item_mc.event_floorHit.customAction = function (elId) {
_root.playSound("add_ingredients_to_pan.wav");
};
item_mc.onEnterFrame = function () {
if (this.dragging && (Math.random() < 0.3)) {
_root.dropBlood(salt_mc._xmouse, salt_mc._ymouse, salt_mc, "gravyDropMC");
}
};
i++;
}
Symbol 672 MovieClip Frame 1
stop();
Symbol 673 MovieClip [minigame4_1] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array();
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 15;
gameTotalPoints = 21;
crumbs = 30;
c = 1;
while (c <= crumbs) {
activeTargets[activeTargets.length] = ("crumb" + c) + "_mc";
crumb_mc = this[("crumb" + c) + "_mc"];
crumb_mc.idName = ("crumb" + c) + "_mc";
crumb_mc.dragable = true;
crumb_mc.dropType = "fall";
crumb_mc.fallRate = 1;
crumb_mc._alpha = 0;
crumb_mc.event_press = new Object();
crumb_mc.event_press.customAction = function (elId) {
crumb_mc = _root.gameboard[elId];
crumb_mc.onEnterFrame = function () {
if (this.dragging) {
if (!this._alpha) {
this._alpha = 100;
_root.gameboard.tofu_mc.nextFrame();
setTimeout(function () {
if (_root.gameStatus.current.gamePoints < _root.gameboard.gameTotalPoints) {
_root.gameStatus.current.gamePoints++;
}
}, 1000);
_root.playSound("stuffing.wav", 25);
}
this.bounceable = true;
}
if (this.falling) {
if (this.bounceable) {
this.dy = -17;
this.bounceable = false;
}
}
};
};
c++;
}
Symbol 676 MovieClip Frame 63
_root.gameboard.guide1_mc._visible = true;
_root.gameboard.guide1_mc.gotoAndPlay(1);
_root.gameboard.target1a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 87
_root.gameboard.guide2_mc._visible = true;
_root.gameboard.guide2_mc.gotoAndPlay(1);
_root.gameboard.target2a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 112
_root.gameboard.guide3_mc._visible = true;
_root.gameboard.guide3_mc.gotoAndPlay(1);
_root.gameboard.target3a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 136
_root.gameboard.guide4_mc._visible = true;
_root.gameboard.guide4_mc.gotoAndPlay(1);
_root.gameboard.target4a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 160
_root.gameboard.guide5_mc._visible = true;
_root.gameboard.guide5_mc.gotoAndPlay(1);
_root.gameboard.target5a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 186
_root.gameboard.guide6_mc._visible = true;
_root.gameboard.guide6_mc.gotoAndPlay(1);
_root.gameboard.target6a_mc.showMovieClip();
stop();
Symbol 676 MovieClip Frame 222
stop();
Symbol 677 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (!(this._currentframe % 10)) {
stop();
}
};
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 6
stop();
Symbol 678 MovieClip Frame 10
stop();
Symbol 678 MovieClip Frame 16
stop();
Symbol 678 MovieClip Frame 21
stop();
Symbol 678 MovieClip Frame 27
stop();
Symbol 678 MovieClip Frame 34
stop();
Symbol 678 MovieClip Frame 35
gotoAndStop ("end");
Symbol 683 MovieClip [minigame4_2] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("target0_mc", "target1a_mc", "target2a_mc", "target3a_mc", "target4a_mc", "target5a_mc", "target6a_mc");
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 20;
gameTotalPoints = 6;
guides = 6;
g = 1;
while (g <= guides) {
_root.gameboard[("guide" + g) + "_mc"]._visible = false;
tA = _root.gameboard[("target" + g) + "a_mc"];
tA.hideMovieClip();
tA.event_press = new Object();
tA.event_press.activeTargets_add = Array(("target" + g) + "b_mc");
tB = _root.gameboard[("target" + g) + "b_mc"];
tB.event_hit = new Object();
if (!_root.gameboard[("target" + g) + "c_mc"]) {
tB.event_hit.activeTargets_remove = Array(("target" + g) + "a_mc", ("target" + g) + "b_mc");
tB.event_hit.customAction = function (elId) {
target_mc = _root.gameboard[elId];
setTimeout(function () {
_root.gameStatus.current.gamePoints++;
}, 1000);
_root.playSound("stuffing.wav", 30);
_root.gameboard.tofu_mc.play();
_root.gameboard.timeline_mc.play();
_root.gameboard[("target" + elId.substr(6, 1)) + "a_mc"].hideMovieClip();
_root.gameboard[("guide" + elId.substr(6, 1)) + "_mc"].hideMovieClip();
};
} else {
tB.event_hit.activeTargets_add = Array(("target" + g) + "c_mc");
tC = _root.gameboard[("target" + g) + "c_mc"];
tC.event_hit = new Object();
tC.event_hit.activeTargets_remove = Array(("target" + g) + "a_mc", ("target" + g) + "b_mc", ("target" + g) + "c_mc");
tC.event_hit.customAction = function (elId) {
target_mc = _root.gameboard[elId];
setTimeout(function () {
_root.gameStatus.current.gamePoints++;
}, 1000);
_root.playSound("stuffing.wav", 30);
_root.gameboard.tofu_mc.play();
_root.gameboard.timeline_mc.play();
_root.gameboard[("target" + elId.substr(6, 1)) + "a_mc"].hideMovieClip();
_root.gameboard[("guide" + elId.substr(6, 1)) + "_mc"].hideMovieClip();
};
}
g++;
}
target0_mc.event_release = new Object();
target0_mc.event_release.activeTargets_remove = Array("target1b_mc", "target1c_mc", "target2b_mc", "target3b_mc", "target3c_mc", "target4b_mc", "target5b_mc", "target5c_mc", "target6b_mc", "target6c_mc");
Symbol 688 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (!(this._currentframe % 10)) {
stop();
}
};
Symbol 694 MovieClip Frame 1
stop();
liquid = false;
Symbol 694 MovieClip Frame 10
liquid = true;
Symbol 694 MovieClip Frame 21
stop();
Symbol 694 MovieClip Frame 30
liquid = false;
_root.playSound("spray.wav");
Symbol 696 MovieClip Frame 1
stop();
grabable = true;
Symbol 697 MovieClip [minigame4_3] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
activeTargets = new Array("target0_mc", "target1_mc");
defaultMouseSymbol = "mouse_mc";
gameTime = 20;
gameTotalPoints = 6;
target0_mc.event_release = new Object();
target0_mc.event_release.activeTargets_set = Array("target1_mc");
target0_mc.event_press = new Object();
target0_mc.event_release.customAction = function () {
if (_root.gameboard.mouse_mc.baster_mc.liquid) {
_root.gameboard.mouse_mc.baster_mc.gotoAndPlay("empty");
_root.gameStatus.current.gameMistakes++;
}
};
target1_mc.event_release = new Object();
target1_mc.event_release.activeTargets_add = Array("target0_mc", "target2_mc");
target1_mc.event_release.customAction = function () {
if (!_root.gameboard.mouse_mc.baster_mc.liquid) {
_root.gameboard.mouse_mc.baster_mc.gotoAndPlay("fill");
_root.gameboard.sauce_mc.play();
_root.playSound("stuffing.wav", 30);
}
};
target2_mc.event_press = new Object();
target2_mc.event_press.activeTargets_remove = Array("target2_mc");
target2_mc.event_press.customAction = function () {
if (_root.gameboard.mouse_mc.baster_mc.liquid) {
_root.gameboard.mouse_mc.baster_mc.gotoAndPlay("empty");
_root.gameboard.tofu_mc.play();
setTimeout(function () {
_root.gameStatus.current.gamePoints++;
}, 300);
}
};
Instance of Symbol 64 MovieClip "target2_mc" in Symbol 697 MovieClip [minigame4_3] Frame 1
/* no clip actions */
Symbol 700 MovieClip [minigame4_4] Frame 1
function gameSuccessTest() {
success = (((_root.gameStatus.current.gamePoints + _root.gameStatus.current.gameMistakes) == gameTotalPoints) ? true : false);
return(success);
}
function onTimeOver() {
_root.stopSound("oven.wav");
}
activeTargets = new Array();
defaultMouseSymbol = "mouse_mc";
defaultMouseBoundary = "defaultMouseBoundaryMC";
gameTime = 10;
gameTotalPoints = 6;
guide_mc._visible = false;
on_btn.onRelease = function () {
if ((!_root.gameboard.gameFinished) && (_root.gameboard.gameStarted)) {
_root.gameStatus.current.gamePoints++;
this._visible = false;
off_btn._visible = true;
guide_mc._visible = true;
metre_mc._visible = true;
metre_mc.play();
ovenTint_mc.play();
tofu_mc.play();
_root.playSound("on_off_button.wav");
_root.playSound("oven.wav");
}
};
off_btn._visible = false;
off_btn.onRelease = function () {
if (!_root.gameboard.gameFinished) {
setTimeout(function () {
_root.gameStatus.current.gamePoints = _root.gameStatus.current.gamePoints + metre_mc.cookingPoints;
_root.gameStatus.current.gameMistakes = _root.gameStatus.current.gameMistakes + (gameTotalPoints - _root.gameStatus.current.gamePoints);
}, 100);
metre_mc.stop();
tofu_mc.stop();
ovenTint_mc.stop();
_root.playSound("on_off_button.wav");
_root.stopSound("oven.wav");
}
};
Symbol 707 MovieClip [countdownMC] Frame 25
_root.playSound("chop.wav");
Symbol 707 MovieClip [countdownMC] Frame 46
_root.playSound("chop.wav");
Symbol 707 MovieClip [countdownMC] Frame 67
_root.playSound("chop.wav");
Symbol 707 MovieClip [countdownMC] Frame 87
_root.startMinigame();
this.removeMovieClip();
Symbol 708 MovieClip [bloodDropMC] Frame 1
stop();
Symbol 708 MovieClip [bloodDropMC] Frame 60
stop();
Symbol 714 MovieClip Frame 1
if ((!_root.gameboard.gameStarted) && (!_root.gameLoadingScreen)) {
stop();
}
Symbol 714 MovieClip Frame 4
_root.playSound("tickSND", "", "", 1);
if (!this._parent.slowtock) {
gotoAndPlay(this._currentframe + 10);
}
Symbol 714 MovieClip Frame 25
_root.playSound("tockSND", "", "", 1);
if (!this._parent.slowtock) {
gotoAndPlay(this._currentframe + 10);
}
Symbol 716 MovieClip [clockMC] Frame 1
fps = 30;
if (!_root.gameboard.gameTime) {
_root.gameboard.gameTime = 20;
}
timeCount = _root.gameboard.gameTime;
slowtock = true;
onEnterFrame = function () {
if (_root.gameboard.gameStarted) {
timeCount = timeCount - (1 / fps);
if (!Math.ceil(timeCount)) {
if (_root.gameboard.onTimeOver) {
_root.gameboard.onTimeOver();
}
_root.gameFinish();
} else {
hand_mc._rotation = hand_mc._rotation + (360 / (_root.gameboard.gameTime * fps));
if ((slowtock && (hand_mc._rotation < 0)) && (hand_mc._rotation > -90)) {
slowtock = false;
} else {
ticktock_mc.play();
}
}
}
};
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
} else {
stop();
}
Symbol 722 MovieClip Frame 1
stop();
if (_root.mamaMood == "happy") {
gotoAndStop ("happy");
}
Symbol 723 MovieClip [doneMC] Frame 93
_root.gameComplete();
Symbol 724 MovieClip [gravyDropMC] Frame 1
stop();
Symbol 724 MovieClip [gravyDropMC] Frame 60
stop();
Symbol 731 MovieClip [bouncerMC] Frame 1
if (!frameCoords) {
frameCoords = new Array();
frameCoords[0] = new Object();
frameCoords[0].x = dot_mc._x;
frameCoords[0].y = dot_mc._y;
this.onEnterFrame = function () {
if ((this._currentframe == 2) && (frameCoords[1])) {
delete this.onEnterFrame;
}
frameCoords[this._currentframe - 1] = new Object();
frameCoords[this._currentframe - 1].x = dot_mc._x;
frameCoords[this._currentframe - 1].y = dot_mc._y;
};
}